index 24ee43237a267f9b4af9c8236191eb7cc8037444..13a128a74e0d8dfff262ed0f6976447e872aaae9 100644 (file)
if(!isset($this->config) && empty($entry['user'])){
$entry['user'] = "unknown";
}
if(!isset($this->config) && empty($entry['user'])){
$entry['user'] = "unknown";
}
-
+
/* Check if all given values are valid */
/* Check if all given values are valid */
+ global $config;
$msgs = @log::check($entry);
if(count($msgs)){
foreach($msgs as $msg){
$msgs = @log::check($entry);
if(count($msgs)){
foreach($msgs as $msg){
msg_dialog::display(_("Internal error"), sprintf(_("Logging failed: %s"), $msg), ERROR_DIALOG);
}
}else{
msg_dialog::display(_("Internal error"), sprintf(_("Logging failed: %s"), $msg), ERROR_DIALOG);
}
}else{
- $this->log_into_syslog($entry);
+ if(is_object($config) && preg_match("/true/i",$config->get_cfg_value("logging",""))){
+ $this->log_into_syslog($entry);
+ }
}
}
}
}
$msgs = array();
if(!isset($entry['action']) || !in_array($entry['action'],array("modify","create","remove","copy","snapshot","view","security","debug"))){
$msgs = array();
if(!isset($entry['action']) || !in_array($entry['action'],array("modify","create","remove","copy","snapshot","view","security","debug"))){
- $msgs[] = sprintf(_("Invalid option '%s' specified!"), $entry['action']);
+ $msgs[] = sprintf(_("Invalid option %s specified!"), bold($entry['action']));
}
if(!isset($entry['objecttype']) || empty($entry['objecttype'])){
}
if(!isset($entry['objecttype']) || empty($entry['objecttype'])){
- $msgs[] = _("Specified objectType is empty or invalid!");
+ $msgs[] = _("Specified 'objectType' is empty or invalid!");
}
return($msgs);
}
return($msgs);