game/modules_data/_ref_OLD.php
2022-06-07 00:30:34 +03:00

172 lines
7.4 KiB
PHP

<?php
if(!defined('GAME') || !isset($_GET['referals']))
{
die();
}
$rfs = array();
$rfs['count'] = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `users` WHERE `host_reg` = "'.$u->info['id'].'" AND `mail` != "No E-Mail" LIMIT 1000'));
$rfs['count'] = 0+$rfs['count'][0];
$rfs['c'] = 1;
$rfs['data'] = explode('|',$u->info['ref_data']);
if(isset($_POST['r_bank']) || isset($_POST['r_type']))
{
$bnk = mysql_fetch_array(mysql_query('SELECT * FROM `bank` WHERE `id` = "'.mysql_real_escape_string($_POST['r_bank']).'" AND `uid` = "'.$u->info['id'].'" AND `block` = "0" LIMIT 1'));
if(!isset($bnk['id']))
{
}else{
if($_POST['r_type']==1){ $_POST['r_type'] = 1; }else{ $_POST['r_type'] = 2; }
$u->info['ref_data'] = $bnk['id'].'|'.$_POST['r_type'];
$rfs['data'] = explode('|',$u->info['ref_data']);
mysql_query('UPDATE `stats` SET `ref_data` = "'.mysql_real_escape_string($u->info['ref_data']).'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
}
}
$rfs['see'] = '';
$sp = mysql_query('SELECT `s`.`active`,`u`.`online`,`u`.`id`,`u`.`level` FROM `users` AS `u` LEFT JOIN `stats` AS `s` ON `u`.`id` = `s`.`id` WHERE `u`.`host_reg` = "'.$u->info['id'].'" AND `u`.`mail` != "No E-Mail" ORDER BY `u`.`level` DESC LIMIT '.$rfs['count']);
while($pl = mysql_fetch_array($sp))
{
$rfs['c2'] = '&nbsp; '.$rfs['c'].'. &nbsp; '.$u->microLogin($pl['id'],1).'';
if($pl['active']!='')
{
$rfs['c2'] = '<font color="grey">'.$rfs['c2'].' &nbsp; <small>íå àêòèâèðîâàí</small></font>';
}elseif($pl['level']>5)
{
$rfs['c2'] = '<font color="green">'.$rfs['c2'].'</font>';
}
if($pl['online'] >time()-520) {
$rfs['c2'] .= '<font color="green"> &nbsp; <small>ONLINE</small></font>';
}
$rfs['see'] .= $rfs['c2'].'<br>';
$rfs['c']++;
}
if($rfs['see']=='')
{
$rfs['see'] = '<b>Ê ñîæàëåíèþ ó Âàñ íåò ðåôåðàëîâ</b>';
}
?>
<table cellspacing="0" cellpadding="2" width="100%">
<tr>
<td style="vertical-align: top; "><table cellspacing="0" cellpadding="2" width="100%">
<tr>
<td colspan="4" align="center"><h4>Êàê çàðàáîòàòü èãðîâóþ âàëþòó è ðåàëüíûå äåíüãè â ÁÊ:</h4></td>
</tr>
<tr>
<td colspan="4">
<u><font color=#003388><b>Àêòèâàöèÿ ïîäàðî÷íûõ âàó÷åðîâ</b>:</font></u><br>
<form style="padding:10px;" method="post" action="main.php?referals">
Íîìåð: <input type="text" value="" name="va_num" /> &nbsp; Ïàðîëü: <input type="password" name="va_psw" value="" /><button type="submit"><small>Àêòèâèðîâàòü</small></button><br />Ññûëêà íà âàó÷åð: <input style="width:280px" type="text" name="va_url" value="" /><br>
</form>
<small><b>Ïðàâèëà ðàçìåùåíèÿ âàó÷åðà:</b>
<br />- Âàó÷åð äîëæåí áûòü ðàçìåùåí â ñîöèàëüíûõ ñåòÿõ, ëèáî äðóãèõ ñàéòàõ ñ ïîäðîáíîé èíôîðìàöèåé ïî åãî èñïîëüçîâàíèþ
<br />- Îí äîëæåí íàõîäèòüñÿ íà óêàçàííîì àäðåñå íå ìåíåå ñóòîê
<br />- Íàãðàäó çà âàó÷åð âîçìîæíî ïîëó÷èòü â òå÷åíèè 24 ÷. (Çàùèòà îò "íàêðóòêè")
<br />- Äëÿ ñîçäàíèÿ ñîáñòâåííîãî âàó÷åðà ïåðåéäèòå ïî ññûëêå: <a href=" ðàçðàáîòêå"> ðàçðàáîòêå</a>
</small>
<br><br>
<u><font color=#003388><b>Êðåäèòû</b> ìîæíî ïîëó÷èòü:</font></u> <br>
- íàáèðàÿ îïûò â áîÿõ è ïîäíèìàÿñü ïî àïàì è óðîâíÿì â ñîîòâåòñòâèè ñ <a href=https://lib.new-combats.com/main/85 target=_blank>Òàáëèöåé Îïûòà</a> (äîñòóïíî íà ëþáîì óðîâíå)<br>
- â Ïåùåðàõ: ïðîäàâ ðåñóðñû â Ìàãàçèí<br>
- ñ ïîìîùüþ <b>Ðåôåðàëüíîé ñèñòåìû</b>, êîòîðàÿ îïèñàíà íèæå (äîñòóïíî íà ëþáîì óðîâíå)<br>
- ëå÷åíèåì è äðóãèìè ìàãè÷åñêèìè óñëóãàìè (äîñòóïíî ñ 4 óðîâíÿ)<br>
- òîðãîâëåé (äîñòóïíî ñ 4 óðîâíÿ)<br>
- â Áàøíå Ñìåðòè: îáíàëè÷èâ ó Àðõèâàðèóñà íàéäåííûé â áàøíå ÷åê (äîñòóïíî ñ 1 óðîâíÿ)<br>
<br><br>
<u><font color=#003388><b>Åâðîêðåäèòû</b> ìîæíî ïîëó÷èòü:</font></u><br>
- ñ ïîìîùüþ <b>Ðåôåðàëüíîé ñèñòåìû</b>, êîòîðàÿ îïèñàíà íèæå (äîñòóïíî íà ëþáîì óðîâíå)<br>
- êóïèâ åâðîêðåäèòû ó îôèöèàëüíûõ äèëåðîâ ÁÊ<br>
<br>
<br>
<u><font color=#003388><b>Ðåàëüíûå äåíüãè</b> ìîæíî ïîëó÷èòü:</font></u><br>
- ñ ïîìîùüþ <b>Ïàðòíåðñêîé ïðîãðàììû ÁÊ</b>.<br>
<br><br>
<b>Ðåôåðàëüíàÿ ñèñòåìà</b> - ýòî âîçìîæíîñòü Âàøåãî <b>äîïîëíèòåëüíîãî çàðàáîòêà</b> â èãðå. Ïðè îòêðûòèè ñ÷åòà â áàíêå, Âû àâòîìàòè÷åñêè ïîëó÷àåòå ëè÷íóþ <b>ðåôåðàëüíóþ ññûëêó</b>, êîòîðóþ ìîæåòå ðàçäàòü ñâîèì äðóçüÿì è çíàêîìûì.<br><br>
<b>Êàæäûé ïåðñîíàæ</b>, çàðåãèñòðèðîâàâøèéñÿ â ÁÊ ïî Âàøåé ðåôåðàëüíîé ññûëêå, ïî äîñòèæåíèþ èì <b>7ãî</b> óðîâíÿ íà÷íåò ïðèíîñèòü Âàì <b>äîïîëíèòåëüíûé çàðàáîòîê</b>.<br>
<br>
Ïðè äîñòèæåíèè Âàøèì ðåôåðàëîì:<br>
<b>&nbsp;2ãî</b> óðîâíÿ - <b>0.50 êð</b>.<br>
<b>&nbsp;4ãî</b> óðîâíÿ - <b>1.00 êð</b>.<br>
<b>&nbsp;5ãî</b> óðîâíÿ - <b>25.00 êð</b>.<br>
<b>&nbsp;6ãî</b> óðîâíÿ - <b>35.00 êð</b>.<br>
<b>&nbsp;7ãî</b> óðîâíÿ - <b>75.00 êð</b>.<br>
<b>&nbsp;8ãî</b> óðîâíÿ, Âàì àâòîìàòè÷åñêè áóäåò ïåðåâåäåíî íà ñ÷åò <b>1 åêð</b>.<br>
<b>&nbsp;9ãî</b> óðîâíÿ - <b>5 åêð</b>.<br>
<b>10ãî</b> óðîâíÿ - <b>15 åêð</b>.<br>
<b>11ãî</b> óðîâíÿ - <b>35 åêð</b>.<br>
<b>12ãî</b> óðîâíÿ - <b>50 åêð</b>.<br>
<p>&nbsp;</p>
<p>Âàøà óíèêàëüíàÿ ññûëêà
<input style="background-color:#FBFBFB; border:1px solid #EFEFEF; padding:5px;" size="45" value="new-combats.com/register.php?ref=<?=$u->info['id']?>" /> èëè <input style="background-color:#FBFBFB; border:1px solid #EFEFEF; padding:5px;" size="45" value="new-combats.com/r<?=$u->info['id']?>" />
</p></td>
</tr>
<tr>
<td colspan="4"><p>&nbsp;</p>
<ul>
 ðåôåðàëüíîé ñèñòåìå îòîáðàæàþòñÿ ïåðñîíàæè ïðîøåäøèå ðåãèñòðàöèþ
Âûïëàòû ïðîèçâîäÿòñÿ ïî áàíêîâñêîìó ñ÷åòó óêàçàíîìó â íàñòðîéêàõ ñèñòåìû
</ul>
</td>
</tr>
<tr>
<td colspan="4">Êîëè÷åñòâî ðåôåðàëîâ: <b><?=$rfs['count']?></b> øò.</td>
</tr>
<tr>
<td colspan="4"><?=$rfs['see']?></td>
</tr>
</table></td>
<td style="width: 5%; vertical-align: top; ">&nbsp;</td>
<td style="width: 30%; vertical-align: top; "><table width="100%" cellpadding="2" cellspacing="0">
<tr>
<td style="width: 25%; vertical-align: top; text-align: right; "><input type='button' value='Îáíîâèòü' style='width: 75px' onclick='location=&quot;main.php?referals&quot;' />
&nbsp;
<input type="button" value="Âåðíóòüñÿ" style='width: 75px' onclick='location=&quot;main.php&quot;' /></td>
</tr>
<tr>
<td align="center"><h4>Íàñòðîéêà ðåôåðàëüíîé ñèñòåìû</h4></td>
</tr>
<tr>
<td style="text-align:left;"><form method="post" action="main.php?referals"><table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td width="200">Ñ÷åò çà÷èñëåíèÿ Åêð.:</td>
<td>
<? $bsees = '';
$sp = mysql_query('SELECT * FROM `bank` WHERE `uid` = "'.$u->info['id'].'" AND `block` = "0" LIMIT 1');
while($pl = mysql_fetch_array($sp))
{
if($rfs['data'][0]==$pl['id'])
{
$bsees .= '<option selected="selected" value="'.$pl['id'].'">¹ '.$pl['id'].'</option>';
}else{
$bsees .= '<option value="'.$pl['id'].'">¹ '.$pl['id'].'</option>';
}
}
if($bsees != '') {
?>
<select name="r_bank" id="r_bank">
<?
echo $bsees;
?>
</select>
<? }else{
echo '<b>Äëÿ íà÷àëà îòêðîéòå ñ÷åò â áàíêå íà ñòðàøèëêèíîé óëèöå.</b>';
}?>
</td>
</tr>
<tr>
<td align="right"><input type="submit" name="button" id="button" value="ñîõðàíèòü èçìåíåíèÿ" /></td>
<td>&nbsp;</td>
</tr>
</table></form></td>
</tr>
</table></td>
</tr>
</table>