2013-10-29 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php: fixed the message to show the user, and fixed the checks. INCIDENT: #320 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8978 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
3846ace40f
commit
54a5a6e9f6
|
@ -1,3 +1,10 @@
|
||||||
|
2013-10-29 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_config.php: fixed the message to show the
|
||||||
|
user, and fixed the checks.
|
||||||
|
|
||||||
|
INCIDENT: #320
|
||||||
|
|
||||||
2013-10-29 Miguel de Dios <miguel.dedios@artica.es>
|
2013-10-29 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_agents.php: fixed the delete the nodes in the
|
* include/functions_agents.php: fixed the delete the nodes in the
|
||||||
|
|
|
@ -1117,29 +1117,34 @@ function config_check () {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get remote file dir.
|
// Get remote file dir.
|
||||||
$remote_config = db_get_value_filter('value', 'tconfig', array('token' => 'remote_config'));
|
$remote_config = db_get_value_filter('value',
|
||||||
|
'tconfig', array('token' => 'remote_config'));
|
||||||
|
|
||||||
|
|
||||||
if (enterprise_installed()) {
|
if (enterprise_installed()) {
|
||||||
if (!is_writable ($remote_config)){
|
if (!is_readable ($remote_config)) {
|
||||||
$config["alert_cnt"]++;
|
$config["alert_cnt"]++;
|
||||||
$_SESSION["alert_msg"] .= ui_print_error_message(
|
$_SESSION["alert_msg"] .= ui_print_error_message(
|
||||||
array('message' => __('Remote configuration directory is not writtable for the console').' - $remote_config',
|
array('message' => __('Remote configuration directory is not readble for the console') .
|
||||||
|
' -' . $remote_config,
|
||||||
'no_close' => true, 'force_style' => 'color: #000000 !important'), '', true);
|
'no_close' => true, 'force_style' => 'color: #000000 !important'), '', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$remote_config_conf = $remote_config . "/conf";
|
$remote_config_conf = $remote_config . "/conf";
|
||||||
if (!is_writable ($remote_config_conf)){
|
if (!is_writable ($remote_config_conf)) {
|
||||||
$config["alert_cnt"]++;
|
$config["alert_cnt"]++;
|
||||||
$_SESSION["alert_msg"] .= ui_print_error_message(
|
$_SESSION["alert_msg"] .= ui_print_error_message(
|
||||||
array('message' => __('Remote configuration directory is not writtable for the console').' - $remote_config',
|
array('message' => __('Remote configuration directory is not writtable for the console') .
|
||||||
|
' - ' . $remote_config . '/conf',
|
||||||
'no_close' => true, 'force_style' => 'color: #000000 !important'), '', true);
|
'no_close' => true, 'force_style' => 'color: #000000 !important'), '', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$remote_config_col = $remote_config . "/collections";
|
$remote_config_col = $remote_config . "/collections";
|
||||||
if (!is_writable ($remote_config_col)){
|
if (!is_writable ($remote_config_col)) {
|
||||||
$config["alert_cnt"]++;
|
$config["alert_cnt"]++;
|
||||||
$_SESSION["alert_msg"] .= ui_print_error_message(
|
$_SESSION["alert_msg"] .= ui_print_error_message(
|
||||||
array('message' => __('Remote configuration directory is not writtable for the console').' - $remote_config',
|
array('message' => __('Remote configuration directory is not writtable for the console') .
|
||||||
|
' - ' . $remote_config . '/collections',
|
||||||
'no_close' => true, 'force_style' => 'color: #000000 !important'), '', true);
|
'no_close' => true, 'force_style' => 'color: #000000 !important'), '', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue