mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 10:18:55 +00:00
Change site into settings in rest of the files.
This commit is contained in:
@@ -6,7 +6,7 @@ if (!$page->users->isLoggedIn())
|
||||
if (isset($_GET['action']) && $_GET['action'] == "1" && isset($_GET['emailto']))
|
||||
{
|
||||
$emailto = $_GET['emailto'];
|
||||
$ret = $page->users->sendInvite($page->site->title, $page->site->email, $page->serverurl, $page->users->currentUserId(), $emailto);
|
||||
$ret = $page->users->sendInvite($page->settings->getSetting('title'), $page->settings->getSetting('email'), $page->serverurl, $page->users->currentUserId(), $emailto);
|
||||
if (!$ret)
|
||||
print "Invite not sent.";
|
||||
else
|
||||
|
||||
@@ -9,7 +9,7 @@ if (isset($_POST["useremail"])) {
|
||||
|
||||
if ($page->captcha->getError() === false) {
|
||||
$email = $_POST["useremail"];
|
||||
$mailto = $page->site->email;
|
||||
$mailto = $page->settings->getSetting('email');
|
||||
$mailsubj = "Contact Form Submitted";
|
||||
$mailhead = "From: $email\n";
|
||||
$mailbody = "Values submitted from contact form:\n";
|
||||
@@ -24,13 +24,13 @@ if (isset($_POST["useremail"])) {
|
||||
Utility::sendEmail($mailto, $mailsubj, $mailbody, $email);
|
||||
}
|
||||
|
||||
$page->smarty->assign("msg", "<h2 style='padding-top:25px;'>Thanks for getting in touch with " . $page->site->title . ".</h2>");
|
||||
$page->smarty->assign("msg", "<h2 style='padding-top:25px;'>Thanks for getting in touch with " . $page->settings->getSetting('title') . ".</h2>");
|
||||
}
|
||||
}
|
||||
$page->title = "Contact ".$page->site->title;
|
||||
$page->meta_title = "Contact ".$page->site->title;
|
||||
$page->title = "Contact ".$page->settings->getSetting('title');
|
||||
$page->meta_title = "Contact ".$page->settings->getSetting('title');
|
||||
$page->meta_keywords = "contact us,contact,get in touch,email";
|
||||
$page->meta_description = "Contact us at ".$page->site->title." and submit your feedback";
|
||||
$page->meta_description = "Contact us at ".$page->settings->getSetting('title')." and submit your feedback";
|
||||
|
||||
$page->content = $page->smarty->fetch('contact.tpl');
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ $page->smarty->assign('user', $userData);
|
||||
|
||||
$queueType = $error = '';
|
||||
$queue = null;
|
||||
switch($page->site->sabintegrationtype) {
|
||||
switch($page->settings->getSetting('sabintegrationtype')) {
|
||||
case SABnzbd::INTEGRATION_TYPE_NONE:
|
||||
if ($userData['queuetype'] == 2) {
|
||||
$queueType = 'NZBGet';
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
<?php
|
||||
use newznab\db\Settings;
|
||||
|
||||
if ($page->users->isLoggedIn())
|
||||
$page->show404();
|
||||
|
||||
$showregister = 1;
|
||||
|
||||
if ($page->site->registerstatus == Sites::REGISTER_STATUS_CLOSED)
|
||||
if ($page->settings->getSetting('registerstatus') == Settings::REGISTER_STATUS_CLOSED)
|
||||
{
|
||||
$page->smarty->assign('error', "Registrations are currently disabled.");
|
||||
$showregister = 0;
|
||||
}
|
||||
elseif ($page->site->registerstatus == Sites::REGISTER_STATUS_INVITE && (!isset($_REQUEST['invitecode']) || empty($_REQUEST['invitecode'])))
|
||||
elseif ($page->settings->getSetting('registerstatus') == Sites::REGISTER_STATUS_INVITE && (!isset($_REQUEST['invitecode']) || empty($_REQUEST['invitecode'])))
|
||||
{
|
||||
$page->smarty->assign('error', "Registrations are currently invite only.");
|
||||
$showregister = 0;
|
||||
|
||||
@@ -69,10 +69,10 @@ if (isset($_GET["type"]) && $_GET["type"] == "xml")
|
||||
}
|
||||
else
|
||||
{
|
||||
$page->title = $page->site->title. " site map";
|
||||
$page->meta_title = $page->site->title. " site map";
|
||||
$page->title = $page->settings->getSetting('title'). " site map";
|
||||
$page->meta_title = $page->settings->getSetting('title'). " site map";
|
||||
$page->meta_keywords = "sitemap,site,map";
|
||||
$page->meta_description = $page->site->title." site map shows all our pages.";
|
||||
$page->meta_description = $page->settings->getSetting('title')." site map shows all our pages.";
|
||||
$page->content = $page->smarty->fetch('sitemap.tpl');
|
||||
$page->render();
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
$page->title = "Terms and Conditions";
|
||||
$page->meta_title = $page->site->title." - Terms and conditions";
|
||||
$page->meta_title = $page->settings->getSetting('title')." - Terms and conditions";
|
||||
$page->meta_keywords = "terms,conditions";
|
||||
$page->meta_description = "Terms and Conditions for ".$page->site->title;
|
||||
$page->meta_description = "Terms and Conditions for ".$page->settings->getSetting('title');
|
||||
|
||||
$page->content = $page->smarty->fetch('terms.tpl');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user