mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Fix references to site.
This commit is contained in:
@@ -16,7 +16,7 @@ if (isset($_GET["id"]))
|
||||
if (!$rel)
|
||||
$page->show404();
|
||||
|
||||
$nzbpath = $nzb->getNZBPath($_GET["id"], $page->site->nzbpath);
|
||||
$nzbpath = $nzb->getNZBPath($_GET["id"], $page->settings->getSetting('nzbpath'));
|
||||
|
||||
if (!file_exists($nzbpath))
|
||||
$page->show404();
|
||||
|
||||
@@ -4,7 +4,7 @@ require_once("config.php");
|
||||
|
||||
$page = new AdminPage();
|
||||
|
||||
$s = $page->site;
|
||||
$s = $page->settings;
|
||||
unset($s->siteseed);
|
||||
unset($s->amazonprivkey);
|
||||
unset($s->tmdbkey);
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
{if $isadmin || !$publicview}<tr><th title="Not public">Excluded Categories:</th><td>{$exccats|replace:",":"<br/>"}</td></tr>{/if}
|
||||
{if $page->site->sabintegrationtype == 2 && $user.id==$userdata.id}
|
||||
{if $page->settings->getSetting('sabintegrationtype') == 2 && $user.id==$userdata.id}
|
||||
<tr><th>SABnzbd Integration:</th>
|
||||
<td>
|
||||
Url: {if $saburl == ''}N/A{else}{$saburl}{/if}<br/>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<fieldset>
|
||||
<legend>Site Preferences</legend>
|
||||
<table class="input">
|
||||
{if $page->site->userselstyle == 1}
|
||||
{if $page->settings->getSetting('userselstyle') == 1}
|
||||
<tr>
|
||||
<th>Site theme:</th>
|
||||
<td>
|
||||
@@ -113,7 +113,7 @@
|
||||
</table>
|
||||
</fieldset>
|
||||
|
||||
{if $page->site->sabintegrationtype != 1}
|
||||
{if $page->settings->getSetting('sabintegrationtype') != 1}
|
||||
<fieldset>
|
||||
<legend>Queue Type</legend>
|
||||
<table class="table table-condensed input">
|
||||
@@ -130,7 +130,7 @@
|
||||
</table>
|
||||
</fieldset>
|
||||
{/if}
|
||||
{if $user.queuetype == 2 && ($page->site->sabintegrationtype == 0 || $page->site->sabintegrationtype == 2)}
|
||||
{if $user.queuetype == 2 && ($page->settings->getSetting('sabintegrationtype') == 0 || $page->settings->getSetting('sabintegrationtype') == 2)}
|
||||
<fieldset>
|
||||
<legend>NZBGet Integration</legend>
|
||||
<table class="table table-condensed input">
|
||||
@@ -164,7 +164,7 @@
|
||||
</table>
|
||||
</fieldset>
|
||||
{/if}
|
||||
{if $user.queuetype == 1 && $page->site->sabintegrationtype == 2}
|
||||
{if $user.queuetype == 1 && $page->settings->getSetting('sabintegrationtype') == 2}
|
||||
<fieldset>
|
||||
<legend>SABnzbd Integration</legend>
|
||||
<table class="input">
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{if $error == ''}
|
||||
{if $page->site->sabintegrationtype > 0 || $user.queuetype == 2}
|
||||
{if $page->settings->getSetting('sabintegrationtype') > 0 || $user.queuetype == 2}
|
||||
<p style="text-align:center;">
|
||||
The following queue is pulled from
|
||||
<a href="{$serverURL|escape:"htmlall"}">{$serverURL|escape:"htmlall"}</a>.
|
||||
<br />
|
||||
{if $page->site->sabintegrationtype == 2 || $user.queuetype == 2}Edit your queue settings in <a href="{$smarty.const.WWW_TOP}/profileedit">your profile</a>.{/if}
|
||||
{if $page->settings->getSetting('sabintegrationtype') == 2 || $user.queuetype == 2}Edit your queue settings in <a href="{$smarty.const.WWW_TOP}/profileedit">your profile</a>.{/if}
|
||||
</p>
|
||||
<div class="sab_queue"></div>
|
||||
{if $user.queuetype == 2}
|
||||
|
||||
Reference in New Issue
Block a user