View file chat/answer.php

File size: 1.86Kb
<?php
// mod by Golem http://veplog.ru

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'])!=""){

echo'<div class=title><b>Мини-чат</b></div>';
if($config_themes!="wml"){
echo'<form action="add.php?'.SID.'" method="post">';

echo'<textarea name="text" rows="5" name="msg">'.$imja.'</textarea><br>';

if($config_translit=="1"){
echo'Транслит: <input name="trans" type="checkbox" value="y" /><br>';}

echo'<input type="submit" value="Сказать" /></form><hr>';
echo '[<a href="../pages/smiles.php?'.SID.'">Смайлы</a>]';
echo '[<a href="../pages/tegi.php?'.SID.'">Теги</a>]';

}else{

echo'Сообщение:<br>';
echo'<input name="msg" value="'.$imja.' "/><br>';

if($config_translit=="1"){
echo'Транслит: <select name="trans"><option value="0">Нет</option>';
echo'<option value="y">Да</option>';
echo'</select><br>';}

echo'<anchor>Сказать';
echo'<go href="add.php?'.SID.'" method="post">';
echo'<postfield name="msg" value="$(msg)"/>';
echo'<postfield name="trans" value="$(trans)"/>';
echo'</go></anchor><br>--------------------<br>';
}

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