mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 11:18:56 +00:00
39 lines
902 B
PHP
39 lines
902 B
PHP
<?php
|
|
|
|
use Blacklight\Console;
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
if (! Auth::check()) {
|
|
$page->show403();
|
|
}
|
|
|
|
if (request()->has('id') && ctype_digit(request()->input('id'))) {
|
|
$console = new Console(['Settings' => $page->settings]);
|
|
$con = $console->getConsoleInfo(request()->input('id'));
|
|
if (! $con) {
|
|
$page->show404();
|
|
}
|
|
|
|
$page->smarty->assign('console', $con);
|
|
|
|
$page->title = 'Info for '.$con['title'];
|
|
$page->meta_title = '';
|
|
$page->meta_keywords = '';
|
|
$page->meta_description = '';
|
|
$page->smarty->registerPlugin('modifier', 'ss', 'stripslashes');
|
|
|
|
$modal = false;
|
|
if (request()->has('modal')) {
|
|
$modal = true;
|
|
$page->smarty->assign('modal', true);
|
|
}
|
|
|
|
$page->content = $page->smarty->fetch('viewconsole.tpl');
|
|
|
|
if ($modal) {
|
|
echo $page->content;
|
|
} else {
|
|
$page->pagerender();
|
|
}
|
|
}
|