<?php

session_start();

include "../config.php";
include "../header.php";
include "../style.php";
if( isset($_SESSION["alogin"]) ) {
$id = dbput($_POST['id']);

    	?><table>
      	<tr>
        <td width="15%" valign=top><br>
        <? include("adminnavigation.php"); ?>
        </td>
        <td  valign="top" align="center"><br><br> <?
        echo "<font size=2 face='$fonttype' color='$fontcolour'><p><b><center>";



        $query = "update surfurls set approved=0 where id='".$id."'";
		$result = mysql_query ($query)
	     	or die ("Query failed");
        echo "<p><center>The Surf Page has been sent back to the user.</p></center>";
		        echo "<p>Click <a href=viewallsurfs.php>here</a> to go back<p></td></tr></table>";
  }
else
	echo "Unauthorised Access!";

include "../footer.php";

?>