summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2016-05-05 09:56:54 +0200
committerczaks <marcin@6irc.net>2016-05-05 09:56:54 +0200
commit77176faececfceceb4c35eb4bfa80a99ed76a677 (patch)
tree4a0c4dfca4624abe28927ddc3e6ca9234071f98e
parent38bf3276e4ffd4b82c4a7bc9eb8e1cf692147bb2 (diff)
enable javascript in mod panel
-rwxr-xr-xinc/functions.php2
-rw-r--r--inc/mod/pages.php4
-rw-r--r--templates/page.html2
3 files changed, 5 insertions, 3 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 462bc173..c50336ae 100755
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -880,7 +880,7 @@ function displayBan($ban) {
Element('page.html', array(
'title' => _('Banned!'),
'config' => $config,
- 'nojavascript' => true,
+ 'boardlist' => createBoardlist($mod),
'body' => Element('banned.html', array(
'config' => $config,
'ban' => $ban,
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index 8b6f73c4..8380cfd3 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -15,7 +15,7 @@ function mod_page($title, $template, $args, $subtitle = false) {
'hide_dashboard_link' => $template == 'mod/dashboard.html',
'title' => $title,
'subtitle' => $subtitle,
- 'nojavascript' => true,
+ 'boardlist' => createBoardlist($mod),
'body' => Element($template,
array_merge(
array('config' => $config, 'mod' => $mod),
@@ -846,7 +846,7 @@ function mod_page_ip($ip) {
$args['security_token'] = make_secure_link_token('IP/' . $ip);
- mod_page(sprintf('%s: %s', _('IP'), $ip), 'mod/view_ip.html', $args, $args['hostname']);
+ mod_page(sprintf('%s: %s', _('IP'), htmlspecialchars($ip)), 'mod/view_ip.html', $args, $args['hostname']);
}
function mod_ban() {
diff --git a/templates/page.html b/templates/page.html
index 13753c03..3522702f 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -9,6 +9,8 @@
<title>{{ title }}</title>
</head>
<body>
+ {{ boardlist.top }}
+
{% if pm %}<div class="top_notice">You have <a href="?/PM/{{ pm.id }}">an unread PM</a>{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.</div><hr>{% endif %}
<header>
<h1>{{ title }}</h1>