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.
26 lines
802 B
26 lines
802 B
<?php
|
|
require_once './config.php';
|
|
|
|
use nzedb\DnzbFailures;
|
|
|
|
$page = new AdminPage();
|
|
|
|
$failed = new DnzbFailures(['Settings' => $page->settings]);
|
|
|
|
$page->title = "Failed Releases List";
|
|
|
|
$frelcount = $failed->getCount();
|
|
|
|
$offset = isset($_REQUEST["offset"]) ? $_REQUEST["offset"] : 0;
|
|
$page->smarty->assign('pagertotalitems', $frelcount);
|
|
$page->smarty->assign('pageroffset', $offset);
|
|
$page->smarty->assign('pageritemsperpage', ITEMS_PER_PAGE);
|
|
$page->smarty->assign('pagerquerybase', WWW_TOP . "/failrel-list.php?offset=");
|
|
$pager = $page->smarty->fetch("pager.tpl");
|
|
$page->smarty->assign('pager', $pager);
|
|
|
|
$frellist = $failed->getFailedRange($offset, ITEMS_PER_PAGE);
|
|
$page->smarty->assign('releaselist', $frellist);
|
|
|
|
$page->content = $page->smarty->fetch('failrel-list.tpl');
|
|
$page->render();
|
|
|