<?php
//----------------------------
$login_form = "loginform.php";
require "authorize.php";
 
if ($login == fail) {} else { 
$SQL = "SELECT * from PAGES WHERE ID = '$_GET[id]'"; $result = @mysql_query( $SQL ); $row = @mysql_fetch_array( $result );
if ($_SESSION[username] != $row[OWNER]) die("That's not very nice... that does not belong to you.");
//---------------------------------------------------------------------------------------------------------------------------

if ($_GET['do'] == yes) {

        $sql            = "DELETE FROM PAGES
        WHERE ID        ='$_GET[id]' AND OWNER = '$_SESSION[username]'";
        mysql_query("$sql");
        $jsrefresh = "index.php?page=account_listings$_GET[append]";
        INCLUDE "$svr_rootscript/include/jsrefresh.php";
}
?> <span class="font1"><b>Confirm Delete</b></span> 
<table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr>
    
<td class = "td4">Are you sure that you want to delete this article? <a href="index.php?page=account_delete&amp;do=yes&amp;id=<?php echo $_GET[id]; ?>&append=<?php echo $_GET[append]; ?>"><b>Yes</b></a>, delete it. <a href="javascript:history.go(-1)"><b>No</b></a>, 
take me back.</td>
  </tr>
</table>
<?PHP } ?>
