Размер файла: 1.58Kb
<?php
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);
//////////////////////////////////////////////////////////////////////////////////////
ini_set('url_rewriter.tags','');
session_name("SID");
session_start();
require_once"../config.php";
require_once"../template/regglobals.php";
require_once"../template/antiban.php";
//////////////////////////////////////////////////////////////////////////////////////
if(@file("../themes/$themes.php"))
{include_once"../themes/$themes.php";}else{$themes="default"; include_once"../themes/$themes.php";}
{
if(!$poisk) {
echo"Найти ник:<br>
<form action=\"index.php?".SID."\" method=\"post\">
<input name=\"poisk\" value=\"\"/><br>";
echo"<input type=\"submit\" value=\"Найти\"></form>";
} else {
$dp = opendir("../local/profil/");
while ($file = @readdir ($dp))
{
if(substr($file,0,1) != '.' and substr($file,-4) != '.txt' and $file != "index.php")
{
$file_array[] = $file;
}
}
if(in_array($poisk.".prof", $file_array)) print "Юзер найден: <a href=\"../anketa.php?uz=$poisk\">$poisk</a><br/>";
else print "Нет такого юзера!<br/>";
print '<br/><a href="index.php?'.SID.'">Искать еще</a>';
print '<br/><a href="../index.php?'.SID.'">На главную</a>';
}
}
echo $fg;
require_once"../template/foot.php";
ob_end_flush();
exit;
?>