X-Git-Url: https://git.rohieb.name/iserv-mod-error-reporter.git/blobdiff_plain/ae87133905d183987eb75369fe94bb739a2b1cb9..68c9e4f4871634ad66d75ff281e3438c6a867381:/src/config.php diff --git a/src/config.php b/src/config.php index 8d0f8db..52ba154 100644 --- a/src/config.php +++ b/src/config.php @@ -1,33 +1,31 @@ isMailNotify()) { $cfgErrors->setMailNotify($bMailNotify); - echo sprintf("

%s

\n", _c("error-reporter-cfg:Set mail notification.")); + echo sprintf("

%s

\n", _c("error-reporter-cfg:Set mail ". + "notification.")); } if($strMailNotifyAddr != $cfgErrors->getMailNotifyAddr()) { if(!erIsMailAddress($strMailNotifyAddr)) { - echo sprintf("

%s

", _c("error-reporter-cfg:The specified string is not ". - "a valid e-mail address!")); + echo sprintf("

%s

", _c("error-reporter-cfg:The ". + "specified string is not a valid e-mail address!")); } else { $cfgErrors->setMailNotifyAddr($strMailNotifyAddr); - echo sprintf("

%s

\n", _c("error-reporter-cfg:Set mail notification address.")); + echo sprintf("

%s

\n", _c("error-reporter-cfg:Set mail ". + "notification address.")); } } $cfgErrors->writeConfig(); } // two columns -echo "
\n"; +echo "". + "
\n"; // Mail notification GroupBox(_c("error-reporter-cfg:Mail notification"), "mail"); echo "
\n"; echo "\n"; echo sprintf("", - _c("error-reporter-cfg:Enable mail notification"), _c("error-reporter-cfg:If this option is ". - "enabled, everytime an error report is submitted, an e-mail with information about the ". - "report will be sent to the address specified below."), $cfgErrors->isMailNotify() ? + "class='errors-cfg-field-heading'>%s
%s", + _c("error-reporter-cfg:Enable mail notification"), + _c("error-reporter-cfg:If this option is enabled, everytime an error report ". + "is submitted, an e-mail with information about the report will be sent to ". + "the address specified below."), $cfgErrors->isMailNotify() ? " checked='checked'" : ""); echo sprintf("", _c("error-reporter-cfg:Mail address to send the notification mail to"), - _c("error-reporter-cfg:If mail notifications are enabled, any notification mails are sent to ". - "the address specified here. You can give more than one address by separating them with a ". - "comma."), q($cfgErrors->getMailNotifyAddr())); -echo sprintf("\n", - _("Save")); + "class='errors-cfg-field-heading'>%s
%s". + "", + _c("error-reporter-cfg:Mail address to send the notification mail to"), + _c("error-reporter-cfg:If mail notifications are enabled, any notification ". + "mails are sent to the address specified here. You can give more than one ". + "address by separating them with a comma."), + q($cfgErrors->getMailNotifyAddr())); +echo sprintf("\n", _("Save")); echo "

%s
". - "

%s
". - "". - "
<$stdbtn name='submit' value='%s' />
<$stdbtn name='submit' ". + "value='%s' />
\n
\n"; _GroupBox(); @@ -115,7 +121,8 @@ echo sprintf("

%s

\n

%s

\n

%s

", _c("error-reporter:This is ". "action. Please use the %sgroup administration%s to assign and revoke ". "privileges."), "", ""), _c("error-reporter:Please note that every group with the administration ". - "privilege can also implicitly report errors and see the reported messages.")); + "privilege can also implicitly report errors and see the reported ". + "messages.")); echo "

\n"; echo sprintf("\n", icon("keys"), _("View error reports and report errors").":", $asAccessGroups == array() ? @@ -124,7 +131,7 @@ echo sprintf("\n", icon("keys"), echo "\n"; echo sprintf("\n", icon("keys"), _("Administration of the error report wizard"), - $asAdminGroups == array() ? _c("error-reporter:all users") : + $asAdminGroups == array() ? _c("error-reporter:no users") : icon("act-group") . join(", ", array_map("erGetGroupName", $asAdminGroups))); echo "
%s%s%s%s%s%s
%s%s%s

\n"; _GroupBox(); @@ -132,4 +139,4 @@ _GroupBox(); echo "
\n"; _PageBlue(); -?> \ No newline at end of file +?>