Размер файла: 3.93Kb
<?php
#-----------------------------------------------------#
# ********* WAP-MOTORS ********* #
# Made by : VANTUZ #
# E-mail : [email protected] #
# Site : http://pizdec.ru #
# WAP-Site : http://visavi.net #
# ICQ : 36-44-66 #
# Вы не имеете право вносить изменения в код скрипта #
#-----------------------------------------------------#
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/maincore.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";
$text = @file("../local/profil/$log.prof");
if ($text!=""){
$udata = explode(":||:",$text[0]);
$provlog=trim($udata[0]);
$provpar=trim($udata[1]);
$my_mail=trim($udata[4]);}
if ($action=="go"){
if(!empty($name)){
if(!empty($body)){
if(eregi("^[a-z0-9\._-]+@[a-z0-9\._-]+\.[a-z]{2,4}\$", $umail)){
$now= date("d-m-Y");
$curr=date("H:i:s", time());
$subject = 'Mail From '.$config_title;
$mail = "Ip: $ip \nБраузер: $brow \nОтправлено: $now ($curr)\n\nСообщение: ";
$subject = utf_to_win($subject);
$body = utf_to_win($body);
$body=substr($body,0,1000);
$name = utf_to_win($name);
$mail = utf_to_win($mail);
$mail=substr($mail,0,1000);
$name=check($name);
$body=check($body);
$body = "$mail \n$body";
$name = convert_cyr_string($name, 'w','k');
$subject = convert_cyr_string($subject, 'w','k');
$body = convert_cyr_string($body, 'w','k');
$mail = convert_cyr_string($mail, 'w','k');
$adds = "From: \"".$name."\" <".$umail.">\n";
$adds .= "X-sender: \"".$name."\" <".$umail.">\n";
$adds .= "Content-Type: text/plain; charset=koi8-r\n";
$adds .= "MIME-Version: 1.0\r\n";
$adds .= "Content-Transfer-Encoding: 8bit\r\n";
$adds .= "X-Mailer: PHP v.".phpversion();
mail($config_emails,$subject,$body,$adds);
header ("Location: ../index.php?isset=mail&".SID);
}else{header ("Location: index.php?isset=noemail&".SID);}
}else{header ("Location: index.php?isset=nobody&".SID);}
}else{header ("Location: index.php?isset=noname&".SID);}
}
if(!isset($action)){
require_once"../template/isset.php";
echo '<img src="../images/img/mails.gif" alt=""> Письмо Администратору<br>';
if($config_themes!=="wml"){
echo'<form method="post" action="index.php?action=go&'.SID.'">';
if (md5($par)!==$provpar || $log!==$provlog || $log=="" || md5($par)=="") {
echo 'Ваше имя:<br><input name="name" maxlength="20" /><br>';
echo 'Ваш email:<br><input name="umail" maxlength="50" /><br>';
} else {
echo '<input name="name" type="hidden" value="'.$log.'" />';
echo '<input name="umail" type="hidden" value="'.$my_mail.'" />';
}
echo 'Сообщение:<br><input name="body" maxlength="5000" /><br><br>';
echo '<input value="Отправить" name="go" type="submit" /></form><hr>';
} else {
echo'<br>Ваше имя:<br><input name="name" maxlength="20"/><br>';
echo'Сообщение:<br><input name="body" maxlength="5000"/><br>';
echo'Ваш email:<br><input name="umail"/><br>';
echo'<anchor>Написать';
echo'<go href="index.php?action=go&'.SID.'" method="post">';
echo'<postfield name="name" value="$(name)"/>';
echo'<postfield name="body" value="$(body)"/>';
echo'<postfield name="umail" value="$(umail)"/>';
echo'<postfield name="go" value="go"/>';
echo'</go></anchor><br>--------------------<br>';
}}
echo'<br><a href="../index.php?'.SID.'">На главную</a><br>';
include_once"../themes/$config_themes/foot.php";
?>