From a995e194d8f5e997cfc1032389497a9f20b7d7e3 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Thu, 14 Feb 2013 13:44:32 +0000 Subject: [PATCH] Fix some bugs due to PHP's max_execution_time --- admin.php | 7 ++++++- file.php | 5 +++++ script.php | 5 +++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/admin.php b/admin.php index bf61e6d..2fd8d29 100755 --- a/admin.php +++ b/admin.php @@ -107,6 +107,11 @@ elseif (!isset ($_SESSION['admin_auth']) || $_SESSION['admin_auth'] != true) exit; } +/* Operations may take a long time. + * Be sure PHP's safe mode is off. + */ + set_time_limit(0); + /* Admin interface. */ require (JIRAFEAU_ROOT . 'lib/template/header.php'); ?>

\ No newline at end of file +?> diff --git a/file.php b/file.php index 17ef381..710ce3d 100644 --- a/file.php +++ b/file.php @@ -30,6 +30,11 @@ if (!isset ($_GET['h']) || empty ($_GET['h'])) exit; } +/* Operations may take a long time. + * Be sure PHP's safe mode is off. + */ + set_time_limit(0); + $link_name = $_GET['h']; if (!preg_match ('/[0-9a-zA-Z_-]{22}$/', $link_name)) diff --git a/script.php b/script.php index 396538c..25548e6 100755 --- a/script.php +++ b/script.php @@ -33,6 +33,11 @@ require (JIRAFEAU_ROOT . 'lib/lang.php'); global $script_langages; $script_langages = array ('bash' => 'Bash'); +/* Operations may take a long time. + * Be sure PHP's safe mode is off. + */ + set_time_limit(0); + if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0) { require (JIRAFEAU_ROOT . 'lib/template/header.php'); -- 2.34.1