View file modules/chat/index.php

File size: 2.29Kb
<?php
include ('../../config.php');
include ('../../templates/run.php');
include ('../../templates/func.php');
include ('../../modules/chat/config.php');
$title_page = 'Супер-Чат Общения';
$m_polozhenie = 'В чате';
include ('../../modules/chat/online.php');
include ('../../themes/'.$themes.'.php');
if ($portal=='off')
 {
  echo'<p align="center">'.$offmes.'</p>';
 }

if ($portal=='on')
 {

echo'<p class="modul_name">Чат</p>';
if($_GET['set'] == 1)
{
echo'<p class="b"<img src="/themes/chuma/es.gif"alt="ok"/> Все комнаты очищены.</p>';
}
echo'<p class="a"><a href="../../modules/chat/index_1.php">'.$room1.'</a> ';
include ("../../modules/chat/kol_1.php");

echo'<br /></p>';
echo'<p class="a"><a href="../../modules/chat/index_2.php">'.$room2.'</a> ';
include ("../../modules/chat/kol_2.php");
echo'<br /></p>';
echo'<p class="a"><a href="../../modules/chat/index_3.php">'.$room3.'</a> ';
include ("../../modules/chat/kol_3.php");
echo'<br /></p>';
echo'<p class="a"><a href="../../modules/chat/index_4.php">'.$room4.'</a> ';
include ("../../modules/chat/kol_4.php");
echo'<br /></p>';
echo'<p class="a"><a href="../../modules/chat/vhod.php">'.$room5.'</a> ';
include ("../../modules/chat/kol_5.php");
echo'<br /></p>';
echo'<p align="center" class="b">';
echo '<a href="'.$dob_url.'/modules/chat/users_online.php?'.session_name().'='.session_id().'" class="cc"title="Пользователи online в чате">Онлайн:</a> ('.$user_count1.')<br /> Сообщений: ';
$r1 = $dob_url.'/data/chat/1.txt';
$r1 = file($r1);
$r11 = count($r1);

$r2 = $dob_url.'/data/chat/2.txt';
$r2 = file($r2);
$r22 = count($r2);

$r3 = $dob_url.'/data/chat/3.txt';
$r3 = file($r3);
$r33 = count($r3);

$r4 = $dob_url.'/data/chat/4.txt';
$r4 = file($r4);
$r44 = count($r4);

$r5 = $dob_url.'/data/chat/5.txt';
$r5 = file($r5);
$r55 = count($r5);

$kol = $r11+$r22+$r33+$r44+$r55;

echo'('.$kol.')';
echo'<br />';
if (isset($_SESSION['sespass']) && isset($passw) && $_SESSION['sespass'] == $passw && ($status == "1" || $status== "2"))
   {
echo'<a href="/modules/chat/clear_chat.php"onclick="return confirm(\'Вы подтверждаете?\')">Очистить все комнаты</a><br /></p></p>';
}
}
include ('../../templates/foot.php');
?>