Вход Регистрация
Файл: 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-Version1.0rn";
                  
$headers .= "Content-Transfer-Encoding8bitrn";
                        
$headers .= "Content-Typetext/plaincharset="utf-8"rn";
                                
$headers .= "X-MailerPHP v.".phpversion();
                                           
$message .= "Сообщение$textnIP$ipnХост$hostnБраузер$browzn$nom";
 
    mail("
$mail","$subject","$message","$headers"); 
    
header("
Content-type:text/htmlcharset=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-weightnormalfont-sizenormalfont-familygeorgiacolor#FFFF00; background-color: #000033 }
a:link,a:active,a:visited text-decorationunderlinecolor #FF00FF }
a:hover text-decorationnonecolor #FFFF00 }
div margin1px 0px 1px 0pxpadding5px 5px 5px 5pxfont-weightbold;}
div.blackbackground-color#3333FF; padding-top: 3px; padding-bottom: 3px; padding-left: 4px;  border: 1px solid;  text-align: center;}
div.bluebackground-color#000066;    text-align: left;}
{font-weightbold;}</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>";
  
 
?>
Онлайн: 2
Реклама