93 lines
3.2 KiB
PHP
93 lines
3.2 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 `active` = "" LIMIT 1000'));
|
|
$rfs['count'] = 0+$rfs['count'][0];
|
|
$rfs['c'] = 1;
|
|
$rfs['see'] = '';
|
|
$sp = mysql_query('SELECT `id`,`level` FROM `users` WHERE `host_reg` = "'.$u->info['id'].'" AND `active` = "" ORDER BY `level` DESC LIMIT '.$rfs['count']);
|
|
while($pl = mysql_fetch_array($sp))
|
|
{
|
|
$rfs['c2'] = ' '.$rfs['c'].'. '.$u->microLogin($pl['id'],1).'<br>';
|
|
if($pl['level']<1)
|
|
{
|
|
$rfs['c2'] = '<font color="grey">'.$rfs['c2'].'</font>';
|
|
}elseif($pl['level']>5)
|
|
{
|
|
$rfs['c2'] = '<font color="green">'.$rfs['c2'].'</font>';
|
|
}
|
|
$rfs['see'] .= $rfs['c2'];
|
|
$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">Âàøà óíèêàëüíàÿ ññûëêà <input style="background-color:#FBF8E1; border:1px solid #EFDBB6; padding:5px;" size="25" value="new-combats.com/r<?=$u->info['id']?>" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="4"> </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; "> </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="main.php?referals"' />
|
|
|
|
<input type="button" value="Âåðíóòüñÿ" style='width: 75px' onclick='location="main.php"' /></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center"><h4>Íàñòðîéêà ðåôåðàëüíîé ñèñòåìû</h4></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="text-align:left;"><table width="100%" border="0" cellspacing="5" cellpadding="0">
|
|
<tr>
|
|
<td width="200">Ñ÷åò çà÷èñëåíèÿ Åêð.:</td>
|
|
<td><select name="r_bank" id="r_bank">
|
|
<?
|
|
$sp = mysql_query('SELECT * FROM `bank` WHERE `uid` = "'.$u->info['id'].'" AND `block` = "0" LIMIT 1');
|
|
while($pl = mysql_fetch_array($sp))
|
|
{
|
|
echo '<option value="'.$pl['id'].'">¹ '.$pl['id'].'</option>';
|
|
}
|
|
?>
|
|
</select></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Òèï ðåãèñòðàöèè:</td>
|
|
<td>
|
|
<form method="post" action="main.php?referals">
|
|
<select name="r_type" id="r_type">
|
|
<option value="1">îáû÷íàÿ</option>
|
|
<option value="2">ïðåìèóì</option>
|
|
</select>
|
|
</form></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right"><input type="submit" name="button" id="button" value="ñîõðàíèòü èçìåíåíèÿ" /></td>
|
|
<td> </td>
|
|
</tr>
|
|
</table></td>
|
|
</tr>
|
|
</table></td>
|
|
</tr>
|
|
</table>
|