File size: 1.19Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);
header("Content-type:text/vnd.wap.wml;charset=utf-8");
if ($login=="") {
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">
<wml>
<card id=\"tes\" title=\"Наш чат\"><p>";
print"Вернитесь назад и введите логин!<br/>
<a href=\"index.wml\">На главную</a><br/>";};
if ($login!=="") {print "
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">
<wml>
<card id=\"tes\" title=\"Наш чат\" ontimer=\"guest.php?login=$login&met=b\" >
<timer value=\"1\"/> <p>
Щас всё будет...";};
print "</p>
</card>
</wml>";
?>