";
print "
report ".__('Event Log')."\">";
if (LOG_DESTINATION == "sql") {
$res = $this->pdo->query("SELECT errno, errstr, filename, lineno,
created_at, login, context FROM ttrss_error_log
LEFT JOIN ttrss_users ON (owner_uid = ttrss_users.id)
ORDER BY ttrss_error_log.id DESC
LIMIT 100");
print "
";
print "
";
print "
";
print "
".__("Error")." |
".__("Filename")." |
".__("Message")." |
".__("User")." |
".__("Date")." |
";
while ($line = $res->fetch()) {
print "";
foreach ($line as $k => $v) {
$line[$k] = htmlspecialchars($v);
}
print "" . Logger::$errornames[$line["errno"]] . " (" . $line["errno"] . ") | ";
print "" . $line["filename"] . ":" . $line["lineno"] . " | ";
print "" . $line["errstr"] . " " . nl2br($line["context"]) . " | ";
print "" . $line["login"] . " | ";
print "" .
make_local_datetime(
$line["created_at"], false) . " | ";
print "
";
}
print "
";
} else {
print_notice("Please set LOG_DESTINATION to 'sql' in config.php to enable database logging.");
}
print "
";
print "
info ".__('PHP Information')."\">";
ob_start();
phpinfo();
$info = ob_get_contents();
ob_end_clean();
print "
";
print preg_replace( '%^.*(.*).*$%ms','$1', $info);
print "
";
print "
";
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_TAB,
"hook_prefs_tab", "prefSystem");
print "
"; #container
}
}