diff --git a/public/include/config/admin_settings.inc.php b/public/include/config/admin_settings.inc.php index a345cb31..f9c96b91 100644 --- a/public/include/config/admin_settings.inc.php +++ b/public/include/config/admin_settings.inc.php @@ -257,6 +257,20 @@ $aSettings['system'][] = array( 'name' => 'disable_contactform', 'value' => $setting->getValue('disable_contactform'), 'tooltip' => 'Enable or Disable Contactform. Users will not be able to use the contact form.' ); +$aSettings['system'][] = array( + 'display' => 'Disable Donors Page', 'type' => 'select', + 'options' => array( 0 => 'No', 1 => 'Yes'), + 'default' => 1, + 'name' => 'disable_donors', 'value' => $setting->getValue('disable_donors'), + 'tooltip' => 'Showing Donors page in Navigation.' +); +$aSettings['system'][] = array( + 'display' => 'Disable About Page', 'type' => 'select', + 'options' => array( 0 => 'No', 1 => 'Yes'), + 'default' => 1, + 'name' => 'disable_about', 'value' => $setting->getValue('disable_about'), + 'tooltip' => 'Showing About page in Navigation.' +); $aSettings['recaptcha'][] = array( 'display' => 'Enable re-Captcha', 'type' => 'select', 'options' => array( 0 => 'No', 1 => 'Yes' ), diff --git a/public/include/pages/about/donors.inc.php b/public/include/pages/about/donors.inc.php index e4ff8753..0d4213f7 100644 --- a/public/include/pages/about/donors.inc.php +++ b/public/include/pages/about/donors.inc.php @@ -3,9 +3,15 @@ // Make sure we are called from index.php if (!defined('SECURITY')) die('Hacking attempt'); -$aDonors = $transaction->getDonations(); +if ($setting->getValue('disable_donors')) { + $_SESSION['POPUP'][] = array('CONTENT' => 'Donors are currently disabled. Please try again later.', 'TYPE' => 'errormsg'); + $smarty->assign("CONTENT", "disabled.tpl"); +} else { + $aDonors = $transaction->getDonations(); + + // Tempalte specifics + $smarty->assign("DONORS", $aDonors); + $smarty->assign("CONTENT", "default.tpl"); +} -// Tempalte specifics -$smarty->assign("DONORS", $aDonors); -$smarty->assign("CONTENT", "default.tpl"); ?> diff --git a/public/include/pages/about/pool.inc.php b/public/include/pages/about/pool.inc.php index aecab054..20c860f0 100644 --- a/public/include/pages/about/pool.inc.php +++ b/public/include/pages/about/pool.inc.php @@ -4,6 +4,12 @@ if (!defined('SECURITY')) die('Hacking attempt'); -// Tempalte specifics -$smarty->assign("CONTENT", "default.tpl"); +if ($setting->getValue('disable_about')) { + $_SESSION['POPUP'][] = array('CONTENT' => 'Donors are currently disabled. Please try again later.', 'TYPE' => 'errormsg'); + $smarty->assign("CONTENT", "disabled.tpl"); +} else { + // Tempalte specifics + $smarty->assign("CONTENT", "default.tpl"); +} + ?> diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index a3dc2f0a..93987c4c 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -91,6 +91,8 @@ $aGlobal['website']['email'] = $setting->getValue('website_email'); $aGlobal['website']['api']['disabled'] = $setting->getValue('disable_api'); $aGlobal['website']['blockexplorer']['disabled'] = $setting->getValue('website_blockexplorer_disabled'); $aGlobal['website']['chaininfo']['disabled'] = $setting->getValue('website_chaininfo_disabled'); +$aGlobal['website']['donors']['disabled'] = $setting->getValue('disable_donors'); +$aGlobal['website']['about']['disabled'] = $setting->getValue('disable_about'); $setting->getValue('website_blockexplorer_url') ? $aGlobal['website']['blockexplorer']['url'] = $setting->getValue('website_blockexplorer_url') : $aGlobal['website']['blockexplorer']['url'] = 'http://explorer.litecoin.net/block/'; $setting->getValue('website_chaininfo_url') ? $aGlobal['website']['chaininfo']['url'] = $setting->getValue('website_chaininfo_url') : $aGlobal['website']['chaininfo']['url'] = 'http://allchains.info'; diff --git a/public/templates/mmcFE/global/navigation.tpl b/public/templates/mmcFE/global/navigation.tpl index 82754506..8736f5e1 100644 --- a/public/templates/mmcFE/global/navigation.tpl +++ b/public/templates/mmcFE/global/navigation.tpl @@ -55,11 +55,13 @@ {/if}
  • Getting Started
  • Support
  • + {if !$GLOBAL.website.about.disabled}
  • About + {/if}
  • {if $smarty.session.AUTHENTICATED|default == 1}
  • Logout
  • {else}
  • Register
  • {/if} diff --git a/public/templates/mpos/about/donors/disabled.tpl b/public/templates/mpos/about/donors/disabled.tpl new file mode 100644 index 00000000..e69de29b diff --git a/public/templates/mpos/about/pool/disabled.tpl b/public/templates/mpos/about/pool/disabled.tpl new file mode 100644 index 00000000..e69de29b diff --git a/public/templates/mpos/global/navigation.tpl b/public/templates/mpos/global/navigation.tpl index 39c5ee84..88129a87 100644 --- a/public/templates/mpos/global/navigation.tpl +++ b/public/templates/mpos/global/navigation.tpl @@ -57,8 +57,12 @@

    Help

    Other