View file znaki_LIM/znaki_LIM/enter.php

File size: 3.28Kb
<?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";
//////////////////////////////////////////////////////////////////////////////////////////////////

//ўЄ«оз Ґ¬ Є®­дЁЈга жЁ®­­л© д ©«

// ўв®аЁ§ жЁп
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();
//Їа®¤®«¦ Ґ¬ ўлў®¤ ў Ўа г§Ґа
print '<card title="'.$lang['pozd'].'">'.
'<p align="center">';
if($login) {//Ї®«м§®ў вҐ«м  ўв®аЁ§Ёа®ў ­
if(!$login['ip']) { @mysql_query("update `".$px.$utable."` set `ip`='".getenv(REMOTE_ADDR)."' where `id`='".$id."';"); }
	if(!$login['soft']) { @mysql_query("update `".$px.$utable."` set `soft`='".getenv(HTTP_USER_AGENT)."' where `id`='".$id."';"); }
	if($login['fsize'] == "small") { $fsize1 = "<small>"; $fsize2 = "</small>"; }
	elseif($login['fsize'] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; }
	elseif($login['fsize'] == "i") { $fsize1 = "<i>"; $fsize2 = "</i>"; }
	elseif($login['fsize'] == "em") { $fsize1 = "<em>"; $fsize2 = "</em>"; }
 	elseif($login['fsize'] == "b") { $fsize1 = "<b>"; $fsize2 = "</b>"; }
	elseif($login['fsize'] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; }
	elseif($login['fsize'] == "u") { $fsize1 = "<u>"; $fsize2 = "</u>"; }
      else { $fsize1 = ""; $fsize2 = ""; }

      
	ustatus();
	switch($mod) {
	//Їа®б¬®ва ўбваҐзЁ
	case 'view':
	//§ Їа®б ­  ЇҐаҐ¤ ­­го ўбваҐзг
	$q = @mysql_query("select * from `".$px.$meettable."` where id='$meetid' order by id desc;");
	//ў ¬ ббЁў
	$arr = @mysql_fetch_array($q);

////////////////////////////////////////////////////////////////////

	//ўлў®¤ ¤ ­­ле ® ўбваҐзЁ
if ($arr['pphoto']="1"){print '';	} else {

print "<img src=\"".$arr['pphoto']."\" alt=\".\" width=\"128\" height=\"128\"/><br/><br/>";	}	
print "<u>".$arr['organizatory']." ".$lang['pozdra']." ".$arr['title']."</u><br/><b>******</b></p><p>";
	print "<br/>".$arr['content']."<br/></p><p align=\"center\"><b>******</b><br/>";
	print "<br/>".$lang['pozhe']."_____".$arr['login']."<br/></p><p>";

	break;
	//Ї® 㬮«з ­Ёо
	default:
	//§ Їа®б ­  ўбваҐзЁ
	$q = @mysql_query("select * from `".$px.$meettable."` order by id desc;");
	//ўлў®¤Ё¬ ббл«ЄЁ ­  ўбваҐзЁ
	while($arr = @mysql_fetch_array($q)) {++$i;
	print "".$i.".<a href=\"enter.php?id=$id&amp;pass=$pass&amp;meetid=".$arr['id']."&amp;mod=view\">".$arr['title']."</a><br/>"; }
	print "<br/></p><p><a href=\"./add.php?id=$id&amp;pass=$pass&amp;mod=addmeet\">".$lang['l_to_write']."</a><br/>";
	
break;
	}
	if($mod)
	print "<br/><a href=\"./enter.php?id=$id&amp;pass=$pass&amp;mod=addmeet\">".$lang['pozd']."</a><br/>";
	print "<a href=\"./add.php?id=$id&amp;pass=$pass\">".$lang['modering']."</a><br/>";
include "panel.php";


	} else { print $lang['not_loged']; }
mysql_close();
ob_end_flush();
?>
</p>
</card>
</wml>