File size: 2.44Kb
<?
///////////////////////////////////////////
// Автор: Уфимец //
// Сайт: http://wap.vav.su //
// //
///////////////////////////////////////////
include("sconf.php");
header ("Content-type:text/vnd.wap.wml;charset=utf-8");
if(@$_GET['n'])
{
if(@$_GET['p'])
{
$sql=mysql_query("SELECT * FROM admin;");
$res=mysql_fetch_array($sql);
$login=$res['name'];
$pass=$res['pass'];
if($_GET['n']!=$login || $_GET['p']!=$pass)
{
?>
<!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>
<card id="error" title="<?=$sitename?>" ontimer="login.php">
<timer value="10"/>
<p align="center">
Доступ закрыт!
</p>
</card>
</wml>
<?
}
else
{
if(MYSQL_QUERY("UPDATE sitetop SET topic='".htmlspecialchars(trim(@$_POST['topic']))."';"))
{
?>
<!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>
<card title="<?=$sitename?>" ontimer="../">
<timer value="10"/>
<p align="left">
Топик изменен.<br/>
----------<br/>
<a href="../">На главную</a>
</p>
</card>
</wml>
<?
}
else
{
?>
<!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>
<card id="error" title="<?=$sitename?>" ontimer="login.php">
<timer value="10"/>
<p align="center">
Ошибка изменения топика!<br/>
</p>
</card>
</wml>
<?
}
}
}
else
{
?>
<!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>
<card id="error" title="<?=$sitename?>" ontimer="login.php">
<timer value="10"/>
<p align="center">
Не введен пароль!
</p>
</card>
</wml>
<?
}
}
else
{
?>
<!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>
<card id="error" title="<?=$sitename?>" ontimer="login.php">
<timer value="10"/>
<p align="center">
Не введен логин!
</p>
</card>
</wml>
<?
}
mysql_close();
?>