simple catalog support for moderators
This commit is contained in:
committed by
Fredrick Brennan
parent
c170bc7ef2
commit
4db4ab9cf0
@@ -1207,6 +1207,7 @@
|
||||
// Location of files.
|
||||
$config['file_index'] = 'index.html';
|
||||
$config['file_page'] = '%d.html'; // NB: page is both an index page and a thread
|
||||
$config['file_catalog'] = 'catalog.html';
|
||||
$config['file_page50'] = '%d+50.html';
|
||||
$config['file_page_slug'] = '%d-%s.html';
|
||||
$config['file_page50_slug'] = '%d-%s+50.html';
|
||||
|
@@ -734,6 +734,18 @@ function mod_board_log($board, $page_no = 1, $hide_names = false, $public = fals
|
||||
mod_page(_('Board log'), 'mod/log.html', array('logs' => $logs, 'count' => $count, 'board' => $board, 'hide_names' => $hide_names, 'public' => $public));
|
||||
}
|
||||
|
||||
function mod_view_catalog($boardName) {
|
||||
global $config, $mod;
|
||||
require_once($config['dir']['themes'].'/catalog/theme.php');
|
||||
$settings = array();
|
||||
$settings['boards'] = $boardName;
|
||||
$settings['update_on_posts'] = true;
|
||||
$settings['title'] = 'Catalog';
|
||||
$settings['use_tooltipster'] = true;
|
||||
$catalog = new Catalog();
|
||||
echo $catalog->build($settings, $boardName, true);
|
||||
}
|
||||
|
||||
function mod_view_board($boardName, $page_no = 1) {
|
||||
global $config, $mod;
|
||||
|
||||
|
Reference in New Issue
Block a user