From 727309d2d4aba93bdea8997ac71125856e2b033a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 21 Aug 2010 20:16:52 +0000 Subject: [PATCH] Chang not used code --- htdocs/admin/tools/export.php | 12 ++++++------ htdocs/lib/antivir.class.php | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/htdocs/admin/tools/export.php b/htdocs/admin/tools/export.php index 0d8dc245e4d..f86968ddf95 100644 --- a/htdocs/admin/tools/export.php +++ b/htdocs/admin/tools/export.php @@ -61,12 +61,12 @@ $formfile = new FormFile($db); print_fiche_titre($langs->trans("Backup"),'','setup'); -/** - * Increase time limit for script execution and initializes some variables - */ -@set_time_limit($cfg['ExecTimeLimit']); -if (!empty($cfg['MemoryLimit'])) { - @ini_set('memory_limit', $cfg['MemoryLimit']); +// TODO Define ExecTimeLimit and MemoryLimit +if (!empty($ExecTimeLimit)) { +@set_time_limit($ExecTimeLimit); +} +if (!empty($MemoryLimit)) { +@ini_set('memory_limit', $MemoryLimit); } // Start with empty buffer diff --git a/htdocs/lib/antivir.class.php b/htdocs/lib/antivir.class.php index 6a478f99090..6626c702422 100644 --- a/htdocs/lib/antivir.class.php +++ b/htdocs/lib/antivir.class.php @@ -60,7 +60,6 @@ class AntiVir $return = 0; - @set_time_limit($cfg['ExecTimeLimit']); $outputfile=$conf->admin->dir_temp.'/dol_avscan_file.out.'.session_id(); $fullcommand=$this->getCliCommand($file);