From 30a46979b9b4d934e99720c2057daefb0bbfc98d Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 24 May 2013 16:16:53 +0200 Subject: [PATCH] adding configurable block explorer and chain info URLs --- public/include/smarty_globals.inc.php | 4 +++- public/templates/mmcFE/statistics/blocks/blocks_found.tpl | 2 +- public/templates/mmcFE/statistics/pool/authenticated.tpl | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index e17f82be..c383dfb0 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -22,7 +22,9 @@ $aGlobal = array( 'roundshares' => $aRoundShares, 'fees' => $config['fees'], 'confirmations' => $config['confirmations'], - 'reward' => $config['reward'] + 'reward' => $config['reward'], + 'blockexplorer' => 'http://explorer.litecoin.net/search?q=', + 'chaininfo' => 'http://allchains.info' ); // We don't want these session infos cached diff --git a/public/templates/mmcFE/statistics/blocks/blocks_found.tpl b/public/templates/mmcFE/statistics/blocks/blocks_found.tpl index 7f6c27bf..1bab7966 100644 --- a/public/templates/mmcFE/statistics/blocks/blocks_found.tpl +++ b/public/templates/mmcFE/statistics/blocks/blocks_found.tpl @@ -15,7 +15,7 @@ {assign var=rank value=1} {section block $BLOCKSFOUND} - {$BLOCKSFOUND[block].height} + {$BLOCKSFOUND[block].height} {if $BLOCKSFOUND[block].confirmations >= $GLOBAL.confirmations}Confirmed{else}{$GLOBAL.confirmations - $BLOCKSFOUND[block].confirmations} left{/if} {$BLOCKSFOUND[block].finder|default:"unknown"} {$BLOCKSFOUND[block].time|date_format:"%d/%m/%Y %H:%M:%S"} diff --git a/public/templates/mmcFE/statistics/pool/authenticated.tpl b/public/templates/mmcFE/statistics/pool/authenticated.tpl index 7bddd421..9a5a593c 100644 --- a/public/templates/mmcFE/statistics/pool/authenticated.tpl +++ b/public/templates/mmcFE/statistics/pool/authenticated.tpl @@ -17,15 +17,15 @@ Next Network Block - {$CURRENTBLOCK + 1}    (Current: {$CURRENTBLOCK}) + {$CURRENTBLOCK + 1}    (Current: {$CURRENTBLOCK}) Last Block Found - {$LASTBLOCK|default:"0"} + {$LASTBLOCK|default:"0"} Current Difficulty - {$DIFFICULTY} + {$DIFFICULTY} Est. Avg. Time per Round