Просмотр файла click_club/guest/add.php

Размер файла: 1.44Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
function myErrorHandler ($errno, $errstr, $errfile, $errline) {}
set_error_handler("myErrorHandler");
extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
extract($HTTP_COOKIE_VARS);
extract($HTTP_SERVER_VARS);
extract($HTTP_SESSION_VARS);
session_name("ID");
session_start();
//////////////////
include "../inc/conf_db.php";
include"../inc/conf.php";
/////////////////
$login=$_SESSION['login'];
$password=$_SESSION['password'];
//////////////////
$q = mysql_query("select * from `user` where  login='$login';");
$data = mysql_fetch_array($q);
//////////////////
include"inc/usaconf.php";
$title="Добавление сообщения";
include"../inc/head.php";
echo"Все поля обязательны для заполнения!<br/>";
echo"<form action=\"savemess.php\" method=\"post\">";
if(!$_SESSION['login']=="" && !($_SESSION['password'])=="" &&  ($_SESSION['password'])==$data['pass']){
echo"<input type=\"hidden\" name=\"author\" value=\"$_SESSION[login]\">";}
else{
echo"Имя:<br/>
<input type=\"text\" name=\"author\" value=\"\"><br/>";}
echo"Сообщение:<br/>
<input type=\"text\" name=\"mess\" value=\"\"><br/>
<input type=\"hidden\" name=\"usagent\" value=\"$usa\">
<input type=\"hidden\" name=\"date\" value=\"$d-$t\">
<br/><input type=\"submit\" value=\"Написать\">
</form>";
echo"<br/>";
include"../inc/foot.php";
?>