Размер файла: 1.45Kb
<?
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";
include"ban.php";
include"inc/head.php";
/////////////////
$login=$_SESSION['login'];
$password=$_SESSION['password'];
//////////////////
$q = mysql_query("select * from `user` where login='$login';");
$data = mysql_fetch_array($q);
if(!$_SESSION['login']=="" && !($_SESSION['password'])=="" && ($_SESSION['password'])==$data['pass']){
//////////////////
echo"<form action=\"ssettings.php\" method=\"post\">
Пароль:<br/>
<input type=\"text\" name=\"par\" value=\"$data[pass]\"><br/>
E-mail:<br/>
<input type=\"text\" name=\"mail\" value=\"$data[mail]\"><br/>
Ссылка:<br/>
<input type=\"text\" name=\"url\" value=\"$data[url]\"><br/>
<br/>
<input type=\"submit\" value=\"Изменить\"></form>
<tr><td bgcolor=\"#CCCCFF\" align=\"center\"><font color=\"#008080\"><b>CLICK-CLUB</b></td></tr></table></body></html>";
}else{ echo"Вы не выполнили вход!<br/>» <a href=\"vhod.php\">Войти</a><br/>
<tr><td bgcolor=\"#CCCCFF\" align=\"center\"><font color=\"#008080\"><b>CLICK-CLUB</b></td></tr></table></body></html>"; exit;}
?>