File size: 1.7Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
//посылаем заголовки
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>';
include "./ini.php";
print '<card title="'.$lang['igry'].'">'.
'<p align="center">';
if(!empty($login))
$q = @mysql_query("select `id` from `".$px.$utable."` where `login`='".$login."';");
if(empty($id)) {
$data = @mysql_fetch_array($q);
$id = $data['id'];
}
$login = autorize();
if($login) {
include "./ban.php";
/////////////////////////////////
$loginid=mysql_fetch_array(mysql_query("SELECT * FROM `chat_users` WHERE `id`='$id'"));
$log_db=$loginid['login'];
$pozdr=mysql_fetch_array(mysql_query("SELECT * FROM `chat_meets` WHERE `id`='$did'"));
if($pozdr['login']!=$log_db){
echo 'Idi na huy, eto ne tvoe pozdravlenie';
print "<br/><a href=\"vyvod.php?id=$id&pass=$pass&mod=addmeet\">".$lang['add_vyvod']."</a><br/>";
print "<a href=\"./enter.php?id=$id&pass=$pass&mod=addmeet\">".$lang['pozd']."</a>";
}else{
mysql_query("DELETE FROM `chat_meets` WHERE `id`='$did'");
echo 'OK!';
print "<br/><a href=\"vyvod.php?id=$id&pass=$pass&mod=addmeet\">".$lang['add_vyvod']."</a><br/>";
print "<a href=\"./enter.php?id=$id&pass=$pass&mod=addmeet\">".$lang['pozd']."</a>";
}
//////////////////////////////
} else { print $lang['not_loged']; }
print '</p>'.
'</card>'.
'</wml>';
@mysql_close();
?>