Просмотр файла txtban/mails.php

Размер файла: 1.2Kb
<? header("Content-Type: text/vnd.wap.wml");
header("Cache-Control: no-cache"); 
  echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>
  <!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";?>
<?php
include "config.inc.php";
include "fo.php";
include "valid.php";

if ($_GET['mode']=="in") {
$titl="Bxo&#x0434;&#x044F;&#x0449;&#x0438;e";
}
if ($_GET['mode']=="out") {
$titl="&#x0418;cxo&#x0434;&#x044F;&#x0449;&#x0438;e";
}
print "
<wml><card title=\"$titl\">";

If(!isset($_GET['p']) || !isset($_GET['mode']) || ($_GET['mode']!="in" && $_GET['mode']!="out"))
{echo "<p>&#x0423;&#x043A;a&#x0437;a&#x043D;&#x044B; &#x043D;e &#x0432;ce &#x043F;apa&#x043C;e&#x0442;p&#x044B;!
<a href=\"mail.php?id=$id&amp;pass=$pass\">&#x041F;o&#x0447;&#x0442;a</a>['.kolnewmail($id).']</p>";
exit;
}

$mode=$_GET['mode'];
$p=$_GET['p'];
echo "<p>";
If ($mode=="out") echo "";
readmail($id,$p,$m_kol,"m".$mode,$pass);
If ($mode=="out") echo "";
echo "<br/><small>
  <a href=\"mail.php?id=$id&amp;pass=$pass\">&#x041F;o&#x0447;&#x0442;a</a><br/>
<a href=\"apanel.php?id=$id&amp;pass=$pass\">B &#x043F;a&#x043D;e&#x043B;&#x044C;</a><br/>
</small></p>
";



?></card></wml>