View file chat/meets.php

File size: 2.13Kb
<?php
///////////////////////////////////////////////////////////////////////////////////////////
/////
/////                                ********* Best — в *********
/////
/////                            Made by   :  Best
/////                              E-mail  :  [email protected]
/////                                Site  :  http://best.ruwap.org 
/////                                 ICQ  :  415-213-787
/////
//////////////////////////////////////////////////////////////////////////////////////////////
//      ‚› Ќ… €Њ……’… ЏђЂ‚Ћ ‚ЌЋ‘€’ €‡Њ…Ќ…Ќ€џ ‚ ЉЋ„ ‘Љђ€Џ’Ђ „‹џ „Ђ‹њЌ…‰?…ѓЋ ђЂ‘ЏђЋ‘’ђЂЌ…Ќ€џ   //
//////////////////////////////////////////////////////////////////////////////////////////////
//Ї®бл« Ґ¬ § Ј®«®ўЄЁ
include "./header.php";
//ўЄ«оз Ґ¬ Є®­дЁЈга жЁ®­­л© д ©«
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 "<small>&#187; <a href=\"meets.php?id=$id&amp;pass=$pass&amp;meetid=".$arr['id']."&amp;mod=view\">".$arr['title']."</a></small><br/>"; }
	break;
	}
	if($mod)
	print "<br/><small>&#187; <a href=\"meets.php?id=$id&amp;pass=$pass\">".$lang['letters']."</a></small>";
	print "<br/><small>&#187; <a href=\"./enter.php?id=$id&amp;pass=$pass\">".$lang['holl']."</a></small><br/>";
	} else { print $lang['not_loged']; }
mysql_close();
ob_end_flush();
?>
</p>
</card>
</wml>