Просмотр поста

.
SWAT

Вот к примеру тут вобще от нашего отличается и доступ и практичекски все остальное

// Закрываем доступ в чат
if (!$set['mod_chat'] && $dostadm != 1)
{
    require_once ("../incfiles/head.php");
    echo '<p>' . $set['mod_chat_msg'] . '</p>';
    require_once ("../incfiles/end.php");
    exit;
}

if ($ban['1'] || $ban['12'])
{
    require_once ("../incfiles/head.php");
    echo '<p>Для Вас доступ в Чат закрыт.</p>';
    require_once ("../incfiles/end.php");
    exit;
}

if ($user_id)
{
    // Фиксируем местонахождение пользователя
    $where = !empty($id) ? 'chat,' . $id : 'chat';
    mysql_query("INSERT INTO `count` SET
   `ip`='" . $ipp . "',
   `browser`='" . mysql_real_escape_string($agn) . "',
   `time`='" . $realtime . "',
   `where`='" . $where . "',
   `name`='" . $login . "';");

    if (!empty($_GET['act']))
    {
        $act = check($_GET['act']);
    }
    switch ($act)
    {
        case "room":
            if ($dostcmod == 1)
            {
                if (empty($id))
                {
                    require_once ("../incfiles/head.php");
                    echo "Ошибка!<br/><a href='index.php?'>В чат</a><br/>";
                    require_once ("../incfiles/end.php");
                    exit;
                }
                $typ = mysql_query("select * from `chat` where id='" . $id . "';");
                $ms = mysql_fetch_array($typ);
                if ($ms['type'] != "r")
                {
                    require_once ("../incfiles/head.php");
                    echo "Ошибка!<br/><a href='index.php?'>В чат</a><br/>";
                    require_once ("../incfiles/end.php");
                    exit;
                }