Просмотр файла chatservice/meets.php

Размер файла: 1.78Kb
<?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";
mysql_query ("select * from bannedib WHERE ci='$ci' AND (ip = '".getenv(REMOTE_ADDR)."')and(browser = '".getenv(HTTP_USER_AGENT)."')");
                        if(mysql_affected_rows()!=0){include "b.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' and ci='$ci' 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."` where ci='$ci' order by id desc;");

        while($arr = @mysql_fetch_array($q)) {
        print "<a href=\"meets.php?ci=$ci&amp;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?ci=$ci&amp;id=$id&amp;pass=$pass\">".$lang['letters']."</a>";
        print "<br/><a href=\"./enter.php?ci=$ci&amp;id=$id&amp;pass=$pass\">".$lang['holl']."</a><br/>";
        } else { print $lang['not_loged']; }
mysql_close();
ob_end_flush();
?>
</p>
</card>
</wml>