From b39bb373b466ae809e765bfe29bf1212cd186089 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 29 Mar 2018 15:54:01 +0200 Subject: [PATCH] Update themes, BasePage and Profile controllers --- Blacklight/SABnzbd.php | 23 +- Changelog | 1 + .../Auth/ForgotPasswordController.php | 89 +-- .../Auth/ResetPasswordController.php | 52 ++ .../Http/Controllers/BasePageController.php | 211 +++--- app/Http/Controllers/ProfileController.php | 134 ++++ public/.htaccess | 42 +- public/index.php | 74 +-- public/pages/profile.php | 102 --- resources/views/themes/Gamma/articlesmenu.tpl | 9 - resources/views/themes/Gamma/basepage.tpl | 137 ---- resources/views/themes/Gamma/books.tpl | 245 ------- resources/views/themes/Gamma/browse.tpl | 286 --------- resources/views/themes/Gamma/browsegroup.tpl | 30 - resources/views/themes/Gamma/btc_payment.tpl | 29 - resources/views/themes/Gamma/cart.tpl | 52 -- resources/views/themes/Gamma/console.tpl | 319 ---------- resources/views/themes/Gamma/contact.tpl | 44 -- resources/views/themes/Gamma/content.tpl | 35 - .../views/themes/Gamma/forgottenpassword.tpl | 49 -- resources/views/themes/Gamma/forum.tpl | 99 --- resources/views/themes/Gamma/forumpost.tpl | 67 -- resources/views/themes/Gamma/games.tpl | 284 --------- resources/views/themes/Gamma/headermenu.tpl | 188 ------ resources/views/themes/Gamma/login.tpl | 27 - resources/views/themes/Gamma/mainmenu.tpl | 18 - resources/views/themes/Gamma/movies.tpl | 250 -------- .../views/themes/Gamma/multi-operations.tpl | 11 - resources/views/themes/Gamma/music.tpl | 243 ------- resources/views/themes/Gamma/mymovies-add.tpl | 20 - resources/views/themes/Gamma/mymovies.tpl | 54 -- resources/views/themes/Gamma/myshows-add.tpl | 20 - resources/views/themes/Gamma/myshows.tpl | 39 -- .../views/themes/Gamma/nzbvortex-ajax.tpl | 59 -- resources/views/themes/Gamma/nzbvortex.tpl | 38 -- resources/views/themes/Gamma/opensearch.tpl | 13 - resources/views/themes/Gamma/post_edit.tpl | 21 - resources/views/themes/Gamma/profile.tpl | 186 ------ resources/views/themes/Gamma/profileedit.tpl | 217 ------- .../views/themes/Gamma/recentforumposts.tpl | 9 - resources/views/themes/Gamma/register.tpl | 42 -- resources/views/themes/Gamma/search.tpl | 334 ---------- resources/views/themes/Gamma/searchraw.tpl | 81 --- resources/views/themes/Gamma/sitemap-xml.tpl | 10 - resources/views/themes/Gamma/sitemap.tpl | 25 - resources/views/themes/Gamma/terms.tpl | 4 - .../views/themes/Gamma/usefullinksmenu.tpl | 11 - resources/views/themes/Gamma/viewanime.tpl | 94 --- .../views/themes/Gamma/viewanimelist.tpl | 47 -- resources/views/themes/Gamma/viewbook.tpl | 18 - resources/views/themes/Gamma/viewconsole.tpl | 18 - resources/views/themes/Gamma/viewfilelist.tpl | 41 -- resources/views/themes/Gamma/viewmovie.tpl | 19 - .../views/themes/Gamma/viewmoviefull.tpl | 210 ------ .../views/themes/Gamma/viewmovietrailer.tpl | 6 - resources/views/themes/Gamma/viewmusic.tpl | 30 - resources/views/themes/Gamma/viewnfo.tpl | 8 - resources/views/themes/Gamma/viewnzb.tpl | 600 ------------------ resources/views/themes/Gamma/viewqueue.tpl | 68 -- resources/views/themes/Gamma/viewseries.tpl | 253 -------- .../views/themes/Gamma/viewserieslist.tpl | 93 --- resources/views/themes/Gamma/viewxxx.tpl | 15 - resources/views/themes/Gamma/viewxxxfull.tpl | 202 ------ resources/views/themes/Gamma/xxx.tpl | 323 ---------- resources/views/themes/Gentele/basepage.tpl | 12 +- resources/views/themes/smarty.php | 3 +- routes/web.php | 11 +- 67 files changed, 346 insertions(+), 6058 deletions(-) rename Blacklight/http/BasePage.php => app/Http/Controllers/BasePageController.php (53%) create mode 100644 app/Http/Controllers/ProfileController.php delete mode 100644 public/pages/profile.php delete mode 100755 resources/views/themes/Gamma/articlesmenu.tpl delete mode 100755 resources/views/themes/Gamma/basepage.tpl delete mode 100755 resources/views/themes/Gamma/books.tpl delete mode 100755 resources/views/themes/Gamma/browse.tpl delete mode 100755 resources/views/themes/Gamma/browsegroup.tpl delete mode 100644 resources/views/themes/Gamma/btc_payment.tpl delete mode 100755 resources/views/themes/Gamma/cart.tpl delete mode 100755 resources/views/themes/Gamma/console.tpl delete mode 100755 resources/views/themes/Gamma/contact.tpl delete mode 100755 resources/views/themes/Gamma/content.tpl delete mode 100755 resources/views/themes/Gamma/forgottenpassword.tpl delete mode 100755 resources/views/themes/Gamma/forum.tpl delete mode 100755 resources/views/themes/Gamma/forumpost.tpl delete mode 100755 resources/views/themes/Gamma/games.tpl delete mode 100755 resources/views/themes/Gamma/headermenu.tpl delete mode 100755 resources/views/themes/Gamma/login.tpl delete mode 100755 resources/views/themes/Gamma/mainmenu.tpl delete mode 100755 resources/views/themes/Gamma/movies.tpl delete mode 100755 resources/views/themes/Gamma/multi-operations.tpl delete mode 100755 resources/views/themes/Gamma/music.tpl delete mode 100644 resources/views/themes/Gamma/mymovies-add.tpl delete mode 100755 resources/views/themes/Gamma/mymovies.tpl delete mode 100755 resources/views/themes/Gamma/myshows-add.tpl delete mode 100755 resources/views/themes/Gamma/myshows.tpl delete mode 100755 resources/views/themes/Gamma/nzbvortex-ajax.tpl delete mode 100755 resources/views/themes/Gamma/nzbvortex.tpl delete mode 100755 resources/views/themes/Gamma/opensearch.tpl delete mode 100644 resources/views/themes/Gamma/post_edit.tpl delete mode 100755 resources/views/themes/Gamma/profile.tpl delete mode 100755 resources/views/themes/Gamma/profileedit.tpl delete mode 100755 resources/views/themes/Gamma/recentforumposts.tpl delete mode 100755 resources/views/themes/Gamma/register.tpl delete mode 100755 resources/views/themes/Gamma/search.tpl delete mode 100755 resources/views/themes/Gamma/searchraw.tpl delete mode 100755 resources/views/themes/Gamma/sitemap-xml.tpl delete mode 100755 resources/views/themes/Gamma/sitemap.tpl delete mode 100755 resources/views/themes/Gamma/terms.tpl delete mode 100755 resources/views/themes/Gamma/usefullinksmenu.tpl delete mode 100755 resources/views/themes/Gamma/viewanime.tpl delete mode 100755 resources/views/themes/Gamma/viewanimelist.tpl delete mode 100755 resources/views/themes/Gamma/viewbook.tpl delete mode 100755 resources/views/themes/Gamma/viewconsole.tpl delete mode 100755 resources/views/themes/Gamma/viewfilelist.tpl delete mode 100755 resources/views/themes/Gamma/viewmovie.tpl delete mode 100755 resources/views/themes/Gamma/viewmoviefull.tpl delete mode 100755 resources/views/themes/Gamma/viewmovietrailer.tpl delete mode 100755 resources/views/themes/Gamma/viewmusic.tpl delete mode 100755 resources/views/themes/Gamma/viewnfo.tpl delete mode 100755 resources/views/themes/Gamma/viewnzb.tpl delete mode 100755 resources/views/themes/Gamma/viewqueue.tpl delete mode 100755 resources/views/themes/Gamma/viewseries.tpl delete mode 100755 resources/views/themes/Gamma/viewserieslist.tpl delete mode 100755 resources/views/themes/Gamma/viewxxx.tpl delete mode 100755 resources/views/themes/Gamma/viewxxxfull.tpl delete mode 100755 resources/views/themes/Gamma/xxx.tpl diff --git a/Blacklight/SABnzbd.php b/Blacklight/SABnzbd.php index a50bf40be..21b5e29c9 100755 --- a/Blacklight/SABnzbd.php +++ b/Blacklight/SABnzbd.php @@ -93,15 +93,14 @@ class SABnzbd /** * SABnzbd constructor. * - * @param $page - * * @throws \Exception */ - public function __construct(&$page) + public function __construct() { + $user = Auth::user(); $this->uid = Auth::id(); - $this->rsstoken = $page->userdata['rsstoken']; - $this->serverurl = $page->serverurl; + $this->rsstoken = $user['rsstoken']; + $this->serverurl = url('/'); $this->client = new Client(['verify' => false]); // Set up properties. @@ -112,14 +111,14 @@ class SABnzbd $this->apikey = $_COOKIE['sabnzbd_'.$this->uid.'__apikey']; $this->priority = $_COOKIE['sabnzbd_'.$this->uid.'__priority'] ?? 0; $this->apikeytype = $_COOKIE['sabnzbd_'.$this->uid.'__apitype'] ?? 1; - } elseif (! empty($page->userdata['sabapikey']) && ! empty($page->userdata['saburl'])) { - $this->url = $page->userdata['saburl']; - $this->apikey = $page->userdata['sabapikey']; - $this->priority = $page->userdata['sabpriority']; - $this->apikeytype = $page->userdata['sabapikeytype']; + } elseif (! empty($user['sabapikey']) && ! empty($user['saburl'])) { + $this->url = $user['saburl']; + $this->apikey = $user['sabapikey']; + $this->priority = $user['sabpriority']; + $this->apikeytype = $user['sabapikeytype']; } $this->integrated = self::INTEGRATION_TYPE_USER; - switch ((int) $page->userdata['queuetype']) { + switch ((int) $user['queuetype']) { case 1: case 2: $this->integratedBool = true; @@ -133,7 +132,7 @@ class SABnzbd case self::INTEGRATION_TYPE_NONE: $this->integrated = self::INTEGRATION_TYPE_NONE; // This is for nzbget. - if ($page->userdata['queuetype'] === 2) { + if ($user['queuetype'] === 2) { $this->integratedBool = true; } break; diff --git a/Changelog b/Changelog index 543762c5b..41be40fd1 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-03-29 DariusIII + * Chg: Update themes, BasePage and Profile controllers * Chg: Update themes and use ForgottenPasswordController * Chg: Remove login/register pages, use Login/Register controllers completely 2018-03-28 DariusIII diff --git a/app/Http/Controllers/Auth/ForgotPasswordController.php b/app/Http/Controllers/Auth/ForgotPasswordController.php index 4b52379d7..981e11abe 100644 --- a/app/Http/Controllers/Auth/ForgotPasswordController.php +++ b/app/Http/Controllers/Auth/ForgotPasswordController.php @@ -4,7 +4,6 @@ namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Mail\ForgottenPassword; -use App\Mail\PasswordReset; use App\Models\Settings; use App\Models\User; use Illuminate\Foundation\Auth\SendsPasswordResetEmails; @@ -37,68 +36,35 @@ class ForgotPasswordController extends Controller public function showLinkRequestForm() { - $action = request()->input('action') ?? 'view'; - $email = $rssToken = $sent = $confirmed = ''; - - switch ($action) { - case 'reset': - if (! request()->has('guid')) { - app('smarty.view')->assign('error', 'No reset code provided.'); - break; - } - - $ret = User::getByPassResetGuid(request()->input('guid')); - if (! $ret) { - app('smarty.view')->assign('error', 'Bad reset code provided.'); - break; - } - - // - // reset the password, inform the user, send out the email - // - User::updatePassResetGuid($ret['id'], ''); - $newpass = User::generatePassword(); - User::updatePassword($ret['id'], $newpass); - - $to = $ret['email']; - $onscreen = 'Your password has been reset to '.$newpass.' and sent to your e-mail address.'; - Mail::to($to)->send(new PasswordReset($ret['id'], $newpass)); - app('smarty.view')->assign('notice', $onscreen); - $confirmed = true; - break; - - break; - case 'submit': - $email = request()->input('email') ?? ''; - $rssToken = request()->input('apikey') ?? ''; - if (empty($email) && empty($rssToken)) { - app('smarty.view')->assign('error', 'Missing parameter(email and/or apikey to send password reset'); - } else { - // - // Check users exists and send an email - // - $ret = ! empty($rssToken) ? User::getByRssToken($rssToken) : User::getByEmail($email); - if ($ret === null) { - app('smarty.view')->assign('error', 'The email or apikey are not recognised.'); - $sent = true; - break; - } - // - // Generate a forgottenpassword guid, store it in the user table - // - $guid = md5(uniqid('', false)); - User::updatePassResetGuid($ret['id'], $guid); - // - // Send the email - // - $resetLink = request()->server('SERVER_NAME').'/forgottenpassword?action=reset&guid='.$guid; - //Mail::to($ret['email'])->send(new ForgottenPassword($resetLink)); - $sent = true; - break; - } - break; + $sent = ''; + $email = request()->input('email') ?? ''; + $rssToken = request()->input('apikey') ?? ''; + if (empty($email) && empty($rssToken)) { + app('smarty.view')->assign('error', 'Missing parameter(email and/or apikey to send password reset'); + } else { + // + // Check users exists and send an email + // + $ret = ! empty($rssToken) ? User::getByRssToken($rssToken) : User::getByEmail($email); + if ($ret === null) { + app('smarty.view')->assign('error', 'The email or apikey are not recognised.'); + $sent = true; + } + // + // Generate a forgottenpassword guid, store it in the user table + // + $guid = md5(uniqid('', false)); + User::updatePassResetGuid($ret['id'], $guid); + // + // Send the email + // + $resetLink = request()->server('SERVER_NAME').'/forgottenpassword?action=reset&guid='.$guid; + Mail::to($ret['email'])->send(new ForgottenPassword($resetLink)); + $sent = true; } + + $theme = Settings::settingValue('site.main.style'); $title = 'Forgotten Password'; @@ -117,7 +83,6 @@ class ForgotPasswordController extends Controller 'meta_description' => $meta_description, 'email' => $email, 'apikey' => $rssToken, - 'confirmed' => $confirmed, 'sent' => $sent, ] ); diff --git a/app/Http/Controllers/Auth/ResetPasswordController.php b/app/Http/Controllers/Auth/ResetPasswordController.php index 2c863aa6b..77865cc68 100644 --- a/app/Http/Controllers/Auth/ResetPasswordController.php +++ b/app/Http/Controllers/Auth/ResetPasswordController.php @@ -3,7 +3,12 @@ namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; +use App\Mail\PasswordReset; +use App\Models\Settings; +use App\Models\User; use Illuminate\Foundation\Auth\ResetsPasswords; +use Illuminate\Http\Request; +use Illuminate\Support\Facades\Mail; class ResetPasswordController extends Controller { @@ -36,4 +41,51 @@ class ResetPasswordController extends Controller { $this->middleware('guest'); } + + public function reset(Request $request) + { + if (! $request->has('guid')) { + app('smarty.view')->assign('error', 'No reset code provided.'); + } + + $ret = User::getByPassResetGuid($request->input('guid')); + if (! $ret) { + app('smarty.view')->assign('error', 'Bad reset code provided.'); + } + + // + // reset the password, inform the user, send out the email + // + User::updatePassResetGuid($ret['id'], ''); + $newpass = User::generatePassword(); + User::updatePassword($ret['id'], $newpass); + + $to = $ret['email']; + $onscreen = 'Your password has been reset to '.$newpass.' and sent to your e-mail address.'; + Mail::to($to)->send(new PasswordReset($ret['id'], $newpass)); + app('smarty.view')->assign('notice', $onscreen); + $confirmed = true; + + $theme = Settings::settingValue('site.main.style'); + + $title = 'Forgotten Password'; + $meta_title = 'Forgotten Password'; + $meta_keywords = 'forgotten,password,signup,registration'; + $meta_description = 'Forgotten Password'; + + $content = app('smarty.view')->fetch($theme.'/forgottenpassword.tpl'); + + app('smarty.view')->assign( + [ + 'content' => $content, + 'title' => $title, + 'meta_title' => $meta_title, + 'meta_keywords' => $meta_keywords, + 'meta_description' => $meta_description, + 'email' => $ret['email'], + 'confirmed' => $confirmed, + ] + ); + app('smarty.view')->display($theme.'/basepage.tpl'); + } } diff --git a/Blacklight/http/BasePage.php b/app/Http/Controllers/BasePageController.php similarity index 53% rename from Blacklight/http/BasePage.php rename to app/Http/Controllers/BasePageController.php index 0bdd73090..8d3360c4c 100644 --- a/Blacklight/http/BasePage.php +++ b/app/Http/Controllers/BasePageController.php @@ -1,49 +1,36 @@ make(\Illuminate\Contracts\Http\Kernel::class); - - $response = $kernel->handle($request = \Illuminate\Http\Request::capture()); - $response->send(); - $kernel->terminate($request, $response); - + $this->middleware('auth'); // Buffer settings/DB connection. $this->settings = new Settings(); $this->pdo = new DB(); + $this->smarty = app('smarty.view'); - app('smarty.view')->setCompileDir(config('ytake-laravel-smarty.compile_path')); - app('smarty.view')->setConfigDir(array_get(config('ytake-laravel-smarty'), 'config_paths')); - app('smarty.view')->setCacheDir(config('ytake-laravel-smarty.cache_path')); foreach (array_get(config('ytake-laravel-smarty'), 'plugins_paths', []) as $plugins) { - app('smarty.view')->addPluginsDir($plugins); + $this->smarty->addPluginsDir($plugins); } - app('smarty.view')->error_reporting = E_ALL & ~E_NOTICE; + $this->smarty->error_reporting = E_ALL & ~E_NOTICE; - app('smarty.view')->assign('serverroot', url('/')); + $this->smarty->assign('serverroot', url('/')); - $this->page = request()->input('page') ?? 'content'; + } + /** + * @throws \Exception + */ + public function setPrefs() + { if (Auth::check()) { - $this->userdata = User::find(Auth::id()); + $this->userdata = Auth::user(); $this->setUserPreferences(); } else { - $this->theme = $this->getSettingValue('site.main.style'); + $this->theme = Settings::settingValue('site.main.style'); - app('smarty.view')->assign('isadmin', 'false'); - app('smarty.view')->assign('ismod', 'false'); - app('smarty.view')->assign('loggedin', 'false'); + $this->smarty->assign('isadmin', 'false'); + $this->smarty->assign('ismod', 'false'); + $this->smarty->assign('loggedin', 'false'); } if ($this->theme === 'None') { $this->theme = Settings::settingValue('site.main.style'); } - app('smarty.view')->assign('theme', $this->theme); - app('smarty.view')->assign('site', $this->settings); - app('smarty.view')->assign('page', $this); + $this->smarty->assign('theme', $this->theme); + $this->smarty->assign('site', $this->settings); } /** @@ -165,11 +144,13 @@ class BasePage } /** + * @param \Illuminate\Http\Request $request + * * @return bool */ - public function isPostBack() + public function isPostBack(Request $request) { - return request()->isMethod('POST'); + return $request->isMethod('POST'); } /** @@ -177,8 +158,7 @@ class BasePage */ public function show404(): void { - header('HTTP/1.1 404 Not Found'); - die(view('errors.404')); + abort(404); } /** @@ -189,7 +169,7 @@ class BasePage */ public function show403($from_admin = false): void { - header('Location: '.($from_admin ? str_replace('/admin', '', WWW_TOP) : WWW_TOP).'/login?redirect='.urlencode(request()->getRequestUri())); + header('Location: '.($from_admin ? str_replace('/admin', '', WWW_TOP) : WWW_TOP).'/login?redirect='.urlencode($request->getRequestUri())); exit(); } @@ -198,8 +178,7 @@ class BasePage */ public function show503(): void { - header('HTTP/1.1 503 Service Temporarily Unavailable'); - die(view('errors.503')); + abort(503); } /** @@ -224,8 +203,7 @@ class BasePage */ public function showTokenError(): void { - header('HTTP/1.1 419 Token Mismatch Error'); - die(view('errors.tokenError')); + abort(419); } /** @@ -233,30 +211,12 @@ class BasePage */ public function show429($retry = ''): void { - header('HTTP/1.1 429 Too Many Requests'); - if ($retry !== '') { - header('Retry-After: '.$retry); - } - - echo ' - - - Too Many Requests - - - -

Too Many Requests

- -

Wait '.(($retry !== '') ? ceil($retry / 60).' minutes ' : '').'or risk being temporarily banned.

- - - '; - die(); + abort(429); } public function render() { - app('smarty.view')->display($this->page_template); + $this->smarty->display($this->page_template); } /** @@ -282,39 +242,29 @@ class BasePage User::updateSiteAccessed($this->userdata['id']); } - app('smarty.view')->assign('userdata', $this->userdata); - app('smarty.view')->assign('loggedin', 'true'); + $this->smarty->assign('userdata', $this->userdata); + $this->smarty->assign('loggedin', 'true'); if ($this->userdata['nzbvortex_api_key'] !== '' && $this->userdata['nzbvortex_server_url'] !== '') { - app('smarty.view')->assign('weHasVortex', true); + $this->smarty->assign('weHasVortex', true); } else { - app('smarty.view')->assign('weHasVortex', false); + $this->smarty->assign('weHasVortex', false); } - $sab = new SABnzbd($this); - app('smarty.view')->assign('sabintegrated', $sab->integratedBool); + $sab = new SABnzbd(); + $this->smarty->assign('sabintegrated', $sab->integratedBool); if ($sab->integratedBool !== false && $sab->url !== '' && $sab->apikey !== '') { - app('smarty.view')->assign('sabapikeytype', $sab->apikeytype); + $this->smarty->assign('sabapikeytype', $sab->apikeytype); } switch ((int) $this->userdata['user_roles_id']) { case User::ROLE_ADMIN: - app('smarty.view')->assign('isadmin', 'true'); + $this->smarty->assign('isadmin', 'true'); break; case User::ROLE_MODERATOR: - app('smarty.view')->assign('ismod', 'true'); + $this->smarty->assign('ismod', 'true'); } - } - - /** - * Setup user preferences. - * - * - * @throws \Exception - */ - public function setUserPrefs() - { // Tell Smarty which directories to use for templates - app('smarty.view')->setTemplateDir([ + $this->smarty->setTemplateDir([ 'user' => config('ytake-laravel-smarty.template_path').DIRECTORY_SEPARATOR.$this->theme, 'shared' => config('ytake-laravel-smarty.template_path').'/shared', 'default' => config('ytake-laravel-smarty.template_path').'/Gentele', @@ -326,16 +276,16 @@ class BasePage } $content = new Contents(); - app('smarty.view')->assign('menulist', Menu::getMenu($role, $this->serverurl)); - app('smarty.view')->assign('usefulcontentlist', $content->getForMenuByTypeAndRole(Contents::TYPEUSEFUL, $role)); - app('smarty.view')->assign('articlecontentlist', $content->getForMenuByTypeAndRole(Contents::TYPEARTICLE, $role)); + $this->smarty->assign('menulist', Menu::getMenu($role, $this->serverurl)); + $this->smarty->assign('usefulcontentlist', $content->getForMenuByTypeAndRole(Contents::TYPEUSEFUL, $role)); + $this->smarty->assign('articlecontentlist', $content->getForMenuByTypeAndRole(Contents::TYPEARTICLE, $role)); if ($this->userdata !== null) { - app('smarty.view')->assign('recentforumpostslist', Forumpost::getPosts(Settings::settingValue('..showrecentforumposts'))); + $this->smarty->assign('recentforumpostslist', Forumpost::getPosts(Settings::settingValue('..showrecentforumposts'))); } - app('smarty.view')->assign('main_menu', app('smarty.view')->fetch('mainmenu.tpl')); - app('smarty.view')->assign('useful_menu', app('smarty.view')->fetch('usefullinksmenu.tpl')); - app('smarty.view')->assign('article_menu', app('smarty.view')->fetch('articlesmenu.tpl')); + $this->smarty->assign('main_menu', $this->smarty->fetch('mainmenu.tpl')); + $this->smarty->assign('useful_menu', $this->smarty->fetch('usefullinksmenu.tpl')); + $this->smarty->assign('article_menu', $this->smarty->fetch('articlesmenu.tpl')); if (! empty($this->userdata)) { $parentcatlist = Category::getForMenu($this->userdata['categoryexclusions'], $this->userdata['rolecategoryexclusions']); @@ -343,27 +293,22 @@ class BasePage $parentcatlist = Category::getForMenu(); } - app('smarty.view')->assign('parentcatlist', $parentcatlist); - app('smarty.view')->assign('catClass', Category::class); - $searchStr = ''; - if ($this->page === 'search' && request()->has('id')) { - $searchStr = request()->input('id'); - } - app('smarty.view')->assign('header_menu_search', $searchStr); + $this->smarty->assign('parentcatlist', $parentcatlist); + $this->smarty->assign('catClass', Category::class); - if (request()->has('t')) { - app('smarty.view')->assign('header_menu_cat', request()->input('t')); + if (\request()->has('t')) { + $this->smarty->assign('header_menu_cat', \request()->input('t')); } else { - app('smarty.view')->assign('header_menu_cat', ''); + $this->smarty->assign('header_menu_cat', ''); } - $header_menu = app('smarty.view')->fetch('headermenu.tpl'); - app('smarty.view')->assign('header_menu', $header_menu); + $header_menu = $this->smarty->fetch('headermenu.tpl'); + $this->smarty->assign('header_menu', $header_menu); } public function setAdminPrefs() { // Tell Smarty which directories to use for templates - app('smarty.view')->setTemplateDir( + $this->smarty->setTemplateDir( [ 'admin' => config('ytake-laravel-smarty.template_path').'/admin', 'shared' => config('ytake-laravel-smarty.template_path').'/shared', @@ -371,7 +316,7 @@ class BasePage ] ); - app('smarty.view')->assign('catClass', Category::class); + $this->smarty->assign('catClass', Category::class); } /** @@ -379,8 +324,8 @@ class BasePage */ public function pagerender(): void { - app('smarty.view')->assign('page', $this); - $this->page_template = 'basepage.tpl'; + $this->smarty->assign('page', $this); + $this->page_template = $this->theme.'/basepage.tpl'; $this->render(); } @@ -392,10 +337,10 @@ class BasePage */ public function adminrender(): void { - app('smarty.view')->assign('page', $this); + $this->smarty->assign('page', $this); - $admin_menu = app('smarty.view')->fetch('adminmenu.tpl'); - app('smarty.view')->assign('admin_menu', $admin_menu); + $admin_menu = $this->smarty->fetch('adminmenu.tpl'); + $this->smarty->assign('admin_menu', $admin_menu); $this->page_template = 'baseadminpage.tpl'; diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php new file mode 100644 index 000000000..a2dce750f --- /dev/null +++ b/app/Http/Controllers/ProfileController.php @@ -0,0 +1,134 @@ +has('id') && (int) $request->input('id') >= 0) ? (int) $request->input('id') : false; + $altUsername = ($request->has('name') && \strlen($request->input('name')) > 0) ? $request->input('name') : false; + + // If both 'id' and 'name' are specified, 'id' should take precedence. + if ($altID === false && $altUsername !== false) { + $user = User::getByUsername($altUsername); + if ($user) { + $altID = $user['id']; + $userID = $altID; + } + } elseif ($altID !== false) { + $userID = $altID; + $publicView = true; + } + } + + $downloadlist = UserDownload::getDownloadRequestsForUser($userID); + $this->smarty->assign('downloadlist', $downloadlist); + + $data = User::find($userID); + if ($data === null) { + abort(404); + } + + $theme = $this->theme; + + // Check if the user selected a theme. + if (! isset($data['style']) || $data['style'] === 'None') { + $data['style'] = 'Using the admin selected theme.'; + } + + $offset = $request->input('offset') ?? 0; + $this->smarty->assign( + [ + 'apirequests' => UserRequest::getApiRequests($userID), + 'grabstoday' => UserDownload::getDownloadRequests($userID), + 'userinvitedby' => $data['invitedby'] !== '' ? User::find($data['invitedby']) : '', + 'user' => $data, + 'privateprofiles' => $privateProfiles, + 'publicview' => $publicView, + 'privileged' => $privileged, + 'pagertotalitems' => ReleaseComment::getCommentCountForUser($userID), + 'pageroffset' => $offset, + 'pageritemsperpage' => config('nntmux.items_per_page'), + 'pagerquerybase' => '/profile?id='.$userID.'&offset=', + 'pagerquerysuffix' => '#comments', + ] + ); + + $sabApiKeyTypes = [ + SABnzbd::API_TYPE_NZB => 'Nzb Api Key', + SABnzbd::API_TYPE_FULL => 'Full Api Key', + ]; + $sabPriorities = [ + SABnzbd::PRIORITY_FORCE => 'Force', SABnzbd::PRIORITY_HIGH => 'High', + SABnzbd::PRIORITY_NORMAL => 'Normal', SABnzbd::PRIORITY_LOW => 'Low', + ]; + $sabSettings = [1 => 'Site', 2 => 'Cookie']; + +// Pager must be fetched after the variables are assigned to smarty. + $this->smarty->assign( + [ + 'pager' => $this->smarty->fetch($theme.'/pager.tpl'), + 'commentslist' => ReleaseComment::getCommentsForUserRange($userID, $offset, config('nntmux.items_per_page')), + 'exccats' => implode(',', UserExcludedCategory::getCategoryExclusionNames($userID)), + 'saburl' => $sab->url, + 'sabapikey' => $sab->apikey, + 'sabapikeytype' => $sab->apikeytype !== '' ? $sabApiKeyTypes[$sab->apikeytype] : '', + 'sabpriority' => $sab->priority !== '' ? $sabPriorities[$sab->priority] : '', + 'sabsetting' => $sabSettings[$sab->checkCookie() === true ? 2 : 1], + ] + ); + + $meta_title = 'View User Profile'; + $meta_keywords = 'view,profile,user,details'; + $meta_description = 'View User Profile for '.$data['username']; + + $content = $this->smarty->fetch($this->theme.'/profile.tpl'); + + $this->smarty->assign( + [ + 'content' => $content, + 'meta_title' => $meta_title, + 'meta_keywords' => $meta_keywords, + 'meta_description' => $meta_description, + ] + ); + $this->pagerender(); + } +} diff --git a/public/.htaccess b/public/.htaccess index 5333b1040..be8da5267 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,28 +1,33 @@ + RewriteEngine on #RewriteBase / -# Do not process images or CSS files further -RewriteRule \.(css|eot|gif|gz|ico|inc|jpe?g|js|ogg|png|svg|ttf|txt|woff|woff2|xml)$ - [L] + + Options -MultiViews -Indexes + -# Leave /admin static -RewriteRule ^(admin) - [L] + RewriteEngine On + # Do not process images or CSS files further + RewriteRule \.(css|eot|gif|gz|ico|inc|jpe?g|js|ogg|png|svg|ttf|txt|woff|woff2|xml)$ - [L] -# Handle Authorization Header -RewriteCond %{HTTP:Authorization} . -RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + # Leave /admin static + RewriteRule ^(admin) - [L] -# Redirect Trailing Slashes If Not A Folder... -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^(.*)/$ /$1 [L,R=301] + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Handle Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] -# Handle Front Controller... -RewriteCond %{REQUEST_FILENAME} !-d -RewriteCond %{REQUEST_FILENAME} !-f -# Rewrite web pages to one master page -RewriteRule ^([^/\.]+)/?$ index.php?page=$1 [QSA,L] -RewriteRule ^([^/\.]+)/([^/]+)/?$ index.php?page=$1&id=$2 [QSA,L] -RewriteRule ^([^/\.]+)/([^/]+)/([^/]+)/? index.php?page=$1&id=$2&subpage=$3 [QSA,L] # Block MySQL injections, RFI, base64, etc. #RewriteCond %{QUERY_STRING} [a-zA-Z0-9_]=http:// [OR] @@ -54,4 +59,5 @@ RewriteRule ^([^/\.]+)/([^/]+)/([^/]+)/? index.php?page=$1&id=$2&subpage=$3 [QSA #RewriteCond %{QUERY_STRING} union([^a]*a)+ll([^s]*s)+elect [NC,OR] #RewriteCond %{QUERY_STRING} (;|<|>|'|"|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|drop|delete|update|cast|create|char|convert|alter|declare|order|script|set|md5|benchmark|encode) [NC,OR] #RewriteCond %{QUERY_STRING} (sp_executesql) [NC] -#RewriteRule ^(.*)$ - [F,L] \ No newline at end of file +#RewriteRule ^(.*)$ - [F,L] + \ No newline at end of file diff --git a/public/index.php b/public/index.php index 8ae7d11f7..37dee8c09 100644 --- a/public/index.php +++ b/public/index.php @@ -1,77 +1,11 @@ setUserPrefs(); +$kernel = $app->make(\Illuminate\Contracts\Http\Kernel::class); -if ($app->isDownForMaintenance()) { - $page->showMaintenance(); -} - -switch ($page->page) { - case 'ajax_mediainfo': - case 'ajax_mymovies': - case 'ajax_preinfo': - case 'ajax_profile': - case 'ajax_release-admin': - case 'ajax_resetusergrabs-admin': - case 'ajax_rarfilelist': - case 'ajax_titleinfo': - case 'ajax_tvinfo': - case 'anime': - case 'apihelp': - case 'bookmodal': - case 'books': - case 'browse': - case 'browsegroup': - case 'btc_payment': - case 'btc_payment_callback': - case 'cart': - case 'console': - case 'consolemodal': - case 'contact-us': - case 'content': - case 'details': - case 'filelist': - case 'forum': - case 'forumpost': - case 'games': - case 'getimage': - case 'movies': - case 'movie': - case 'music': - case 'musicmodal': - case 'myshows': - case 'mymovies': - case 'mymoviesedit': - case 'nfo': - case 'nzbgetqueuedata': - case 'post_edit': - case 'profile': - case 'profileedit': - case 'profile_delete': - case 'queue': - case 'sabqueuedata': - case 'search': - case 'sendtocouch': - case 'sendtoqueue': - case 'series': - case 'terms-and-conditions': - case 'topic_delete': - case 'upcoming': - case 'xxx': - case 'xxxmodal': - case 'api': - case 'failed': - case 'getnzb': - case 'rss': - include NN_WWW.'pages/'.$page->page.'.php'; - break; - default: - $page->show404(); - break; -} +$response = $kernel->handle($request = \Illuminate\Http\Request::capture()); +$response->send(); +$kernel->terminate($request, $response); diff --git a/public/pages/profile.php b/public/pages/profile.php deleted file mode 100644 index 3e45bc37f..000000000 --- a/public/pages/profile.php +++ /dev/null @@ -1,102 +0,0 @@ -show403(); -} - -$sab = new SABnzbd($page); -$nzbget = new NZBGet($page); - -$userID = Auth::id(); -$privileged = User::isAdmin($userID) || User::isModerator($userID); -$privateProfiles = (int) Settings::settingValue('..privateprofiles') === 1; -$publicView = false; - -if ($privileged || ! $privateProfiles) { - $altID = (request()->has('id') && (int) request()->input('id') >= 0) ? (int) request()->input('id') : false; - $altUsername = (request()->has('name') && strlen(request()->input('name')) > 0) ? request()->input('name') : false; - - // If both 'id' and 'name' are specified, 'id' should take precedence. - if ($altID === false && $altUsername !== false) { - $user = User::getByUsername($altUsername); - if ($user) { - $altID = $user['id']; - $userID = $altID; - } - } elseif ($altID !== false) { - $userID = $altID; - $publicView = true; - } -} - -$downloadlist = UserDownload::getDownloadRequestsForUser($userID); -$page->smarty->assign('downloadlist', $downloadlist); - -$data = User::find($userID); -if (! $data) { - $page->show404(); -} - -// Check if the user selected a theme. -if (! isset($data['style']) || $data['style'] === 'None') { - $data['style'] = 'Using the admin selected theme.'; -} - -$offset = request()->input('offset') ?? 0; -$page->smarty->assign( - [ - 'apirequests' => UserRequest::getApiRequests($userID), - 'grabstoday' => UserDownload::getDownloadRequests($userID), - 'userinvitedby' => $data['invitedby'] !== '' ? User::find($data['invitedby']) : '', - 'user' => $data, - 'privateprofiles' => $privateProfiles, - 'publicview' => $publicView, - 'privileged' => $privileged, - 'pagertotalitems' => ReleaseComment::getCommentCountForUser($userID), - 'pageroffset' => $offset, - 'pageritemsperpage' => config('nntmux.items_per_page'), - 'pagerquerybase' => '/profile?id='.$userID.'&offset=', - 'pagerquerysuffix' => '#comments', - ] -); - -$sabApiKeyTypes = [ - SABnzbd::API_TYPE_NZB => 'Nzb Api Key', - SABnzbd::API_TYPE_FULL => 'Full Api Key', -]; -$sabPriorities = [ - SABnzbd::PRIORITY_FORCE => 'Force', SABnzbd::PRIORITY_HIGH => 'High', - SABnzbd::PRIORITY_NORMAL => 'Normal', SABnzbd::PRIORITY_LOW => 'Low', -]; -$sabSettings = [1 => 'Site', 2 => 'Cookie']; - -// Pager must be fetched after the variables are assigned to smarty. -$page->smarty->assign( - [ - 'pager' => $page->smarty->fetch('pager.tpl'), - 'commentslist' => ReleaseComment::getCommentsForUserRange($userID, $offset, config('nntmux.items_per_page')), - 'exccats' => implode(',', UserExcludedCategory::getCategoryExclusionNames($userID)), - 'saburl' => $sab->url, - 'sabapikey' => $sab->apikey, - 'sabapikeytype' => $sab->apikeytype !== '' ? $sabApiKeyTypes[$sab->apikeytype] : '', - 'sabpriority' => $sab->priority !== '' ? $sabPriorities[$sab->priority] : '', - 'sabsetting' => $sabSettings[$sab->checkCookie() === true ? 2 : 1], - ] -); - -$page->meta_title = 'View User Profile'; -$page->meta_keywords = 'view,profile,user,details'; -$page->meta_description = 'View User Profile for '.$data['username']; - -$page->content = $page->smarty->fetch('profile.tpl'); -$page->pagerender(); diff --git a/resources/views/themes/Gamma/articlesmenu.tpl b/resources/views/themes/Gamma/articlesmenu.tpl deleted file mode 100755 index d1167fce7..000000000 --- a/resources/views/themes/Gamma/articlesmenu.tpl +++ /dev/null @@ -1,9 +0,0 @@ -{if $articlecontentlist|@count > 0} - - {foreach from=$articlecontentlist item=content} -
  • - {$content->title} -
  • - {/foreach} - -{/if} diff --git a/resources/views/themes/Gamma/basepage.tpl b/resources/views/themes/Gamma/basepage.tpl deleted file mode 100755 index 7b0f57ddc..000000000 --- a/resources/views/themes/Gamma/basepage.tpl +++ /dev/null @@ -1,137 +0,0 @@ - - - - - {literal} - - {/literal} - - - metakeywords != ""},{/if}{$site->metakeywords}" /> - metadescription != ""} - {/if}{$site->metadescription}" /> - - - {$meta_title}{if $meta_title != "" && $site->metatitle != ""} - {/if}{$site->metatitle} - - - -{if $loggedin == "true"} - -{/if} - -{if $site->google_adsense_acc != ''} - {{Html::style("http://www.google.com/cse/api/branding.css")}} -{/if} - {{Html::style("{$smarty.const.WWW_ASSETS}/bootstrap-3.x/dist/css/bootstrap.min.css")}} - {{Html::style("{$smarty.const.WWW_ASSETS}/font-awesome/svg-with-js/css/fa-svg-with-js.css")}} - {{Html::style("{$smarty.const.WWW_ASSETS}/{$theme}/styles/extra.css")}} - {{Html::style("{$smarty.const.WWW_ASSETS}/{$theme}/styles/jquery.pnotify.default.css")}} - {{Html::style("{$smarty.const.WWW_ASSETS}/{$theme}/styles/style.css")}} - {{Html::style("{$smarty.const.WWW_ASSETS}/{$theme}/styles/bootstrap.cyborg.css")}} - {{Html::style("{$smarty.const.WWW_ASSETS}/{$theme}/styles/bootstrap-fixes.css")}} - - - - - - - - {{Html::script("{$smarty.const.WWW_ASSETS}/jquery-2.2.x/dist/jquery.min.js")}} - {{Html::script("{$smarty.const.WWW_ASSETS}/jquery-migrate-1.4.x/jquery-migrate.min.js")}} - {{Html::script("{$smarty.const.WWW_ASSETS}/colorbox/jquery.colorbox-min.js")}} - {{Html::script("{$smarty.const.WWW_ASSETS}/js/jquery.qtip2.js")}} - {{Html::script("{$smarty.const.WWW_ASSETS}/autosize/dist/autosize.min.js")}} - {{Html::script("{$smarty.const.WWW_ASSETS}/js/sorttable.js")}} - {{Html::script("{$smarty.const.WWW_ASSETS}/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js")}} - - {{Html::script("{$smarty.const.WWW_ASSETS}/bootstrap-3.x/dist/js/bootstrap.min.js")}} - - {{Html::script("{$smarty.const.WWW_ASSETS}/tinymce-builded/js/tinymce/tinymce.min.js")}} - {{Html::script("{$smarty.const.WWW_ASSETS}/{$theme}/scripts/utils.js")}} - - {{Html::script("{$smarty.const.WWW_ASSETS}/js/jquery.pnotify.js")}} - - - - - {{Html::script("{$smarty.const.WWW_ASSETS}/font-awesome/svg-with-js/js/fa-v4-shims.js")}} - {{Html::script("{$smarty.const.WWW_ASSETS}/font-awesome/svg-with-js/js/fontawesome-all.js")}} - - {$page->head} - -body}> - - - -
    -
    -
    - -
    -
    -
    - -
    -
    - {$content} -
    -
    -
    - {if $loggedin == "true"} - - - {/if} - - diff --git a/resources/views/themes/Gamma/books.tpl b/resources/views/themes/Gamma/books.tpl deleted file mode 100755 index 0891f5fa3..000000000 --- a/resources/views/themes/Gamma/books.tpl +++ /dev/null @@ -1,245 +0,0 @@ -

    Browse Books

    - -
    -
    - {include file='search-filter.tpl'} -
    -
    - -{$site->adbrowse} - -{if $results|@count > 0} - -
    - -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    - View: Covers | List
    -
    -
    - {$pager} -
    -
    - {if isset($section) && $section != ''} -
    - {if isset($isadmin)} - Admin: -
    - - -
    -   - {/if} -
    - {/if} -
    -
    -
    - - - - - - - - - - - - {foreach $results as $result} - - - - - {/foreach} - -
    author
    - - - - - - -
    genre
    - - - - - - -
    posted
    - - - - - - -
    -
    - - {$result.author|escape: - - -
    -
    - {if $result.url != ""}Amazon{/if} - Grp -
    -
    -
    -
    -

    {$result.author|escape:"htmlall"} - {$result.title|escape:"htmlall"}

    - {if $result.review != ""} - - {$result.review|escape:"htmlall"|nl2br|magicurl|truncate:"350":" - - more..."} - {if $result.review|strlen > 350} - {$result.review|escape:"htmlall"|nl2br|magicurl} - {else} - - {/if} -

    - {/if} - - {if $result.publisher != ""}Publisher: {$result.publisher|escape:"htmlall"}
    {/if} - {if $result.publishdate != ""}Published: {$result.publishdate|date_format}
    {/if} - {if $result.pages != ""}Pages: {$result.pages}
    {/if} - {if $result.isbn != ""}ISBN: {$result.isbn}
    {/if} - -
    - - {assign var="msplits" value=","|explode:$result.grp_release_id} - {assign var="mguid" value=","|explode:$result.grp_release_guid} - {assign var="mnfo" value=","|explode:$result.grp_release_nfoid} - {assign var="mgrp" value=","|explode:$result.grp_release_grpname} - {assign var="mname" value="#"|explode:$result.grp_release_name} - {assign var="mpostdate" value=","|explode:$result.grp_release_postdate} - {assign var="msize" value=","|explode:$result.grp_release_size} - {assign var="mtotalparts" value=","|explode:$result.grp_release_totalparts} - {assign var="mcomments" value=","|explode:$result.grp_release_comments} - {assign var="mgrabs" value=","|explode:$result.grp_release_grabs} - {assign var="mpass" value=","|explode:$result.grp_release_password} - {assign var="minnerfiles" value=","|explode:$result.grp_rarinnerfilecount} - {assign var="mhaspreview" value=","|explode:$result.grp_haspreview} - {foreach $msplits as $m} - 1}class="mlextra"{/if}> - - - - - {if $m@index == 1 && $m@total > 2} - - {/if} - {/foreach} -
    -
    -
    - {$mname[$m@index]|escape:"htmlall"}
    -
      -
    • Info:
    • -
    • Posted {$mpostdate[$m@index]|timeago}
    • -
    • {$msize[$m@index]|fsize_format:"MB"}
    • -
    • {$mtotalparts[$m@index]}
    • -
    • {$mcomments[$m@index]}
    • -
    • {$mgrabs[$m@index]}
    • - {if isset($mnfo[$m@index]) && $mnfo[$m@index] > 0} -
    • Nfo
    • - {/if} - {if isset($mpass[$m@index]) && $mpass[$m@index] == 1} -
    • Passworded, {elseif $mpass[$m@index] == 2}Potential Password
    • - {/if} -
    • Grp
    • - {if isset($mhaspreview[$m@index]) && $mhaspreview[$m@index] == 1 && $userdata.canpreview == 1} -
    • Preview
    • - {/if} - - {if isset($minnerfiles[$m@index]) && $minnerfiles[$m@index] > 0} -
    • Media
    • - {/if} - -
    -
    -
      -
    • - -
    • -
    • - - -
    • - {if isset($sabintegrated) && $sabintegrated !=""} -
    • - -
    • - {/if} - {if isset($weHasVortex) && $weHasVortex !=""} -
    • - - - -
    • - {/if} -
    -
    {$m@total-2} more...
    -
    -
    - -{if $results|@count > 10} -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    - View: Covers | List
    -
    -
    - {$pager} -
    -
    - {if isset($section) && $section != ''} -
    - {if isset($isadmin)} - Admin: -
    - - -
    -   - {/if} -
    - {/if} -
    -
    -
    - -{/if} -
    - - -{/if} diff --git a/resources/views/themes/Gamma/browse.tpl b/resources/views/themes/Gamma/browse.tpl deleted file mode 100755 index 51c3691f0..000000000 --- a/resources/views/themes/Gamma/browse.tpl +++ /dev/null @@ -1,286 +0,0 @@ - - -{$site->adbrowse} - -{if isset($shows)} -
    - -
    -
    -{/if} - -{if $results|@count > 0} - -
    - -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    - {if isset($covgroup) && $covgroup != ''}View: - Covers - - | - List -
    - {/if} -
    -
    - {$pager} -
    -
    -
    - Rss - {if isset($isadmin)} - Admin: -
    - - -
    - {/if} - {if isset($section) && $section != ''} - - {/if} -   -
    -
    -
    -
    - - - - - - - - - - - - {foreach $results as $result} - - {if (strpos($category, '60') !== false)} - - {else} - - {/if} - - - - - - - - - - - - {/foreach} -
    - - - NameCategoryPostedSizeFilesGrabsAction
    - {if $result.jpgstatus == 1} - - {else} - {if $result.haspreview == 1} - - {/if} - {/if} - - - {if $result.passwordstatus == 2} - - {elseif $result.passwordstatus == 1} - - {/if} - {if isset($result.nuketype) && $result.nuketype != ''} -  {$result.nuketype} - {/if} -
    -
    {strip} - {if $result.nfoid > 0} - Nfo - {/if} - {if $result.imdbid > 0} - Movie - {/if} - {if $result.jpgstatus == 1&& $userdata.canpreview == 1} - Thumbnail - {else} - {if $result.haspreview == 1 && $userdata.canpreview == 1} - Preview - {/if} - {/if} - {if $result.haspreview == 2 && $userdata.canpreview == 1} - Listen - - {/if} - {if $result.musicinfo_id > 0} - Cover - {/if} - {if $result.consoleinfo_id > 0} - Cover - {/if} - {if $result.bookinfo_id > 0} - Cover - {/if} - {if $result.videos_id > 0} - View Series - {/if} - {if $result.anidbid > 0} - View Anime - {/if} - {if !empty($result.firstaired)} - Aired {if $result.firstaired|strtotime > $smarty.now}in future{else}{$result.firstaired|daysago}{/if} - {/if} - {if $result.videostatus > 0} - Sample - {/if} - {if $result.reid > 0} - Media - {/if} - {if $result.predb_id > 0} - PreDb - {/if} - {if !empty($result.failed)} - {$result.grabs} Grab{if $result.grabs != 1}s{/if} / {$result.failed} Failed Download{if $result.failed != 1}s{/if} - {/if} - {$result.group_name} - {$result.fromname} - {/strip} -
    -
    -
    - {$result.category_name} - {$result.postdate|timeago} - {$result.size|fsize_format:"MB"} - {if $result.completion > 0}
    - {if $result.completion < 100} - {$result.completion}% - {else} - {$result.completion}% - {/if} - {/if} -
    - {$result.totalpart} - - {if $result.rarinnerfilecount > 0} -
    - {$result.guid} -
    - {/if} -
    {$result.grabs} Grab{if $result.grabs != 1}s{/if} -
      -
    • - -
    • -
    • - - -
    • - {if isset($sabintegrated) && $sabintegrated !=""} -
    • - - -
    • - {/if} - {if $weHasVortex} -
    • - - Send to my NZBVortex - -
    • - {/if} -
    -
    - - {if $results|@count > 10} -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    - {if isset($section) && $section != ''}View: - Covers - | - List -
    - {/if} -
    -
    - {$pager} -
    -
    -
    - {if isset($isadmin)} - Admin: -
    - - -
    - {/if} - {if isset($section) && $section != ''} - - {/if} - {if (strpos($category, '60') !== false)} - - {/if} - {if (strpos($category, '20') !== false)} - - {/if} -   -
    -
    -
    -
    - - {/if} - -
    - -{else} -
    - - Sorry! There is nothing here at the moment. -
    -{/if} diff --git a/resources/views/themes/Gamma/browsegroup.tpl b/resources/views/themes/Gamma/browsegroup.tpl deleted file mode 100755 index 23d019298..000000000 --- a/resources/views/themes/Gamma/browsegroup.tpl +++ /dev/null @@ -1,30 +0,0 @@ - -

    Browse Groups

    - - -{$site->adbrowse} - -{if $results|@count > 0} - - - - - - - - - {foreach $results as $result} - - - - - - {/foreach} - -
    NameDescriptionUpdated
    - {$result.name|replace:"alt.binaries":"a.b"} - - {$result.description} - {$result.last_updated|timeago} ago
    - -{/if} diff --git a/resources/views/themes/Gamma/btc_payment.tpl b/resources/views/themes/Gamma/btc_payment.tpl deleted file mode 100644 index 9dc646960..000000000 --- a/resources/views/themes/Gamma/btc_payment.tpl +++ /dev/null @@ -1,29 +0,0 @@ -
    -
    -
    -
    - This page will redirect you to site outside of {$site->title} to make your payment -
    - If, for some reason, your account isn't updated automaticaly, please send us an email or use our contact form to inform us so we can fix the issue.
    -
    -
    -
    - - {foreach $donation as $donate} - - - - - - - - - {/foreach} - -
    {$donate->name} ({$donate->donation}$)
    - - - - -
    -
    \ No newline at end of file diff --git a/resources/views/themes/Gamma/cart.tpl b/resources/views/themes/Gamma/cart.tpl deleted file mode 100755 index 57f7c9c5d..000000000 --- a/resources/views/themes/Gamma/cart.tpl +++ /dev/null @@ -1,52 +0,0 @@ -

    My Download Basket

    - -
    -

    - Your download basket can be downloaded as an RSS Feed. -

    -
    -{if $results|@count > 0} - -
    - -
    -
    - With Selected: -
    - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} - -
    -
    -
    - - - - - - - - - {foreach $results as $result} - - - - - - - {/foreach} - -
    nameaddedoptions
    - - - {$result->release->searchname|escape:"htmlall"|wordwrap:75:"\n":true} - {$result.created_at|date_format}Delete
    -
    - -{else} -
    - -

    Sorry!

    - There are no NZBs in your download basket. -
    -{/if} diff --git a/resources/views/themes/Gamma/console.tpl b/resources/views/themes/Gamma/console.tpl deleted file mode 100755 index 9722d5880..000000000 --- a/resources/views/themes/Gamma/console.tpl +++ /dev/null @@ -1,319 +0,0 @@ -

    Browse Console

    - -
    -
    - {include file='search-filter.tpl'} -
    -
    -{$site->adbrowse} -{if $results|@count > 0} -
    -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""} - - {/if} -
    -
    - View: Covers | List -
    -
    -
    - {$pager} -
    -
    -
    - {if isset($isadmin)} - Admin: -
    - - -
    -   - {/if} -
    -
    -
    -
    - - - - - - - - - - - - - {foreach $results as $result} - - - - - {/foreach} -
    - - title
    - - - - - - -
    platform
    - - - - - - -
    genre
    - - - - - - -
    release date
    - - - - - - -
    posted
    - - - - - - -
    size
    - - - - - - -
    files
    - - - - - - -
    stats
    - - - - - - -
    -
    -
    - {$result.title|escape: -
    -
    - {if $result.url != ""} - Amazon - {/if} -
    -
    -
    -

    {$result.title|escape:"htmlall"} - {$result.platform|escape:"htmlall"}

    - {if !empty($result.genre)}Genre:{$result.genre}
    {/if} - {if !empty($result.esrb)}Rating:{$result.esrb}
    {/if} - {if !empty($result.publisher)}Publisher:{$result.publisher}
    {/if} - {if !empty($result.releasedate)}Released:{$result.releasedate|date_format}
    {/if} - {if !empty($result.review)}Review:{$result.review|escape:'htmlall'}
    {/if} -
    -
    - - {assign var="msplits" value=","|explode:$result.grp_release_id} - {assign var="mguid" value=","|explode:$result.grp_release_guid} - {assign var="mnfo" value=","|explode:$result.grp_release_nfoid} - {assign var="mgrp" value=","|explode:$result.grp_release_grpname} - {assign var="mname" value="#"|explode:$result.grp_release_name} - {assign var="mpostdate" value=","|explode:$result.grp_release_postdate} - {assign var="msize" value=","|explode:$result.grp_release_size} - {assign var="mtotalparts" value=","|explode:$result.grp_release_totalparts} - {assign var="mcomments" value=","|explode:$result.grp_release_comments} - {assign var="mgrabs" value=","|explode:$result.grp_release_grabs} - {assign var="mfailed" value=","|explode:$result.grp_release_failed} - {assign var="mpass" value=","|explode:$result.grp_release_password} - {assign var="minnerfiles" value=","|explode:$result.grp_rarinnerfilecount} - {assign var="mhaspreview" value=","|explode:$result.grp_haspreview} - {foreach $msplits as $m} - 0} class="mlextra"{/if}> - - - - - {if $m@index == 1 && $m@total > 2} - - - - {/if} - {/foreach} -
    -
    -
    - -  {$mname[$m@index]|escape:"htmlall"} - Similar - {if isset($isadmin)} - Edit - Delete - {/if} -
    - -
    -
      -
    • - - -
    • -
    • -
      - - -
      -
    • -
    • - {if isset($sabintegrated) && $sabintegrated !=""} -
      - - -
      - {/if} -
    • -
    • - {if $weHasVortex} -
      - -
      - {/if} -
    • -
    -
    - {$m@total-1} more... -
    -
    -
    -
    - {$pager} - {if $results|@count > 10} -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""} - - {/if} -
    - View: Covers | List
    -
    -
    - {$pager} -
    -
    - {if isset($section) && $section != ''} -
    - {if isset($isadmin)} - Admin: -
    - - -
    -   - {/if} -   -
    - {/if} -
    -
    -
    - {/if} -
    -{else} -
    - - Sorry! Either some amazon key is wrong, or there is nothing in this section. -
    -{/if} diff --git a/resources/views/themes/Gamma/contact.tpl b/resources/views/themes/Gamma/contact.tpl deleted file mode 100755 index 0d1b3d033..000000000 --- a/resources/views/themes/Gamma/contact.tpl +++ /dev/null @@ -1,44 +0,0 @@ -

    {$title}

    -

    Getting in touch

    -{$msg}{* This is a message that appears if a email is sent. *} -{if $msg == ""} - {if $site->email != ''} -

    - Please send any questions or comments you have in an email to {mailto address=$site->email text=$site->title}. -

    -

    - Alternatively use our contact form to get in touch. -

    - {/if} -

    Contact form

    -
    - {{csrf_field()}} - - - - - - - - - - - - - - - - - -
    Your name: - -
    Your email address: - -
    Your comment or review: - -
    - {NoCaptcha::display()}{NoCaptcha::renderJs()} - -
    -
    -{/if} diff --git a/resources/views/themes/Gamma/content.tpl b/resources/views/themes/Gamma/content.tpl deleted file mode 100755 index 1f7361fb3..000000000 --- a/resources/views/themes/Gamma/content.tpl +++ /dev/null @@ -1,35 +0,0 @@ -{if $loggedin == "true"} - {if $smarty.server.REQUEST_URI == "/"} - {foreach from=$content item=c} - {$c->body} - {/foreach} - {else} - {foreach from=$content item=c} -
    -

    Help > {$c->title}

    - -
    - {$c->body} - {/foreach} - {/if} -{else} - {foreach from=$content item=c} - {if $c->role == 0} -
    -

    Help > {$c->title}

    - -
    - {$c->body} - {/if} - {/foreach} -{/if} diff --git a/resources/views/themes/Gamma/forgottenpassword.tpl b/resources/views/themes/Gamma/forgottenpassword.tpl deleted file mode 100755 index cbb512ca5..000000000 --- a/resources/views/themes/Gamma/forgottenpassword.tpl +++ /dev/null @@ -1,49 +0,0 @@ -
    -

    {$title}

    -

    - Please enter the email address you used to register and we will send an email to reset your password. If you cannot remember your email, or no longer have access to it, please contact us. -

    - {if isset($confirmed) && $confirmed == '' && isset($sent) && $sent == ''} -

    -

    - {{csrf_field()}} - - {if isset($error) && $error != ''} -
    - -

    Error!

    - {$error} -
    - {/if} - - - -
    - {NoCaptcha::display()}{NoCaptcha::renderJs()} -
    -
    - -
    -
    -

    - {elseif $sent != ''} -
    - -

    Success!

    - A password reset request has been sent to your email. -
    - {else} -
    - -

    Success!

    - Your password has been reset and sent to you in an email. -
    - {/if} -
    diff --git a/resources/views/themes/Gamma/forum.tpl b/resources/views/themes/Gamma/forum.tpl deleted file mode 100755 index 450f95eca..000000000 --- a/resources/views/themes/Gamma/forum.tpl +++ /dev/null @@ -1,99 +0,0 @@ -

    {if $title !=''}{$title}{else}Forum{/if}

    -{if $results|@count > 0} -
    - {$pager} -
    - - - - - - - - {if isset($isadmin)} - - {/if} - - {foreach $results as $result} - - - - - - - - {/foreach} -
    TopicPosted ByLast UpdateRepliesAction
    - {$result.subject|escape:"htmlall"|truncate:100:'...':true:true} -
    - {$result.message|truncate:200:'...':false:false} -
    - {if $result.locked == 1} - - {/if} -
    -
    {$result.username}
    - {if $result.rolename === 'Admin' || $result.rolename === 'Moderator' || $result.rolename === 'Friend'} - {$result.rolename} - {elseif $result.rolename === 'Supporter'} - {$result.rolename} - {elseif $result.rolename === 'Supporter ++'} - {$result.rolename} - {else} - {$result.rolename} - {/if} -
    - on {$result.created_at|date_format}
    ({$result.created_at|timeago})
    -
    - {$result.updated_at|date_format}
    ({$result.updated_at|timeago})
    -
    {$result.replies} - {if isset($isadmin)} - -
    - {if $result.locked == 0} - Lock Topic - {else} - Unlock Topic - {/if} -
    - {/if} -
    -
    Top
    -
    -
    - {$pager} -
    -{/if} - -


    diff --git a/resources/views/themes/Gamma/forumpost.tpl b/resources/views/themes/Gamma/forumpost.tpl deleted file mode 100755 index 591acc6ab..000000000 --- a/resources/views/themes/Gamma/forumpost.tpl +++ /dev/null @@ -1,67 +0,0 @@ -

    Forum

    -{if $results|@count > 0} -

    {$results[0].subject|escape:"htmlall"}

    - - - - - - - {foreach $results as $result name=result} - - - - - {/foreach} -
    ByMessage
    - {if isset($isadmin) && $isadmin == 1}{/if} -
    {$result.username}
    - {if isset($isadmin) && $isadmin == 1}
    {/if} - {if $result.rolename === 'Admin' || $result.rolename === 'Moderator' || $result.rolename === 'Friend'} - {$result.rolename} - {elseif $result.rolename === 'Supporter'} - {$result.rolename} - {elseif $result.rolename === 'Supporter ++'} - {$result.rolename} - {else} - {$result.rolename} - {/if} -
    - on {$result.created_at|date_format}
    ({$result.created_at|timeago})
    - {if $userdata.id == $result.users_id && $result.locked != 1 || isset($isadmin)} -
    - Edit -
    - {/if} - {if isset($isadmin)} -
    -
    - Delete -
    - {/if} -
    {$result.message}
    - -{/if} diff --git a/resources/views/themes/Gamma/games.tpl b/resources/views/themes/Gamma/games.tpl deleted file mode 100755 index bc0be00d4..000000000 --- a/resources/views/themes/Gamma/games.tpl +++ /dev/null @@ -1,284 +0,0 @@ -

    Browse Games

    -
    -
    - {include file='search-filter.tpl'} -
    -
    -{$site->adbrowse} -{if $results|@count > 0} -
    -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    - View: Covers | List
    -
    -
    - {$pager} -
    -
    -
    - {if isset($isadmin)} - Admin: -
    - - -
    -   - {/if} -
    -
    -
    -
    - - - - - - - - - - - - {foreach $results as $result} - {assign var="msplits" value=","|explode:$result.grp_release_id} - {assign var="mguid" value=","|explode:$result.grp_release_guid} - {assign var="mnfo" value=","|explode:$result.grp_release_nfoid} - {assign var="mgrp" value=","|explode:$result.grp_release_grpname} - {assign var="mname" value="#"|explode:$result.grp_release_name} - {assign var="mpostdate" value=","|explode:$result.grp_release_postdate} - {assign var="msize" value=","|explode:$result.grp_release_size} - {assign var="mtotalparts" value=","|explode:$result.grp_release_totalparts} - {assign var="mcomments" value=","|explode:$result.grp_release_comments} - {assign var="mgrabs" value=","|explode:$result.grp_release_grabs} - {assign var="mfailed" value=","|explode:$result.grp_release_failed} - {assign var="mpass" value=","|explode:$result.grp_release_password} - {assign var="minnerfiles" value=","|explode:$result.grp_rarinnerfilecount} - {assign var="mhaspreview" value=","|explode:$result.grp_haspreview} - {foreach $msplits as $m} - - - - - {/foreach} - {/foreach} -
    - - title
    - - - - - - -
    genre
    - - - - - - -
    release date
    - - - - - - -
    posted
    - - - - - - -
    size
    - - - - - - -
    files
    - - - - - - -
    stats
    - - - - - - -
    -
    - -
    -
    - {if $result.classused == "GiantBomb"} - GiantBomb{/if} - {if $result.classused == "Steam"} - Steam{/if} - {if isset($mnfo[$m@index]) && $mnfo[$m@index] > 0}Nfo{/if} - Grp -
    -
    -
    -
    - - {if isset($result.genre) && $result.genre != ""} - Genre: - {$result.genre} -
    - {/if} - {if isset($result.esrb) && $result.esrb != ""} - Rating: - {$result.esrb} -
    - {/if} - {if isset($result.publisher) && $result.publisher != ""} - Publisher: - {$result.publisher} -
    - {/if} - {if isset($result.releasedate) && $result.releasedate != ""} - Released: - {$result.releasedate|date_format} -
    - {/if} - {if isset($result.review) && $result.review != ""} - Review: - {$result.review|stripslashes|escape:'htmlall'} -
    - {/if} -
    -
    -
    - -
    -
    -
    - {$pager} - {if $results|@count > 10} -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    - View: Covers | List
    -
    -
    - {$pager} -
    -
    - {if isset($section) && $section != ''} -
    - {if isset($isadmin)} - Admin: -
    - - -
    -   - {/if} -   -
    - {/if} -
    -
    -
    - {/if} -
    -{else} -
    - - Sorry! There is nothing in this section. -
    -{/if} diff --git a/resources/views/themes/Gamma/headermenu.tpl b/resources/views/themes/Gamma/headermenu.tpl deleted file mode 100755 index 8ff687845..000000000 --- a/resources/views/themes/Gamma/headermenu.tpl +++ /dev/null @@ -1,188 +0,0 @@ -{if isset($userdata)} - - -{/if} diff --git a/resources/views/themes/Gamma/login.tpl b/resources/views/themes/Gamma/login.tpl deleted file mode 100755 index 437ce2f90..000000000 --- a/resources/views/themes/Gamma/login.tpl +++ /dev/null @@ -1,27 +0,0 @@ -
    -

    Login

    -
    -
    - {{csrf_field()}} - {if isset($redirect)} - - {/if} - - {if $error != ''} -
    - -

    Error!

    - {$error} -
    - {/if} -
    -
    - Remember me - -
    - {NoCaptcha::display()}{NoCaptcha::renderJs()} -
    - -
    -
    -
    diff --git a/resources/views/themes/Gamma/mainmenu.tpl b/resources/views/themes/Gamma/mainmenu.tpl deleted file mode 100755 index f07ff1a8c..000000000 --- a/resources/views/themes/Gamma/mainmenu.tpl +++ /dev/null @@ -1,18 +0,0 @@ -{if $menulist|@count > 0} - - - {foreach from=$menulist item=menu} - {assign var="var" value=$menu.menueval} - {eval var="$var," assign='menuevalresult'} - {if $menuevalresult|replace:",":"1" == "1"} - {if $menu.title == "Movie releases"}{/if} - {if $menu.title == "TV Releases"}{/if} - {if $menu.title == "Music releases"}{/if} - {if $menu.title == "Console"}{/if} -
  • - {$menu.title} -
  • - {/if} - {/foreach} - -{/if} diff --git a/resources/views/themes/Gamma/movies.tpl b/resources/views/themes/Gamma/movies.tpl deleted file mode 100755 index 687e6266d..000000000 --- a/resources/views/themes/Gamma/movies.tpl +++ /dev/null @@ -1,250 +0,0 @@ -

    Browse {$catname}

    - -
    -
    - {include file='search-filter.tpl'} -
    -
    - -{$site->adbrowse} - -{if $results|@count > 0} - -
    -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    - View: Covers | List
    -
    -
    - {$pager} -
    -
    -
    - {if isset($isadmin)} - Admin: -
    - - -
    -   - {/if} -
    -
    -
    -
    - - - - - - - - - - - - {foreach $results as $result} - - - - - {/foreach} -
    - - title
    - - - - - - -
    year
    - - - - - - -
    rating
    - - - - - - -
    -
    - - {$result.title|escape: - -
    -
    - Cover - Trakt - Imdb -
    -
    -
    -
    -

    {$result.title|escape:"htmlall"} ({$result.year}) - {if $result.rating != ''}{$result.rating}/10{/if} - Add

    - - {if isset($result.tagline)&& $result.tagline != ''} - {$result.tagline} -
    - {/if} - - {if isset($result.plot) && $result.plot != ''} - {$result.plot}
    -
    - {/if} - - {if isset($result.genre) && $result.genre != ''} - Genre: {$result.genre} -
    - {/if} - - {if isset($result.director) && $result.director != ''} - Director: {$result.director} -
    - {/if} - - {if isset($result.actors) && $result.actors != ''} - Starring: {$result.actors} -

    - {/if} - -
    - - {assign var="msplits" value=","|explode:$result.grp_release_id} - {assign var="mguid" value=","|explode:$result.grp_release_guid} - {assign var="mnfo" value=","|explode:$result.grp_release_nfoid} - {assign var="mgrp" value=","|explode:$result.grp_release_grpname} - {assign var="mname" value="#"|explode:$result.grp_release_name} - {assign var="mpostdate" value=","|explode:$result.grp_release_postdate} - {assign var="msize" value=","|explode:$result.grp_release_size} - {assign var="mtotalparts" value=","|explode:$result.grp_release_totalparts} - {assign var="mcomments" value=","|explode:$result.grp_release_comments} - {assign var="mgrabs" value=","|explode:$result.grp_release_grabs} - {assign var="mpass" value=","|explode:$result.grp_release_password} - {assign var="minnerfiles" value=","|explode:$result.grp_rarinnerfilecount} - {assign var="mhaspreview" value=","|explode:$result.grp_haspreview} - {foreach $msplits as $m} - 0}class="mlextra"{/if}> - - - - - {if $m@index == 1 && $m@total > 2} - - - - {/if} - {/foreach} -
    -
    -
    -  {$mname[$m@index]|escape:"htmlall"} -
      -
    • Posted {$mpostdate[$m@index]|timeago}
    • -
    • {$msize[$m@index]|fsize_format:"MB"}
    • -
    • {$mtotalparts[$m@index]}
    • -
    • {$mcomments[$m@index]}
    • -
    • {$mgrabs[$m@index]}
    • -
    • {if isset($mnfo[$m@index]) && $mnfo[$m@index] > 0}{/if}
    • -
    • -
    • {if $mhaspreview[$m@index] == 1 && $userdata.canpreview == 1}Preview{/if}
    • -
    • {if $mhaspreview[$m@index]}Media{/if}
    • -
    -
    -
      -
    • - -
    • -
    • - - -
    • - {if isset($sabintegrated) && $sabintegrated !=""} -
    • - -
    • - {/if} - {if !empty($cpurl) && !empty($cpapi)} -
    • - - -
    • - {/if} - {if $weHasVortex} -
    • - - - -
    • - {/if} -
    -
    - {$m@total-2} more... -
    -
    -
    - {if $results|@count > 10} -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    - View: Covers | List
    -
    -
    - {$pager} -
    -
    -
    - {if isset($isadmin)} - Admin: -
    - - -
    -   - {/if} -
    -
    -
    -
    - {/if} -
    -{/if} diff --git a/resources/views/themes/Gamma/multi-operations.tpl b/resources/views/themes/Gamma/multi-operations.tpl deleted file mode 100755 index c3bc9cb28..000000000 --- a/resources/views/themes/Gamma/multi-operations.tpl +++ /dev/null @@ -1,11 +0,0 @@ -
    - {$pager} -
    - With Selected: - - - {if isset($sabintegrated) && $sabintegrated !=""} - - {/if} -
    -
    diff --git a/resources/views/themes/Gamma/music.tpl b/resources/views/themes/Gamma/music.tpl deleted file mode 100755 index 2c46602cc..000000000 --- a/resources/views/themes/Gamma/music.tpl +++ /dev/null @@ -1,243 +0,0 @@ -

    Browse {$catname}

    - -
    -
    - {include file='search-filter.tpl'} -
    -
    - -{$site->adbrowse} - -{if $results|@count > 0} - -
    -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    - View: Covers | List
    -
    -
    - {$pager} -
    -
    -
    - {if isset($isadmin)} - Admin: -
    - - -
    -   - {/if} -
    -
    -
    -
    - - - - - - - - - - - - - - {foreach $results as $result} - - - - - {/foreach} -
    - - artist
    - - - - - - -
    year
    - - - - - - -
    genre
    - - - - - - -
    posted
    - - - - - - -
    size
    - - - - - - -
    files
    - - - - - - -
    stats
    - - - - - - -
    -
    - {$result.title|escape: -
    -
    - {if $result.nfoid > 0}Nfo{/if} - {if $result.url != ""}Amazon{/if} - Grp -
    -
    -
    -
    -

    - {$result.artist}{" - "}{$result.title} -

    - {if !empty($result.genre)}Genre: {$result.genre|escape:"htmlall"}
    {/if} - {if !empty($result.publisher)}Publisher: {$result.publisher|escape:"htmlall"}
    {/if} - {if !empty($result.releasedate)}Released: {$result.releasedate|date_format}
    {/if} - {if isset($result.haspreview) && $result.haspreview == 2 && $userdata.canpreview == 1}Preview: Listen{/if} -
    - - {assign var="msplits" value=","|explode:$result.grp_release_id} - {assign var="mguid" value=","|explode:$result.grp_release_guid} - {assign var="mnfo" value=","|explode:$result.grp_release_nfoid} - {assign var="mgrp" value=","|explode:$result.grp_release_grpname} - {assign var="mname" value="#"|explode:$result.grp_release_name} - {assign var="mpostdate" value=","|explode:$result.grp_release_postdate} - {assign var="msize" value=","|explode:$result.grp_release_size} - {assign var="mtotalparts" value=","|explode:$result.grp_release_totalparts} - {assign var="mcomments" value=","|explode:$result.grp_release_comments} - {assign var="mgrabs" value=","|explode:$result.grp_release_grabs} - {assign var="mpass" value=","|explode:$result.grp_release_password} - {assign var="minnerfiles" value=","|explode:$result.grp_rarinnerfilecount} - {assign var="mhaspreview" value=","|explode:$result.grp_haspreview} - {foreach $msplits as $m} - 0}class="mlextra"{/if}> - - - - - {if $m@index == 1 && $m@total > 2} - - - - {/if} - {/foreach} -
    -
    -
    - {$mname[$m@index]|escape:"htmlall"} - - -
      -
    • - -
    • -
    • - - -
    • - {if isset($sabintegrated) && $sabintegrated !=""} -
    • - -
    • - {/if} - {if $weHasVortex} -
    • - - - -
    • - {/if} -
    -
    - {$m@total-1} more... -
    -
    -
    - {if $results|@count > 10} -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    - View: Covers | List
    -
    -
    - {$pager} -
    -
    -
    - {if isset($isadmin)} - Admin: -
    - - -
    -   - {/if} -
    -
    -
    -
    - {/if} -
    -{/if} diff --git a/resources/views/themes/Gamma/mymovies-add.tpl b/resources/views/themes/Gamma/mymovies-add.tpl deleted file mode 100644 index b028e73f1..000000000 --- a/resources/views/themes/Gamma/mymovies-add.tpl +++ /dev/null @@ -1,20 +0,0 @@ - -

    {$type|ucwords} {$movie.title|escape:"htmlall"} in

    -
    - -
    - -
    - {if $from}{/if} - {html_checkboxes id="category" name='category' values=$cat_ids output=$cat_names selected=$cat_selected separator=''} -
    -
    -
    - -
    - -
    -
    -
    diff --git a/resources/views/themes/Gamma/mymovies.tpl b/resources/views/themes/Gamma/mymovies.tpl deleted file mode 100755 index bf5e27137..000000000 --- a/resources/views/themes/Gamma/mymovies.tpl +++ /dev/null @@ -1,54 +0,0 @@ -

    {$title}

    -
    - -
    -
    -{if $movies|@count > 0} - - - - - - - - - {foreach $movies as $movie} - - - - - - - - {/foreach} -
    namecategoryaddedoptions
    -
    - {$movie.title|escape: -
    -
    - Imdb -
    -
    -
    -
    -

    {$movie.title|escape:"htmlall"} ({$movie.year})

    - {if isset($movie.tagline) && $movie.tagline != ''}{$movie.tagline}
    {/if} - {if isset($movie.plot) && $movie.plot != ''}{$movie.plot}

    {/if} - {if isset($movie.genre) && $movie.genre != ''}Genre: {$movie.genre}
    {/if} - {if isset($movie.director) && $movie.director != ''}Director: {$movie.director}
    {/if} - {if isset($movie.actors) && $movie.actors != ''}Starring: {$movie.actors}

    {/if} -
    {if $movie.categoryNames != ''}{$movie.categoryNames|escape:"htmlall"}{else}All{/if}{$movie.created_at|date_format} -
    - Edit   - Remove -
    -
    -{else} -
    - - Sorry! No movies bookmarked -
    -{/if} diff --git a/resources/views/themes/Gamma/myshows-add.tpl b/resources/views/themes/Gamma/myshows-add.tpl deleted file mode 100755 index 0e94c28ce..000000000 --- a/resources/views/themes/Gamma/myshows-add.tpl +++ /dev/null @@ -1,20 +0,0 @@ - -

    {$type|ucwords} {$show.title|escape:"htmlall"} in

    -
    - -
    - -
    - {if $from}{/if} - {html_checkboxes id="category" name='category' values=$cat_ids output=$cat_names selected=$cat_selected separator=''} -
    -
    -
    - -
    - -
    -
    -
    diff --git a/resources/views/themes/Gamma/myshows.tpl b/resources/views/themes/Gamma/myshows.tpl deleted file mode 100755 index 069afaf63..000000000 --- a/resources/views/themes/Gamma/myshows.tpl +++ /dev/null @@ -1,39 +0,0 @@ -

    {$title}

    -
    - -
    -
    -{if $shows|@count > 0} - - - - - - - - {foreach $shows as $show} - - - - - - - {/foreach} -
    namecategoryaddedoptions
    -
    {$show.title|escape:"htmlall"|wordwrap:75:"\n":true}
    -
    {if $show.categoryNames != ''}{$show.categoryNames|escape:"htmlall"}{else}All{/if}{$show.created_at|date_format} -
    - Edit   - Remove -
    -
    -{else} -
    - - Sorry! No shows bookmarked -
    -{/if} diff --git a/resources/views/themes/Gamma/nzbvortex-ajax.tpl b/resources/views/themes/Gamma/nzbvortex-ajax.tpl deleted file mode 100755 index b8041bd3b..000000000 --- a/resources/views/themes/Gamma/nzbvortex-ajax.tpl +++ /dev/null @@ -1,59 +0,0 @@ -{if $overview['nzbs']|@count gt 0} - {foreach from=$overview['nzbs'] item=nzb} -
    - -
    - {$nzb['uiTitle']} -
    -
    - {if $nzb['isPaused'] == 1} - - {else} - - {/if} -
    -
    -
    -
    -
    - {$nzb['state']}{if $nzb['statusText'] neq ''} ({$nzb['statusText']|lower}){/if}: {$nzb['progress']|round} - % of {math|string_format:"%.2f" equation="size / 1024 / 1024" size=$nzb['totalDownloadSize']} - MB {if $nzb['transferedSpeed'] neq 0}@ {math|string_format:"%.2f" equation="size / 1024 / 1024" size=$nzb['transferedSpeed']} MB/s{/if} -
    -
    - {if $nzb['isPaused'] == 1} - - {else} - - {/if} - -
    -
    - - - - - -
    -
    -
    -
    -
    - {/foreach} -{else} -
    - Nothing in queue, go ahead and add something! -
    -{/if} diff --git a/resources/views/themes/Gamma/nzbvortex.tpl b/resources/views/themes/Gamma/nzbvortex.tpl deleted file mode 100755 index fea96dc41..000000000 --- a/resources/views/themes/Gamma/nzbvortex.tpl +++ /dev/null @@ -1,38 +0,0 @@ -
    -

    NZBVortex > Queue

    - -
    -{if $weHasVortex} - -
    -
    -{literal} - -{/literal} -{else} -

    Make sure you've entered API key and server URL under profile settings.

    -{/if} \ No newline at end of file diff --git a/resources/views/themes/Gamma/opensearch.tpl b/resources/views/themes/Gamma/opensearch.tpl deleted file mode 100755 index bedfe166a..000000000 --- a/resources/views/themes/Gamma/opensearch.tpl +++ /dev/null @@ -1,13 +0,0 @@ - - {$site->title|escape} - {$site->title|escape} Search Facility - - {$site->email} - {$smarty.const.WWW_ASSETS}/images/favicon.ico - newznab.com - UTF-8 - {$smarty.const.WWW_TOP}/ - {$smarty.const.WWW_TOP}/opensearch - {$smarty.const.WWW_ASSETS}/images/favicon.ico - 7 - diff --git a/resources/views/themes/Gamma/post_edit.tpl b/resources/views/themes/Gamma/post_edit.tpl deleted file mode 100644 index ca1d2b8e3..000000000 --- a/resources/views/themes/Gamma/post_edit.tpl +++ /dev/null @@ -1,21 +0,0 @@ -
    - -
    diff --git a/resources/views/themes/Gamma/profile.tpl b/resources/views/themes/Gamma/profile.tpl deleted file mode 100755 index c766c5987..000000000 --- a/resources/views/themes/Gamma/profile.tpl +++ /dev/null @@ -1,186 +0,0 @@ -
    - - - - - - - {if !$publicview || isset($isadmin)} - - - - - {/if} - - - - - - - - - - - - - {if !empty($user.rolechangedate)} - - - - - {/if} - {if isset($isadmin) || !$publicview} - - - - - {/if} - {if !$publicview || isset($isadmin)} - - - - - {/if} - {if !$publicview || isset($isadmin)} - - - - - - - - - {/if} - - - - - {if (!$publicview || isset($isadmin)) && $site->registerstatus == 1} - - - - - {if $user.invites > 0} - - - - - {/if} - {if $userinvitedby && $userinvitedby.username != ""} - - - - - {/if} - - - - - - - - - {if !$publicview || isset($isadmin)} - - - - - {/if} - {if $site->integrationtype == 2 && !$publicview} - - - - - {/if} - {if !$publicview} - - - - - - - - - {/if} -
    Username:{$user.username|escape:"htmlall"}
    Email:{$user.email}
    Registered:{$user.created_at|date_format} ({$user.created_at|timeago} ago)
    Last Login:{$user.lastlogin|date_format} ({$user.lastlogin|timeago} ago)
    Role:{$user->role->name}
    Role expiration date{$user.rolechangedate|date_format:"%A, %B %e, %Y"}
    Notes:{$user.notes|escape:htmlall}{if $user.notes|count_characters > 0}
    {/if}{if isset($isadmin)}Add/Edit{/if}
    Site Api/Rss Key:{$user.rsstoken}
    API Hits Today:{$apirequests} {if isset($isadmin) && $apirequests > 0}   Reset{/if}
    Grabs Today:{$grabstoday} {if $user.grabs >= $user->role->downloadrequests}  (Next DL in {($grabstoday.nextdl/3600)|intval}h {($grabstoday.nextdl/60) % 60}m){/if}{if isset($isadmin) && $user.grabs> 0}   Reset{/if}
    Grabs Total:{$user.grabs}
    Invites{$user.invites}
    Invite someone - Send Invite - - - {/if} -
    Invited By:{$userinvitedby.username}
    UI Preferences:
    Theme:{$user.style}
    - {if $user.movieview == "1"}View movie covers{else}View standard movie category{/if}
    - {if $user.musicview == "1"}View music covers{else}View standard music category{/if}
    - {if $user.consoleview == "1"}View console covers{else}View standard console category{/if}
    - {if $user.gameview == "1"}View games covers{else}View standard games category{/if}
    - {if $user.bookview == "1"}View book covers{else}View standard book category{/if}
    - {if $user.xxxview == "1"}View xxx covers{else}View standard xxx category{/if}
    -
    Excluded Categories:{$exccats|replace:",":"
    "}
    SABnzbd Integration: - Url: {if $saburl == ''}N/A{else}{$saburl}{/if}
    - Key: {if $sabapikey == ''}N/A{else}{$sabapikey}{/if}
    - Type: {if $sabapikeytype == ''}N/A{else}{$sabapikeytype}{/if}
    - Priority: {if $sabpriority == ''}N/A{else}{$sabpriority}{/if}
    - Storage: {if $sabsetting == ''}N/A{else}{$sabsetting}{/if} -
    My TV Shows:Manage my shows
    My Movies:Manage my movies
    -{if isset($isadmin) && $downloadlist|@count > 0} -
    -

    Downloads for User and Host

    - - - - - - - {foreach $downloadlist as $download} - {if $download@iteration == 10} - - - - {/if} - = 10}class="extra" style="display:none;"{/if}> - - - - - {/foreach} -
    datehosthashrelease
    show all...
    {$download.timestamp|date_format}{if $download.hosthash == ""}n/a{else}{$download.hosthash|truncate:10}{/if}{if $download->release->guid == ""}n/a{else}{$download->release->searchname}{/if}
    -
    -{/if} - -{if $commentslist|@count > 0} -
    - -

    Comments

    - {$pager} - - - - - - - {foreach from=$commentslist item=comment} - - - - - - {/foreach} -
    datereleasecomment
    {$comment.created_at|date_format}{$comment.searchname}{$comment.text|escape:"htmlall"|nl2br}
    -
    -{/if} -
    diff --git a/resources/views/themes/Gamma/profileedit.tpl b/resources/views/themes/Gamma/profileedit.tpl deleted file mode 100755 index 8129e3b75..000000000 --- a/resources/views/themes/Gamma/profileedit.tpl +++ /dev/null @@ -1,217 +0,0 @@ - - -{if $error != ''} -
    - Error! - {$error} -
    -{/if} - -
    - {{csrf_field()}} -
    -
    - -
    - {$user.username|escape:"htmlall"} -
    -
    - -
    - -
    - -
    -
    - -
    - -
    - - Only enter your password if you want to change it. -
    -
    - -
    - -
    - -
    -
    - -
    - -
    - {$user.rsstoken}
    Generate -
    -
    -
    - -
    - Site Preferences - - {if {{App\Models\Settings::settingValue('site.main.userselstyle')}} == 1} -
    - -
    - {if {{App\Models\Settings::settingValue('site.main.userselstyle')}} == 1} - {html_options id="style" name='style' values=$themelist output=$themelist selected=$user.style} - {/if} -
    -
    - {/if} -
    - -
    - - Browse movie covers. Only shows movies with known IMDB info. -
    -
    -
    - -
    - - Browse music covers. Only shows music with known lookup info. -
    -
    -
    - -
    - - Browse console covers. Only shows games with known lookup info. -
    -
    -
    - -
    - - Browse games covers. Only shows games with known lookup info. -
    -
    -
    - -
    - - Browse book covers. Only shows books with known lookup info. -
    -
    -
    - -
    - - Browse XXX covers. Only shows XXX releases with known lookup info. -
    -
    -
    - -
    - {html_options id="exclu" class="input input-xxlarge" style="height:305px;" multiple=multiple name="exccat[]" options=$catlist selected=$userexccat} - Use Ctrl and click to exclude multiple categories. -
    -
    -
    - {if {{App\Models\Settings::settingValue('apps.sabnzbplus.integrationtype')}} > 0} - {if {{App\Models\Settings::settingValue('apps.sabnzbplus.integrationtype')}} != 1} - Queue type (NZBget / Sabnzbd) -
    - -
    - {html_options id="queuetypeids" name='queuetypeids' values=$queuetypeids output=$queuetypes selected=$user.queuetype} -
    -
    - {/if} -
    - SABnzbd Integration -
    - -
    - - The url of the SAB installation, for example: http://localhost:8080/sabnzbd/ -
    -
    -
    - -
    - - The api key of the SAB installation. Can be the full api key or the nzb api key (as of SAB 0.6) -
    -
    -
    - -
    - {html_radios id="sabapikeytype" name='sabapikeytype' values=$sabapikeytype_ids output=$sabapikeytype_names selected=$sabapikeytype_selected separator=''} - Select the type of api key you entered in the above setting. Using your full SAB api key will allow you access to the SAB queue from within this site. -
    -
    -
    - -
    - {html_options id="sabpriority" class="form-control" name='sabpriority' values=$sabpriority_ids output=$sabpriority_names selected=$sabpriority_selected} - Set the priority level for NZBs that are added to your queue -
    -
    -
    - -
    - {html_radios id="sabsetting" name='sabsetting' values=$sabsetting_ids output=$sabsetting_names selected=$sabsetting_selected separator='  '}{if $sabsetting_selected == 2}  [Clear Cookies]{/if} - Where to store the SAB setting.
    Cookie will store the setting in your browsers coookies and will only work when using your current browser.
    Site will store the setting in your user account enabling it to work no matter where you are logged in from.
    Please Note: You should only store your full SAB api key with sites you trust.
    -
    -
    -
    -
    - NZBGet Integration -
    - -
    - -
    The url of the NZBGet installation, for example: http://localhost:6789/
    -
    -
    -
    - -
    - -
    The NZBGet ControlUsername e.g. nzbget
    -
    -
    -
    - -
    - -
    The NZBGet ControlPassword e.g. tegbzn6789
    -
    -
    -
    - {/if} -
    - CouchPotato Integration -
    - -
    - -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - diff --git a/resources/views/themes/Gamma/recentforumposts.tpl b/resources/views/themes/Gamma/recentforumposts.tpl deleted file mode 100755 index 1ea10092a..000000000 --- a/resources/views/themes/Gamma/recentforumposts.tpl +++ /dev/null @@ -1,9 +0,0 @@ -{if $recentforumpostslist|@count > 0} - - {foreach $recentforumpostslist as $content} -
  • - {$content.subject|escape:htmlall} -
  • - {/foreach} - -{/if} diff --git a/resources/views/themes/Gamma/register.tpl b/resources/views/themes/Gamma/register.tpl deleted file mode 100755 index 449749d94..000000000 --- a/resources/views/themes/Gamma/register.tpl +++ /dev/null @@ -1,42 +0,0 @@ -{if $showregister != "0"} -
    -

    Register


    -

    - Enter you information below, all the fields are required. -

    -
    - {{csrf_field()}} - - - {if $error != ''} -
    - -

    Error!

    - {$error} -
    - {/if} - - - - - - {NoCaptcha::display()}{NoCaptcha::renderJs()} - -
    -
    -{else} -
    -

    Register


    - Registration is currently disabled, please check back again later.
    -{/if} -
    diff --git a/resources/views/themes/Gamma/search.tpl b/resources/views/themes/Gamma/search.tpl deleted file mode 100755 index e41ebf945..000000000 --- a/resources/views/themes/Gamma/search.tpl +++ /dev/null @@ -1,334 +0,0 @@ -

    Search

    -
    - -
    -
    {$search_description}
    -
    - - -
    -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
    - -
    {html_options class="searchadvbtns" id="searchadvgroups" name="searchadvgroups" options=$grouplist selected=$selectedgroup}
    {html_options class="searchadvbtns" id="searchadvcat" name="searchadvcat" options=$catlist selected=$selectedcat}
    - {html_options id="searchadvsizefrom" name="searchadvsizefrom" options=$sizelist selected=$selectedsizefrom} - {html_options id="searchadvsizeto" name="searchadvsizeto" options=$sizelist selected=$selectedsizeto} -
    - - - - -
    -
    - - -
    -
    -
    -
    -
    - -{if $results|@count == 0 && $search != ""} -
    -

    No result!

    - Your search - {$search|escape:'htmlall'} - did not match any releases. -

    - Suggestions: -

    -
      -
    • Make sure all words are spelled correctly.
    • -
    • Try different keywords.
    • -
    • Try more general keywords.
    • -
    • Try fewer keywords.
    • -
    -
    -{elseif ($search || $subject || $searchadvr || $searchadvsubject || $selectedgroup || $selectedsizefrom || $searchadvdaysold) == ""} -{else} - -{$site->adbrowse} - -
    - - -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    -
    -
    - {$pager} -
    -
    -
    - {if isset($isadmin)} - Admin: -
    - - -
    -   - {/if} -
    -
    -
    -
    - - - - - - - - - - - - - - {foreach $results as $result} - - {if (strpos($category[0], '60') !== false)} - - {else} - - {/if} - - - - - - - - - {/foreach} - -
    - - - NameCategoryPostedSizeFilesGrabsAction
    - {if $result.jpgstatus == 1} - - {else} - {if $result.haspreview == 1} - - {/if} - {/if} - - - {if $result.passwordstatus == 2} - - {elseif $result.passwordstatus == 1} - - {/if} - {if isset($result.nuketype) && $result.nuketype != ''} -  {$result.nuketype} - {/if} -
    -
    {strip} - {if $result.nfoid > 0} - Nfo - {/if} - {if $result.imdbid > 0} - Movie - {/if} - {if $result.haspreview == 1 && $userdata.canpreview == 1} - Preview - {/if} - {if $result.haspreview == 2 && $userdata.canpreview == 1} - Listen - - {/if} - {if $result.musicinfo_id > 0} - Cover - {/if} - {if $result.consoleinfo_id > 0} - Cover{/if} - {if $result.bookinfo_id > 0} - Cover - {/if} - {if $result.videos_id > 0} - View Series - {/if} - {if $result.anidbid > 0} - View Anime - {/if} - {if isset($result.firstaired) && $result.firstaired != ''} - Aired {if $result.firstaired|strtotime > $smarty.now}in future{else}{$result.firstaired|daysago}{/if} - - {/if} - {if $result.videostatus > 0} -  Sample - {/if} - {if $result.reid > 0} - Media - {/if} - {/strip} -
    -
    -
    - {$result.category_name} - {$result.postdate|timeago} - {$result.size|fsize_format:"MB"} - {if $result.completion > 0}
    - {if $result.completion < 100} - {$result.completion}% - {else} - {$result.completion}% - {/if} - {/if} -
    - {$result.totalpart} - {$result.grabs} Grab{if $result.grabs != 1}s{/if} -
      -
    • - -
    • -
    • - - -
    • - {if isset($sabintegrated) && $sabintegrated !=""} -
    • - - -
    • - {/if} - {if $weHasVortex} -
    • - - Send to my NZBVortex - -
    • - {/if} -
    -
    -
    -{if $results|@count > 10} -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    -
    -
    - {$pager} -
    -
    - {if isset($isadmin)} -
    - Admin: -
    - - -
    -   -
    - {/if} -
    -
    -
    -{/if} -
    -{/if} diff --git a/resources/views/themes/Gamma/searchraw.tpl b/resources/views/themes/Gamma/searchraw.tpl deleted file mode 100755 index 494ea6019..000000000 --- a/resources/views/themes/Gamma/searchraw.tpl +++ /dev/null @@ -1,81 +0,0 @@ - - - - -{if $results|@count == 0 && $search != ""} -
    - Your search - {$search|escape:'htmlall'} - did not match any headers. -

    - Suggestions: -

    -
      -
    • Make sure all words are spelled correctly.
    • -
    • Try different keywords.
    • -
    • Try more general keywords.
    • -
    • Try fewer keywords.
    • -
    -
    -{elseif $search == ""} -{else} - -{$site->adbrowse} - -
    - - - - - - - {if isset($isadmin)} - - - {/if} - - - - {foreach $results as $result} - - - - - - {if isset($isadmin)} - - - {/if} - - - {/foreach} - -
    filenamegrouppostedMisc%Nzb
    {$result.name|escape:"htmlall"}{$result.group_name|replace:"alt.binaries":"a.b"}{$result.date|date_format}{$result.procstat}/{$result.totalParts}/{$result.relpart}/{$result.reltotalpart}{if $result.binnum < $result.totalParts}{$result.binnum}/{$result.totalParts}{else}100%{/if}{if $result.releases_id > 0}Yes{/if}
    -
    - - -{/if} diff --git a/resources/views/themes/Gamma/sitemap-xml.tpl b/resources/views/themes/Gamma/sitemap-xml.tpl deleted file mode 100755 index b3faf2e31..000000000 --- a/resources/views/themes/Gamma/sitemap-xml.tpl +++ /dev/null @@ -1,10 +0,0 @@ - - -{foreach $sitemaps as $sitemap} - - {$scheme}{$smarty.server.SERVER_NAME}{$port}{$sitemap->loc} - {$sitemap->priority} - {$sitemap->changefreq} - -{/foreach} - diff --git a/resources/views/themes/Gamma/sitemap.tpl b/resources/views/themes/Gamma/sitemap.tpl deleted file mode 100755 index 95f021964..000000000 --- a/resources/views/themes/Gamma/sitemap.tpl +++ /dev/null @@ -1,25 +0,0 @@ - - -{foreach $sitemaps as $sitemap} - {if $last_type != $sitemap->type} - {assign var=last_type value=$sitemap->type} - - - - - - - - - -{/foreach} -
      
    - {$sitemap->type} \ - {else} -
    - {/if} - - {$sitemap->name} -
    diff --git a/resources/views/themes/Gamma/terms.tpl b/resources/views/themes/Gamma/terms.tpl deleted file mode 100755 index 0833132f2..000000000 --- a/resources/views/themes/Gamma/terms.tpl +++ /dev/null @@ -1,4 +0,0 @@ - -{$site->tandc} \ No newline at end of file diff --git a/resources/views/themes/Gamma/usefullinksmenu.tpl b/resources/views/themes/Gamma/usefullinksmenu.tpl deleted file mode 100755 index 26aa33dd6..000000000 --- a/resources/views/themes/Gamma/usefullinksmenu.tpl +++ /dev/null @@ -1,11 +0,0 @@ - - {if $loggedin == "true"} -
  • Rss Feeds
  • -
  • Api
  • - {/if} - - {foreach $usefulcontentlist as $content} -
  • {$content.title}
  • - {/foreach} - -

    diff --git a/resources/views/themes/Gamma/viewanime.tpl b/resources/views/themes/Gamma/viewanime.tpl deleted file mode 100755 index e957c4b6b..000000000 --- a/resources/views/themes/Gamma/viewanime.tpl +++ /dev/null @@ -1,94 +0,0 @@ -{if isset($nodata) && $nodata !=''} -
    -

    View > Anime

    -

    {$nodata}

    -
    -{else} -

    -{if isset($isadmin)} - {$animeTitle} -{else} - {$animeTitle} -{/if} - -{if isset($catname) && $catname != ''} in {$catname|escape:"htmlall"}{/if} -

    - -
    -
    - {if animePicture != ""}{$animeTitle} Picture{/if} -
    -

    {if $animeType != ''}({$animeType|escape:"htmlall"}){/if}
    - {if $animeCategories != ''}{$animeCategories}
    {/if}
    - {$animeDescription|escape:"htmlall"|nl2br|magicurl|truncate:"1500":" more..."}
    - {if $animeDescription|strlen > 1500}{$animeDescription|escape:"htmlall"|nl2br|magicurl}{else}{/if} - {if $animeCharacters != ''}
    Characters: {$animeCharacters|escape:"htmlall"}{/if} - {if $animeCreators !=''}
    Created by: {$animeCreators|escape:"htmlall"}{/if} - {if $animeStartDate != '' && $animeStartDate != '1970-01-01'}
    Started: - {$animeStartDate|escape:"htmlall"}{/if} - {if $animeEndDate != '' && $animeEndDate != '1970-01-01'}
    Ended: - {$animeEndDate|escape:"htmlall"}{/if} - {if $animeRating != ''}
    AniDB Rating: {$animeRating|escape:"htmlall"}{/if} - {if $animeRelated != ''}
    Related Anime: {$animeRelated|escape:"htmlall"}
    {/if} -

    -
    -
    -
    - - With Selected: - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} - {if isset($isadmin)} -    - - - {/if} -
    - - - - - - - - - - {foreach $animeEpisodeTitles as $result} - - - - - - - {/foreach} -
    NameCategoryPostedSizeAction
    - {$result.searchname|escape:"htmlall"|replace:".":" "} -
    -
    - {if $result.nfoid > 0}Nfo{/if} - {if $result.haspreview == 1 && $userdata.canpreview == 1}Preview{/if} - {if $result.reid > 0}Media{/if} -
    {$result.category_name}{$result.postdate|timeago}{$result.size|fsize_format:"MB"} - - - {if isset($sabintegrated) && $sabintegrated !=""} - - {/if} - {if $weHasVortex} - - {/if} -
    -
    -{/if} diff --git a/resources/views/themes/Gamma/viewanimelist.tpl b/resources/views/themes/Gamma/viewanimelist.tpl deleted file mode 100755 index c99974efe..000000000 --- a/resources/views/themes/Gamma/viewanimelist.tpl +++ /dev/null @@ -1,47 +0,0 @@ -

    {$title}

    -

    -Jump to: - - [ {if $animeletter == '0-9'}{/if}0-9{if $animeletter == '0-9'}{/if} -{foreach $animerange as $range} -{if $range == $animeletter}{/if}{$range}{if $range == $animeletter}{/if} -{/foreach}] -

    -
    - -
    - - -
    -
    - -
    -
    -{$site->adbrowse} - -{if $animelist|@count > 0} - - - - - - - - - - {foreach $animelist as $aletter => $anime} - {foreach $anime as $a} - - - - - - - - {/foreach} - {/foreach} -
    NameTypeCategoriesRatingView
    {$a.title|escape:"htmlall"}{if {$a.type} != ''}{$a.type|escape:"htmlall"}{/if}{if {$a.categories} != ''}{$a.categories|escape:"htmlall"|replace:'|':', '}{/if}{if {$a.startdate} != ''}

    Air date: {$a.startdate|date_format} - {/if}{if $a.enddate != ''}{$a.enddate|date_format}{/if}
    {if {$a.rating} != ''}{$a.rating}{/if}AniDB
    - -{else} -

    No results

    -{/if} diff --git a/resources/views/themes/Gamma/viewbook.tpl b/resources/views/themes/Gamma/viewbook.tpl deleted file mode 100755 index 1b2739406..000000000 --- a/resources/views/themes/Gamma/viewbook.tpl +++ /dev/null @@ -1,18 +0,0 @@ -
    - -{$book.title|ss} - -

    {$book.author} - {$book.title}

    - -{if $book.publisher != ""}

    Publisher: {$book.publisher}

    {/if} - -{if $book.publishdate != ""}

    Published: {$book.publishdate|date_format}

    {/if} - -{if $book.pages != ""}

    Pages: {$book.pages}

    {/if} - -{if $book.review != ""} -

    Review:

    -

    {$book.review}

    -{/if} - -
    diff --git a/resources/views/themes/Gamma/viewconsole.tpl b/resources/views/themes/Gamma/viewconsole.tpl deleted file mode 100755 index 51905463a..000000000 --- a/resources/views/themes/Gamma/viewconsole.tpl +++ /dev/null @@ -1,18 +0,0 @@ -
    - -{$console.title|ss} - -

    {$console.title} {if $console.year != ""}({$console.year}){/if}

    - -{if $console.genres != ""}

    Genre: {$console.genres}

    {/if} - -{if $console.publisher != ""}

    Publisher: {$console.publisher}

    {/if} - -{if $console.releasedate != ""}

    Released: {$console.releasedate|date_format}

    {/if} - -{if $console.review != ""} -

    Review:

    -

    {$console.review}

    -{/if} - -
    diff --git a/resources/views/themes/Gamma/viewfilelist.tpl b/resources/views/themes/Gamma/viewfilelist.tpl deleted file mode 100755 index 76dcf30d3..000000000 --- a/resources/views/themes/Gamma/viewfilelist.tpl +++ /dev/null @@ -1,41 +0,0 @@ -

    {$title}

    - -

    For {$rel.searchname|escape:'htmlall'}

    -
    - - - - - - - - - - - - {foreach $files as $i=>$file name="iteration"} - - - - - {assign var="icon" value='assets/images/fileicons/'|cat:$file.ext|cat:".png"} - {if $file.ext == "" || !is_file("$icon")} - {assign var="icon" value='file'} - {else} - {assign var="icon" value=$file.ext} - {/if} - - {if $file.partstotal != 0} - {assign var="completion" value=($file.partsactual/$file.partstotal*100)|number_format:1} - {else} - {assign var="completion" value=0|number_format:1} - {/if} - - - - - - {/foreach} - -
    #filenamecompletionsize
    {$smarty.foreach.iteration.index+1}{$file.title|escape:'htmlall'}{$file.ext}
    {if $completion < 100}{$completion}%{else}{$completion}%{/if}
    {if $file.size < 100000}{$file.size|fsize_format:"KB"}{else}{$file.size|fsize_format:"MB"}{/if}
    - diff --git a/resources/views/themes/Gamma/viewmovie.tpl b/resources/views/themes/Gamma/viewmovie.tpl deleted file mode 100755 index 1a177202f..000000000 --- a/resources/views/themes/Gamma/viewmovie.tpl +++ /dev/null @@ -1,19 +0,0 @@ -{if not $modal} -

    {$title}

    -

    For {$rel.searchname|escape:'htmlall'}

    -{/if} -{if $movie.backdrop == 1}
    {/if} -
    -

    {$movie.title|ss} {if $movie.year != ''}({$movie.year}){/if}

    -

    {if $movie.cover == 1}{$movie.title|ss}{/if} -{if $movie.tagline != ''}{$movie.tagline|ss}{/if}

    -{if $movie.plot != ''} -

    {$movie.plot|ss}

    -{/if} -

    - {if $movie.rating != ''}Rating: {$movie.rating}/10
    {/if} - {if $movie.director != ''}Director: {$movie.director}
    {/if} - {if $movie.genre != ''}Genre: {$movie.genre|ss}{/if} -

    -{if $movie.actors != ''}

    Starring:
    {$movie.actors}

    {/if} -
    diff --git a/resources/views/themes/Gamma/viewmoviefull.tpl b/resources/views/themes/Gamma/viewmoviefull.tpl deleted file mode 100755 index 729597b4b..000000000 --- a/resources/views/themes/Gamma/viewmoviefull.tpl +++ /dev/null @@ -1,210 +0,0 @@ -{if $results|@count > 0} - {foreach $results as $result} -
    - {if $result.cover == 1}{$result.title|escape:{/if} -

    {$result.title|escape:"htmlall"} ({$result.year})

    Imdb - Trakt -

    {if isset($result.genre) && $result.genre != ''}{$result.genre|replace:"|":" / "}{/if}

    - {if $result.tagline != ''} -

    "{$result.tagline|escape:"htmlall"}"

    - {/if} - -
    - {if isset($result.plot) && $result.plot != ''} -
    Plot
    -
    {$result.plot|escape:"htmlall"}
    - {/if} - {if isset($result.rating) && $result.rating != ''} -
    Rating
    -
    {$result.rating}/10 - {/if} - {if isset($result.director) && $result.director != ''} -
    Director
    -
    {$result.director|replace:"|":", "}
    - {/if} - {if isset($result.actor) && $result.actors != ''} -
    Actors
    -
    {$result.actors|replace:"|":", "}
    - {/if} -
    -
    -
    -
    -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    -
    -
    - -
    -
    -
    - - - - - -
    - {if isset($isadmin)} -
    - Admin: -
    - - -
    -
    - {/if} -
    -
    - - - - - - - - - - - {assign var="msplits" value=","|explode:$result.grp_release_id} - {assign var="mguid" value=","|explode:$result.grp_release_guid} - {assign var="mnfo" value=","|explode:$result.grp_release_nfoid} - {assign var="mgrp" value=","|explode:$result.grp_release_grpname} - {assign var="mname" value="#"|explode:$result.grp_release_name} - {assign var="mpostdate" value=","|explode:$result.grp_release_postdate} - {assign var="msize" value=","|explode:$result.grp_release_size} - {assign var="mtotalparts" value=","|explode:$result.grp_release_totalparts} - {assign var="mcomments" value=","|explode:$result.grp_release_comments} - {assign var="mgrabs" value=","|explode:$result.grp_release_comments} - {assign var="mpass" value=","|explode:$result.grp_release_password} - {assign var="minnerfiles" value=","|explode:$result.grp_rarinnerfilecount} - {assign var="mhaspreview" value=","|explode:$result.grp_haspreview} - {assign var="mcatname" value=","|explode:$result.grp_release_catname} - {foreach $msplits as $m} - - - - - - - - - - {/foreach} -
    - - - namecategorypostedsizefiles<action
    - - {if $mpass[$m@index] == 2} - - {elseif $mpass[$m@index] == 1} - - {/if} -
    -
    {strip} - {if isset($mnfo[$m@index]) && $mnfo[$m@index] > 0}Nfo{/if} - {if $mhaspreview[$m@index] == 1 && $userdata.canpreview == 1}Preview{/if} - {/strip}
    -
    -
    {$mcatname[$m@index]}{$mpostdate[$m@index]|timeago}{$msize[$m@index]|fsize_format:"MB"} - {$mtotalparts[$m@index]}  - -
      -
    • - -
    • -
    • - - -
    • - {if isset($sabintegrated) && $sabintegrated !=""} -
    • - - -
    • - {/if} - {if $weHasVortex} -
    • - - Send to my NZBVortex - -
    • - {/if} -
    -
    -
    -
    - {$pager} - {if $results|@count > 10} -
    -
    - {if isset($section) && $section != ''}View: Covers | List
    {/if} - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    -
    -
    - - -
    -
    -
    - - - - -
    - {if isset($isadmin)} -
    - Admin: -
    - - -
    -
    - {/if} -
    -
    - - {/if} - {/foreach} -{/if} - diff --git a/resources/views/themes/Gamma/viewmovietrailer.tpl b/resources/views/themes/Gamma/viewmovietrailer.tpl deleted file mode 100755 index 459754fd3..000000000 --- a/resources/views/themes/Gamma/viewmovietrailer.tpl +++ /dev/null @@ -1,6 +0,0 @@ -
    - - - - -
    diff --git a/resources/views/themes/Gamma/viewmusic.tpl b/resources/views/themes/Gamma/viewmusic.tpl deleted file mode 100755 index ebf2a3559..000000000 --- a/resources/views/themes/Gamma/viewmusic.tpl +++ /dev/null @@ -1,30 +0,0 @@ -
    - -{$music.title|ss} - -

    {$music.title} {if $music.year != ""}({$music.year}){/if}

    - -{if $music.artist != ""}

    Artist: {$music.artist}

    {/if} - -{if $music.genres != ""}

    Genre: {$music.genres}

    {/if} - -{if $music.publisher != ""}

    Publisher: {$music.publisher}

    {/if} - -{if $music.releasedate != ""}

    Released: {$music.releasedate|date_format}

    {/if} - -{if $music.tracks != ""} -

    Track Listing:

    -
      - {assign var="tracksplits" value="|"|explode:$music.tracks} - {foreach $tracksplits as $tracksplit} -
    1. {$tracksplit|trim}
    2. - {/foreach} -
    -{/if} - -{if $music.review != ""} -

    Review:

    -

    {$music.review}

    -{/if} - -
    diff --git a/resources/views/themes/Gamma/viewnfo.tpl b/resources/views/themes/Gamma/viewnfo.tpl deleted file mode 100755 index 348508a74..000000000 --- a/resources/views/themes/Gamma/viewnfo.tpl +++ /dev/null @@ -1,8 +0,0 @@ -{if !isset($modal)} - -

    For {$rel.searchname|escape:'htmlall'}

    -{/if} - -
    {$nfo.nfoUTF|magicurl:$site->dereferrer_link}
    diff --git a/resources/views/themes/Gamma/viewnzb.tpl b/resources/views/themes/Gamma/viewnzb.tpl deleted file mode 100755 index 7290a58c2..000000000 --- a/resources/views/themes/Gamma/viewnzb.tpl +++ /dev/null @@ -1,600 +0,0 @@ -

    {$release.searchname|escape:"htmlall"}

    -{$site->addetail} - -
    - -
    -
    - {if $show && $release.videos_id > 0 && $show.image != '0'}{$show.title|escape:{/if} - {if $movie && $release.videos_id == 0 && $movie.cover == 1}{$movie.title|escape:{/if} - {if $anidb && $release.anidbid > 0 && $anidb.picture != ""}{$anidb.title|escape:{/if} - {if $con && $con.cover == 1}{$con.title|escape:{/if} - {if $music && $music.cover == 1}{$music.title|escape:{/if} - {if $book && $book.cover == 1}{$book.title|escape:{/if} - {if $game && $game.cover == 1} - {$con.title|escape: - {/if} - {if $xxx && $xxx.cover == 1} - {$xxx.title|escape: - {/if} - {if isset($isadmin)} -
    - Admin : -
    - Edit - Delete -
    -
    - {/if} -
    -
    Name
    -
    {$release.name|escape:"htmlall"}
    - {if $show && $release.videos_id > 0} -
    Show:
    -
    {if $show.title != ""}{$show.title|escape:"htmlall"}
    - {if $show.summary != ""} -
    Descrition
    -
    {$show.summary|escape:"htmlall"|nl2br|magicurl|truncate:"350":" more..."}{if $show.summary|strlen > 350}{$show.summary|escape:"htmlall"|nl2br|magicurl}{else}{/if}
    - {/if} - {if $release.firstaired != ""} -
    Aired
    -
    {$release.firstaired|date_format}
    - {/if} - {if $show.countries_id != ""} -
    Country
    - {$show.countries_id} - {/if} - {/if} -
    -
    - All Episodes - {if $show.trakt > 0}Trakt{/if} - {if $show.tvdb > 0}TheTVDB{/if} -
    - {/if} - {if $movie && $release.videos_id == 0} -
    -
    Movie Info
    -
    {$movie.title|escape:"htmlall"}
    -
    Year
    -
    {$movie.year}
    -
    Rating
    -
    {if $movie.rating == ''}N/A{/if}{$movie.rating}/10
    - {if !empty($movie.rtrating)} -
    RottenTomatoes score
    -
    {$movie.rtrating}
    - {/if} - {if $movie.tagline != ''} -
    Tagline
    -
    {$movie.tagline|escape:"htmlall"}
    - {/if} - {if $movie.plot != ''} -
    Plot
    -
    {$movie.plot|escape:"htmlall"}
    - {/if} - {if $movie.director != ""} -
    Director
    -
    {$movie.director}
    - {/if} -
    Genre
    -
    {$movie.genre}
    -
    Starring
    -
    {$movie.actors}
    -
    -
    - IMDB - {if $movie.tmdbid != ''} - TMDb - {/if} - Movie View -
    - {/if} - {if $anidb && $release.anidbid > 0} -
    -
    Anime Info
    -
    {if $release.tvtitle != ""}{$release.tvtitle|escape:"htmlall"}{/if}
    - {if $anidb.description != ""} -
    Description
    -
    {$anidb.description|escape:"htmlall"|nl2br|magicurl|truncate:"350":" more..."}{if $anidb.description|strlen > 350}{$anidb.description|escape:"htmlall"|nl2br|magicurl}{else}{/if}
    - {/if} - {if $anidb.categories != ""} -
    Categories
    -
    {$anidb.categories|escape:"htmlall"|replace:"|":", "}
    - {/if} - {if $release.tvairdate != "0000-00-00 00:00:00"} -
    Aired
    -
    {$release.tvairdate|date_format}
    - {/if} -
    - All Episodes - AniDB - {if $release.tvdbid > 0}TheTVDB{/if} - Anime RSS Feed -
    -
    - {/if} - - {if $con} - -
    -
    Console Info
    -
    {$con.title|escape:"htmlall"} ({$con.releasedate|date_format:"%Y"})
    - - {if $con.review != ""} -
    Review
    -
    {$con.review|escape:"htmlall"|nl2br|magicurl|truncate:"350":"more..."}{if $con.review|strlen > 350}{$con.review|escape:"htmlall"|nl2br|magicurl}{else}{/if}
    - {/if} - - {if $con.esrb != ""} -
    ESRB
    -
    {$con.esrb|escape:"htmlall"}
    - {/if} - - {if $con.genres != ""} -
    Genre
    -
    {$con.genres|escape:"htmlall"}
    - {/if} - - {if $con.publisher != ""} -
    Publisher
    -
    {$con.publisher|escape:"htmlall"}
    - {/if} - - {if $con.platform != ""} -
    Platform
    -
    {$con.platform|escape:"htmlall"}
    - {/if} - - {if $con.releasedate != ""} -
    Released
    -
    {$con.releasedate|date_format}
    - {/if} - - {if $con.url != ""} -
    -
    Amazon
    - {/if} -
    - - {/if} - - {if $book} -
    -
    Book Info
    -
    {$book.author|escape:"htmlall"} - {$book.title|escape:"htmlall"}
    - - {if $book.review != ""} -
    Review
    -
    {$book.review|escape:"htmlall"|nl2br|magicurl|truncate:"350":" more..."}{if $book.review|strlen > 350}{$book.review|escape:"htmlall"|nl2br|magicurl}{else}{/if}
    - {/if} - - {if $book.ean != ""} -
    EAN
    -
    {$book.ean|escape:"htmlall"}
    - {/if} - - {if $book.isbn != ""} -
    ISBN
    -
    {$book.isbn|escape:"htmlall"}
    - {/if} - - {if $book.pages != ""} -
    Pages
    -
    {$book.pages|escape:"htmlall"}
    - {/if} - - {if $book.dewey != ""} -
    Dewey
    -
    {$book.dewey|escape:"htmlall"}
    - {/if} - - {if $book.publisher != ""} -
    Publisher
    -
    {$book.publisher|escape:"htmlall"}
    - {/if} - - {if $book.publishdate != ""} -
    Publish Date
    -
    {$book.publishdate|date_format}
    - {/if} - - {if $book.url != ""} -
    -
    - Amazon -
    - {/if} -
    - {/if} - - {if $music} -
    -
    Music Info
    -
    {$music.title|escape:"htmlall"} {if $music.year != ""}({$music.year}){/if}
    - - {if $music.review != ""} -
    Review
    -
    {$music.review|nl2br|magicurl|truncate:"350":"more..."}{if $music.review|strlen > 350}{$music.review|escape:"htmlall"|nl2br|magicurl}{else}{/if}
    - {/if} - - {if $music.genres != ""} -
    Genre
    -
    {$music.genres|escape:"htmlall"}
    - {/if} - - {if $music.publisher != ""} -
    Publisher
    -
    {$music.publisher|escape:"htmlall"}
    - {/if} - - {if $music.releasedate != ""} -
    Released
    -
    {$music.releasedate|date_format}
    - {/if} - - {if $music.url != ""} -
    -
    Amazon
    - {/if} - - {if $music.tracks != ""} -
    Track Listing
    -
    -
      - {assign var="tracksplits" value="|"|explode:$music.tracks} - {foreach $tracksplits as $tracksplit} -
    1. {$tracksplit|trim|escape:"htmlall"}
    2. - {/foreach} -
    -
    - {/if} -
    - {/if} -
    -
    Group(s)
    - {if !empty($release.group_names)} - {assign var="groupname" value=","|explode:$release.group_names} -
    - {foreach $groupname as $grp} - {$grp|replace:"alt.binaries":"a.b"} -
    - {/foreach} -
    - {else} -
    - {$release.group_name|replace:"alt.binaries":"a.b"} -
    - {/if} - -
    Category
    -
    {$release.category_name}
    - {if !empty($nfo.nfo)} -
    Nfo
    -
    View Nfo
    - {/if} - {if $release.haspreview == 2 && $userdata.canpreview == 1} -
    Preview
    -
    Listen
    - - {/if} -
    -
    -
    Size:
    -
    {$release.size|fsize_format:"MB"}{if $release.completion > 0} {if $release.completion < 100}{$release.completion}%{else}{$release.completion}%{/if}{/if} - -
    Files
    -
    {$release.totalpart}
    -
    Rar Contains
    -
    - - - - - - - - {foreach $releasefiles as $rf} - - - - - - - {/foreach} -
    FilenamePasswordSizeDate
    {$rf.name}{if $rf.passworded != 1}No{else}Yes{/if}{$rf.size|fsize_format:"MB"}{$rf.created_at|date_format}
    -
    -
    -
    Grabs
    -
    {$release.grabs} - time{if $release.grabs == 1}{else}s{/if}
    -
    - {if $failed != NULL && $failed >0} -
    -
    Failed Download
    -
    {$failed} - time{if $failed == 1}{else}s{/if}
    -
    - {/if} - {if $site->checkpasswordedrar > 0} -
    Password
    -
    {if $release.passwordstatus == 0}None{elseif $release.passwordstatus == 2}Passworded Rar Archive{elseif $release.passwordstatus == 1}Contains Cab/Ace/Rar Inside Archive{else}Unknown{/if}
    - {/if} - -
    Poster
    -
    {$release.fromname|escape:"htmlall"}
    - -
    Posted
    -
    {$release.postdate|date_format} ({$release.postdate|daysago} )
    - -
    Added
    -
    {$release.adddate|date_format} ({$release.adddate|daysago} )
    - -
    Download
    -
    - - - {if isset($sabintegrated) && $sabintegrated !=""} - - {/if} - {if !empty($release.imdbid)} - {if !empty($cpurl) && !empty($cpapi)} - - {/if} - {/if} - {if $weHasVortex} - - {/if} -
    - -
    Similar
    -
    - Search for similar -
    - - {if isset($isadmin)} -
    Release Info
    -
    - {if $release.gid != ""} - Global Id: {$release.gid} - {/if} -
    - {if !empty($regex->collection_regex_id)} Collection regex ID: {$regex->collection_regex_id}{/if} -
    - {if !empty($regex->naming_regex_id)} Naming regex ID: {$regex->naming_regex_id}{/if} -
    - {/if} -
    -
    -
    - {if $reVideo != false || $reAudio != false} - - - - - - - - {if $reVideo.containerformat != ""} - - - - - - {/if} - {if $reVideo.overallbitrate != ""} - - - - - - {/if} - {if $reVideo.videoduration != ""} - - - - - - {/if} - {if $reVideo.videoformat != ""} - - - - - - {/if} - {if $reVideo.videocodec != ""} - - - - - - {/if} - {if $reVideo.videowidth != "" && $reVideo.videoheight != ""} - - - - - - {/if} - {if $reVideo.videoaspect != ""} - - - - - - {/if} - {if $reVideo.videoframerate != ""} - - - - - - {/if} - {if $reVideo.videolibrary != ""} - - - - - - {/if} - {foreach $reAudio as $audio} - - - - - - {if $audio.audiolanguage != ""} - - - - - - {/if} - {if $audio.audiotitle != ""} - - - - - - {/if} - {if $audio.audiomode != ""} - - - - - - {/if} - {if $audio.audiobitratemode != ""} - - - - - - {/if} - {if $audio.audiobitrate != ""} - - - - - - {/if} - {if $audio.audiochannels != ""} - - - - - - {/if} - {if $audio.audiosamplerate != ""} - - - - - - {/if} - {if $audio.audiolibrary != ""} - - - - - - {/if} - {/foreach} - {if $reSubs.subs != ""} - - - - - - {/if} -
    PropertyValue
    OverallContainer Format{$reVideo.containerformat}
    Bitrate{$reVideo.overallbitrate}
    VideoDuration{$reVideo.videoduration}
    Format{$reVideo.videoformat}
    Codec{$reVideo.videocodec}
    Width x Height{$reVideo.videowidth}x{$reVideo.videoheight}
    Aspect{$reVideo.videoaspect}
    Framerate{$reVideo.videoframerate} fps
    Library{$reVideo.videolibrary}
    Audio {$audio.audioid}Format{$audio.audioformat}
    Language{$audio.audiolanguage}
    Title{$audio.audiotitle}
    Mode{$audio.audiomode}
    Bitrate Mode{$audio.audiobitratemode}
    Bitrate{$audio.audiobitrate}
    Channels{$audio.audiochannels}
    Sample Rate{$audio.audiosamplerate}
    Library{$audio.audiolibrary}
    SubtitlesLanguages{$reSubs.subs|escape:"htmlall"}
    - - - {/if} -
    -
    - {$release.searchname|escape: -
    -
    - {$release.searchname|escape: -
    -
    - {if ($release.videostatus == 1 && $userdata.canpreview == 1)} - - {/if} -
    - {if isset($xxx.backdrop) && $xxx.backdrop == 1} -
    - {$xxx.title|escape: -
    - {/if} - {if isset($game.backdrop) && $game.backdrop == 1} -
    - {$game.title|escape: -
    - {/if} -
    -
    - {if $comments|@count > 0} - - - - - - - {foreach from=$comments item=comment} - - - - - {/foreach} -
    User Comment
    {if $comment.sourceid == 0}{$comment.username}{else}{$comment.username}
    (syndicated){/if}
    {$comment.created_at|date_format}
    {$comment.text|escape:"htmlall"|nl2br}
    - {/if} -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    diff --git a/resources/views/themes/Gamma/viewqueue.tpl b/resources/views/themes/Gamma/viewqueue.tpl deleted file mode 100755 index 619acad60..000000000 --- a/resources/views/themes/Gamma/viewqueue.tpl +++ /dev/null @@ -1,68 +0,0 @@ -
    -

    Download > Queue

    - -
    -{if $error == ''} -{if {{App\Models\Settings::settingValue('apps.sabnzbplus.integrationtype')}} > 0 || $user.queuetype == 2} -

    - The following queue is pulled from - {$serverURL|escape:"htmlall"}. -
    - {if {{App\Models\Settings::settingValue('apps.sabnzbplus.integrationtype')}} == 2 || $user.queuetype == 2}Edit your queue settings in - your profile - .{/if} -

    -
    -{if $user.queuetype == 2} -{literal} - -{/literal} -{else} -{literal} - -{/literal} -{/if} - -{else} -

    The {$queueType} queue has been disabled by the administrator.

    -{/if} -{else} -

    {$error}

    -{/if} diff --git a/resources/views/themes/Gamma/viewseries.tpl b/resources/views/themes/Gamma/viewseries.tpl deleted file mode 100755 index 1657f796b..000000000 --- a/resources/views/themes/Gamma/viewseries.tpl +++ /dev/null @@ -1,253 +0,0 @@ -{if isset($nodata) && $nodata != ""} - -

    View TV Series

    - -
    - - Sorry! - {$nodata} -
    -{else} - -

    - {$seriestitles} ({$show.publisher}) -

    - -
    - My Shows: -
    - - {if $myshows.id != ''} - Edit | - Remove - {else} - Add - {/if} -
    -
    - -
    - {if $show.image != 0} -
    - {$seriestitles} Logo -
    -
    - {/if} -

    - {$seriessummary|escape:"htmlall"|nl2br|magicurl} -

    - -
    - -
    -
    - {if $show.tvdb > 0} - TheTVDB - {/if} - {if $show.tvmaze > 0} - TVMaze - {/if} - {if $show.trakt > 0} - Trakt - {/if} - {if $show.tvrage > 0} - TV Rage - {/if} - {if $show.tmdb > 0} - TMDB - {/if} -
    -
    - -
    - -
    -
    -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    - -
    -
    - -
    -
    - -
    - - - - - -
    - - {if isset($isadmin)} -
    - Admin: -
    - - -
    -
    - {/if} -
    -
    - - - -
    - - - - - -
    - - -
    - {foreach $seasons as $seasonnum => $season name=tv} -
    - - - - - - - - - - - - {foreach $season as $episodes} - {foreach $episodes as $result} - - {if $result@index == 0} - - - - {/if} - - - - - - - - - - - - - - {/foreach} - {/foreach} -
    EpNameCategoryPostedSizeFiles

    {$episodes@key}

    -
    {$result.searchname|escape:"htmlall"|replace:".":" "}
    - -
    -
    - {if $result.nfoid > 0}NFO{/if} - {if $result.reid > 0}Media{/if} - {if $result.jpgstatus == 1 && $userdata.canpreview == 1}Sample{/if} - {if $result.haspreview == 1 && $userdata.canpreview == 1}Preview{/if} - {if $result.firstaired != ""} Aired {if $result.firstaired|strtotime > $smarty.now}in future{else}{$result.firstaired|daysago}{/if}{/if} -
    -
    -
    {$result.category_name}{$result.postdate|timeago} - {$result.size|fsize_format:"MB"} - {if $result.completion > 0}
    - {if $result.completion < 100} - {$result.completion}% - {else} - {$result.completion}% - {/if} - {/if} -
    - {$result.totalpart}  - -
      -
    • - -
    • - - -
    • - {if isset($sabintegrated) && $sabintegrated !=""} -
    • - - -
    • - {/if} - {if $weHasVortex} -
    • - - Send to my NZBVortex - -
    • - {/if} -
    -
    -
    - {/foreach} -
    -
    -
    -{/if} diff --git a/resources/views/themes/Gamma/viewserieslist.tpl b/resources/views/themes/Gamma/viewserieslist.tpl deleted file mode 100755 index c1f44c4fd..000000000 --- a/resources/views/themes/Gamma/viewserieslist.tpl +++ /dev/null @@ -1,93 +0,0 @@ - -

    {$title}

    - - -

    -Jump to: - [ {if $seriesletter == '0-9'}{/if}0-9{if $seriesletter == '0-9'}{/if} -{foreach $seriesrange as $range} -{if $range == $seriesletter}{/if}{$range}{if $range == $seriesletter}{/if} -{/foreach}] -

    -
    - - -
    - - -
    -
    - - - -{$site->adbrowse} - -{if $serieslist|@count > 0} - - - {foreach $serieslist as $sletter => $series} - - - - - - - - - - - {foreach $series as $s} - - - - - - - - {/foreach} - {/foreach} -
    Top

    {$sletter}...

    NameNetworkCountryOptionView
    {if !empty($s.title)}{$s.title|escape:"htmlall"}{/if}{if $s.prevdate != ''}
    Last: {$s.previnfo|escape:"htmlall"} aired {$s.prevdate|date_format}{/if}
    {$s.publisher|escape:"htmlall"}{$s.countries_id|escape:"htmlall"} - {if $s.userseriesid != ''} -
    - Edit   - Remove -
    - {else} - Add - {/if} -
    - Series
    - {if $s.id > 0} - {if $s.tvdb > 0} - TVDB - {/if} - {if $s.tvmaze > 0} - TVMaze - {/if} - {if $s.trakt > 0} - Trakt - {/if} - {if $s.tvrage > 0} - TVRage - {/if} - {if $s.tmdb > 0} - TMDB - {/if} - - {/if} -
    - -{else} -
    - - Hmm! No result on that search term. -
    -{/if} diff --git a/resources/views/themes/Gamma/viewxxx.tpl b/resources/views/themes/Gamma/viewxxx.tpl deleted file mode 100755 index c2bcb1bd8..000000000 --- a/resources/views/themes/Gamma/viewxxx.tpl +++ /dev/null @@ -1,15 +0,0 @@ -{if not $modal} -

    {$title}

    -

    For {$rel.searchname|escape:'htmlall'}

    -{/if} -{if $movie.backdrop == 1}
    {/if} -
    -

    {$movie.title|ss}

    -

    {if $movie.cover == 1}{$movie.title|ss}{/if} - {if isset($movie.tagline) && $movie.tagline != ''}{$movie.tagline|ss}{/if}

    - {if isset($movie.plot) && $movie.plot != ''}

    {$movie.plot|ss}

    {/if} -

    {if isset($movie.director) && $movie.director != ''}Director: {$movie.director}
    {/if} - {if isset($movie.genre) && $movie.genre != ''}Genre: {$movie.genre|ss}{/if} -

    - {if $movie.actors != ''}

    Starring:
    {$movie.actors}

    {/if} -
    diff --git a/resources/views/themes/Gamma/viewxxxfull.tpl b/resources/views/themes/Gamma/viewxxxfull.tpl deleted file mode 100755 index 3ad9a7fac..000000000 --- a/resources/views/themes/Gamma/viewxxxfull.tpl +++ /dev/null @@ -1,202 +0,0 @@ -{if $results|@count > 0} - {foreach $results as $result} -
    - {if $result.cover == 1}{$result.title|escape:{/if} -

    {$result.title|escape:"htmlall"}

    -

    {if isset($result.genre) && $result.genre != ''}{$result.genre|replace:"|":" / "}{/if}

    - {if $result.tagline != ''} -

    "{$result.tagline|escape:"htmlall"}"

    - {/if} - -
    - {if isset($result.plot) && $result.plot != ''} -
    Plot
    -
    {$result.plot|escape:"htmlall"}
    - {/if} - {if isset($result.rating) && $result.rating != ''} -
    Rating
    -
    {$result.rating}/10 - {/if} - {if isset($result.director) && $result.director != ''} -
    Director
    -
    {$result.director|replace:"|":", "}
    - {/if} - {if isset($result.actor) && $result.actors != ''} -
    Actors
    -
    {$result.actors|replace:"|":", "}
    - {/if} -
    -
    -
    -
    -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    -
    -
    - -
    -
    -
    - - - - -
    - {if isset($isadmin)} -
    - Admin: -
    - - -
    -
    - {/if} -
    -
    - - - - - - - - - - - {assign var="msplits" value=","|explode:$result.grp_release_id} - {assign var="mguid" value=","|explode:$result.grp_release_guid} - {assign var="mnfo" value=","|explode:$result.grp_release_nfoid} - {assign var="mgrp" value=","|explode:$result.grp_release_grpname} - {assign var="mname" value="#"|explode:$result.grp_release_name} - {assign var="mpostdate" value=","|explode:$result.grp_release_postdate} - {assign var="msize" value=","|explode:$result.grp_release_size} - {assign var="mtotalparts" value=","|explode:$result.grp_release_totalparts} - {assign var="mcomments" value=","|explode:$result.grp_release_comments} - {assign var="mgrabs" value=","|explode:$result.grp_release_comments} - {assign var="mpass" value=","|explode:$result.grp_release_password} - {assign var="minnerfiles" value=","|explode:$result.grp_rarinnerfilecount} - {assign var="mhaspreview" value=","|explode:$result.grp_haspreview} - {assign var="mcatname" value=","|explode:$result.grp_release_catname} - {foreach $msplits as $m} - - - - - - - - - - {/foreach} -
    - - - NameCategoryPostedSizeFilesAction
    - - {if $mpass[$m@index] == 2} - - {elseif $mpass[$m@index] == 1} - - {/if} -
    -
    {strip} - {if isset($mnfo[$m@index]) && $mnfo[$m@index] > 0}Nfo{/if} - {if $mhaspreview[$m@index] == 1 && $userdata.canpreview == 1}Preview{/if} - {/strip}
    -
    -
    {$mcatname[$m@index]}{$mpostdate[$m@index]|timeago}{$msize[$m@index]|fsize_format:"MB"} - {$mtotalparts[$m@index]}  - -
      -
    • - -
    • -
    • - - -
    • - {if isset($sabintegrated) && $sabintegrated !=""} -
    • - - -
    • - {/if} - {if $weHasVortex} -
    • - - Send to my NZBVortex - -
    • - {/if} -
    -
    -
    -
    - {$pager} - {if $results|@count > 10} -
    -
    - {if isset($section) && $section != ''}View: Covers | List
    {/if} - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    -
    -
    - - -
    -
    - {if isset($isadmin)} -
    - Admin: -
    - - -
    -
    - {/if} -
    -
    - - {/if} - {/foreach} -{/if} - diff --git a/resources/views/themes/Gamma/xxx.tpl b/resources/views/themes/Gamma/xxx.tpl deleted file mode 100755 index a28f0a4fa..000000000 --- a/resources/views/themes/Gamma/xxx.tpl +++ /dev/null @@ -1,323 +0,0 @@ -

    Browse {$catname}

    -
    -
    - {include file='search-filter.tpl'} -
    -
    -{$site->adbrowse} -{if $results|@count > 0} -
    -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""} - - {/if} -
    - View: Covers | List
    -
    -
    - {$pager} -
    -
    -
    - {if isset($isadmin)} - Admin: -
    - - -
    -   - {/if} -
    -
    -
    -
    - - - - - - {foreach $results as $result} - {assign var="msplits" value=","|explode:$result.grp_release_id} - {assign var="mguid" value=","|explode:$result.grp_release_guid} - {assign var="mnfo" value=","|explode:$result.grp_release_nfoid} - {assign var="mgrp" value=","|explode:$result.grp_release_grpname} - {assign var="mname" value="#"|explode:$result.grp_release_name} - {assign var="mpostdate" value=","|explode:$result.grp_release_postdate} - {assign var="msize" value=","|explode:$result.grp_release_size} - {assign var="mtotalparts" value=","|explode:$result.grp_release_totalparts} - {assign var="mcomments" value=","|explode:$result.grp_release_comments} - {assign var="mgrabs" value=","|explode:$result.grp_release_grabs} - {assign var="mpass" value=","|explode:$result.grp_release_password} - {assign var="minnerfiles" value=","|explode:$result.grp_rarinnerfilecount} - {assign var="mhaspreview" value=","|explode:$result.grp_haspreview} - {assign var="previewfound" value="0"} - {assign var="previewguid" value=""} - - - - - {/foreach} -
    - - title
    - - - - - - -
    -
    -

    - - {if $result.cover == 1} - {$result.title|escape: - {else} {$result.title|escape: - {/if} - -

    -
    -
    - {if $result.classused == "ade"} - - {/if} - {if $result.classused == "adm"} - - {/if} - {if $result.classused == "aebn"} - - {/if} - {if $result.classused == "hotm"} - - {/if} - {if $result.classused == "pop"} - - {/if} -
    -
    -
    -
    -

    - {$result.title|stripslashes|escape:"htmlall"} - -

    - {if $result.tagline != ''} - {$result.tagline} -
    - {/if} - {if $result.plot != ''} - {$result.plot} -
    -
    - {/if} - {if $result.genre != ''} - Genre: - {$result.genre} -
    - {/if} - {if $result.director != ''} - Director: - {$result.director} -
    - {/if} - - {if $result.actors != ''} - Starring: - {$result.actors} -
    -
    - {/if} -
    - - {foreach $msplits as $m} - 0}class="mlextra"{/if}> - - - - - {if $m@index == 1 && $m@total > 2} - - - - {/if} - {/foreach} -
    -
    -
    - -  {$mname[$m@index]|escape:"htmlall"} -
      -
    • Posted {$mpostdate[$m@index]|timeago}
    • -
    • {$msize[$m@index]|fsize_format:"MB"}
    • -
    • {$mtotalparts[$m@index]} -
    • -
    • {$mcomments[$m@index]} -
    • - {if isset($mnfo[$m@index]) && $mnfo[$m@index] > 0} -
    • {/if} -
    • {$mgrabs[$m@index]}
    • -
    • - {if $mhaspreview[$m@index] == 1 && $userdata.canpreview == 1} -
    • Preview
    • {/if} - {if $mhaspreview[$m@index]} -
    • Media
    • {/if} -
    -
    -
      -
    • - -
    • -
    • - - -
    • - {if isset($sabintegrated) && $sabintegrated !=""} -
    • - - -
    • - {/if} - {if $weHasVortex} -
    • - - - -
    • - {/if} -
    -
    - {$m@total-2} more... -
    -
    -
    - {if $results|@count > 10} -
    -
    - - - - - - -
    - With Selected: -
    - - - {if isset($sabintegrated) && $sabintegrated !=""}{/if} -
    - View: Covers | List
    -
    -
    - {$pager} -
    -
    -
    - {if isset($isadmin)} - Admin: -
    - - -
    -   - {/if} -
    -
    -
    -
    - {/if} -
    -{/if} diff --git a/resources/views/themes/Gentele/basepage.tpl b/resources/views/themes/Gentele/basepage.tpl index 54c706cc3..54c36f15d 100755 --- a/resources/views/themes/Gentele/basepage.tpl +++ b/resources/views/themes/Gentele/basepage.tpl @@ -7,8 +7,8 @@ /* */ {/literal} @@ -53,7 +53,7 @@
    - {if $loggedin == "true"} + {if Auth::check()}
    @@ -74,7 +74,7 @@
    - {if $loggedin == "true"} + {if Auth::check()}