Просмотр файла nwchat/chat/email.php

Размер файла: 1.78Kb
<?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 "./ini.php";
// ўв®аЁ§ жЁп
$login = autorize();
//Їа®¤®«¦ Ґ¬ ўлў®¤ бва ­Ёжл
print '<card title="Ќ ¬л«Ёвм">'.
'<p align="center">';
//Їа®ўҐаЄ  ¤ ­­ле
if(!empty($action)&&!empty($to)&&!empty($from)) {
//§ Ј®«®ўЄЁ
$headers .= "From: $from\r\n";
$headers .= "Moby NET - The Best WAP! [ http://mobynet.ru ]\r\n";
//­ ¬л«Ёў Ґ¬
$msg = convert_cyr_string($msg,"a","w");
if(mail($to,$subject,$msg,$headers)) print "<b>‚ иҐ б®®ЎйҐ­ЁҐ гбЇҐи­® ®вЇа ў«Ґ­®!</b>";
} else {
print 'Ћв:<br/>'.
'<input name="from'.$r.'" value="'.$from.'"/><br/>'.
'Љ®¬г:<br/>'.
'<input name="send'.$r.'" value="'.$to.'"/><br/>'.
'’Ґ¬ :<br/>'.
'<input name="subject'.$rand;.'/><br/>'.
'‘®®ЎйҐ­ЁҐ:<br/>'.
'<input name="message'.$rand.'"/><br/>'.
'<anchor>ЋЇа ўЁвм<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=\"room.php?id=$id&amp;pass=$pass&amp;room=$room\">‚ з в</a><br/>";
print '</p>'.
'</card>'.
'</wml>';
ob_end_flush();
//а §алў Ґ¬ ᮥ¤Ё­Ґ­ЁҐ б Ў¤
@mysql_close();
?>