...and update script to convert old PHP based config into /etc/iserv/config
[iserv-mod-error-reporter.git] / src / index.php
index a2a5ece..9a9f7d7 100644 (file)
@@ -31,6 +31,8 @@
 require_once("mod_error-reporter/init.inc");
 require_once("sec/secure.inc");
 
+db_user("errorreporter");
+
 html_header("<style type='text/css'>
 td.errors-form-description {
   width: 12em;
@@ -98,7 +100,7 @@ if($getAction == "delete" and isset($getUid)) {
 echo sprintf("<form action='%s' method='get'></form>\n", $_SERVER["PHP_SELF"]);
 
 // probably we have to insert an error report
-if(($getAction == "submit" and $postSubmit == _("Insert")))
+if(($getAction == "submit" and $postSubmit == _c("error-reporter:Submit")))
 {
   // All fields must be filled out
   if((trim($postMachine) == "") or (trim($postText) == "")) {
@@ -165,7 +167,7 @@ echo sprintf("<tr><td /><td><input type='hidden' name='hidden' ".
   "Visible only for administrators (use this if your report is about security ".
   "issues)"));
 echo sprintf("<tr><td /><td><input type='submit' name='submit' value='%s' />".
-  "d></tr>\n", _("Insert"));
+  "</td></tr>\n", _c("error-reporter:Submit"));
 echo "</table></form><p />\n";
 
 _PageBlue();
This page took 0.025928 seconds and 4 git commands to generate.