Размер файла: 1.62Kb
<?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>';
//ўЄ«оз Ґ¬ Є®дЁЈга жЁ®л© д ©«
include "./ini.php";
// ўв®аЁ§ жЁп
$login = autorize();
//Їа®¤®«¦ Ґ¬ ўлў®¤ ў Ўа 㧥а
print '<card title="'.$lang['meets'].'">'.
'<p>';
if($login) {//Ї®«м§®ў вҐ«м ўв®аЁ§Ёа®ў
switch($mod) {
//Їа®б¬®ва ўбваҐзЁ
case 'view':
//§ Їа®б ЇҐаҐ¤ го ўбваҐзг
$q = @mysql_query("select * from `".$px.$meettable."` where id='$meetid' order by id desc;");
//ў ¬ ббЁў
$arr = @mysql_fetch_array($q);
//ўлў®¤ ¤ ле ® ўбваҐзЁ
print "<u>".$lang['title'].":</u> ".$arr['title'];
print "<br/><u>".$lang['content'].":</u> ".$arr['content'];
print "<br/><u>".$lang['organizators'].":</u> ".$arr['organizatory'];
print "<br/><u>".$lang['who_add'].":</u> ".$arr['login'];
break;
//Ї® 㬮«з Ёо
default:
//§ Їа®б ўбваҐзЁ
$q = @mysql_query("select * from `".$px.$meettable."` order by id desc;");
//ўлў®¤Ё¬ ббл«ЄЁ ўбваҐзЁ
while($arr = @mysql_fetch_array($q)) {
print "<a href=\"meets.php?id=$id&pass=$pass&meetid=".$arr['id']."&mod=view\">".$arr['title']."</a><br/>"; }
break;
}
if($mod)
print "<br/><a href=\"meets.php?id=$id&pass=$pass\">".$lang['letters']."</a>";
print "<br/><a href=\"./enter.php?id=$id&pass=$pass\">".$lang['holl']."</a><br/>";
} else { print $lang['not_loged']; }
mysql_close();
ob_end_flush();
?>
</p>
</card>
</wml>