You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
921 B
28 lines
921 B
<?php
|
|
require_once './config.php';
|
|
|
|
use nzedb\Regexes;
|
|
|
|
$page = new AdminPage();
|
|
$regexes = new Regexes(['Settings' => $page->settings, 'Table_Name' => 'category_regexes']);
|
|
|
|
$page->title = "Category Regex List";
|
|
|
|
$group = ((isset($_REQUEST['group']) && !empty($_REQUEST['group'])) ? $_REQUEST['group'] : '');
|
|
$offset = (isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0);
|
|
$regex = $regexes->getRegex($group, ITEMS_PER_PAGE, $offset);
|
|
$count = $regexes->getCount($group);
|
|
|
|
$page->smarty->assign([
|
|
'group' => $group,
|
|
'pagertotalitems' => $count,
|
|
'pageroffset' => $offset,
|
|
'pageritemsperpage' => ITEMS_PER_PAGE,
|
|
'regex' => $regex,
|
|
'pagerquerybase' => (WWW_TOP . "/category_regexes-list.php?" . $group . "offset=")
|
|
]
|
|
);
|
|
$page->smarty->assign('pager', $page->smarty->fetch("pager.tpl"));
|
|
|
|
$page->content = $page->smarty->fetch('category_regexes-list.tpl');
|
|
$page->render();
|
|
|