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;
PageBlue(_c("error-reporter:Report an error"), "mod_error-reporter");
-if(!$cfgErrors->userHasAccess()) {
+if(!erConfig::userHasAccess()) {
printf("<p class='err'>%s</p>\n", ER_ERROR_ACCESS_DENIED);
_PageBlue();
exit();
_c("error-reporter:The specified error report does not exist!"));
Option(_("Back"), null, "href='".$_SERVER["PHP_SELF"]."'", "back");
} else {
- if($cfgErrors->userIsAdmin() or $doc->userIsOwner($getUid)) {
+ if(erConfig::userIsAdmin() or $doc->userIsOwner($getUid)) {
echo sprintf("<form action='%s' method='post'>\n",
$view->getDeleteURL($getUid));
echo sprintf("<p>%s</p>", _c("error-reporter:You are about to delete ".
} else {
// Write to database
$nNewUid = null;
- $er = new erErrorReport(time(), $_SESSION["act"], $postMachine, $postText, $postHidden == "true");
+ $er = new erErrorReport(time(), $_SESSION["act"], $postMachine, $postText,
+ $postHidden == "true");
try {
$nNewUid = $doc->writeErrorReport($er);
} catch(Exception $e) {