From: Jerome Jutteau Date: Thu, 14 Feb 2013 13:44:32 +0000 (+0000) Subject: Fix some bugs due to PHP's max_execution_time X-Git-Tag: 1.1~211 X-Git-Url: https://git.p6c8.net/jirafeau.git/commitdiff_plain/a995e194d8f5e997cfc1032389497a9f20b7d7e3 Fix some bugs due to PHP's max_execution_time --- 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');