mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
25 lines
768 B
PHP
25 lines
768 B
PHP
<?php
|
|
|
|
require_once './config.php';
|
|
|
|
$page = new AdminPage();
|
|
|
|
$releases = new ReleaseComments();
|
|
|
|
$page->title = "Comments List";
|
|
|
|
$commentcount = $releases->getCommentCount();
|
|
$offset = isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0;
|
|
$page->smarty->assign('pagertotalitems',$commentcount);
|
|
$page->smarty->assign('pageroffset',$offset);
|
|
$page->smarty->assign('pageritemsperpage',ITEMS_PER_PAGE);
|
|
$page->smarty->assign('pagerquerybase', WWW_TOP."/comments-list.php?offset=");
|
|
$pager = $page->smarty->fetch("pager.tpl");
|
|
$page->smarty->assign('pager', $pager);
|
|
|
|
$commentslist = $releases->getCommentsRange($offset, ITEMS_PER_PAGE);
|
|
$page->smarty->assign('commentslist',$commentslist);
|
|
|
|
$page->content = $page->smarty->fetch('comments-list.tpl');
|
|
$page->render();
|