Размер файла: 1.93Kb
<?php
session_name("SESID");
session_start();
include ('../verh.php');
if($_SESSION['pass']!=$adminpass) {echo "ERROR 404! Not fond.</div></body></html>\n";exit;}
$id=intval($_REQUEST['id']);
$site=mysql_fetch_array(mysql_query("SELECT * FROM inet_sites WHERE id='$id'"));
$id = $site['id'];
$name = $site['name'];
$in = $site['in'];
$all_in = $site['all_in'];
$all_out = $site['all_out'];
$out = $site['out'];
$opis = $site['opis'];
$url = $site['url'];
$status = $site['resultat'];
echo "ID: <b>$site[id]</b><br/>";
echo "<a href='../out.php/?id=".$id."'>".$name."</a> (".$url.")";
echo " <a href=\"../info.php?id=$id\">[info]</a><br/>";
echo $opis."<br />\n";
echo "Сегодня: IN/OUT: ".$in."/".$out."<br />";
echo "Всего: IN/OUT: ".$all_in."/".$all_out."<br />";
echo "WMR: $site[wm]<br/>";
echo "Email: <b>$site[mail]</b><br/>";
echo "Статус: <b>$status</b> [<a href=\"test.php?id=".$id."&test=on\">проверить</a>]<br />\n";
// выплаты
$total=$all_in*$inprice;
list($refcount)=mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM inet_sites WHERE refid='$id' AND `all_in`>=$refin"));
$reftotal=$refcount*$refprice;
$total+=$reftotal;
$pay=$site['pay'];
$nopay=$total-$pay;
$refpay=$site['refpay'];
$refnopay=$reftotal-$refpay;
echo "<br/><b>Заработок: (всего/рефералы</b>)<br/>";
echo "Не выплачено: <b>$nopay</b> руб / <b>$refnopay</b> руб<br/>";
echo "Выплачено: <b>$pay</b> руб / <b>$refpay</b> руб<br/>";
echo "Всего: <b>$total</b> руб / <b>$reftotal</b> руб<br/>";
echo "<a href=\"ip.php?id=$id\">IP</a><br/>";
echo "<a href=\"../profile/referals.php?id=$id&pass=$site[pass]\">Рефералы</a><br/>";
echo "<a href=\"../profile/profile.php?id=$id&pass=$site[pass]\">edit</a>
<a href=\"ban.php?id=$id\">ban</a>
<a href=\"del.php?id=$id\">del</a> ";
echo "<br /><a href=\"apanel.php\">Админка</a><br/>";
include ('../niz.php');
?>