View file wapchat/wapchat/meets.php

File size: 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&amp;pass=$pass&amp;meetid=".$arr['id']."&amp;mod=view\">".$arr['title']."</a><br/>"; }
	break;
	}
	if($mod)
	print "<br/><a href=\"meets.php?id=$id&amp;pass=$pass\">".$lang['letters']."</a>";
	print "<br/><a href=\"./enter.php?id=$id&amp;pass=$pass\">".$lang['holl']."</a><br/>";
	} else { print $lang['not_loged']; }
mysql_close();
ob_end_flush();
?>
</p>
</card>
</wml>