Вход Регистрация
Файл: rban/rban/mail/mail.php
Строк: 123
<?php
///////////////////////////////////////////////////////////////////////////////////////////
/////        
/////                         Made by  :  АХХХУЕННЫЙ ЧУВАК VANTUZ
/////                          E-mail  :  vsem@pizdec.ru        
/////                        WEB-site  :  http://www.pizdec.ru
/////                        WAP-site  :  http://wap.pizdec.ru
/////                         Scripts  :  http://wapstop.ru
/////                                                 
//////////////////////////////////////////////////////////////////////////////////////////////
$mail = "admin@rban.org";  //Меняем только это на свое
$site= "rban.org";   //Меняем только это на свое
////////////////////////////////////////////////////////////////////////////////////////////
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
function 
myErrorHandler ($errno, $errstr, $errfile, $errline) {}
set_error_handler("myErrorHandler");

  
$text=htmlspecialchars(stripslashes($text));
        
$tema=htmlspecialchars(stripslashes($tema));
        
$tema = substr($HTTP_POST_VARS["tema"],0,50);
$text = substr($HTTP_POST_VARS["text"],0,1000);
////////////////////////////////////////////////////////////////    
if ($tema == "") {  require"top.php";
echo
"<div align="center">";
     echo
"<font color="#FF0000">Вы не написали тему сообщения!</font><br/><br/>";
          
echo"<font color="#00FF00">Пожалуйста повторите!</font>";
               
echo"</div></body></html>";
exit;}    
//  no subject
if ($text == "") {  require"top.php";
echo
"<div align="center">";
    echo
"<font color="#FF0000">Вы не написали сообщениe!</font><br/><br/>";
         
echo"<font color="#00FF00">Пожалуйста повторите!</font>";
              
echo"</div></body></html>";
exit;}    
//  no message
    
if ($email == "") {$email="no@email";}else
if (!
eregi("^([0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\.[a-wyz][a-z](fo|g|l|m|mes|o|op|pa|ro|seum|t|u|v|z)?)$", $email))
 {  require
"top.php";
echo
"<div align="center">";
   echo
"<font color="#FF0000">Несуществующий адрес e-mail!</font><br/><br/>";
       
echo"<font color="#00FFFF">Если вы пишите адрес, то указывайте корректный e-mail, или НЕ пишите его вообще!</font><br/><br/>";
           
echo"<font color="#00FF00">Пожалуйста повторите!</font>";
                  
echo"</div></body></html>";
exit;}   
//  no message
if (getenv("HTTP_X_FORWARDED_FOR"))
 { 
$ip=getenv("HTTP_X_FORWARDED_FOR"); }
   else { 
$ip=getenv("REMOTE_ADDR"); }
$nom = @getenv("HTTP_X_NOKIA_MSISDN");
if (@
$nom=="") $nom = @getenv("HTTP_X_CLIENT_ID");
if (@
$nom=="") $nom = @getenv("HTTP_X_NETWORK_INFO");
$browz=getenv('HTTP_USER_AGENT');
$host  = gethostbyaddr($REMOTE_ADDR);
  
$ip=htmlspecialchars(stripslashes($ip));
        
$browz=htmlspecialchars(stripslashes($browz));
             
$host=htmlspecialchars(stripslashes($host));
                  
$nom=htmlspecialchars(stripslashes($nom));
                   
$nom = str_replace("$nom","Номер: $nom",$nom);
    function 
mail_convert($str) {
    
$str = trim(imap_binary(addcslashes($str, ""!@\!@(!@)")));
    return 
$str;
    }
  
$subject  = "=?utf-8?B?".trim(imap_binary("$tema"))."?=";
       
$headers  = "From: $emailrn";
            
$headers .= "MIME-Version: 1.0rn";
                  
$headers .= "Content-Transfer-Encoding: 8bitrn";
                        
$headers .= "Content-Type: text/plain; charset="utf-8"rn";
                                
$headers .= "X-Mailer: PHP v.".phpversion();
                                           
$message .= "Сообщение: $textnIP: $ipnХост: $hostnБраузер: $browzn$nom";
 
    mail("
$mail","$subject","$message","$headers"); 
    
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">";
echo "
<meta http-equiv="refresh" content="1;URL=../index.php"/>";
echo "
<title>$site</title>
<
style type="text/css">
body { font-weight: normal; font-size: normal; font-family: georgia; color: #FFFF00; background-color: #000033 }
a:link,a:active,a:visited { text-decoration: underline; color : #FF00FF }
a:hover { text-decoration: none; color : #FFFF00 }
div { margin: 1px 0px 1px 0px; padding: 5px 5px 5px 5px; font-weight: bold;}
div.black{ background-color: #3333FF; padding-top: 3px; padding-bottom: 3px; padding-left: 4px;  border: 1px solid;  text-align: center;}
div.blue{ background-color: #000066;    text-align: left;}
a {font-weight: bold;}</style>
</
head>
<
body>";
echo"
<div align="center">";
    echo"
<font color="#00FFFF">Спасибо, ваше сообщение отправлено</font><br/><br/>";
           echo"
:::<br/><a href="index.php"><font color="#FF0000">$site</font></a></div></body></html>";
  
 
?>
Онлайн: 0
Реклама