View file gallery/header.php

File size: 1.44Kb
<?
list($msec,$sec)=explode(chr(32),microtime()); 
$HeadTime=$sec+$msec;

include "../ini.php";
include "../includes/func_validate.php";
include "../includes/func_val_text.php";
include '../includes/func_pages2.php';
include '../includes/func_tr.php';
define('IN_WAPP_CHAT', true);
$p=validate($p);
$id=intval($id);
$dbid=intval($_GET['dbid']);
$room=intval($room);

list($id,$pass,$kicked,$kicktime,$refresh,$invisible,$pol,$about,$translit,$version)=mysql_fetch_array(mysql_query("select id,pass,kicked,kicktime,refresh,invisible,pol,about,translit,version from users where id='".$id."';"));
if($pass!=$p || empty($id) || empty($p))die('<card title="Error!"><p><small>'.$lang['incorrect_pass_id'].'<br/><anchor>'.$lang['back'].'<prev/></anchor></small></p></card></wml>');

include '../b.php';

if($version=='html')
{
ini_set('url_rewriter.tags','');

session_start();
include'../includes/gzip.php';
}
include "../includes/header.php";

list($login)=mysql_fetch_array(mysql_query("select login from users where id='".$dbid."';"));

if($version=='html')
{
echo'<head><title>Галерея чата</title></head><link rel="stylesheet" type="text/css" href="../css.css"/></head><body>';
echo'<table align="center" border="0" cellspacing="1" cellpadding="5" width="280">';
echo'<div class="a">';
}
else
{
print '<card title="Галерея чата"><p><small>';
}
$linkstr='id='.$id.'&amp;lg='.$lg.'&amp;p='.$p.'&amp;room='.$room;