summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Crane <mcrane@pfsense.org>2008-04-27 06:20:40 +0000
committerMark Crane <mcrane@pfsense.org>2008-04-27 06:20:40 +0000
commit47d11b79b44c01f946ec418ab4d9b72eca7426fb (patch)
treeb95461e8dab20cf8d11d1fb641c885caef798a57
parentbe3911ca51b8b76b7908ee55cae19dbe3a2e70d1 (diff)
downloadpfsense-47d11b79b44c01f946ec418ab4d9b72eca7426fb.zip
pfsense-47d11b79b44c01f946ec418ab4d9b72eca7426fb.tar.gz
Set php max execution and input to 3600 seconds. See: http://forum.pfsense.org/index.php/topic,8878.msg49975.html#msg49975
-rwxr-xr-xusr/local/www/diag_backup.php4
-rwxr-xr-xusr/local/www/system_firmware.php4
2 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index f97d864..165c203 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -31,6 +31,10 @@
POSSIBILITY OF SUCH DAMAGE.
*/
+/* Allow additional execution time 0 = no limit. */
+ini_set('max_execution_time', '3600');
+ini_set('max_input_time', '3600');
+
/* omit no-cache headers because it confuses IE with file downloads */
$omit_nocacheheaders = true;
require("guiconfig.inc");
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php
index fe766e3..b6270ba 100755
--- a/usr/local/www/system_firmware.php
+++ b/usr/local/www/system_firmware.php
@@ -33,6 +33,10 @@ $d_isfwfile = 1;
require_once("guiconfig.inc");
require_once("xmlrpc_client.inc");
+/* Allow additional execution time 0 = no limit. */
+ini_set('max_execution_time', '3600');
+ini_set('max_input_time', '3600');
+
/* if upgrade in progress, alert user */
if(file_exists($d_firmwarelock_path)) {
$pgtitle = array("System","Firmware","Manual Update");
OpenPOWER on IntegriCloud