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

Размер файла: 3.13Kb
<?php
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"'.
' "http://www.wapforum.org/DTD/wml_1.1.xml">'.
'<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';
print '<card title="AmLet-top"><p align= "center">';

require ("db.php");

function autorize() {
	global $id;
	
	$q = @mysql_query("select * from `top` where id='$id' limit 1;");
	
	$duser = @mysql_fetch_array($q);


	
	return $duser;


}

$link = autorize();
$date=date("Y-m-d",time());
$date=date("Y-m-d",time());
$H1=date("H",time())+1;
$i=date("i",time());

$time="$H1:$i";

if(empty($id))
print "<small>&#1053;&#1077;&#1090; ID!</small>";
if($link)

 {print '<small><b>'.$date.' <small>('.$time.')</small></b></small>';
print '<br/><small><b>http://'.$link['link'].'</b></small><br/>'.
'<small><u>id=</u> '.$link['id'].'</small><br/>'.
'<small><u>&#1052;&#1077;&#1089;&#1090;&#1086; &#1074; &#1090;&#1086;&#1087;&#1077;:</u></small>'.
'<small> '.$link['tops'].'</small><br/>'.
'<small><u>H&#1072;&#1079;&#1074;&#1072;&#1085;&#1080;&#1077;:</u></small>'.
'<small> '.$link['title'].'</small><br/>'.
'<small><u>&#1054;&#1087;&#1080;&#1089;&#1072;&#1085;&#1080;&#1077;:</u> '.$link['opis'].'</small><br/>'.
'<small><u>&#1044;&#1085;&#1077;&#1081; &#1074; &#1090;&#1086;&#1087;&#1077;:</u></small>'.
'<small> '.$link['days'].'</small><br/>'.
'<small><u>&#1044;&#1072;&#1090;&#1072; &#1088;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1080;:</u> '.$link['date'].'</small><br/>'.
'<small><u>C&#1077;&#1075;&#1086;&#1076;&#1085;&#1103;:</u> '.$link['today'].'</small><br/>'.

'<small><u>&#1042;&#1089;&#1077;&#1075;&#1086;:</u> '.$link['all'].'</small><br/>'.
'<small><u>&#1048;&#1079; &#1090;&#1086;&#1087;&#1072;:</u> '.$link['out'].'</small><br/>'.
'<small><u>&#1042; &#1090;&#1086;&#1087;:</u> '.$link['cin'].'</small><br/>'.
'<small><u>&#1042;&#1089;&#1077;&#1075;&#1086; &#1080;&#1079; &#1090;&#1086;&#1087;&#1072;:</u> '.$link['allout'].'</small><br/>'.
'<small><u>&#1042;&#1089;&#1077;&#1075;&#1086; &#1074; &#1090;&#1086;&#1087;:</u> '.$link['allin'].'</small><br/>'.
'<small> <a href="out.php?id='.$link['id'].'">&#1042;&#1077;&#1088;&#1085;&#1091;&#1090;&#1089;&#1103; &#1085;&#1072; &#1089;&#1072;&#1081;&#1090;</a></small><br/>'.
'<small><a href="enter.php">&#1055;&#1088;&#1086;&#1092;&#1080;&#1083;&#1100;</a></small><br/><small><b>:::::</b></small><br/>';

}else { print "<small><b>&#1053;&#1077;&#1074;&#1077;&#1088;&#1085;&#1099;&#1081; ID!</b></small><br/>"; }

print "<small><a href=\"reg.wml\">&#1056;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1072;&#1094;&#1080;&#1103;</a></small><br/>";
print "<small><a href=\"index.php\">AmLet top</a></small><br/>";
print "<small><a href=\"../index.php\">Amlet.com.ru</a></small><br/>";

$cdays = $link['days']+= 1;
if($time=="24:27"){
@mysql_query("update `top` set `today`='0', `cin`='0', `out`='0', `days`='$cdays' where `id`>'0';");}



print '</p>'.
'</card>'.
'</wml>';

@mysql_close();
?>