action_cut_file_to_file.php
Upload User: feiyaoda
Upload Date: 2016-11-21
Package Size: 9556k
Code Size: 1k
Category:

WEB Mail

Development Platform:

PHP

  1. <?php
  2. /*********************************************************
  3.  *
  4.  * STEP 1 : we copy files to move
  5.  *
  6.  *********************************************************/
  7. include ('action_copy_file_to_file.php');
  8. /*********************************************************
  9.  *
  10.  * STEP 2 : we check that we are at right time to perform
  11.  *
  12.  *********************************************************/
  13. if ($step != 'copy') 
  14.     die();
  15. if (0 != count($errors))
  16.     die ($get_string->get('errors_no_delete'));
  17. /*********************************************************
  18.  *
  19.  * STEP 3 : we remove originals
  20.  *
  21.  *********************************************************/
  22.  
  23.  // preparing buffer selection files to pass to delete script
  24.  
  25. $buffer_selection_files = array();
  26. foreach ($copy_entry as $src_abs_path => $copy_info)
  27. {
  28.     $buffer_selection_files[] = $src_abs_path;
  29. }
  30. // then we call delete script
  31. include ('action_delete_file.php');