Просмотр файла wkat/info.php

Размер файла: 2.15Kb
<?
$start_time = microtime();
$start_array = explode(" ",$start_time);
$start_time = $start_array[1] + $start_array[0];
include "xconf.php";
$id=$_GET['id'];
$sort=$_GET['s'];
$where_data=$_GET['c'];
$title="&#x0418;&#x043D;&#x0444;op&#x043C;a&#x0446;&#x0438;&#x044F;";
header("Cache-Control: no-cache");  
include "header.php";
print $begin;
print $p_l;
print $sm;
print $d_msl;
If (!isset($_GET['id']) || !is_numeric($_GET['id'])) 
{
echo "

error
<a href=\"category.php?c=$where_data&amp;s=$sort\">Ha&#x0437;a&#x0434;</a><br/> $endpage1
";
}

$res=mysql_query("select * from `cool_site` where id='$id' ");
$row=mysql_num_rows($res);
if ($row==0)
{
print "Ta&#x043A;o&#x0433;o ca&#x0439;&#x0442;a &#x043D;e cy&#x0449;ec&#x0442;&#x0432;ye&#x0442;!<br/>
---<br/><a href=\"category.php?c=$where_data&amp;s=$sort&amp;ver=$ver\">Ha&#x0437;a&#x0434;</a><br/>$endpage1";
exit;
}
if ($row>0)
{
$link=mysql_result($res,0,"link");
$about=mysql_result($res,0,"about");
$tin=mysql_result($res,0,"tin");
$rtime=mysql_result($res,0,"rtime");
$toout=mysql_result($res,0,"tout");
$ins=mysql_result($res,0,"ins");
$outs=mysql_result($res,0,"outs");
$data=date("d.m.y ", "$rtime()" );
echo "
&#x0418;&#x043D;&#x0444;op&#x043C;a&#x0446;&#x0438;&#x044F; o ID - <b>$id</b><br/> 
&#x0414;a&#x0442;a pe&#x0433;&#x0438;c&#x0442;pa&#x0446;&#x0438;&#x0438;: $data<br/>---<br/>
<a href=\"go.php?go=$id\">$link</a><br/>$about<br/>---<br/><b>&#x041F;epexo&#x0434;&#x044B;:</b><br/>
Ce&#x0433;o&#x0434;&#x043D;&#x044F;:<br/><b>OUT: $toout / IN: $tin</b><br/>
&#x0417;a &#x043C;ec&#x044F;&#x0446;:<br/><b>OUT: $outs / IN: $ins</b><br/>---<br/>
<a href=\"oper_in.php?c=$where_data&amp;s=$sort&amp;id=$id&amp;ver=$ver\">O&#x043F;epa&#x0442;op&#x044B; ce&#x0433;o&#x0434;&#x043D;&#x044F;</a><br/>
<a href=\"opers.php?c=$where_data&amp;s=$sort&amp;id=$id&amp;ver=$ver\">O&#x043F;epa&#x0442;op&#x044B; &#x0437;a &#x043C;ec&#x044F;&#x0446;</a><br/>
$d_e $d_fl ---<br/>
<a href=\"category.php?c=$where_data&amp;s=$sort&amp;ver=$ver\">Ha&#x0437;a&#x0434;</a><br/>
<a href=\"index.php?ver=$ver\">Ha &#x0433;&#x043B;a&#x0432;&#x043D;y&#x044E;</a><br/>
$endpage1 ";
}
@include "ber.php";
?>