Subversion Repositories computer_asset_manager_v1

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
63 rodolico 1
<?php
2
 
3
   // script will delete a file, then return to the calling script
4
   include_once( '../../header.php' );
5
   $return = $_SERVER['HTTP_REFERER'];
6
   $toDelete = isset( $_REQUEST['file_id'] ) ? intval( $_REQUEST['file_id'] ) : '';
7
   if ( $toDelete )
8
      doSQL( "update file set removed_date = now() where file_id = $toDelete" );
9
   header( "Location: $return" );
10
 
11
?>