Просмотр файла wapforum2/delpm.php

Размер файла: 918B
<?php
header("Content-type: text/vnd.wap.wml");
print "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";

?>
<wml>
<card id="login" title="WAP FORUMS">
<p align="center">
<?php
$nick=$_GET["nick"];
$pass=$_GET["pass"];
$who=$_GET["who"];
include("core.php"); //load main functions
include("conf.php"); //load config
str_replace("$","\$",$tname);
str_replace("$","\$",$ttext);
echo connect($dbuser,$dbpass,$dbserver,$dbname);
echo login($nick,$pass);
echo "<br/>";
global $logged;
if ($logged)
           {
            $dltd=mysql_query("DELETE FROM private WHERE id='".$who."'");
            if ($dltd) echo "PM deleted successfully!"; else echo "Problems!";
           } else echo "This PM is not yours!";
echo "<br/><a href=\"index.php?nick=$nick&amp;pass=$pass\">BACK</a>";
?>
</p>
</card>
</wml>