Delete a file.

  1. <?php
  2. # Delete a file.
  3.  
  4. if (!defined('PHORUM')) return;
  5.  
  6. require_once("./include/api/base.php");
  7. require_once("./include/api/file_storage.php");
  8.  
  9. if (phorum_api_file_check_delete_access($file_id)) {
  10. phorum_api_file_delete($file_id);
  11. } else {
  12. die("Permission denied to delete file $file_id");
  13. }
  14. ?>

Documentation generated on Tue, 31 Jul 2007 15:27:16 -0500 by phpDocumentor 1.3.0RC5