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

Размер файла: 1.77Kb
<?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/gzip.php";
require_once"../template/header.php";
if ($provlog==$_SESSION['log'] && $provpar==md5($_SESSION['par']) && $_SESSION['log']!="" && md5($_SESSION['par'])!=""){
$them = check($_GET['them']);
$soo = check($_GET['soo']);
$msg = check($_POST['msg']);
if(strlen(trim($msg))<6){header ("Location: gb.php?soo=$soo&them=$them&isset=posts&".SID); exit;}
$brow=check($brow);
$msg=wordwrap($msg,150,' ',1);
$msg=substr($msg,0,1200);
$msg=check($msg);
$name=check($log);
$msg=no_br($msg,"<br>");
if($trans=="y"){$msg=transliter($msg);}
$msg = antimat($msg);
$msg = smiles($msg);
////////////////////////////////////////
$text=$msg.'|'.$name.'||'.$sitetime.'|'.$brow.'|'.$ip.'|||';
$text=no_br($text);
$fp=fopen("../local/commbook/$them.dat","a+");
flock ($fp,LOCK_EX);
fputs ($fp,"$text\r\n");
fflush($fp);
flock ($fp,LOCK_UN);
fclose($fp);
header ("Location: gb.php?soo=$soo&them=$them&isset=addon&".SID);
}else{echo '<br>Вы не выполнили <a href="../pages/vhod.php?'.SID.'">вход</a></b> или в начале вам нужно <b> <a href="../pages/registration.php?'.SID.'">зарегистрироваться</a></b><br> ';}
?>