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

Размер файла: 2.61Kb
<?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 ($provlog==$_SESSION['log'] && $provpar==md5($_SESSION['par']) && $_SESSION['log']!="" && md5($_SESSION['par'])!=""){
$them = check($_GET['them']);
$soo = check($_GET['soo']);


if($them!="" && !eregi("[^0-9-]",$them)){
$text = file(BASEDIR."local/comm/$them.soo"); 
if ($text!=""){
$uzdata = explode(":||:",$text[0]);
if ($uzdata[5]==1){


$textreg=''.$log.'|'.$sitetime.''; 
$fp=fopen(BASEDIR."local/comm/$them.use","a+");  
flock($fp,LOCK_EX);                                                     
fputs($fp,"$textreg\r\n");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$filtime=filemtime(BASEDIR."local/commuse/$log.use");
$user_count=counter_string(BASEDIR."local/commuse/$log.use");




$textreg1=''.$them.'|'.$sitetime.''; 
$fp1=fopen(BASEDIR."local/commuse/$log.use","a+");  
flock($fp1,LOCK_EX);                                                     
fputs($fp1,"$textreg1\r\n");
fflush($fp1);
flock($fp1,LOCK_UN);
fclose($fp1);


header ("Location: view.php?soo=$soo&them=$them&".SID); exit;





}else{
echo' вход закрыт администрацией<br>';}
} else {echo '<img src="../images/img/error.gif" alt=""> Сообщество не существует!<br>';}
} else {echo '<img src="../images/img/error.gif" alt=""> Произошла ошибка. Сообщество не существует!<br>';}
}else{echo '<br>Вы не выполнили <a href="../pages/vhod.php?'.SID.'">вход</a></b> или в начале вам нужно <b> <a href="../pages/registration.php?'.SID.'">зарегистрироваться</a></b><br> ';}

echo'<br><img src="../images/img/homepage.gif" alt=""> <a href="../index.php?'.SID.'">На главную</a>';
include_once"../themes/$config_themes/foot.php";               
?>