View file rating/admin.php

File size: 1.23Kb
<?php
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
$user = "";
$pass = "";
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>';
include "config.php";
print '<card title="Админка">'.
'<p>';
if($l==$user && $p==$pass) {
	switch($mod) {
	//удалить
	case 'del':
	if(!empty($act)) {
	if(mysql_query("delete from `rate` where id='$id';"))
		print "<b>Сайт удален из рейтинга!!!</b><br/>";
	} else {
	print "id:<br/><input name=\"id\" format=\"*N\"/><br/>
	<anchor>Ok<go href=\"admin.php?l=$l&amp;p=$p&amp;id=$(id)&amp;act=del&amp;mod=$mod\" method=\"get\"/></anchor><br/>";
	}
	break;
	default:
	print "<a href=\"admin.php?l=$l&amp;p=$p&amp;mod=del\">Delete</a><br/>";
	break;
	}
	if($mod) {
	print "<anchor>Назад<prev/></anchor><br/>";
	print "<a href=\"admin.php?l=$l&amp;p=$p\">:Администрация</a><br/>";
	}
	print "<a href=\"index.php\">::Рейтинг</a><br/>";
} else { print "Доступ закрыт!"; }
@mysql_close();
print '</p>'.
'</card>'.
'</wml>';
?>