function PMBP_delete_backup_files($files) { global $CONF; $out = ""; if (!is_array($files)) { $files = array($files); } foreach ($files as $file) { if (!@unlink("./" . PMBP_EXPORT_DIR . $file)) { $out .= "<div class=\"red\">" . sprintf(F_DEL_FAILED, $file) . "</div>"; } } // find and delete all old files from the ftp server if ($CONF['ftp_use'] && $CONF['ftp_del']) { $out .= PMBP_ftp_del($files); } return $out; }
function PMBP_delete_backup_files($files) { global $CONF; $out = ""; if (!is_array($files)) { $files = array($files); } foreach ($files as $file) { if (!@unlink(PMBP_EXPORT_DIR . $file)) { $out .= PMBP_addOutput(sprintf(F_DEL_FAILED, $file), "red"); } } // find and delete all old files from the ftp server if ($CONF['ftp_use'] && $CONF['ftp_del']) { $out .= PMBP_ftp_del($files); } return $out; }