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}>
-
-
-
-
-
- {if $loggedin == "true"}
- {$header_menu}
- {/if}
- {if $loggedin == "true"}
-
- {else}
-
- {/if}
-
-
-
-
-
-
-
-
-
-
-
- {$main_menu}
- {$useful_menu}
-
-
-
- {$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}
-
-
-
-
-{/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 @@
-
- {if isset($catname)}
- {assign var="catsplit" value=">"|explode:$catname}
- {/if}
- Home
- / {if isset($catsplit[0])} {$catsplit[0]}{/if} / {if isset($catsplit[1])} {$catsplit[1]}{/if}
-
-
-{$site->adbrowse}
-
-{if isset($shows)}
-
-
-{/if}
-
-{if $results|@count > 0}
-
-
-
-{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}
-
-
-
-{/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}
-
-
-
\ 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}
-
-
-
-{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}
-
-{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
-
-{/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}
-
- {$c->body}
- {/foreach}
- {/if}
-{else}
- {foreach from=$content item=c}
- {if $c->role == 0}
-
- {$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()}}
-
-
-
- {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}
-
-
-
-
- Topic
- Posted By
- Last Update
- Replies
- {if isset($isadmin)}
- Action
- {/if}
-
- {foreach $results as $result}
-
-
- {$result.subject|escape:"htmlall"|truncate:100:'...':true:true}
-
- {$result.message|truncate:200:'...':false:false}
-
- {if $result.locked == 1}
- Topic Locked
- {/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}
-
-
- {/foreach}
-
-
-
-
-{/if}
-
-
-
-
- {{csrf_field()}}
-
-
-
-
-
-
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 @@
-
-{if $results|@count > 0}
-{$results[0].subject|escape:"htmlall"}
-
-
-
- By
- Message
-
- {foreach $results as $result name=result}
-
-
- {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)}
-
- {/if}
- {if isset($isadmin)}
-
-
- {/if}
-
- {$result.message}
-
- {/foreach}
-
-
- {if $result.locked == 0}
-
-
-
- {{csrf_field()}}
-
-
-
- {else}
-
Topic Locked
- {/if}
-
-{/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}
-
-
-
-
-
-
-
- title
-
-
-
-
-
-
-
- genre
-
-
-
-
-
-
-
- release date
-
-
-
-
-
-
-
- posted
-
-
-
-
-
-
-
- size
-
-
-
-
-
-
-
- files
-
-
-
-
-
-
-
- stats
-
-
-
-
-
-
-
-
- {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}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {if isset($sabintegrated) && $sabintegrated !=""}
-
- {/if}
-
-
- {if $weHasVortex}
-
-
-
- {/if}
-
- {if isset($isadmin)}
- Delete
- Edit
- {/if}
-
- {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}
-
-
-
-
- {/foreach}
- {/foreach}
-
-
- {$pager}
- {if $results|@count > 10}
-
- {/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)}
-
- {foreach $parentcatlist as $parentcat}
- {if $parentcat.id == {$catClass::GAME_ROOT}}
-
- {$parentcat.title}
-
-
- {/if}
- {if $parentcat.id == {$catClass::MOVIE_ROOT}}
-
- {$parentcat.title}
-
-
- {/if}
- {if $parentcat.id == {$catClass::MUSIC_ROOT}}
-
- {$parentcat.title}
-
-
- {/if}
- {if $parentcat.id == {$catClass::PC_ROOT}}
-
- {$parentcat.title}
-
-
- {/if}
- {if $parentcat.id == {$catClass::TV_ROOT}}
-
- {$parentcat.title}
-
-
- {/if}
- {if $parentcat.id == {$catClass::XXX_ROOT}}
-
- {$parentcat.title}
-
-
-
- {/if}
- {if $parentcat.id == {$catClass::BOOKS_ROOT}}
-
- {$parentcat.title}
-
-
-
- {/if}
- {if $parentcat.id == {$catClass::OTHER_ROOT}}
-
- Other
-
-
- {/if}
- {/foreach}
-
-
-
-{/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}
-
-
-
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}
-
-
-
-
- {if $results|@count > 10}
-
- {/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:
- Download NZBs
- Send to my Download Basket
- {if isset($sabintegrated) && $sabintegrated !=""}
- Send to my Queue
- {/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}
-
-
-
-
- {if $results|@count > 10}
-
- {/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
-
-
-
-
Choose
-
- {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}
-
-
-
- name
- category
- added
- options
-
- {foreach $movies as $movie}
-
-
-
-
-
-
-
-
-
- {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}
-
-
-
-
- {/foreach}
-
-{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
-
-
-
-
Choose
-
- {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}
-
-
- name
- category
- added
- options
-
- {foreach $shows as $show}
-
-
- {$show.title|escape:"htmlall"|wordwrap:75:"\n":true}
-
- {if $show.categoryNames != ''}{$show.categoryNames|escape:"htmlall"}{else}All{/if}
- {$show.created_at|date_format}
-
-
-
-
- {/foreach}
-
-{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 @@
-
-{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 @@
-
-
-
-
-
- {{csrf_field()}}
-
-
Edit Post
-
- {$result.message}
-
-
-
-
-
-
-
-
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 @@
-
-
- Profile for {$user.username|escape:"htmlall"}
- {if isset($isadmin) || !$publicview}
- Edit
- {/if}
- {if !isset($isadmin)}
- Delete your account
- {/if}
-
-
-
- Username:
- {$user.username|escape:"htmlall"}
-
- {if !$publicview || isset($isadmin)}
-
- Email:
- {$user.email}
-
- {/if}
-
- 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}
-
- {if !empty($user.rolechangedate)}
-
- Role expiration date
- {$user.rolechangedate|date_format:"%A, %B %e, %Y"}
-
- {/if}
- {if isset($isadmin) || !$publicview}
-
- Notes:
- {$user.notes|escape:htmlall}{if $user.notes|count_characters > 0} {/if}{if isset($isadmin)}Add/Edit {/if}
-
- {/if}
- {if !$publicview || isset($isadmin)}
-
- Site Api/Rss Key:
- {$user.rsstoken}
-
- {/if}
- {if !$publicview || isset($isadmin)}
-
- 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}
-
- {/if}
-
- Grabs Total:
- {$user.grabs}
-
- {if (!$publicview || isset($isadmin)) && $site->registerstatus == 1}
-
- Invites
- {$user.invites}
-
- {if $user.invites > 0}
-
- Invite someone
-
- Send Invite
-
-
-
Invite Sent
-
-
-
-
- Cancel
-
-
- {/if}
-
-
- {/if}
- {if $userinvitedby && $userinvitedby.username != ""}
-
- Invited By:
- {$userinvitedby.username}
-
- {/if}
-
- 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}
-
-
- {if !$publicview || isset($isadmin)}
-
- Excluded Categories:
- {$exccats|replace:",":" "}
-
- {/if}
- {if $site->integrationtype == 2 && !$publicview}
-
- 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}
-
-
- {/if}
- {if !$publicview}
-
- My TV Shows:
- Manage my shows
-
-
- My Movies:
- Manage my movies
-
- {/if}
-
-{if isset($isadmin) && $downloadlist|@count > 0}
-
-
Downloads for User and Host
-
-
- date
- hosthash
- release
-
- {foreach $downloadlist as $download}
- {if $download@iteration == 10}
-
- show all...
-
- {/if}
- = 10}class="extra" style="display:none;"{/if}>
- {$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}
-
- {/foreach}
-
-
-{/if}
-
-{if $commentslist|@count > 0}
-
-
-
Comments
- {$pager}
-
-
- date
- release
- comment
-
- {foreach from=$commentslist item=comment}
-
- {$comment.created_at|date_format}
- {$comment.searchname}
- {$comment.text|escape:"htmlall"|nl2br}
-
- {/foreach}
-
-
-{/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()}}
-
-
-
Username
-
- {$user.username|escape:"htmlall"}
-
-
-
-
-
-
-
Password
-
-
- Only enter your password if you want to change it.
-
-
-
-
-
Confirm Password
-
-
-
-
-
-
-
-
-
- Site Preferences
-
- {if {{App\Models\Settings::settingValue('site.main.userselstyle')}} == 1}
-
-
Change site theme
-
- {if {{App\Models\Settings::settingValue('site.main.userselstyle')}} == 1}
- {html_options id="style" name='style' values=$themelist output=$themelist selected=$user.style}
- {/if}
-
-
- {/if}
-
-
View Movie Page
-
-
- Browse movie covers. Only shows movies with known IMDB info.
-
-
-
-
View Music Page
-
-
- Browse music covers. Only shows music with known lookup info.
-
-
-
-
View Console Page
-
-
- Browse console covers. Only shows games with known lookup info.
-
-
-
-
View Games Page
-
-
- Browse games covers. Only shows games with known lookup info.
-
-
-
-
View Book Page
-
-
- Browse book covers. Only shows books with known lookup info.
-
-
-
-
View XXX Page
-
-
- Browse XXX covers. Only shows XXX releases with known lookup info.
-
-
-
-
Excluded Categories
-
- {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)
-
-
Queue type
-
- {html_options id="queuetypeids" name='queuetypeids' values=$queuetypeids output=$queuetypes selected=$user.queuetype}
-
-
- {/if}
-
- SABnzbd Integration
-
-
SABnzbd Url
-
-
- The url of the SAB installation, for example: http://localhost:8080/sabnzbd/
-
-
-
-
SABnzbd Api Key
-
-
- The api key of the SAB installation. Can be the full api key or the nzb api key (as of SAB 0.6)
-
-
-
-
Api Key Type
-
- {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.
-
-
-
-
Priority Level:
-
- {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
-
-
-
-
Setting Storage:
-
- {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
-
-
NZBGet Url
-
-
-
The url of the NZBGet installation, for example: http://localhost:6789/
-
-
-
-
NZBGet Username
-
-
-
The NZBGet ControlUsername e.g. nzbget
-
-
-
-
NABGet Password
-
-
-
The NZBGet ControlPassword e.g. tegbzn6789
-
-
-
- {/if}
-
- CouchPotato Integration
-
-
URL
-
-
-
-
API key
-
-
-
-
-
-
-
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()}}
-
-
-{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}
-
-
-
-
- {{csrf_field()}}
-
-
-
-
-
-
-
-
-
-{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}
-
-
-
-
-
-
-
-
-{if $results|@count > 10}
-
-{/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}
-
-
-
-
-
- filename
- group
- posted
- {if isset($isadmin)}
- Misc
- %
- {/if}
- Nzb
-
-
- {foreach $results as $result}
-
-
- {$result.name|escape:"htmlall"}
- {$result.group_name|replace:"alt.binaries":"a.b"}
- {$result.date|date_format}
- {if isset($isadmin)}
- {$result.procstat} /{$result.totalParts} /{$result.relpart} /{$result.reltotalpart}
- {if $result.binnum < $result.totalParts}{$result.binnum}/{$result.totalParts} {else}100% {/if}
- {/if}
- {if $result.releases_id > 0}Yes {/if}
-
- {/foreach}
-
-
-
-
-
-{/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}
-
-
-
-
-
-
- {$sitemap->type} \
- {else}
-
-
- {/if}
-
-
- {$sitemap->name}
-
-
-{/foreach}
-
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 !=''}
-
-{else}
-
-{if isset($isadmin)}
- {$animeTitle}
-{else}
- {$animeTitle}
-{/if}
-
-{if isset($catname) && $catname != ''} in {$catname|escape:"htmlall"}{/if}
-
-
-
-
- {if animePicture != ""}
{/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}
-
-
-
-
-
-
-{/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}]
-
-
-
-
-
- GO
-
-
-
-
-
-{$site->adbrowse}
-
-{if $animelist|@count > 0}
-
-
-
- Name
- Type
- Categories
- Rating
- View
-
- {foreach $animelist as $aletter => $anime}
- {foreach $anime as $a}
-
- {$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
-
- {/foreach}
- {/foreach}
-
-
-{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.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} {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}
-
-
-
-
-
-
-
- #
- filename
-
- completion
- size
-
-
- {foreach $files as $i=>$file name="iteration"}
-
- {$smarty.foreach.iteration.index+1}
- {$file.title|escape:'htmlall'}
-
- {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}
-
-
- {if $completion < 100}{$completion}% {else}{$completion}% {/if}
- {if $file.size < 100000}{$file.size|fsize_format:"KB"}{else}{$file.size|fsize_format:"MB"}{/if}
-
- {/foreach}
-
-
-
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}
-
-{/if}
-{if $movie.backdrop == 1}
{/if}
-
-
{$movie.title|ss} {if $movie.year != ''}({$movie.year}){/if}
-
{if $movie.cover == 1} {/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}
{/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}
-
-
-
-
-
-
-
-
- Select All
-
- name
- category
- posted
- size
- files<
- action
-
- {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}
-
-
-
-
- {$mname[$m@index]|escape:"htmlall"|replace:".":" "}
-
- {if $mpass[$m@index] == 2}
-
- {elseif $mpass[$m@index] == 1}
-
- {/if}
-
-
- {$mcatname[$m@index]}
- {$mpostdate[$m@index]|timeago}
- {$msize[$m@index]|fsize_format:"MB"}
-
- {$mtotalparts[$m@index]}
-
-
-
-
-
-
-
-
-
-
- {if isset($sabintegrated) && $sabintegrated !=""}
-
-
-
-
- {/if}
- {if $weHasVortex}
-
-
-
-
-
- {/if}
-
-
-
- {/foreach}
-
-
-
- {$pager}
- {if $results|@count > 10}
-
-
- {if isset($section) && $section != ''}View:
Covers |
List {/if}
- With Selected:
-
-
-
- {if isset($sabintegrated) && $sabintegrated !=""} {/if}
-
-
-
- Any
- 720p
- 1080p
- HDTV
-
- {if isset($isadmin)}
-
- {/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} {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}
- {$tracksplit|trim}
- {/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)}
-
-
-{/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}
-
-
-
- Info
- {if $reVideo != false || $reAudio != false}
- Media info
- {/if}
- {if $release.jpgstatus == 1 && $userdata.canpreview == 1}
- Thumbnail
- {else}
- {if $release.haspreview == 1 && $userdata.canpreview == 1}
- Preview
- {/if}
- {/if}
- {if ($release.videostatus == 1 && $userdata.canpreview == 1)}
- Sample
- {/if}
- {if isset($xxx.backdrop) && $xxx.backdrop == 1}
- Back Cover
- {/if}
- {if isset($game.backdrop) && $game.backdrop == 1}
- Screenshot
- {/if}
- Comments
-
-
-
- {if $show && $release.videos_id > 0 && $show.image != '0'}
{/if}
- {if $movie && $release.videos_id == 0 && $movie.cover == 1}
{/if}
- {if $anidb && $release.anidbid > 0 && $anidb.picture != ""}
{/if}
- {if $con && $con.cover == 1}
{/if}
- {if $music && $music.cover == 1}
{/if}
- {if $book && $book.cover == 1}
{/if}
- {if $game && $game.cover == 1}
-
- {/if}
- {if $xxx && $xxx.cover == 1}
-
- {/if}
- {if isset($isadmin)}
-
- {/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}
-
-
- {/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}
-
-
- {/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}
-
-
- {/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 != ""}
-
-
- {/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}
- {$tracksplit|trim|escape:"htmlall"}
- {/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
-
-
-
- Filename
- Password
- Size
- Date
-
- {foreach $releasefiles as $rf}
-
- {$rf.name}
- {if $rf.passworded != 1}No{else}Yes{/if}
- {$rf.size|fsize_format:"MB"}
- {$rf.created_at|date_format}
-
- {/foreach}
-
-
-
- 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 ($release.videostatus == 1 && $userdata.canpreview == 1)}
-
-
- Your browser does not support the video tag.
-
- {/if}
-
- {if isset($xxx.backdrop) && $xxx.backdrop == 1}
-
-
-
- {/if}
- {if isset($game.backdrop) && $game.backdrop == 1}
-
-
-
- {/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 @@
-
-{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})
-
-
-
-
-
- {if $show.image != 0}
-
-
-
-
- {/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}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {foreach $seasons as $seasonnum => $season name="seas"}
- {$seasonnum}
- {/foreach}
-
-
-
- {foreach $seasons as $seasonnum => $season name=tv}
-
- {/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}]
-
-
-
-
-
-
- GO
-
-
-
-
-
-{$site->adbrowse}
-
-{if $serieslist|@count > 0}
-
-
- {foreach $serieslist as $sletter => $series}
-
- Top {$sletter}...
-
-
- Name
- Network
- Country
- Option
- View
-
- {foreach $series as $s}
-
- {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 != ''}
-
- {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}
-
-
- {/foreach}
- {/foreach}
-
-
-{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}
-
-{/if}
-{if $movie.backdrop == 1}
{/if}
-
-
{$movie.title|ss}
-
{if $movie.cover == 1} {/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}
{/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}
-
-
-
-
-
-
-
-
- Select All
-
- Name
- Category
- Posted
- Size
- Files
- Action
-
- {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}
-
-
-
-
- {$mname[$m@index]|escape:"htmlall"|replace:".":" "}
-
- {if $mpass[$m@index] == 2}
-
- {elseif $mpass[$m@index] == 1}
-
- {/if}
-
-
- {$mcatname[$m@index]}
- {$mpostdate[$m@index]|timeago}
- {$msize[$m@index]|fsize_format:"MB"}
-
- {$mtotalparts[$m@index]}
-
-
-
-
-
-
-
-
-
-
- {if isset($sabintegrated) && $sabintegrated !=""}
-
-
-
-
- {/if}
- {if $weHasVortex}
-
-
-
-
-
- {/if}
-
-
-
- {/foreach}
-
-
-
- {$pager}
- {if $results|@count > 10}
-
-
- {/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}
-
-
-
-
-
-
-
- title
-
-
-
-
-
-
-
-
- {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=""}
-
-
-
-
-
-
- {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}
-
- {if $results|@count > 10}
-
- {/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()}
(syndicated){/if}
{$comment.created_at|date_format}
-
- -