Просмотр файла Soo_by_las/comm/index.php

Размер файла: 6.41Kb
<?php
#-----------------------------------------------------#
#             ******   Сообщества    ******           #
#                    Site   :  http://cobwap.net      #
#                   E-mail  :  [email protected]          #
#                 Для связи :  8(909)651-0-222        #
#                      ICQ  :  384181109              #
#            Автор скрипта  :  LAS                    #
#-----------------------------------------------------#
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";
include_once"../template/isset.php";
if ($isset=='oksoo') {echo 'Сообщество успешно создано!<br>';}
if ($isset=='error') {echo 'Ошибка!<br>';}
$them = check($_GET['them']);
$soo = check($_GET['soo']);
echo '<br><div class=b><img src="../images/img/partners.gif" alt=""> <b>Сообщества</b></div> ';
//echo '<div class="h"><img src="../images/img/search.gif" alt=""> <a href="search.php?'.SID.'">Поиск в сообществах</a><br></div>';
echo '<div class="h"><img src="../images/img/new.gif" alt=""> <a href="top_new.php?'.SID.'">Новые за 3 дня</a><br></div> ';
echo '<div class=h>Категории:<br></div> ';
$total1=0;
if (file_exists(BASEDIR."local/comms/1/file.dat")){$file1 = file(BASEDIR."local/comms/1/file.dat");$total1 = count($file1);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=1&amp;'.SID.'">  Вип-Вап.Нет</a> ('.(int)$total1.')<br></div>';
$total2=0;
if (file_exists(BASEDIR."local/comms/2/file.dat")){$file2 = file(BASEDIR."local/comms/2/file.dat");$total2 = count($file2);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=2&amp;'.SID.'">  Авто и Техника</a> ('.(int)$total2.')<br></div>';
$total3=0;
if (file_exists(BASEDIR."local/comms/3/file.dat")){$file3 = file(BASEDIR."local/comms/3/file.dat");$total3 = count($file3);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=3&amp;'.SID.'">  Бизнес и Финансы</a> ('.(int)$total3.')<br></div>';
$total4=0;
if (file_exists(BASEDIR."local/comms/4/file.dat")){$file4 = file(BASEDIR."local/comms/4/file.dat");$total4 = count($file4);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=4&amp;'.SID.'">  Города и Страны </a> ('.(int)$total4.')<br></div>';
$total5=0;
if (file_exists(BASEDIR."local/comms/5/file.dat")){$file5 = file(BASEDIR."local/comms/5/file.dat");$total5 = count($file5);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=5&amp;'.SID.'">  Личные</a> ('.(int)$total5.')<br></div>';
$total6=0;
if (file_exists(BASEDIR."local/comms/6/file.dat")){$file6 = file(BASEDIR."local/comms/6/file.dat");$total6 = count($file6);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=6&amp;'.SID.'">  Животные и Природа</a> ('.(int)$total6.')<br></div>';

$total7=0;
if (file_exists(BASEDIR."local/comms/7/file.dat")){$file7 = file(BASEDIR."local/comms/7/file.dat");$total7 = count($file7);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=7&amp;'.SID.'">  Литература и Творчество</a> ('.(int)$total7.')<br></div>';

$total8=0;
if (file_exists(BASEDIR."local/comms/8/file.dat")){$file8 = file(BASEDIR."local/comms/8/file.dat");$total8 = count($file8);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=8&amp;'.SID.'">  Кино, ТВ</a> ('.(int)$total8.')<br></div>';

$total9=0;
if (file_exists(BASEDIR."local/comms/9/file.dat")){$file9 = file(BASEDIR."local/comms/9/file.dat");$total9 = count($file9);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=9&amp;'.SID.'">  Красота и Здоровье</a> ('.(int)$total9.')<br></div>';

$total10=0;
if (file_exists(BASEDIR."local/comms/10/file.dat")){$file10 = file(BASEDIR."local/comms/10/file.dat");$total10 = count($file10);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=10&amp;'.SID.'"> Культура и Субкультура</a> ('.(int)$total10.')<br></div>';

$total11=0;
if (file_exists(BASEDIR."local/comms/11/file.dat")){$file11 = file(BASEDIR."local/comms/11/file.dat");$total5 = count($file11);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=11&amp;'.SID.'"> Религия и Непознанное</a> ('.(int)$total11.')<br></div>';

$total12=0;
if (file_exists(BASEDIR."local/comms/12/file.dat")){$file12 = file(BASEDIR."local/comms/12/file.dat");$total12 = count($file12);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=12&amp;'.SID.'">  Музыка</a> ('.(int)$total12.')<br></div>';


$total13=0;
if (file_exists(BASEDIR."local/comms/13/file.dat")){$file13 = file(BASEDIR."local/comms/13/file.dat");$total13 = count($file13);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=13&amp;'.SID.'">  Развлечения и Хобби</a> ('.(int)$total13.')<br></div>';

$total14=0;
if (file_exists(BASEDIR."local/comms/14/file.dat")){$file14 = file(BASEDIR."local/comms/14/file.dat");$total14 = count($file14);}
echo'<div class="h"><img src="../images/img/dir.gif" alt=""> <a href="kat.php?soo=14&amp;'.SID.'"> Психология, отношения</a> ('.(int)$total14.')<br> </div>';

















$total=$total1+$total2+$total3+$total4+$total5+$total6+$total7+$total8+$total9+$total10+$total11+$total12+$total13+$total14;
$tex = file("local/new.dat"); 
$dat = explode("|",$tex[0]);
echo' <br>В <b>14</b> категориях создано <b>'.(int)$total.'</b> сообществ <br>
последнее: <a href="view.php?soo='.$dat[3].'&them='.$dat[0].'&amp;'.SID.'">'.$dat[1].'</a><br>дата: '.date_fixed($dat[4],'j F / в H:i').'
<br>';
//echo'<br><img src="../images/img/panel.gif" alt=""> <a href="../index.php?'.SID.'"> Управление</a>';
echo'<br><img src="../images/img/homepage.gif" alt=""> <a href="../index.php?'.SID.'"> На главную</a>';
include_once"../themes/$config_themes/foot.php";               
?>