Размер файла: 8.79Kb
<?php
// автор скрипта - Arab
// icq - 9988817 сайт: http://bola.net.ru
include_once "../includ/functions.php";
include_once "../includ/login.php";
include_once "../includ/setting.php";
include_once "../includ/online.php";
include_once "../../css/red/index.php";
echo'<div class=agr><center>Поиск пользователей</center></div><div class=bgr>';
if (!$_SESSION[login]=="" && !md5($_SESSION[password])=="" && md5($_SESSION[password])==$npassword && $_SESSION[login]==$nlogin){
echo''.check($hello).' '.check($login).'<br>';} else { echo''.check($hello).' '.check($guestname).'<br>'; }
if($m_privat>0){ echo'<img src="../images/mail.gif" alt="">
<a href="privat.php?'.SID.'"><font color="#ff2222"><b>Новое сообщение - ('.$m_privat.')</b></font></a><br>'; }
$user=check($user);
if(isset($girls)){ // поиск девушек 0000000000000000000000000000000000000000000000000000000
$girls=full_check($girls);
$dir = opendir ("$maindir/forum/data/users");
while ($file = readdir ($dir))
{if (ereg (".log$", $file))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
echo'Результат поиска:<br>';
for ($i = 0; $i < $total; $i++){
$tex = file("$maindir/forum/data/users/$a[$i]");
$data = explode("|",$tex[0]);
if($data[17]=="Женский"){
$a[$i]=str_replace(".log","",$a[$i]);
$dat_user[]=$a[$i];
$dat_status[]=$data[17];}}
arsort($dat_user);
foreach($dat_status as $k=>$v){
$gg++;
$text = file("$maindir/forum/data/users/".check($dat_user[$k]).".log");
if ($text!=""){ $dt = explode("|",$text[0]);
echo''.check($gg).'. <a href="anketa.php?user='.check($dat_user[$k]).'&'.SID.'"> '.check($dat_user[$k]).' </a><br>';
if (!$_SESSION[login]=="" && !md5($_SESSION[password])=="" && md5($_SESSION[password])==$npassword && $_SESSION[login]==$nlogin){
if($m_level=="1" || $m_level=="2"){
echo '<a href="../admin/userchange.php?user='.check($dat_user[$k]).'">Изменить</a> | <a href="../admin/userdel.php?user='.check($dat_user[$k]).'">Удалить</a><br>';
}} echo'</div>';
include_once "../../css/red/foot.php"; exit; }}}
if(isset($city)){ // поиск по городу 0000000000000000000000000000000000000000000000000000000
$city=full_check($city);
if(empty($fcity)){
include_once "../../css/red/index.php";
echo'Введите город, страну, регион..</div>';
include_once "../../css/red/foot.php"; exit;}
$fcity=check($fcity);
$dir = opendir ("$maindir/forum/data/users");
while ($file = readdir ($dir))
{if (ereg (".log$", $file))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
echo'Результат поиска:<br>';
for ($i = 0; $i < $total; $i++){
$tex = file("$maindir/forum/data/users/".check($a[$i])."");
$data = explode("|",$tex[0]);
if($data[10]=="$fcity"){
$a[$i]=str_replace(".log","",$a[$i]);
$dat_user[]=$a[$i];
$dat_status[]=$data[10];}}
arsort($dat_user);
foreach($dat_status as $k=>$v){
$gg++;
$text = @file("$maindir/forum/data/users/".check($dat_user[$k]).".log");
if ($text!=""){ $dt = explode("|",$text[0]);
echo''.check($gg).'. <a href="anketa.php?user='.check($dat_user[$k]).'&'.SID.'"> '.check($dat_user[$k]).' </a><br>';
if (!$_SESSION[login]=="" && !md5($_SESSION[password])=="" && md5($_SESSION[password])==$npassword && $_SESSION[login]==$nlogin){
if($m_level=="1" || $m_level=="2"){
echo '<a href="../admin/userchange.php?user='.check($dat_user[$k]).'">Изменить</a> | <a href="../admin/userdel.php?user='.check($dat_user[$k]).'">Удалить</a><br>';
}} echo'</div>';
include_once "../../css/red/foot.php"; exit; }}}
if(isset($name)){ // поиск по имени 0000000000000000000000000000000000000000000000000000000
$name=full_check($name);
if(empty($fname)){
include_once "../../css/red/index.php";
echo'Введите имя</div>';
include_once "../../css/red/foot.php"; exit;}
$fname=check($fname);
$dir = opendir ("$maindir/forum/data/users");
while ($file = readdir ($dir))
{if (ereg (".log$", $file))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
echo'Результат поиска:<br>';
for ($i = 0; $i < $total; $i++){
$tex = file("$maindir/forum/data/users/".check($a[$i])."");
$data = explode("|",$tex[0]);
if($data[9]=="$fname"){
$a[$i]=str_replace(".log","",$a[$i]);
$dat_user[]=$a[$i];
$dat_status[]=$data[9];}}
arsort($dat_user);
foreach($dat_status as $k=>$v){
$gg++;
$text = @file("$maindir/forum/data/users/".check($dat_user[$k]).".log");
if ($text!=""){ $dt = explode("|",$text[0]);
echo''.check($gg).'. <a href="anketa.php?user='.check($dat_user[$k]).'&'.SID.'"> '.check($dat_user[$k]).' </a><br>';
if (!$_SESSION[login]=="" && !md5($_SESSION[password])=="" && md5($_SESSION[password])==$npassword && $_SESSION[login]==$nlogin){
if($m_level=="1" || $m_level=="2"){
echo '<a href="../admin/userchange.php?user='.check($dat_user[$k]).'">Изменить</a> | <a href="../admin/userdel.php?user='.check($dat_user[$k]).'">Удалить</a><br>';
}} echo'</div>';
include_once "../../css/red/foot.php"; exit; }}}
if(isset($ipy)){ // поиск по ip 0000000000000000000000000000000000000000000000000000000
$ipy=full_check($ipy);
if(empty($fip)){
include_once "../../css/red/index.php";
echo'Введите IP</div>';
include_once "../../css/red/foot.php"; exit;}
$fip=check($fip);
$dir = opendir ("$maindir/forum/data/users");
while ($file = readdir ($dir))
{if (ereg (".log$", $file))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
echo'Результат поиска:<br>';
for ($i = 0; $i < $total; $i++){
$tex = file("$maindir/forum/data/users/".check($a[$i])."");
$data = explode("|",$tex[0]);
if($data[2]=="$fip"){
$a[$i]=str_replace(".log","",$a[$i]);
$dat_user[]=$a[$i];
$dat_status[]=$data[2];}}
arsort($dat_user);
foreach($dat_status as $k=>$v){
$gg++;
$text = @file("$maindir/forum/data/users/".check($dat_user[$k]).".log");
if ($text!=""){ $dt = explode("|",$text[0]);
echo''.check($gg).'. <a href="anketa.php?user='.check($dat_user[$k]).'&'.SID.'"> '.check($dat_user[$k]).' </a><br>';
if (!$_SESSION[login]=="" && !md5($_SESSION[password])=="" && md5($_SESSION[password])==$npassword && $_SESSION[login]==$nlogin){
if($m_level=="1" || $m_level=="2"){
echo '<a href="../admin/userchange.php?user='.check($dat_user[$k]).'">Изменить</a> | <a href="../admin/userdel.php?user='.check($dat_user[$k]).'">Удалить</a><br>';
}} echo'</div>';
include_once "../../css/red/foot.php"; exit; }}}
if(isset($icq)){ // поиск по icq 000000000000000000000000000000000000000000000000000000000000000
$icq=full_check($icq);
if(empty($ficq)){
include_once "../../css/red/index.php";
echo'Введите ICQ</div>';
include_once "../../css/red/foot.php"; exit;}
$ficq=check($ficq);
$dir = opendir ("$maindir/forum/data/users");
while ($file = readdir ($dir))
{if (ereg (".log$", $file))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = file("$maindir/forum/data/users/".check($a[$i])."");
$data = explode("|",$tex[0]);
if($data[12]=="$ficq"){
$a[$i]=str_replace(".log","",$a[$i]);
$dat_user[]=$a[$i];
$dat_status[]=$data[12];}}
arsort($dat_user);
foreach($dat_status as $k=>$v){
$gg++;
$text = @file("$maindir/forum/data/users/".check($dat_user[$k]).".log");
if ($text!=""){ $dt = explode("|",$text[0]);
echo'Результат поиска:<br>'.check($gg).'. <a href="anketa.php?user='.check($dat_user[$k]).'&'.SID.'"> '.check($dat_user[$k]).' </a><br>';
if (!$_SESSION[login]=="" && !md5($_SESSION[password])=="" && md5($_SESSION[password])==$npassword && $_SESSION[login]==$nlogin){
if($m_level=="1" || $m_level=="2"){
echo '<a href="../admin/userchange.php?user='.check($dat_user[$k]).'">Изменить</a> | <a href="../admin/userdel.php?user='.check($dat_user[$k]).'">Удалить</a><br>';
}} echo'</div>';
include_once "../../css/red/foot.php"; exit; }}}
echo'<br>Поиск по icq:<br>
<form method="post" action="search.php?icq">
<input type="text" name="ficq" value=""><br>
<input value="Найти" type="submit"></form>';
echo'<br>Поиск по IP:<br>
<form method="post" action="search.php?ipy">
<input type="text" name="fip" value=""><br>
<input value="Найти" type="submit"></form>';
echo'<br>Поиск по имени:<br>
<form method="post" action="search.php?name">
<input type="text" name="fname" value=""><br>
<input value="Найти" type="submit"></form>';
echo'<br>Поиск по городу:<br>
<form method="post" action="search.php?city">
<input type="text" name="fcity" value=""><br>
<input value="Найти" type="submit"></form>';
echo'<br>
<form method="post" action="search.php?girls">
<input value="Найти девушек" type="submit"></form></div>';
include_once "../../css/red/foot.php";
?>