Blame | Last modification | View Log | Download | RSS feed
<?php
// script will delete a file, then return to the calling script
include_once( '../../header.php' );
$return = $_SERVER['HTTP_REFERER'];
$toDelete = isset( $_REQUEST['file_id'] ) ? intval( $_REQUEST['file_id'] ) : '';
if ( $toDelete )
doSQL( "update file set removed_date = now() where file_id = $toDelete" );
header( "Location: $return" );
?>