View file mi-ch/answer.php

File size: 3.48Kb
<?php
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>';

if ($provlog==$_SESSION['log'] && $provpar==md5($_SESSION['par']) && $_SESSION['log']!="" && md5($_SESSION['par'])!=""){
	
$ava = file("../local/profil/$imja.prof");$avv = explode(":||:",$ava[0]);$proverka = file("../local/profil/$data[1].prof");$ster=strlen($data[1]);if (empty($proverka) || $ster<1){echo'Ответ пользователю: <br><font color="red">'.nickname($imja).'';echo'<br><a href="../pages/anketa.php?uz='.$imja.''.SID.'">Анкета <font color="red">'.nickname($imja).'</font></font></a>';}
if($imja!=$data[1]){ }else{$imja="";}$imja = check($imja);$imja = nickname($imja);$imja = strip_tags($imja);
if($config_themes!="wml"){	
echo'<br><form action="addtext.php?'.SID.'" name="form" method="post">';
echo'<b>Сообщение:</b><br>';
echo'<textarea cols="20" rows="3" name="msg">'.$imja.', </textarea><br>';

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

if(!empty($udata[67])){
echo "<script language=\"JavaScript\" type=\"text/javascript\">  function tag(text1, text2) {      if ((document.selection)) { document.form.msg.focus();        document.form.document.selection.createRange().text = text1+document.form.document.selection.createRange().text+text2;      } else if(document.forms['form'].elements['msg'].selectionStart != undefined) {          var element    = document.forms['form'].elements['msg'];          var str     = element.value;          var start    = element.selectionStart;          var length    = element.selectionEnd - element.selectionStart;          element.value = str.substr(0, start) + text1 + str.substr(start, length) + text2 + str.substr(start + length);      } else document.form.msg.value += text1+text2;   }</script>";
include_once BASEDIR."template/quicksmiles.php";
}
echo'<input type="submit" value="Добавить" /></form>';

}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="addtext.php?'.SID.'" method="post">';
echo'<postfield name="msg" value="$(msg)"/>';
echo'<postfield name="trans" value="$(trans)"/>';
echo'</go></anchor><br>--------------------<br>';
}


}else{

echo '<br>Вы не авторизованы, чтобы добавить сообщение, необходимо<br>';
echo '<b><a href="../pages/vhod.php?'.SID.'">Авторизоваться</a></b> или в начале <b><a href="../pages/registration.php?'.SID.'">Зарегистрироваться</a></b><br>';
}


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