From 9b3fa77719642acd13a2ae6f29087dffcb261f4d Mon Sep 17 00:00:00 2001 From: czaks Date: Wed, 8 Oct 2014 23:23:59 +0200 Subject: new banlist implementation; also includes a public banlist --- templates/themes/public_banlist/theme.php | 56 +++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 templates/themes/public_banlist/theme.php (limited to 'templates/themes/public_banlist/theme.php') diff --git a/templates/themes/public_banlist/theme.php b/templates/themes/public_banlist/theme.php new file mode 100644 index 00000000..b64b8d9e --- /dev/null +++ b/templates/themes/public_banlist/theme.php @@ -0,0 +1,56 @@ + $config, + 'mod' => false, + 'hide_dashboard_link' => true, + 'title' => _("Ban list"), + 'subtitle' => "", + 'nojavascript' => true, + 'body' => Element('mod/ban_list.html', array( + 'mod' => false, + 'boards' => "[]", + 'token' => false, + 'token_json' => false, + 'uri_json' => $config['dir']['home'] . $settings['file_json'], + )) + )); + } + }; + +?> -- cgit v1.3 From 7719ad3e8148af407a72d92f2d157c7d29601689 Mon Sep 17 00:00:00 2001 From: czaks Date: Thu, 9 Oct 2014 01:26:34 +0200 Subject: minor bugfix @ banlist --- templates/themes/public_banlist/theme.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'templates/themes/public_banlist/theme.php') diff --git a/templates/themes/public_banlist/theme.php b/templates/themes/public_banlist/theme.php index b64b8d9e..68037aec 100644 --- a/templates/themes/public_banlist/theme.php +++ b/templates/themes/public_banlist/theme.php @@ -24,6 +24,8 @@ } public static function gen_json($settings) { + global $config, $mod; + ob_start(); Bans::stream_json(false, false, !hasPermission($config['mod']['view_banstaff']), $mod['boards']); $out = ob_get_contents(); -- cgit v1.3 From 948695e73cf086bfa59cda0e4cd2822853b77f3b Mon Sep 17 00:00:00 2001 From: czaks Date: Thu, 9 Oct 2014 01:49:29 +0200 Subject: lel, this one will do --- templates/themes/public_banlist/theme.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'templates/themes/public_banlist/theme.php') diff --git a/templates/themes/public_banlist/theme.php b/templates/themes/public_banlist/theme.php index 68037aec..f2b65839 100644 --- a/templates/themes/public_banlist/theme.php +++ b/templates/themes/public_banlist/theme.php @@ -24,10 +24,8 @@ } public static function gen_json($settings) { - global $config, $mod; - ob_start(); - Bans::stream_json(false, false, !hasPermission($config['mod']['view_banstaff']), $mod['boards']); + Bans::stream_json(false, true, true, array()); $out = ob_get_contents(); ob_end_clean(); return $out; -- cgit v1.3