Размер файла: 5.87Kb
<?php
// автор скрипта - Arab
// icq - 9988817 сайт: http://bola.net.ru
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
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><b>Мои темы</b></center></div><div class=bgr>';
if (!$_SESSION[login]=="" && !md5($_SESSION[password])=="" && md5($_SESSION[password])==$npassword && $_SESSION[login]==$nlogin){
echo''.check($hello).' '.check($login).'';} else { echo''.check($hello).' '.check($guestname).''; }
if($m_privat>0){ echo'<img src="images/mail.gif" alt="">
<a href="other/privat.php?'.SID.'"><font color="#ff2222"><b>Новое сообщение - ('.$m_privat.')</b></font></a><br>'; }
/////////// темы юзеров
if(isset($other)){
if(eregi("[^a-z0-9-]",$user)){ echo'Нахуй пошла!'; exit;}
echo'<div></div><center>Темы пользователя '.$user.'</center>
<div></div>>> тема ( раздел )';
$dir = opendir ("$maindir/forum/data/forum");
while ($file = readdir ($dir))
{if (ereg (".tem$", $file))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = file("$maindir/forum/data/forum/$a[$i]");
$data = explode("|",$tex[0]);
$standtime = time();
if($data[2]=="$user"){
$a[$i]=str_replace(".tem","",$a[$i]);
$dat_user[]=$a[$i];
$dat_status[]=$data[18];
}}
@arsort($dat_user);
foreach($dat_status as $k=>$v){
$gg++;
$text = @file("$maindir/forum/data/forum/$dat_user[$k].tem");
if ($text!=""){ $dt = explode("|",$text[0]);
$dat_user[$k] = htmlspecialchars(stripslashes($dat_user[$k]));
echo '<br>'.$gg.'.<a href="index.php?messages&tem='.$dt[0].'&id='.$dat_user[$k].'&'.SID.'"> '.$dt[3].' </a>('.$dt[1].')';
}}
echo'<br>----------------<br><a href="index.php?'.SID.'">Форум</a></div>';
include_once "../css/red/foot.php"; exit;}
/////////// поиск тем
if(isset($find)){
$name = htmlspecialchars(stripslashes($name));
echo'<center><div class=b><b>Поиск тем</b></div></center>';
echo'<div></div>>> тема ( раздел )';
$dir = opendir ("$maindir/forum/data/forum");
while ($file = readdir ($dir))
{if (ereg (".tem$", $file))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = file("$maindir/forum/data/forum/$a[$i]");
$data = explode("|",$tex[0]);
$standtime = time();
if($data[3]=="$name"){
$a[$i]=str_replace(".tem","",$a[$i]);
$dat_user[]=$a[$i];
$dat_status[]=$data[18];
}}
@arsort($dat_user);
foreach($dat_status as $k=>$v){
$gg++;
$text = @file("$maindir/forum/data/forum/$dat_user[$k].tem");
if ($text!=""){ $dt = explode("|",$text[0]);
$dat_user[$k] = htmlspecialchars(stripslashes($dat_user[$k]));
echo '<br>'.$gg.'.<a href="index.php?messages&tem='.$dt[0].'&id='.$dat_user[$k].'&'.SID.'"> '.$dt[3].' </a>('.$dt[1].')';
}}
echo'<br>----------------<br><a href="index.php?'.SID.'">Форум</a></div>';
include_once "../css/red/foot.php"; exit;}
/////////// поиск тем
if(isset($findx)){
$name = htmlspecialchars(stripslashes($name));
echo'<center><div class=b><b>Поиск тем</b></div></center>';
echo'<div></div>>> тема ( раздел )';
$dir = opendir ("$maindir/forum/data/forum");
while ($file = readdir ($dir))
{if (ereg (".tem$", $file))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = file("$maindir/forum/data/forum/$a[$i]");
$data = explode("|",$tex[0]);
$standtime = time();
if(strpos($data[3],$name)!==false){
$a[$i]=str_replace(".tem","",$a[$i]);
$dat_user[]=$a[$i];
$dat_status[]=$data[18];
}}
@arsort($dat_user);
foreach($dat_status as $k=>$v){
$gg++;
$text = @file("$maindir/forum/data/forum/$dat_user[$k].tem");
if ($text!=""){ $dt = explode("|",$text[0]);
$dat_user[$k] = htmlspecialchars(stripslashes($dat_user[$k]));
echo '<br>'.$gg.'.<a href="index.php?messages&tem='.$dt[0].'&id='.$dat_user[$k].'&'.SID.'"> '.$dt[3].' </a>('.$dt[1].')';
}}
echo'<br>----------------<br><a href="index.php?'.SID.'">Форум</a></div>';
include_once "../css/red/foot.php"; exit;}
echo'<div></div>>> тема ( раздел )';
$dir = opendir ("$maindir/forum/data/forum");
while ($file = readdir ($dir))
{if (ereg (".tem$", $file))
{$a[]=$file;}}
closedir ($dir);
$total = count($a);
for ($i = 0; $i < $total; $i++){
$tex = file("$maindir/forum/data/forum/$a[$i]");
$data = explode("|",$tex[0]);
$standtime = time();
if($data[2]=="$login"){
$a[$i]=str_replace(".tem","",$a[$i]);
$dat_user[]=$a[$i];
$dat_status[]=$data[18];
}}
@arsort($dat_user);
foreach($dat_status as $k=>$v){
$gg++;
$text = @file("$maindir/forum/data/forum/$dat_user[$k].tem");
if ($text!=""){ $dt = explode("|",$text[0]);
$dat_user[$k] = htmlspecialchars(stripslashes($dat_user[$k]));
echo '<br>'.$gg.'.<a href="index.php?messages&tem='.$dt[0].'&id='.$dat_user[$k].'&'.SID.'"> '.$dt[3].' </a>('.$dt[1].')';
}}
///////////////////////////////////////////////
echo'<br><br>Введите логин:<br>
<form method="post" action="mytems.php?other&user='.$user.'">
<input type="text" name="user" value=""><br>
<input value="Найти темы" type="submit"></form>';
echo'<div></div>Введите название темы:<br>
<form method="post" action="mytems.php?find&name='.$name.'">
<input type="text" name="name" value=""><br>
<input value="Найти тему" type="submit"></form>';
echo'<div></div>Введите слово в названии темы:<br>
<form method="post" action="mytems.php?find&name='.$name.'">
<input type="text" name="name" value=""><br>
<input value="Найти тему" type="submit"></form>';
echo'<br>----------------<br><a href="index.php?'.SID.'">Форум</a></div>';
include_once "../css/red/foot.php"; exit;
?>