File size: 1.4Kb
<?php
$admpath=$rootpath."adm/";
if ($query1=='reklama') include($admpath.'finance/reklama.php');
Header("Content-type:text/html; charset=Windows-1251");
Header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
Header("Cache-Control: no-cache, must-relative");
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><body bgcolor=#FEE392><center>';
$q1=@mysql(DBName,"SELECT * FROM `users` WHERE `login` = '$user' LIMIT 0, 1");
$data1=mysql_fetch_array($q1);
$id_user=$data1['num'];
error_reporting(7);
if ($query1=='users') include($admpath.'finance/users.php');
if ($query1=='service') include($admpath.'finance/service.php');
if ($query1=='schet') include($admpath.'finance/schet.php');
if ($query1=='dogovor') include($admpath.'finance/dogovor.php');
if ($query1=='history') include($admpath.'finance/history.php');
$q2=@mysql(DBName,"SELECT * FROM `finance_billing` WHERE `login` = '$user' ORDER BY `time` DESC LIMIT 0, 1");
$data2=mysql_fetch_array($q2);
print '<a href="?'.$id.'/finance/dogovor">Договор</a><br/>';
print '<a href="?'.$id.'/finance/users">Пользователи</a><br/>';
print '<a href="?'.$id.'/finance/service">Услуги</a><br/>';
print '<a href="?'.$id.'/finance/schet">Счета</a><br/>';
print '<a href="?'.$id.'/finance/history">История</a><br/>';
print '<a href="?'.$id.'/finance/reklama">Эффективность рекламы</a><br/>';
exit;
?>