mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
24 lines
522 B
PHP
24 lines
522 B
PHP
<?php
|
|
|
|
require_once './config.php';
|
|
|
|
$page = new AdminPage();
|
|
|
|
$spotnab = new SpotNab();
|
|
|
|
// set the current action
|
|
$toggle = isset($_REQUEST['toggle']) ? $_REQUEST['toggle'] : 'view';
|
|
|
|
if ( (isset($_GET["toggle"])) && (isset($_GET["id"])) ) {
|
|
$spotnab->toggleSource($_GET["id"],$_GET["toggle"]);
|
|
}
|
|
|
|
$page->title = "Spotnab Sources List";
|
|
|
|
//get the list of Sources
|
|
$spotnab = $spotnab->getSources();
|
|
|
|
$page->smarty->assign('spotnab',$spotnab);
|
|
$page->content = $page->smarty->fetch('spotnab-list.tpl');
|
|
$page->render();
|