diff --git a/public/include/config/global.inc.dist.php b/public/include/config/global.inc.dist.php index f1cb0cbe..3d329645 100644 --- a/public/include/config/global.inc.dist.php +++ b/public/include/config/global.inc.dist.php @@ -35,6 +35,7 @@ $config = array( 'email' => 'test@example.com', // Mail address used for notifications ), 'block_bonus' => 0, + 'payout_system' => 'pps', // Set your payout here so template changes are activated 'archive_shares' => true, // Store accounted shares in archive table? 'blockexplorer' => 'http://explorer.litecoin.net/search?q=', // URL for block searches, prefixed to each block number 'chaininfo' => 'http://allchains.info', // Link to Allchains for Difficulty information diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index d37e45cc..209f6a71 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -33,6 +33,7 @@ $aGlobal = array( 'blockexplorer' => $config['blockexplorer'], 'chaininfo' => $config['chaininfo'], 'config' => array( + 'payout_system' => $config['payout_system'], 'ap_threshold' => array( 'min' => $config['ap_threshold']['min'], 'max' => $config['ap_threshold']['max'] diff --git a/public/templates/mmcFE/global/sidebar.tpl b/public/templates/mmcFE/global/sidebar.tpl index 05f6e00e..e6736e1a 100644 --- a/public/templates/mmcFE/global/sidebar.tpl +++ b/public/templates/mmcFE/global/sidebar.tpl @@ -13,10 +13,13 @@ Hashrate {$GLOBAL.userdata.hashrate|number_format} KH/s +{if $GLOBAL.config.payout_system == 'pps'} PPS Value {$GLOBAL.ppsvalue} +{/if} +{if $GLOBAL.config.payout_system != 'pps'} Unpaid Shares @@ -28,6 +31,7 @@ Pool Valid {$GLOBAL.roundshares.valid|number_format} +{/if} Round Shares @@ -43,6 +47,7 @@ Your Invalid {$GLOBAL.userdata.shares.invalid|number_format} +{if $GLOBAL.config.payout_system != 'pps'} LTC Round Estimate @@ -62,6 +67,7 @@ Payout {$GLOBAL.userdata.est_payout|number_format:"3"} +{/if}   Account Balance {$GLOBAL.userdata.balance|default:"0"} LTC