foreach ($selected_files as $work_file) { $this_file = new FilesActions(); $hide_file = $this_file->change_files_hide_status($work_file, '1', $_POST['modify_type'], $_POST['modify_id']); } $msg = __('The selected files were marked as hidden.', 'cftp_admin'); echo system_message('ok', $msg); $log_action_number = 21; break; case 'show': /** * Reverse of the previous action. Setting the value to 0 means * that the file is visible. */ foreach ($selected_files as $work_file) { $this_file = new FilesActions(); $show_file = $this_file->change_files_hide_status($work_file, '0', $_POST['modify_type'], $_POST['modify_id']); } $msg = __('The selected files were marked as visible.', 'cftp_admin'); echo system_message('ok', $msg); $log_action_number = 22; break; case 'unassign': /** * Remove the file from this client or group only. */ foreach ($selected_files as $work_file) { $this_file = new FilesActions(); $unassign_file = $this_file->unassign_file($work_file, $_POST['modify_type'], $_POST['modify_id']); } $msg = __('The selected files were unassigned from this client.', 'cftp_admin'); echo system_message('ok', $msg);
foreach ($selected_files as $work_file) { $this_file = new FilesActions(); $hide_file = $this_file->change_files_hide_status($work_file, '1'); } $msg = __('The selected files were marked as hidden.', 'cftp_admin'); echo system_message('ok', $msg); $log_action_number = 21; break; case 'show': /** * Reverse of the previous action. Setting the value to 0 means * that the file is visible. */ foreach ($selected_files as $work_file) { $this_file = new FilesActions(); $show_file = $this_file->change_files_hide_status($work_file, '0'); } $msg = __('The selected files were marked as visible.', 'cftp_admin'); echo system_message('ok', $msg); $log_action_number = 22; break; case 'unassign': /** * Remove the file from this client's account only. */ foreach ($selected_files as $work_file) { $this_file = new FilesActions(); $unassign_file = $this_file->unassign_file($work_file); } $msg = __('The selected files were unassigned from this client.', 'cftp_admin'); echo system_message('ok', $msg);