From 8d0d50765bc4cd7b98fc28dbccbf4284d034d466 Mon Sep 17 00:00:00 2001 From: Jerome Jutteau Date: Thu, 1 Aug 2013 19:29:56 +0000 Subject: [PATCH 1/1] Remove errors when occurs --- admin.php | 4 +++- f.php | 4 +++- script.php | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/admin.php b/admin.php index 56db0e5..5ae2d6e 100755 --- a/admin.php +++ b/admin.php @@ -110,7 +110,9 @@ elseif (!isset ($_SESSION['admin_auth']) || $_SESSION['admin_auth'] != true) /* Operations may take a long time. * Be sure PHP's safe mode is off. */ - set_time_limit(0); +@set_time_limit(0); +/* Remove errors. */ +@error_reporting(0); /* Admin interface. */ require (JIRAFEAU_ROOT . 'lib/template/header.php'); diff --git a/f.php b/f.php index 2a5a6da..6f8f836 100644 --- a/f.php +++ b/f.php @@ -33,7 +33,9 @@ if (!isset ($_GET['h']) || empty ($_GET['h'])) /* Operations may take a long time. * Be sure PHP's safe mode is off. */ -set_time_limit(0); +@set_time_limit(0); +/* Remove errors. */ +@error_reporting(0); $link_name = $_GET['h']; diff --git a/script.php b/script.php index 1d420b6..b6fa71f 100755 --- a/script.php +++ b/script.php @@ -36,7 +36,9 @@ require (JIRAFEAU_ROOT . 'lib/lang.php'); /* Operations may take a long time. * Be sure PHP's safe mode is off. */ - set_time_limit(0); +@set_time_limit(0); +/* Remove errors. */ +@error_reporting(0); if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0) { -- 2.34.1