summaryrefslogtreecommitdiff
path: root/includes/pages/admin_log.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-09-29 10:53:17 +0200
committermsquare <msquare@notrademark.de>2016-09-29 10:53:17 +0200
commit91dafb19ec171e747d9976cf738606759bde3aae (patch)
tree51e7c846146b253c811c6a0e85c0f1f3881cb50b /includes/pages/admin_log.php
parent1ec19b46f3311a0235c7d3e119e035559c9b4d14 (diff)
prohibit inline control structures on pages
Diffstat (limited to 'includes/pages/admin_log.php')
-rw-r--r--includes/pages/admin_log.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/includes/pages/admin_log.php b/includes/pages/admin_log.php
index 70da62fd..356a6402 100644
--- a/includes/pages/admin_log.php
+++ b/includes/pages/admin_log.php
@@ -1,10 +1,10 @@
<?php
+
function admin_log_title() {
return _("Log");
}
function admin_log() {
-
if (isset($_POST['keyword'])) {
$filter = $_POST['keyword'];
$log_entries_source = LogEntries_filter($_POST['keyword']);
@@ -12,24 +12,24 @@ function admin_log() {
$filter = "";
$log_entries_source = LogEntries();
}
-
- $log_entries = array();
+
+ $log_entries = [];
foreach ($log_entries_source as $log_entry) {
$log_entry['date'] = date("d.m.Y H:i", $log_entry['timestamp']);
$log_entries[] = $log_entry;
}
-
- return page_with_title(admin_log_title(), array(
+
+ return page_with_title(admin_log_title(), [
msg(),
- form(array(
- form_text('keyword', _("Search"), $filter),
- form_submit(_("Search"), "Go")
- )),
- table(array(
+ form([
+ form_text('keyword', _("Search"), $filter),
+ form_submit(_("Search"), "Go")
+ ]),
+ table([
'date' => "Time",
'nick' => "Angel",
- 'message' => "Log Entry"
- ), $log_entries)
- ));
+ 'message' => "Log Entry"
+ ], $log_entries)
+ ]);
}
?>