Размер файла: 1.26Kb
<?php
error_reporting(0);
$urls='meets.php';
include("config.php");
include("./includes/".$ver."/banned");
list($msec, $sec) = explode(chr(32), microtime());
$headtime = $sec + $msec;
$ref = rand(1000, 9999);
header("Content-type: text/html; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
include("./template/head.php");
//AUTH
$q = mysql_query("SELECT `level` FROM `chat_users` WHERE `id` = '".$id."' AND `password` = '".$password."';");
if(mysql_num_rows($q) == 0)
{
include("./reginc.php");
include("./template/foot.php");
exit();
}
//END AUTH
$level = mysql_result($q, 0);
//ONLINE
$online = time() + 60;
$update = mysql_query("UPDATE `chat_users` SET `time` = '".$online."', `place` = 0, `ip` = '".getenv('REMOTE_ADDR')."', `ua` = '".htmlspecialchars(getenv('HTTP_USER_AGENT'))."' WHERE `id` = '".$id."';");
//END ONLINE
$q = mysql_query("SELECT `id`, `title` FROM `chat_meets`;");
if(mysql_num_rows($q) == 0)
{
echo "Встреч нет...<br/>\n";
}
while($meets = mysql_fetch_array($q))
{
$mid = $meets['id'];
$name = $meets['title'];
echo "<a href=\"vmeets.php?mid=$mid\">".$name."</a><br/>\n";
}
echo "<a href=\"index.php\">Меню чата</a><br/>";
include("./template/foot.php");
break;
?>