summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1640184)
raw | patch | inline | side by side (parent: 1640184)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 16 Jan 2008 13:23:02 +0000 (13:23 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 16 Jan 2008 13:23:02 +0000 (13:23 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8388 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/addons/notifications/class_msgplug.inc | patch | blob | history |
diff --git a/gosa-core/plugins/addons/notifications/class_msgplug.inc b/gosa-core/plugins/addons/notifications/class_msgplug.inc
index edbab55eef09a5c17ad3a596bc12b8fa68b4481a..e88e641704e9629308a096b9b16dc8bda230a05b 100644 (file)
/*Permissions ok? */
if (!$this->acl_is_writeable('notify')){
- print_red(_("You have no permissions to send a message!"));
+ msg_dialog::display(_("Permission error"), _("You have no permissions to send a message!"), ERROR_DIALOG);
} else {
$cmd= $this->config->search("msgplug", "NOTIFY_COMMAND",array('menu'));
if ($cmd == ""){
- print_red(_("No NOTIFY_COMMAND definition found in your gosa.conf"));
+ msg_dialog::display(_("Configuration error"), sprintf(_("Missing '%s' directive in configuration!"), "notify_command"), ERROR_DIALOG);
} else {
$parameters= base64_encode($this->nmessage) ." ";
foreach ($this->recipients as $key => $value){
}
exec ("$cmd $parameters", $dummy, $retval);
if ($retval != 0){
- print_red(sprintf(_("Execution of '%s' failed!"), $cmd));
+ msg_dialog::display(_("Configuration error"), sprintf(_("'%s' defined for the '%s' directive cannot be executed!"), $cmd, "notify_command"), ERROR_DIALOG);
}
$this->finalized= true;
}
}
} else {
- print_red(_("Please specify at least one recipient to send a message!"));
+ msg_dialog::display(_("Error"), _("Please specify at least one recipient to send a message!") , ERROR_DIALOG);
}
}
$line= fgets($fh, 256);
if (!preg_match('/^DESC:/', $line)){
- print_red (_("No DESC tag in message file:")." $file");
+ msg_dialog::display(_("Error"), sprintf(_("Cannot find a DESC tag in file '%s'!"), $file), ERROR_DIALOG);
return $desc;
}
fclose ($fh);