Файл: NskriptS.zip/email.php
Строк: 59
<?php
$r = rand(0,100000);
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
print "<?xml version="1.0" encoding="utf-8"?>";
print '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">'.
'<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';
include './config.php';
include './includes/'.$ver.'/banned';
print '<card title="SendTo">'.
'<p align="center">';
if(!empty($action)&&!empty($to)&&!empty($from)) {
$headers .= "From: $fromrn";
$headers .= "Сообщение отправлено с чата http://chat.xtlt.org";
$msg = convert_cyr_string($msg,"a","w");
if(mail($to,$subject,$msg,$headers)) print '<b>Message oTnpaBLeHo!</b>';
} else {
print 'OT:<br/>'.
'<input name="from'.$r.'" value="'.$from.'"/><br/>'.
'KoMy:<br/>'.
'<input name="send'.$r.'" value="'.$to.'"/><br/>'.
'TeMa:<br/>'.
'<input name="subject'.$rand.'"/><br/>'.
'Message:<br/>'.
'<input name="message'.$rand.'"/><br/>'.
'<anchor>OK<go href="email.php" method="post">'.
'<postfield name="action" value="send"/>'.
'<postfield name="id" value="'.$id.'"/>'.
'<postfield name="pass" value="'.$pass.'"/>'.
'<postfield name="room" value="'.$room.'"/>'.
'<postfield name="to" value="$(send'.$r.')"/>'.
'<postfield name="subject" value="$(subject'.$r.')"/>'.
'<postfield name="message" value="$(message'.$r.')"/>'.
'<postfield name="from" value="$(from'.$r.')"/>'.
'</go></anchor>';
}
print "<br/><a href="menu.php?id=$id&pass=$pass&room=$room">В меню чата</a><br/>";
print '</p>'.
'</card>'.
'</wml>';
ob_end_flush();
@mysql_close();
?>