2014-05-12 Vanessa Gil <vanessa.gil@artica.es>
* 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
This commit is contained in:
parent
a0be2a7083
commit
4ebdf3bb44
|
@ -1,3 +1,8 @@
|
|||
2014-05-12 Vanessa Gil <vanessa.gil@artica.es>
|
||||
|
||||
* include/functions_config.php: Added alert in header
|
||||
when safe_mode is on.
|
||||
|
||||
2014-05-11 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql: Changed the order
|
||||
|
|
|
@ -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' => '<br><br>' . __('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"]++;
|
||||
|
|
Loading…
Reference in New Issue