From 4ebdf3bb44d4ff30046eed350cde27b0d445c965 Mon Sep 17 00:00:00 2001 From: vgilc Date: Mon, 12 May 2014 12:36:03 +0000 Subject: [PATCH] 2014-05-12 Vanessa Gil * include/functions_config.php: Added alert in header when safe_mode is on. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9918 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_config.php | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0d03ed5555..3237d00c9d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2014-05-12 Vanessa Gil + + * include/functions_config.php: Added alert in header + when safe_mode is on. + 2014-05-11 Junichi Satoh * extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql: Changed the order diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 591ae3dbc7..897df83b27 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -1324,6 +1324,15 @@ function config_check () { $PHPmax_input_time = ini_get('max_input_time'); $PHPmemory_limit = config_return_in_bytes(ini_get('memory_limit')); $PHPmax_execution_time = ini_get('max_execution_time'); + $PHPsafe_mode = ini_get('safe_mode'); + + if ($PHPsafe_mode === '1') { + $config["alert_cnt"]++; + $_SESSION["alert_msg"] .= ui_print_info_message( + array('title' => sprintf(__("PHP safe mode is enabled. Some features may not properly work.")), + 'message' => '

' . __('To disable, change it on your PHP configuration file (php.ini) and put safe_mode = Off (Dont forget restart apache process after changes)'), + 'no_close' => true, 'force_style' => 'color: #000000 !important'), '', true); + } if ($PHPmax_input_time !== '-1') { $config["alert_cnt"]++;