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

Размер файла: 2.56Kb
<?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";
echo '<img src="../images/img/partners.gif" alt=""> <b>Панель управления</b><br><br>';
$them = check($_GET['them']);
$soo = check($_GET['soo']);
$name = check($_POST['name']);
$otkel = check($_POST['otkel']);
$infa = check($_POST['infa']);
$hobby = check($_POST['hobby']);
$happy = check($_POST['happy']);
$eye = check($_POST['eye']);
$hair = check($_POST['hair']);
$rost = check($_POST['rost']);
$ves = check($_POST['ves']);



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

$textm = file(BASEDIR."local/commblog/$log.blog"); 
$uzdatam = explode(":||:",$textm[0]);


$text=$log.':||:'.$name.':||:'.$otkel.':||:'.$infa.':||:'.$hobby.':||:'.$happy.':||:'.$eye.':||:'.$hair.':||:'.$rost.':||:'.$ves.':||:';
$fp=fopen(BASEDIR."local/commblog/$log.blog","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
header ("Location: ablog.php?soo=$soo&them=$them&".SID);


} else {echo '<img src="../images/img/error.gif" alt=""> Сообщество не существует!<br>';}
} else {echo '<img src="../images/img/error.gif" alt=""> Произошла ошибка. Сообщество не существует!<br>';}

echo'<br><br><img src="../images/img/back.gif" alt=""> <a href="view.php?soo='.$soo.'&them='.$them.'&'.SID.'">Назад</a>';
echo'<br><img src="../images/img/back.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";               
?>