From 70d59d490000728c7d4d358e6f31d41284f6a83f Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sun, 3 Nov 2013 15:23:35 +0100 Subject: [PATCH] [IMPROVED] Hide uptime status if no API keys set --- public/include/smarty_globals.inc.php | 1 + public/templates/mmcFE/global/navigation.tpl | 4 ++-- public/templates/mpos/global/navigation.tpl | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index c53fc029..af7291ae 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -68,6 +68,7 @@ $aGlobal = array( 'accounts' => $config['accounts'], 'disable_invitations' => $setting->getValue('disable_invitations'), 'disable_notifications' => $setting->getValue('disable_notifications'), + 'monitoring_uptimerobot_private_key' => $setting->getValue('monitoring_uptimerobot_private_key'), 'statistics_ajax_refresh_interval' => $statistics_ajax_refresh_interval, 'price' => array( 'currency' => $config['price']['currency'] ), 'targetdiff' => $config['difficulty'], diff --git a/public/templates/mmcFE/global/navigation.tpl b/public/templates/mmcFE/global/navigation.tpl index 32c432f9..32968c99 100644 --- a/public/templates/mmcFE/global/navigation.tpl +++ b/public/templates/mmcFE/global/navigation.tpl @@ -33,7 +33,7 @@
  • Block Stats
  • Hashrate Graphs
  • Round Stats
  • -
  • Uptime Stats
  • + {if $GLOBAL.config.monitoring_uptimerobot_private_key|default:"0"}
  • Uptime Stats
  • {/if} {else} @@ -49,7 +49,7 @@
  • Round Stats
  • {/if} {if $GLOBAL.acl.uptime.statistics} -
  • Uptime Stats
  • + {if $GLOBAL.config.monitoring_uptimerobot_private_key|default:"0"}
  • Uptime Stats
  • {/if} {/if} {/if} diff --git a/public/templates/mpos/global/navigation.tpl b/public/templates/mpos/global/navigation.tpl index a73966f0..55e5a369 100644 --- a/public/templates/mpos/global/navigation.tpl +++ b/public/templates/mpos/global/navigation.tpl @@ -33,7 +33,7 @@
  • Blocks
  • Graphs
  • Round
  • -
  • Uptime
  • + {if $GLOBAL.config.monitoring_uptimerobot_private_key|default:"0"}
  • Uptime
  • {/if} {else}

    Statistics

    @@ -50,7 +50,7 @@
  • Round
  • {/if} {if $GLOBAL.acl.uptime.statistics} -
  • Uptime
  • + {if $GLOBAL.config.monitoring_uptimerobot_private_key|default:"0"}
  • Uptime
  • {/if} {/if} {/if}