<? 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"../template/isset.php"; $text = file(BASEDIR."local/profil/$log.prof"); if ($text!=""){ $udata = explode(":||:",$text[0]); $provlog=trim($udata[0]); $provpar=trim($udata[1]); $privat=trim($udata[10]);} if ($text!=""){ $udata = explode(":||:",$text[0]); $provlog=trim($udata[0]); $provpar=trim($udata[1]); $privat=trim($udata[10]); $control=trim($udata[49]);} if (md5($_SESSION['par'])!==$provpar || $_SESSION['log']!==$provlog || $_SESSION['log']=="" || md5($_SESSION['par'])=="") {header ("Location: index.php?".SID."");exit;} if (!file_exists("../chat/datachat/rooms.dat")){header ("Location: index.php?".SID."");} $room_ok='0'; $co_n_ss='0'; echo '<div class=b>Написать</div>'; echo "<form action=\"add.php?id_room=$id_room&act=send&".SID."\" method=\"post\" >"; echo "<textarea name=\"msg\"></textarea>\r\n"; echo "<br />\r\n"; echo "<br />\r\n"; if($config_translit=="1"){ echo'Транслит: <input name="trans" type="checkbox" value="y" /><br>';} echo'<input type="submit" value="Отправить" /><br></form>'; echo "</form>\r\n"; echo "<hr />\r\n"; ?>
header ("Location: chat.php?id_room=$id_room&".SID."");
header ("Location: add.php?id_room=$id_room&".SID."");