View file stat.php

File size: 763B
<?
error_reporting(0);
session_start();
$title="Статистика\n";
include ("header.php");
include ("func/aut.php");
echo $div["header"];
echo $div["end"];
echo $div["ten"];
$q = mysql_query("select * from uzvers where `log`='$login';");
$reg=mysql_num_rows($q);
$field=mysql_fetch_array($q);
$all=$field['all'];
for ($i=1;$i<33;$i++)
{
$oper=$i;
include ("func/spop.php");
if ($otk[$i]!=0)
{
$host=$field[$i];
$cost=$host*($cena[$i]/1000);
echo "$oper_name | $host | $cost<br/>";
}
$allcost=$allcost+$cost;
}
echo "<br/><b>Всего за сегодня: $allcost У.е.</b><br/>";
echo "# ";echo "<a href=\"enter.php?".session_name()."=".session_id()."\">Панель</a><br/>";
echo $div["end"];
include ("footer.php");
?>