Просмотр файла forum/delall.php

Размер файла: 713B
<?php
header ("Content-type:application/xhtml+xml; charset=utf-8");
header("Cache-Control: no-store, no-cache, must-revalidate");
include("core.php"); //load main functions
include("conf.php"); //load config
echo $style2;
$nick=$_GET["nick"];
$pass=$_GET["pass"];
echo connect($dbuser,$dbpass,$dbserver,$dbname);
echo login($nick,$pass);
echo "<br/>";
global $logged;
if ($logged)
           {
            $dltd=mysql_query("DELETE FROM private WHERE sentto='".$nick."'");
            if ($dltd) echo "Inbox erased successfully!"; else echo "Problems!";
           } else echo "This Inbox is not yours!";
echo "<br/><a href=\"index.php?nick=$nick&amp;pass=$pass\">BACK</a>";
echo $endhtml;
?>