Просмотр файла book/index.php

Размер файла: 7.23Kb
<?
///////////////////////////////////////////////////////////////////////////////////////////
/////        
/////                        Made by   :  АХХХУЕННЫЙ ЧУВАК VANTUZ
/////                          E-mail  :  [email protected]        
/////                        WEB-site  :  http://www.pizdec.ru
/////                        WAP-site  :  http://wap.pizdec.ru
/////                          
//////////////////////////////////////////////////////////////////////////////////////////////
if($image=="off"){function img($image) {return eregi_replace("((<img src|alt)[-a-zA-Z0-9@:%_\+.~#?&//=\)/\"\>]+)","", $image);} ob_start("img");}
ini_set('url_rewriter.tags','');
session_name("SID");
 session_start();
$ses=SID;
$ses="&amp;$ses";
$_SESSION['imja'] = "$imja";
function antissylka($s) {  
$s = str_replace("wen.ru","???",$s);
$s = str_replace("wab.ru","???",$s);
$s = str_replace("kmx.ru","???",$s);
$s = str_replace("mag.su","???",$s);
$s = str_replace("hih.ru","???",$s);
$s = str_replace("kmx.kz","???",$s);
$s = str_replace("lya.ru","???",$s);
$s = str_replace("port.su","???",$s);
$s = str_replace("wap.ua","???",$s);
$s = str_replace("vip.su","???",$s);

 return $s; }
ob_start("antissylka");		
//////////////////////////////////////////////////////////	
require"config.php";
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
function myErrorHandler ($errno, $errstr, $errfile, $errline) {}
set_error_handler("myErrorHandler");
//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
if (getenv("HTTP_X_FORWARDED_FOR"))
 { $ip=getenv("HTTP_X_FORWARDED_FOR"); }
   else { $ip=getenv("REMOTE_ADDR"); }
//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
list($msec,$sec)=explode(chr(32),microtime());
$HeadTime=$sec+$msec;
header("Content-type:text/html; charset=utf-8");
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><html><head>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
<link rel=\"shortcut icon\" href=\"http://visavi.net/favicon.ico\"><title>VISAVI.NET</title>
<style type=\"text/css\">
body { font-weight: normal; font-size: normal; font-family: georgia; color: #666699; background-color: #CCCCFF }
a:link,a:active,a:visited { text-decoration: underline; color : #0066FF }
a:hover { text-decoration: none; color : #FF0000 }
div { margin: 1px 0px 1px 0px; padding: 5px 5px 5px 5px; font-weight: bold;}
div.blue{ background-color: #3333FF; padding-top: 5px; padding-bottom: 5px; padding-left: 4px;  border: 1px solid;  text-align: center;}
a {font-weight: bold;}
div.a {margin: 0px 0px 3px 0px; padding: 0px 0px 1px 0px; border: 1px solid #669999;}
div.b {margin: 0px; border-top: 5px solid #E3E3FC; border-bottom: 5px solid #ACACFA; padding: 5px; vertical-align: middle; }
</style></head>
<body bgcolor=\"#CCCCFF\">";
/////////////////////////////////////////////////////////
$currHour=date("H",time()); 
$currDate=date("d F Y", time());
$curr=date("i:s", time());
$currTime=date("$currHour:i:s", time());
  
 $currDate = str_replace("January","Января",$currDate);
$currDate = str_replace("February","Февраля",$currDate);
$currDate = str_replace("March","Марта",$currDate);
$currDate = str_replace("April","Апреля",$currDate);
$currDate = str_replace("May","Мая",$currDate);
$currDate = str_replace("June","Июня",$currDate);
$currDate = str_replace("July","Июля",$currDate);
$currDate = str_replace("August","Августа",$currDate);
$currDate = str_replace("September","Сентября",$currDate);
$currDate = str_replace("October","Октября",$currDate);
$currDate = str_replace("November","Ноября",$currDate);
$currDate = str_replace("December","Декабря",$currDate); 
$random =rand(0,99);                                                     
print"<div class=\"blue\"><b><font color=\"#33FF33\">$currTime</font></b><br/><small><font color=\"#FF0033\">$currDate</font></small></div><div>";
if(empty($imja)) {
echo"<a href=\"say.php\">Написать </a>|";}
echo"<a href=\"index.php?r=$random&amp;image=$image\"> Обновить</a><br/><br/></div>";


$vsego = file("vsego.shet");
$vsego=$vsego[0];
if($nmes=="") {$nmes=$vsego;}
$kp=1;

while($kp <= 7)
        {$tex=@file("zapis/$nmes.mess");
        $utex=explode(":||:",$tex[0]);
        $obr=trim($utex[0]);
        $vrem=trim($utex[1]);
        $text=trim($utex[2]);
        $brayz=trim($utex[3]);
          $u2=trim($utex[4]);
          $ip=trim($utex[5]);
          $email=trim($utex[6]);
           $nomer=trim($utex[7]);
           $messs=trim($utex[8]);
          
          
          $messs = str_replace("$messs","<br/><font color=\"#FF0033\">Ответ: $messs</font>",$messs);
          $email = str_replace("$email","<br/>E-mail: <a href=\"mailto:$email\">$email</a>",$email);
        if($text!=""){
        	
        	



                echo"<div class=a><div class=b>";
              
         			
         echo"<img src=\"user.gif\" alt=\"\"/><b><a href=\"say.php?obr=$obr\">";
         
           	if($obr=="Вантуз" || $obr=="Koder" || $obr=="koder" || $obr=="Admin" || $obr=="Giga" || $obr=="Kill" || $obr=="Aligan"){echo"<font color=\"#FF0000\"> $obr</font>";}
         				elseif       //Друзья
         			($obr=="Shoker" || $obr=="KomatoZz" || $obr=="hobbit19" || $obr=="Gr.Drakula" || $obr=="грек" || $obr=="Wildspb" || $obr=="Ogir" || $obr=="XAyC"){echo"<font color=\"#FF00FF\"> $obr</font>";}
         					elseif   //Постояльцы
         		($obr=="Anton99" || $obr=="Unkind" || $obr=="real" || $obr=="Sana" || $obr=="DJ1" || $obr=="MOBISOFT" || $obr=="раздолбаев" || $obr=="ВЗРЫВ"){echo"<font color=\"#00CC33\"> $obr</font>";}else
         echo "$obr"; 
         		
         		
         		echo"</a></b>";
	   

       print" <small>($vrem)<br/></small>$text $email";
        print"<br/><small>[$brayz, $ip] </small>$messs<br/></div></div>";
     
       
        $kp=$kp+1;}
        $nmes=$nmes-1;
        if($nmes<0){$kp=20;}}

if(!empty($imja)) { echo "<div><hr/><font color=\"#FF0000\">Привет, $imja!</font><br>";
print"<form method=\"post\" action=\"add.php\">";
print"Cообщение:";
print"<br/><textarea name=\"ntext\" cols=\"30\" rows=\"5\"></textarea><br/>";
echo"Транслит: <input name=\"trans\" type=\"checkbox\" value=\"y\">";
echo"<br/>Графика (выкл): <input name=\"image\" type=\"checkbox\" value=\"off\"><br/>";
echo"<br/>";
echo"<input name=\"imja\" type=\"hidden\" value=\"$imja\">
<br/><input value=\"&#x041D;&#x0430;&#x043F;&#x0438;&#x0441;&#x0430;&#x0442;&#x044C;\" name=\"do\" type=\"submit\"/></form></div><div>
<a href=\"smile.php\">Cправка по смайлам</a></div><hr/>";
}
echo"<div>";
if (isset($s)) { $nmess=$nmes+14; print"<big><a href=\"index.php?nmes=$nmess&amp;image=$image&amp;s=$s$ses\">Назад</a></big> | ";}
if($nmes>0){print"<big><a href=\"index.php?nmes=$nmes&amp;image=$image&amp;s=$s\">Далее</a></big>";}


print"<br/><br/><a href=\"$gl\">На главную</a><br/>";
include "online.php";
list($msec,$sec)=explode(chr(32),microtime());  
echo "<small>".round((($sec+$msec)-$HeadTime),4)." cek.</small>
</div></body></html>";
session_register("imja");
?>