From 99f4417f1f8e0bd67e1671a612165a4bd22fcbc7 Mon Sep 17 00:00:00 2001 From: SamuelNZ Date: Sun, 30 Mar 2014 20:59:33 +1300 Subject: [PATCH 01/51] Update default.tpl Update to my update. --- .../templates/bootstrap/gettingstarted/default.tpl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/public/templates/bootstrap/gettingstarted/default.tpl b/public/templates/bootstrap/gettingstarted/default.tpl index b7945e81..1a3c8c03 100644 --- a/public/templates/bootstrap/gettingstarted/default.tpl +++ b/public/templates/bootstrap/gettingstarted/default.tpl @@ -14,11 +14,13 @@

2. Download a miner.

From 9418c48ee89c3acefa3d3d71ecaa1eee7d997be8 Mon Sep 17 00:00:00 2001 From: SamuelNZ Date: Sun, 30 Mar 2014 22:44:10 +1300 Subject: [PATCH 02/51] Update mpos.css Fixes positioning errors --- public/site_assets/bootstrap/css/mpos.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/site_assets/bootstrap/css/mpos.css b/public/site_assets/bootstrap/css/mpos.css index 6bec5713..3e437b5a 100644 --- a/public/site_assets/bootstrap/css/mpos.css +++ b/public/site_assets/bootstrap/css/mpos.css @@ -365,7 +365,7 @@ div.dataTables_paginate { div.dataTables_paginate ul.pagination { font-size: 11px; - + } /* Circle Buttons */ @@ -425,6 +425,7 @@ div.dataTables_paginate ul.pagination { .borderless > tbody > tr > td { border: none; + padding: 5px; } .borderless > thead > tr > th { From afbf9b0709682bfcf84d1498f4c8b84996b9f9f9 Mon Sep 17 00:00:00 2001 From: SamuelNZ Date: Mon, 31 Mar 2014 01:46:03 +1300 Subject: [PATCH 03/51] Update block_overview_time.tpl Cosmetic Improvements --- .../statistics/blocks/block_overview_time.tpl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl b/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl index 2ac6687f..353f4384 100644 --- a/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl +++ b/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl @@ -24,7 +24,7 @@ - all time + All Time {($FIRSTBLOCKFOUND / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.Total|number_format} {$LASTBLOCKSBYTIME.TotalValid|number_format} @@ -49,7 +49,7 @@ {($LASTBLOCKSBYTIME.Total|default:"0.00" / ($FIRSTBLOCKFOUND / $COINGENTIME) * 100)|number_format:"2"}% - last hour + Last Hour {(3600 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.1HourTotal|number_format} {$LASTBLOCKSBYTIME.1HourValid|number_format} @@ -74,7 +74,7 @@ {($LASTBLOCKSBYTIME.1HourTotal|default:"0.00" / (3600 / $COINGENTIME) * 100)|number_format:"2"}% - last 24 hours + Last 24 Hours {(86400 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.24HourTotal|number_format} {$LASTBLOCKSBYTIME.24HourValid|number_format} @@ -99,7 +99,7 @@ {($LASTBLOCKSBYTIME.24HourTotal|default:"0.00" / (86400 / $COINGENTIME) * 100)|number_format:"2"}% - last 7 days + Last 7 Days {(604800 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.7DaysTotal|number_format} {$LASTBLOCKSBYTIME.7DaysValid|number_format} @@ -124,7 +124,7 @@ {($LASTBLOCKSBYTIME.7DaysTotal|default:"0.00" / (604800 / $COINGENTIME) * 100)|number_format:"2"}% - last 4 Weeks + Last 4 Weeks {(2419200 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.4WeeksTotal|number_format} {$LASTBLOCKSBYTIME.4WeeksValid|number_format} @@ -149,7 +149,7 @@ {($LASTBLOCKSBYTIME.4WeeksTotal|default:"0.00" / (2419200 / $COINGENTIME) * 100)|number_format:"2"}% - last 12 Month + The Past 12 Months {(29030400 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.12MonthTotal|number_format} {$LASTBLOCKSBYTIME.12MonthValid|number_format} From 86d81dca7581e7335a817579818383f0db080e57 Mon Sep 17 00:00:00 2001 From: SamuelNZ Date: Mon, 31 Mar 2014 01:56:17 +1300 Subject: [PATCH 04/51] Update default.tpl Target blank --- public/templates/bootstrap/gettingstarted/default.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/templates/bootstrap/gettingstarted/default.tpl b/public/templates/bootstrap/gettingstarted/default.tpl index 1a3c8c03..34deedbb 100644 --- a/public/templates/bootstrap/gettingstarted/default.tpl +++ b/public/templates/bootstrap/gettingstarted/default.tpl @@ -15,9 +15,9 @@

2. Download a miner.

  • Intel/ATI/AMD CGMiner Windows Sha256: Download here
  • -
  • Intel/ATI/AMD CGMiner Linux Sha256: Download Here
  • +
  • Intel/ATI/AMD CGMiner Linux Sha256: Download Here
  • Intel/ATI/AMD CGMiner 3.7.2 Scrypt Windows: Download here
  • -
  • Intel/ATI/AMD CGMiner 3.7.2 Scrypt Linux: Download Here
  • +
  • Intel/ATI/AMD CGMiner 3.7.2 Scrypt Linux: Download Here
  • Intel/ATI/AMD BFGMiner Linux/Windows: Download here
  • Fabulous Panda Miner Mac OS X: Download here
  • Minerd CPU Miner Mac/Linux/Windows: Download here.
  • @@ -32,7 +32,7 @@
  • BFGMiner
  • ./bfgminer {if $GLOBAL.config.algorithm == 'scrypt'}--scrypt{/if} -o stratum+tcp://{$SITESTRATUMURL|default:$smarty.server.SERVER_NAME}:{$SITESTRATUMPORT|default:"3333"} -u Weblogin.WorkerName -p WorkerPassword

    -

    If you want to mine on a Windows Operating System , Then you'll need to create a Batch File to start your miner.

    You can download pre-configured one from MEGA Here or you can make your own by opening notepad and then copy and pasting the following:

    +

    If you want to mine on a Windows Operating System , Then you'll need to create a Batch File to start your miner.

    You can download pre-configured one from MEGA Here or you can make your own by opening notepad and then copy and pasting the following:

  • MinerD
  • minerd -a {if $GLOBAL.config.algorithm == 'scrypt'}--scrypt{/if} -t 6 -s 4 -o stratum+tcp://{$SITESTRATUMURL|default:$smarty.server.SERVER_NAME}:{$SITESTRATUMPORT|default:"3333"} -u Weblogin.WorkerName -p WorkerPassword
  • CGMiner
  • @@ -55,7 +55,7 @@
    • Scrypt readme
    • Don't set intensity too high, I=11 is standard and safest. Higher intensity takes more GPU RAM. Check for hardware errors in cgminer (HW). HW=0 is good, otherwise lower intensity :)
    • -
    • Set shaders according to the readme (or look at your graphic cards specifications). Cgminer uses this value at first run to calculate thread-concurrency. Easiest way to get this optimized is to use same settings as others have used here: here.
    • +
    • Set shaders according to the readme (or look at your graphic cards specifications). Cgminer uses this value at first run to calculate thread-concurrency. Easiest way to get this optimized is to use same settings as others have used here: here.
    • There's also an interesting project which gives you a GUI for cgminer. Windows only it seems.
    • Here's a great guide how to get up and running with Xubuntu.
    From d4c5d3197c561766fd79ce401e815dafbcb168d8 Mon Sep 17 00:00:00 2001 From: SamuelNZ Date: Mon, 31 Mar 2014 12:48:46 +1300 Subject: [PATCH 05/51] Update mpos.css Removing Inline CSS --- public/site_assets/bootstrap/css/mpos.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/public/site_assets/bootstrap/css/mpos.css b/public/site_assets/bootstrap/css/mpos.css index 6bec5713..c0d8eaab 100644 --- a/public/site_assets/bootstrap/css/mpos.css +++ b/public/site_assets/bootstrap/css/mpos.css @@ -365,7 +365,7 @@ div.dataTables_paginate { div.dataTables_paginate ul.pagination { font-size: 11px; - + } /* Circle Buttons */ @@ -585,3 +585,15 @@ div.fade { } /* End Test */ + +/* Tables */ + +.table>tbody>tr>th +{ +padding-left:3px; +border: 1px solid #ddd; +background-color: #f9f9f9; +padding-right:1px; +} + +/* End Tables */ From 5546becf591c19fb6e44b86c084f02a93d0bbaa5 Mon Sep 17 00:00:00 2001 From: SamuelNZ Date: Mon, 31 Mar 2014 12:50:28 +1300 Subject: [PATCH 06/51] Update block_overview_time.tpl Removing Inline CSS --- .../bootstrap/statistics/blocks/block_overview_time.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl b/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl index 353f4384..27d8e59a 100644 --- a/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl +++ b/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl @@ -24,7 +24,7 @@ - All Time + All Time {($FIRSTBLOCKFOUND / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.Total|number_format} {$LASTBLOCKSBYTIME.TotalValid|number_format} @@ -49,7 +49,7 @@ {($LASTBLOCKSBYTIME.Total|default:"0.00" / ($FIRSTBLOCKFOUND / $COINGENTIME) * 100)|number_format:"2"}% - Last Hour + Last Hour {(3600 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.1HourTotal|number_format} {$LASTBLOCKSBYTIME.1HourValid|number_format} @@ -99,7 +99,7 @@ {($LASTBLOCKSBYTIME.24HourTotal|default:"0.00" / (86400 / $COINGENTIME) * 100)|number_format:"2"}% - Last 7 Days + Last 7 Days {(604800 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.7DaysTotal|number_format} {$LASTBLOCKSBYTIME.7DaysValid|number_format} @@ -124,7 +124,7 @@ {($LASTBLOCKSBYTIME.7DaysTotal|default:"0.00" / (604800 / $COINGENTIME) * 100)|number_format:"2"}% - Last 4 Weeks + Last 4 Weeks {(2419200 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.4WeeksTotal|number_format} {$LASTBLOCKSBYTIME.4WeeksValid|number_format} From bd0ad4ecb78983e41a22fd9267beca01613e0975 Mon Sep 17 00:00:00 2001 From: SamuelNZ Date: Mon, 31 Mar 2014 12:55:50 +1300 Subject: [PATCH 07/51] Update block_overview_time.tpl Oops, Missed one. --- .../bootstrap/statistics/blocks/block_overview_time.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl b/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl index 27d8e59a..fb95cd01 100644 --- a/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl +++ b/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl @@ -149,7 +149,7 @@ {($LASTBLOCKSBYTIME.4WeeksTotal|default:"0.00" / (2419200 / $COINGENTIME) * 100)|number_format:"2"}% - The Past 12 Months + The Past 12 Months {(29030400 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.12MonthTotal|number_format} {$LASTBLOCKSBYTIME.12MonthValid|number_format} From aea490059399f36834f3f43b96e447b5b3cfc284 Mon Sep 17 00:00:00 2001 From: SamuelNZ Date: Mon, 31 Mar 2014 14:00:07 +1300 Subject: [PATCH 08/51] [UPDATE] --- public/site_assets/bootstrap/css/mpos.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/site_assets/bootstrap/css/mpos.css b/public/site_assets/bootstrap/css/mpos.css index c0d8eaab..52ca6872 100644 --- a/public/site_assets/bootstrap/css/mpos.css +++ b/public/site_assets/bootstrap/css/mpos.css @@ -591,9 +591,11 @@ div.fade { .table>tbody>tr>th { padding-left:3px; +padding-bottom:4px; border: 1px solid #ddd; background-color: #f9f9f9; padding-right:1px; + } /* End Tables */ From a4738f8d18e2dc9d4a1b25a1584003eef21e9289 Mon Sep 17 00:00:00 2001 From: SamuelNZ Date: Mon, 31 Mar 2014 14:01:17 +1300 Subject: [PATCH 09/51] [UPDATE] Small tweak --- public/site_assets/bootstrap/css/mpos.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/site_assets/bootstrap/css/mpos.css b/public/site_assets/bootstrap/css/mpos.css index 52ca6872..ac071e0b 100644 --- a/public/site_assets/bootstrap/css/mpos.css +++ b/public/site_assets/bootstrap/css/mpos.css @@ -591,7 +591,7 @@ div.fade { .table>tbody>tr>th { padding-left:3px; -padding-bottom:4px; +padding-bottom:3px; border: 1px solid #ddd; background-color: #f9f9f9; padding-right:1px; From ca8bbcc0b985ad74f3967de963cea70333954700 Mon Sep 17 00:00:00 2001 From: SamuelNZ Date: Mon, 31 Mar 2014 14:17:57 +1300 Subject: [PATCH 10/51] [UPDATE] Transactions display Fixes alignment issues with Transaction History. --- public/site_assets/bootstrap/css/mpos.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/site_assets/bootstrap/css/mpos.css b/public/site_assets/bootstrap/css/mpos.css index ac071e0b..2fc93d14 100644 --- a/public/site_assets/bootstrap/css/mpos.css +++ b/public/site_assets/bootstrap/css/mpos.css @@ -595,7 +595,11 @@ padding-bottom:3px; border: 1px solid #ddd; background-color: #f9f9f9; padding-right:1px; +} +.table>tbody>tr>td +{ + padding:4px; } /* End Tables */ From 981862a0de5e77bcd7ac225112a1c2f1f8336f90 Mon Sep 17 00:00:00 2001 From: SamuelNZ Date: Mon, 31 Mar 2014 16:18:33 +1300 Subject: [PATCH 11/51] [UPDATE] Syntax --- .../bootstrap/statistics/pool/contributors_hashrate.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/bootstrap/statistics/pool/contributors_hashrate.tpl b/public/templates/bootstrap/statistics/pool/contributors_hashrate.tpl index fdbb0565..ab200abe 100644 --- a/public/templates/bootstrap/statistics/pool/contributors_hashrate.tpl +++ b/public/templates/bootstrap/statistics/pool/contributors_hashrate.tpl @@ -35,7 +35,7 @@ {/section} {if $listed != 1 && $GLOBAL.userdata.username|default:"" && $GLOBAL.userdata.rawhashrate|default:"0" > 0} {math assign="myestday" equation="round(reward / ( diff * pow(2,32) / ( hashrate * 1000 ) / 3600 / 24), 3)" diff=$DIFFICULTY reward=$REWARD hashrate=$GLOBAL.userdata.rawhashrate} - {if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1}{else}{/if}> + {if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1}{else}{/if}> n/a {if $GLOBAL.userdata.donate_percent|default:"0" >= 2}{elseif $GLOBAL.userdata.donate_percent|default:"0" < 2 AND $GLOBAL.userdata.donate_percent|default:"0" > 0}{else}{/if} {$GLOBAL.userdata.username|escape} From 828ebdf7fab8e6968e7176b84d9c32e285ab6756 Mon Sep 17 00:00:00 2001 From: SamuelNZ Date: Mon, 31 Mar 2014 16:19:17 +1300 Subject: [PATCH 12/51] [UPDATE] Syntax --- .../templates/bootstrap/statistics/pool/contributors_shares.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/bootstrap/statistics/pool/contributors_shares.tpl b/public/templates/bootstrap/statistics/pool/contributors_shares.tpl index 374ea223..fec7d3ab 100644 --- a/public/templates/bootstrap/statistics/pool/contributors_shares.tpl +++ b/public/templates/bootstrap/statistics/pool/contributors_shares.tpl @@ -25,7 +25,7 @@ {/section} {if $listed != 1 && $GLOBAL.userdata.username|default:"" && $GLOBAL.userdata.shares.valid|default:"0" > 0} - {if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1}{else}{/if}> + {if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1}{else}{/if}> n/a {if $GLOBAL.userdata.donate_percent|default:"0" >= 2}{elseif $GLOBAL.userdata.donate_percent|default:"0" < 2 AND $GLOBAL.userdata.donate_percent|default:"0" > 0}{else}{/if} {$GLOBAL.userdata.username|escape} From d7d364c90d88fcb488a514c1abd81b67c1dc115f Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 31 Mar 2014 09:08:56 +0200 Subject: [PATCH 13/51] [FIX] PPS Value after Ajax Refresh --- .../bootstrap/dashboard/round_statistics/pps/round.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/bootstrap/dashboard/round_statistics/pps/round.tpl b/public/templates/bootstrap/dashboard/round_statistics/pps/round.tpl index e9cc80a9..f95b63ac 100644 --- a/public/templates/bootstrap/dashboard/round_statistics/pps/round.tpl +++ b/public/templates/bootstrap/dashboard/round_statistics/pps/round.tpl @@ -27,7 +27,7 @@
    -

    {$GLOBAL.ppsvalue}

    +

    {$GLOBAL.ppsvalue}

    PPS Value

    From 116fff9d14b6148accdcfb5064d640dd3746a414 Mon Sep 17 00:00:00 2001 From: Nathan Patten Date: Mon, 31 Mar 2014 18:41:41 +1100 Subject: [PATCH 14/51] [EDIT] Add progress for MPOS-Bot to API call --- public/include/pages/api/getpoolstatus.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/include/pages/api/getpoolstatus.inc.php b/public/include/pages/api/getpoolstatus.inc.php index 27512426..26abc851 100644 --- a/public/include/pages/api/getpoolstatus.inc.php +++ b/public/include/pages/api/getpoolstatus.inc.php @@ -34,6 +34,8 @@ if ($iCurrentPoolHashrate > $dNetworkHashrate) $dNetworkHashrate = $iCurrentPool // Time in seconds, not hours, using modifier in smarty to translate $iCurrentPoolHashrate > 0 ? $iEstTime = $dDifficulty * pow(2,32) / ($iCurrentPoolHashrate * 1000) : $iEstTime = 0; $iEstShares = $statistics->getEstimatedShares($dDifficulty); +// For mpos-bot PoolLuck +$iEstShares > 0 && $aShares['valid'] > 0 ? $dEstPercent = round(100 / $iEstShares * $aShares['valid'], 2) : $dEstPercent = 0; // Time since last $now = new DateTime( "now" ); @@ -48,6 +50,7 @@ $data = array( 'pool_name' => $setting->getValue('website_name'), 'hashrate' => $iCurrentPoolHashrate, 'efficiency' => $dEfficiency, + 'progress' => $dEstPercent, 'workers' => $worker->getCountAllActiveWorkers(), 'currentnetworkblock' => $iBlock, 'nextnetworkblock' => $iBlock + 1, From 314eb10381bbdfca6b00b6ed6e66a52608ecc064 Mon Sep 17 00:00:00 2001 From: Nathan Patten Date: Mon, 31 Mar 2014 18:56:35 +1100 Subject: [PATCH 15/51] [FIX] Issue #2064 --- .../templates/bootstrap/statistics/pool/contributors_shares.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/bootstrap/statistics/pool/contributors_shares.tpl b/public/templates/bootstrap/statistics/pool/contributors_shares.tpl index fec7d3ab..f0d4018a 100644 --- a/public/templates/bootstrap/statistics/pool/contributors_shares.tpl +++ b/public/templates/bootstrap/statistics/pool/contributors_shares.tpl @@ -25,7 +25,7 @@ {/section} {if $listed != 1 && $GLOBAL.userdata.username|default:"" && $GLOBAL.userdata.shares.valid|default:"0" > 0} - {if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1}{else}{/if}> + {if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1}{else}{/if} n/a {if $GLOBAL.userdata.donate_percent|default:"0" >= 2}{elseif $GLOBAL.userdata.donate_percent|default:"0" < 2 AND $GLOBAL.userdata.donate_percent|default:"0" > 0}{else}{/if} {$GLOBAL.userdata.username|escape} From fc94ec4df78a85e506bf42915d9d4d9df45386ce Mon Sep 17 00:00:00 2001 From: Nathan Patten Date: Mon, 31 Mar 2014 18:58:31 +1100 Subject: [PATCH 16/51] [FIX] Issue #2064 --- .../bootstrap/statistics/pool/contributors_hashrate.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/bootstrap/statistics/pool/contributors_hashrate.tpl b/public/templates/bootstrap/statistics/pool/contributors_hashrate.tpl index ab200abe..3b7fa0dd 100644 --- a/public/templates/bootstrap/statistics/pool/contributors_hashrate.tpl +++ b/public/templates/bootstrap/statistics/pool/contributors_hashrate.tpl @@ -35,7 +35,7 @@ {/section} {if $listed != 1 && $GLOBAL.userdata.username|default:"" && $GLOBAL.userdata.rawhashrate|default:"0" > 0} {math assign="myestday" equation="round(reward / ( diff * pow(2,32) / ( hashrate * 1000 ) / 3600 / 24), 3)" diff=$DIFFICULTY reward=$REWARD hashrate=$GLOBAL.userdata.rawhashrate} - {if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1}{else}{/if}> + {if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1}{else}{/if} n/a {if $GLOBAL.userdata.donate_percent|default:"0" >= 2}{elseif $GLOBAL.userdata.donate_percent|default:"0" < 2 AND $GLOBAL.userdata.donate_percent|default:"0" > 0}{else}{/if} {$GLOBAL.userdata.username|escape} From 6ce8a049e4223b92393354fef542cac0d16e7b2a Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 31 Mar 2014 15:49:38 +0200 Subject: [PATCH 17/51] [FIX] Est. next diff with 0 hashrate --- public/include/classes/coins/coin_base.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/include/classes/coins/coin_base.class.php b/public/include/classes/coins/coin_base.class.php index 1eb5470c..ae726321 100644 --- a/public/include/classes/coins/coin_base.class.php +++ b/public/include/classes/coins/coin_base.class.php @@ -53,7 +53,12 @@ class CoinBase extends Base { * Calculate next expected difficulty based on current difficulty **/ public function calcExpectedNextDifficulty($dDifficulty, $dNetworkHashrate) { - return round($dDifficulty * $this->config['cointarget'] / $this->calcNetworkExpectedTimePerBlock($dDifficulty, $dNetworkHashrate), 8); + $iExpectedTimePerBlock = $this->calcNetworkExpectedTimePerBlock($dDifficulty, $dNetworkHashrate); + if (!empty($iExpectedTimePerBlock) && $iExpectedTimePerBlock > 0) { + return round($dDifficulty * $this->config['cointarget'] / $iExpectedTimePerBlock, 8); + } else { + return 0; + } } } From 0c75662352388134d02de38fac8b1c95bdb3c697 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Mon, 31 Mar 2014 16:19:56 +0200 Subject: [PATCH 18/51] [UPDATE] adding moot --- public/include/config/admin_settings.inc.php | 14 +++++++++++++ public/include/pages/about/moot.inc.php | 20 +++++++++++++++++++ public/include/smarty_globals.inc.php | 1 + .../bootstrap/about/moot/default.tpl | 15 ++++++++++++++ .../bootstrap/about/moot/disabled.tpl | 1 + .../templates/bootstrap/global/navigation.tpl | 1 + 6 files changed, 52 insertions(+) create mode 100644 public/include/pages/about/moot.inc.php create mode 100644 public/templates/bootstrap/about/moot/default.tpl create mode 100644 public/templates/bootstrap/about/moot/disabled.tpl diff --git a/public/include/config/admin_settings.inc.php b/public/include/config/admin_settings.inc.php index b48a6be6..fbc396b6 100644 --- a/public/include/config/admin_settings.inc.php +++ b/public/include/config/admin_settings.inc.php @@ -272,6 +272,13 @@ $aSettings['acl'][] = array( 'name' => 'acl_chat_page', 'value' => $setting->getValue('acl_chat_page'), 'tooltip' => 'Make the chat page private (users only) or public.' ); +$aSettings['acl'][] = array( + 'display' => 'MOOT Forum Page', 'type' => 'select', + 'options' => array( 0 => 'Private', 1 => 'Public', 2 => 'Disabled' ), + 'default' => 2, + 'name' => 'acl_moot_forum', 'value' => $setting->getValue('acl_moot_forum'), + 'tooltip' => 'Make the forum page private (users only) or public.' +); $aSettings['system'][] = array( 'display' => 'E-mail address for system error notifications', 'type' => 'text', 'size' => 25, @@ -370,6 +377,13 @@ $aSettings['system'][] = array( 'name' => 'system_irc_chat', 'value' => $setting->getValue('system_irc_chat'), 'tooltip' => 'Your IRC support channel name.' ); +$aSettings['system'][] = array( + 'display' => 'Moot Forum Channel', 'type' => 'text', + 'size' => 25, + 'default' => 'lazypoolop', + 'name' => 'system_moot_forum', 'value' => $setting->getValue('system_moot_forum'), + 'tooltip' => 'Your MOOT support forum name.' +); $aSettings['recaptcha'][] = array( 'display' => 'Enable re-Captcha', 'type' => 'select', 'options' => array( 0 => 'No', 1 => 'Yes' ), diff --git a/public/include/pages/about/moot.inc.php b/public/include/pages/about/moot.inc.php new file mode 100644 index 00000000..595c8f5e --- /dev/null +++ b/public/include/pages/about/moot.inc.php @@ -0,0 +1,20 @@ +getValue('acl_moot_forum', 2)) { +case '0': + if ($user->isAuthenticated()) { + $smarty->assign('CHATROOM', $setting->getValue('system_moot_forum', 'lazypoolop')); + $smarty->assign("CONTENT", "default.tpl"); + } + break; +case '1': + $smarty->assign('CHATROOM', $setting->getValue('system_moot_forum', 'lazypoolop')); + $smarty->assign("CONTENT", "default.tpl"); + break; +case '2': + $_SESSION['POPUP'][] = array('CONTENT' => 'Page currently disabled. Please try again later.', 'TYPE' => 'alert alert-danger'); + $smarty->assign("CONTENT", "disabled.tpl"); + break; +} diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index bd5df5db..0365ee32 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -133,6 +133,7 @@ $aGlobal['acl']['donors']['page'] = $setting->getValue('acl_donors_page'); $aGlobal['acl']['about']['page'] = $setting->getValue('acl_about_page'); $aGlobal['acl']['contactform'] = $setting->getValue('acl_contactform'); $aGlobal['acl']['chat']['page'] = $setting->getValue('acl_chat_page', 2); +$aGlobal['acl']['moot']['forum'] = $setting->getValue('acl_moot_forum', 2); // We don't want these session infos cached if (@$_SESSION['USERDATA']['id']) { diff --git a/public/templates/bootstrap/about/moot/default.tpl b/public/templates/bootstrap/about/moot/default.tpl new file mode 100644 index 00000000..9f067e16 --- /dev/null +++ b/public/templates/bootstrap/about/moot/default.tpl @@ -0,0 +1,15 @@ +
    +
    +
    +
    + Web Chat +
    + +
    +
    +
    diff --git a/public/templates/bootstrap/about/moot/disabled.tpl b/public/templates/bootstrap/about/moot/disabled.tpl new file mode 100644 index 00000000..573541ac --- /dev/null +++ b/public/templates/bootstrap/about/moot/disabled.tpl @@ -0,0 +1 @@ +0 diff --git a/public/templates/bootstrap/global/navigation.tpl b/public/templates/bootstrap/global/navigation.tpl index f2fc7929..d7ec51be 100644 --- a/public/templates/bootstrap/global/navigation.tpl +++ b/public/templates/bootstrap/global/navigation.tpl @@ -62,6 +62,7 @@ {acl_check page='about' action='pool' name=' About' acl=$GLOBAL.acl.about.page} {acl_check page='about' action='donors' name=' Donors' acl=$GLOBAL.acl.donors.page} {acl_check page='about' action='chat' name=' Web Chat' acl=$GLOBAL.acl.chat.page} + {acl_check page='about' action='moot' name=' Forum' acl=$GLOBAL.acl.moot.forum}
From 9f6bbbc086b4f5bac40972f246a0a2c239ca8c4c Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Mon, 31 Mar 2014 22:53:37 +0200 Subject: [PATCH 19/51] [UPDATE] Header title --- public/templates/bootstrap/about/moot/default.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/bootstrap/about/moot/default.tpl b/public/templates/bootstrap/about/moot/default.tpl index 9f067e16..c066cdcd 100644 --- a/public/templates/bootstrap/about/moot/default.tpl +++ b/public/templates/bootstrap/about/moot/default.tpl @@ -2,7 +2,7 @@
- Web Chat + Moot Forum
From 1385e4ea5acb83bf06c259f92f3d6e2f4ae0feec Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Mon, 31 Mar 2014 23:51:59 +0200 Subject: [PATCH 20/51] Update dark.css --- public/site_assets/bootstrap/css/design/dark.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/site_assets/bootstrap/css/design/dark.css b/public/site_assets/bootstrap/css/design/dark.css index e7202765..8239764a 100644 --- a/public/site_assets/bootstrap/css/design/dark.css +++ b/public/site_assets/bootstrap/css/design/dark.css @@ -43,6 +43,10 @@ a:focus { border-color: #222222; } +.panel .panel-default { + background-color: #D3D3D3; +} + .lightblue { background-color: #222222; } From f2588e043c1fa3373b2d4e9c80f1538eabbf48fb Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Mon, 31 Mar 2014 23:52:44 +0200 Subject: [PATCH 21/51] Update blue.css --- public/site_assets/bootstrap/css/design/blue.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/site_assets/bootstrap/css/design/blue.css b/public/site_assets/bootstrap/css/design/blue.css index ea0c2532..284b7617 100644 --- a/public/site_assets/bootstrap/css/design/blue.css +++ b/public/site_assets/bootstrap/css/design/blue.css @@ -43,6 +43,10 @@ a:focus { border-color: #A2BCF5; } +.panel .panel-default { + background-color: #3E6CCF; +} + .lightblue { background-color: #3065D9; } From 5edb15a834597e6c26cac5d670360de4cf42e7f0 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Mon, 31 Mar 2014 23:53:11 +0200 Subject: [PATCH 22/51] Update green.css --- public/site_assets/bootstrap/css/design/green.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/site_assets/bootstrap/css/design/green.css b/public/site_assets/bootstrap/css/design/green.css index b79905b4..c9f5230f 100644 --- a/public/site_assets/bootstrap/css/design/green.css +++ b/public/site_assets/bootstrap/css/design/green.css @@ -43,6 +43,10 @@ a:focus { border-color: #167A1D; } +.panel .panel-default { + background-color: #65B058; +} + .lightblue { background-color: #167A1D; } From a9aedbf6033b3da682322c076d407cd2a2b37749 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Mon, 31 Mar 2014 23:56:53 +0200 Subject: [PATCH 23/51] Update default.tpl --- public/templates/bootstrap/admin/registrations/default.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/templates/bootstrap/admin/registrations/default.tpl b/public/templates/bootstrap/admin/registrations/default.tpl index 1bbaba47..f031d03f 100644 --- a/public/templates/bootstrap/admin/registrations/default.tpl +++ b/public/templates/bootstrap/admin/registrations/default.tpl @@ -35,8 +35,8 @@ -{/nocache} \ No newline at end of file +{/nocache} From a1e8c08808cc89279a2689b47e8bb9ac51109cbf Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Mon, 31 Mar 2014 23:58:46 +0200 Subject: [PATCH 24/51] Update default.tpl --- public/templates/bootstrap/admin/invitations/default.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/templates/bootstrap/admin/invitations/default.tpl b/public/templates/bootstrap/admin/invitations/default.tpl index e31c44b5..a49afeb6 100644 --- a/public/templates/bootstrap/admin/invitations/default.tpl +++ b/public/templates/bootstrap/admin/invitations/default.tpl @@ -31,8 +31,8 @@ + @@ -70,7 +70,7 @@ 0.00% {/if} - + @@ -95,7 +95,7 @@ 0.00% {/if} - + @@ -120,7 +120,7 @@ 0.00% {/if} - + @@ -145,7 +145,7 @@ 0.00% {/if} - + @@ -170,7 +170,7 @@ 0.00% {/if} - + From 68d87633e2708b90c07c2d13264221fbb387e2d4 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Wed, 2 Apr 2014 17:35:56 +0200 Subject: [PATCH 32/51] [FIX] updated styles, typos and colors --- public/include/pages/account/edit.inc.php | 102 ++--- .../site_assets/bootstrap/css/design/dark.css | 4 + public/site_assets/bootstrap/css/mpos.css | 349 ++++++++++-------- .../bootstrap/account/earnings/default.tpl | 17 +- .../account/transactions/default.tpl | 24 +- .../bootstrap/account/workers/default.tpl | 4 +- .../bootstrap/admin/registrations/default.tpl | 6 +- .../bootstrap/admin/transactions/default.tpl | 28 +- .../bootstrap/admin/user/default.tpl | 30 +- .../statistics/blocks/block_overview_time.tpl | 36 +- .../blocks/blocks_found_details.tpl | 8 +- .../statistics/blocks/small_table.tpl | 2 +- 12 files changed, 326 insertions(+), 284 deletions(-) diff --git a/public/include/pages/account/edit.inc.php b/public/include/pages/account/edit.inc.php index 0c50dafd..951face4 100644 --- a/public/include/pages/account/edit.inc.php +++ b/public/include/pages/account/edit.inc.php @@ -12,52 +12,54 @@ $updating = (@$_POST['do']) ? 1 : 0; if ($user->isAuthenticated()) { if ($config['twofactor']['enabled']) { - $popupmsg = 'E-mail confirmations are required for '; - $popuptypes = array(); - if ($config['twofactor']['options']['details'] && $oldtoken_ea !== "") { - $popuptypes[] = 'editing your details'; - $ea_editable = $user->token->isTokenValid($_SESSION['USERDATA']['id'], $oldtoken_ea, 5); - $ea_sent = $user->token->doesTokenExist('account_edit', $_SESSION['USERDATA']['id']); - } - if ($config['twofactor']['options']['changepw'] && $oldtoken_cp !== "") { - $popuptypes[] = 'changing your password'; - $cp_editable = $user->token->isTokenValid($_SESSION['USERDATA']['id'], $oldtoken_cp, 6); - $cp_sent = $user->token->doesTokenExist('change_pw', $_SESSION['USERDATA']['id']); - } - if ($config['twofactor']['options']['withdraw'] && $oldtoken_wf !== "") { - $popuptypes[] = 'withdrawals'; - $wf_editable = $user->token->isTokenValid($_SESSION['USERDATA']['id'], $oldtoken_wf, 7); - $wf_sent = $user->token->doesTokenExist('withdraw_funds', $_SESSION['USERDATA']['id']); - } - - // get the status of a token if set - $message_tokensent_invalid = 'A token was sent to your e-mail that will allow you to '; - $message_tokensent_valid = 'You can currently '; - $messages_tokensent_status = array( - 'ea' => 'edit your account details', - 'wf' => 'withdraw funds', - 'cp' => 'change your password' - ); - // build the message we're going to show them for their token(s) - $eaprep_sent = ($ea_sent) ? $message_tokensent_valid.$messages_tokensent_status['ea'] : ""; - $eaprep_edit = ($ea_editable) ? $message_tokensent_invalid.$messages_tokensent_status['ea'] : ""; - $wfprep_sent = ($wf_sent) ? $message_tokensent_valid.$messages_tokensent_status['wf'] : ""; - $wfprep_edit = ($wf_editable) ? $message_tokensent_invalid.$messages_tokensent_status['wf'] : ""; - $cpprep_sent = ($cp_sent) ? $message_tokensent_valid.$messages_tokensent_status['cp'] : ""; - $cpprep_edit = ($cp_editable) ? $message_tokensent_invalid.$messages_tokensent_status['cp'] : ""; - $ptc = 0; - $ptcn = count($popuptypes); - foreach ($popuptypes as $pt) { - if ($ptcn == 1) { $popupmsg.= $popuptypes[$ptc]; continue; } - if ($ptc !== ($ptcn-1)) { - $popupmsg.= $popuptypes[$ptc].', '; - } else { - $popupmsg.= 'and '.$popuptypes[$ptc]; + if ($config['twofactor']['options']['details'] OR $config['twofactor']['options']['changepw'] OR $config['twofactor']['options']['withdraw']) { + $popupmsg = 'E-mail confirmations are required for '; + $popuptypes = array(); + if ($config['twofactor']['options']['details'] && $oldtoken_ea !== "") { + $popuptypes[] = 'editing your details'; + $ea_editable = $user->token->isTokenValid($_SESSION['USERDATA']['id'], $oldtoken_ea, 5); + $ea_sent = $user->token->doesTokenExist('account_edit', $_SESSION['USERDATA']['id']); } - $ptc++; + if ($config['twofactor']['options']['changepw'] && $oldtoken_cp !== "") { + $popuptypes[] = 'changing your password'; + $cp_editable = $user->token->isTokenValid($_SESSION['USERDATA']['id'], $oldtoken_cp, 6); + $cp_sent = $user->token->doesTokenExist('change_pw', $_SESSION['USERDATA']['id']); + } + if ($config['twofactor']['options']['withdraw'] && $oldtoken_wf !== "") { + $popuptypes[] = 'withdrawals'; + $wf_editable = $user->token->isTokenValid($_SESSION['USERDATA']['id'], $oldtoken_wf, 7); + $wf_sent = $user->token->doesTokenExist('withdraw_funds', $_SESSION['USERDATA']['id']); + } + + // get the status of a token if set + $message_tokensent_invalid = 'A token was sent to your e-mail that will allow you to '; + $message_tokensent_valid = 'You can currently '; + $messages_tokensent_status = array( + 'ea' => 'edit your account details', + 'wf' => 'withdraw funds', + 'cp' => 'change your password' + ); + // build the message we're going to show them for their token(s) + $eaprep_sent = ($ea_sent) ? $message_tokensent_valid.$messages_tokensent_status['ea'] : ""; + $eaprep_edit = ($ea_editable) ? $message_tokensent_invalid.$messages_tokensent_status['ea'] : ""; + $wfprep_sent = ($wf_sent) ? $message_tokensent_valid.$messages_tokensent_status['wf'] : ""; + $wfprep_edit = ($wf_editable) ? $message_tokensent_invalid.$messages_tokensent_status['wf'] : ""; + $cpprep_sent = ($cp_sent) ? $message_tokensent_valid.$messages_tokensent_status['cp'] : ""; + $cpprep_edit = ($cp_editable) ? $message_tokensent_invalid.$messages_tokensent_status['cp'] : ""; + $ptc = 0; + $ptcn = count($popuptypes); + foreach ($popuptypes as $pt) { + if ($ptcn == 1) { $popupmsg.= $popuptypes[$ptc]; continue; } + if ($ptc !== ($ptcn-1)) { + $popupmsg.= $popuptypes[$ptc].', '; + } else { + $popupmsg.= 'and '.$popuptypes[$ptc]; + } + $ptc++; + } + // display global notice about tokens being in use and for which bits they're active + $_SESSION['POPUP'][] = array('CONTENT' => $popupmsg, 'TYPE' => 'alert alert-warning'); } - // display global notice about tokens being in use and for which bits they're active - $_SESSION['POPUP'][] = array('CONTENT' => $popupmsg, 'TYPE' => 'alert alert-warning'); } if (isset($_POST['do']) && $_POST['do'] == 'genPin') { @@ -174,12 +176,12 @@ if ($config['twofactor']['enabled'] && $user->isAuthenticated()) { } // display token info per each - only when sent and editable or just sent, not by default - (!empty($eaprep_sent) && !empty($eaprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $eaprep_sent, 'TYPE' => 'success'):""; - (!empty($eaprep_sent) && empty($eaprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $message_tokensent_invalid.$messages_tokensent_status['ea'], 'TYPE' => 'success'):""; - (!empty($wfprep_sent) && !empty($wfprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $wfprep_sent, 'TYPE' => 'success'):""; - (!empty($wfprep_sent) && empty($wfprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $message_tokensent_invalid.$messages_tokensent_status['wf'], 'TYPE' => 'success'):""; - (!empty($cpprep_sent) && !empty($cpprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $cpprep_sent, 'TYPE' => 'success'):""; - (!empty($cpprep_sent) && empty($cpprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $message_tokensent_invalid.$messages_tokensent_status['cp'], 'TYPE' => 'success'):""; + (!empty($eaprep_sent) && !empty($eaprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $eaprep_sent, 'TYPE' => 'alert alert-success'):""; + (!empty($eaprep_sent) && empty($eaprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $message_tokensent_invalid.$messages_tokensent_status['ea'], 'TYPE' => 'alert alert-success'):""; + (!empty($wfprep_sent) && !empty($wfprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $wfprep_sent, 'TYPE' => 'alert alert-success'):""; + (!empty($wfprep_sent) && empty($wfprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $message_tokensent_invalid.$messages_tokensent_status['wf'], 'TYPE' => 'alert alert-success'):""; + (!empty($cpprep_sent) && !empty($cpprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $cpprep_sent, 'TYPE' => 'alert alert-success'):""; + (!empty($cpprep_sent) && empty($cpprep_edit)) ? $_SESSION['POPUP'][] = array('CONTENT' => $message_tokensent_invalid.$messages_tokensent_status['cp'], 'TYPE' => 'alert alert-success'):""; // two-factor stuff $smarty->assign("CHANGEPASSUNLOCKED", $cp_editable); $smarty->assign("WITHDRAWUNLOCKED", $wf_editable); diff --git a/public/site_assets/bootstrap/css/design/dark.css b/public/site_assets/bootstrap/css/design/dark.css index e7202765..82d2a5c1 100644 --- a/public/site_assets/bootstrap/css/design/dark.css +++ b/public/site_assets/bootstrap/css/design/dark.css @@ -134,3 +134,7 @@ a:focus { .dropdown-menu { background-color: #D3D3D3; } + +.confirmations { + color: #F3FF12; +} diff --git a/public/site_assets/bootstrap/css/mpos.css b/public/site_assets/bootstrap/css/mpos.css index 6bec5713..758f2b4e 100644 --- a/public/site_assets/bootstrap/css/mpos.css +++ b/public/site_assets/bootstrap/css/mpos.css @@ -65,37 +65,37 @@ input[type="search"], input[type="tel"], input[type="color"], .uneditable-input { - background-color: #ffffff; - padding: 4px 4px 4px 4px; - font-size: 11px; - color: #555555; - border: 1px solid #ccc; - height: 25px; - line-height: 25px; + background-color: #ffffff; + padding: 4px 4px 4px 4px; + font-size: 11px; + color: #555555; + border: 1px solid #ccc; + height: 25px; + line-height: 25px; } .input-group-sm > .form-control, .input-group-sm > .input-group-addon, .input-group-sm > .input-group-btn > .btn { - height: 25px; - font-size: 12px; + height: 25px; + font-size: 12px; } .form-control { - font-size: 12px; + font-size: 12px; } .input-group .input-group-addon { - line-height: 1!important; + line-height: 1!important; } .glyphicon{ - line-height: 1em; + line-height: 1em; } .select-mini, .input-group { - font-size: 11px; - height: 25px; + font-size: 11px; + height: 25px; } /* Navigation */ @@ -105,145 +105,154 @@ input[type="color"], /* Top Right Navigation Dropdown Styles */ .navbar-top-links li { - display: inline-block; + display: inline-block; } .navbar-top-links li:last-child { - margin-right: 15px; + margin-right: 15px; } .navbar-top-links li a { - padding: 15px; - min-height: 50px; + padding: 15px; + min-height: 50px; } .dropdown-user { - min-width:100px; + min-width:100px; } .navbar-top-links .dropdown-menu li { - display: block; + display: block; } .navbar-top-links .dropdown-menu li:last-child { - margin-right: 0; + margin-right: 0; } .navbar-top-links .dropdown-menu li a { - padding: 3px 20px; - min-height: 0; + padding: 3px 20px; + min-height: 0; } .navbar-top-links .dropdown-menu li a div { - white-space: normal; + white-space: normal; } .navbar-top-links .dropdown-messages, .navbar-top-links .dropdown-tasks, .navbar-top-links .dropdown-alerts { - width: 310px; - min-width: 0; + width: 310px; + min-width: 0; } .navbar-top-links .dropdown-messages { - margin-left: 5px; + margin-left: 5px; } .navbar-top-links .dropdown-tasks { - margin-left: -59px; + margin-left: -59px; } .navbar-top-links .dropdown-alerts { - /*#margin-left: -123px; */ + /*#margin-left: -123px; */ } .navbar-top-links .dropdown-user { - right: 0; - left: auto; + right: 0; + left: auto; } /* Sidebar Menu Styles */ - .sidebar-search { - padding: 15px; +.sidebar-search { + padding: 15px; } .arrow { - float: right; + float: right; } .fa.arrow:before { - content: "\f104"; + content: "\f104"; } .active > a > .fa.arrow:before { - content: "\f107"; + content: "\f107"; } .nav-second-level li, .nav-third-level li { - border-bottom: none !important; + border-bottom: none !important; } .nav-second-level li a { - padding-left: 37px; + padding-left: 37px; } .nav-third-level li a { - padding-left: 52px; + padding-left: 52px; } @media(min-width:768px) { - .navbar-static-side { - z-index: 1; - position: absolute; - width: 250px; - } + .navbar-static-side { + z-index: 1; + position: absolute; + width: 250px; + } - .navbar-top-links .dropdown-messages, - .navbar-top-links .dropdown-tasks, - .navbar-top-links .dropdown-alerts { - margin-left: auto; - } + .navbar-top-links .dropdown-messages, + .navbar-top-links .dropdown-tasks, + .navbar-top-links .dropdown-alerts { + margin-left: auto; + } + .col-md-spark, .col-md-spark-2 { + float: left; + } + .col-md-spark { + width:16.65% + } + .col-md-spark-2 { + width:20% + } } .navbar-default .navbar-nav .open .dropdown-menu > li > a, .navbar-default .navbar-nav .open .dropdown-menu { - font-size: 12px; + font-size: 12px; } .navbar-default .navbar-nav .open .dropdown-menu > li a:hover { - font-size: 12px; + font-size: 12px; } /* Buttons */ /* ------------------------------- */ - .btn-outline { - color: inherit; - background-color: transparent; - transition: all .5s; +.btn-outline { + color: inherit; + background-color: transparent; + transition: all .5s; } .btn-primary.btn-outline { - color: #428bca; + color: #428bca; } .btn-success.btn-outline { - color: #5cb85c; + color: #5cb85c; } .btn-info.btn-outline { - color: #5bc0de; + color: #5bc0de; } .btn-warning.btn-outline { - color: #f0ad4e; + color: #f0ad4e; } .btn-danger.btn-outline { - color: #d9534f; + color: #d9534f; } .btn-primary.btn-outline:hover, @@ -251,7 +260,7 @@ input[type="color"], .btn-info.btn-outline:hover, .btn-warning.btn-outline:hover, .btn-danger.btn-outline:hover { - color: #fff; + color: #fff; } /* Pages */ @@ -260,52 +269,52 @@ input[type="color"], /* Dashboard Chat */ - .chat { - margin: 0; - padding: 0; - list-style: none; +.chat { + margin: 0; + padding: 0; + list-style: none; } .chat li { - margin-bottom: 10px; - padding-bottom: 5px; - border-bottom: 1px dotted #B3A9A9; + margin-bottom: 10px; + padding-bottom: 5px; + border-bottom: 1px dotted #B3A9A9; } .chat li.left .chat-body { - margin-left: 60px; + margin-left: 60px; } .chat li.right .chat-body { - margin-right: 60px; + margin-right: 60px; } .chat li .chat-body p { - margin: 0; - color: #777777; + margin: 0; + color: #777777; } .panel .slidedown .glyphicon, .chat .glyphicon { - margin-right: 5px; + margin-right: 5px; } .chat-panel .panel-body { - height: 350px; - overflow-y: scroll; + height: 350px; + overflow-y: scroll; } /* Login Page */ .login-panel { - margin-top: 25%; + margin-top: 25%; } /* Flot Chart Containers */ .flot-chart { - display: block; - height: 400px; + display: block; + height: 400px; } .flot-chart-content { @@ -342,13 +351,6 @@ table.dataTable thead .sorting:after { color: rgba(50,50,50,.5); } -.table { - width: 100%; - margin-bottom: 20px; - table-layout: fixed; - word-wrap: break-word; -} - div.dataTables_length select { font-size: 11px; height: 25px; @@ -365,7 +367,7 @@ div.dataTables_paginate { div.dataTables_paginate ul.pagination { font-size: 11px; - + } /* Circle Buttons */ @@ -406,7 +408,7 @@ div.dataTables_paginate ul.pagination { } .show-grid { - margin: 15px 0; + margin: 15px 0; } /* No Padding for Tables */ @@ -425,163 +427,196 @@ div.dataTables_paginate ul.pagination { .borderless > tbody > tr > td { border: none; + padding: 5px; } .borderless > thead > tr > th { border: none; } -.footer { - clear: both; - text-align: center; - padding: 4px 0px 0px; - font-size: 11px; - width: 100%; -} - .margin-bottom-sm { - margin-bottom: 5px !important; + margin-bottom: 5px !important; } p.overview { - font-family: 'Open Sans',sans-serif; - font-weight: 600; - font-size: 11px; - text-transform: uppercase; - display: block; - margin-bottom: 4px; + font-family: 'Open Sans',sans-serif; + font-weight: 600; + font-size: 11px; + text-transform: uppercase; + display: block; + margin-bottom: 4px; } span.overview { - font-size: 14px; - font-weight: bold; + font-size: 14px; + font-weight: bold; } div.overview { - margin: 20px 0px 0px; + margin: 20px 0px 0px; } span.bigfont { - font-size: 100%; + font-size: 100%; } th.smallwidth { - width: 250px; + width: 250px; } .col-md-spark, .col-md-spark-2 { - position:relative; - min-height:1px; - padding-left:15px; - padding-right:15px -} - -@media (min-width:992px) { - .col-md-spark, .col-md-spark-2 { - float: left; - } - .col-md-spark { - width:16.65% - } - .col-md-spark-2 { - width:20% - } + position:relative; + min-height:1px; + padding-left:15px; + padding-right:15px } span.overview-mhs { - font-size: 11px; - font-weight: bold; + font-size: 11px; + font-weight: bold; } div.black { - color: black; + color: black; } div.progress-fix { - margin: 0px 0px 5px 0px; + margin: 0px 0px 5px 0px; } span.spark-18 { - margin: -20%; + margin: -20%; } span.spark-25 { - margin: -25%; + margin: -25%; } /* Test Edit */ .circle-tile { - margin-bottom: 30px; + margin-bottom: 30px; } .circle-tile { - margin-bottom: 15px; - text-align: center; + margin-bottom: 15px; + text-align: center; } .circle-tile-content { - padding-top: 50px; - border-radius: 8px; - border: 3px solid rgba(255, 255, 255, 0.3); + padding-top: 50px; + border-radius: 8px; + border: 3px solid rgba(255, 255, 255, 0.3); } .circle-tile-description { - font-weight: bold; - font-size: 16px; + font-weight: bold; + font-size: 16px; } .circle-tile-number { - padding: 0px 1px 4px; + padding: 0px 1px 4px; } .circle-tile-heading { - position: relative; - width: 80px; - height: 80px; - margin: 0px auto -40px; - border: 3px solid rgba(255, 255, 255, 0.3); - border-radius: 100%; - color: #FFF; - transition: all 0.3s ease-in-out 0s; + position: relative; + width: 80px; + height: 80px; + margin: 0px auto -40px; + border: 3px solid rgba(255, 255, 255, 0.3); + border-radius: 100%; + color: #FFF; + transition: all 0.3s ease-in-out 0s; } .circle-tile-heading .fa { - line-height: 80px; + line-height: 80px; } .lightblue { - background-color: #2FAACE; + background-color: #2FAACE; } .text-faded { - color: rgba(255, 255, 255, 0.7); + color: rgba(255, 255, 255, 0.7); } .text-link { - color: #FFFFFF; + color: #FFFFFF; } p.up { - margin: -5px 0px -8px; - font-weight: 600; + margin: -5px 0px -8px; + font-weight: 600; } div.up { - margin: -10px 0px 6px 0px; + margin: -10px 0px 6px 0px; } p.up-more { - margin: -6px 0px 10px; - font-weight: 600; + margin: -6px 0px 10px; + font-weight: 600; } p.up-more2 { - margin: -6px 0px 0px; + margin: -6px 0px 0px; } div.fade { - opacity: 0.8; + opacity: 0.8; } /* End Test */ + +/* Tables */ + +.table>tbody>tr>th +{ + padding-left:3px; + padding-bottom:3px; + border: 1px solid #ddd; + background-color: #f9f9f9; + padding-right:1px; +} + +.table > tbody > tr > td +{ + padding:4px; +} + +.panel > .table, +.panel > .table-responsive > .table { + margin-bottom: 0; +} + +.table-responsive +{ + white-space: nowrap; + width: 100%; + margin-bottom: 15px; + overflow-x: scroll; + overflow-y: hidden; + -webkit-overflow-scrolling: touch; + -ms-overflow-style: -ms-autohiding-scrollbar; +} + +/* End Tables */ + +/* Footer */ + +.footer { + clear: both; + text-align: center; + padding: 4px 0px 0px; + font-size: 11px; + width: 100%; +} + +.confirmations { + color: #F79D00; +} + +/* End Footer */ + + diff --git a/public/templates/bootstrap/account/earnings/default.tpl b/public/templates/bootstrap/account/earnings/default.tpl index 896fedec..cd152992 100644 --- a/public/templates/bootstrap/account/earnings/default.tpl +++ b/public/templates/bootstrap/account/earnings/default.tpl @@ -10,12 +10,13 @@
- All Time + Summary
{$LASTBLOCKSBYTIME.TotalAmount|number_format}{$LASTBLOCKSBYTIME.TotalAmount|number_format:"2"} {($LASTBLOCKSBYTIME.Total|default:"0.00" / ($FIRSTBLOCKFOUND / $COINGENTIME) * 100)|number_format:"2"}%
{$LASTBLOCKSBYTIME.1HourAmount|number_format}{$LASTBLOCKSBYTIME.1HourAmount|number_format:"2"} {($LASTBLOCKSBYTIME.1HourTotal|default:"0.00" / (3600 / $COINGENTIME) * 100)|number_format:"2"}%
{$LASTBLOCKSBYTIME.24HourAmount|number_format}{$LASTBLOCKSBYTIME.24HourAmount|number_format:"2"} {($LASTBLOCKSBYTIME.24HourTotal|default:"0.00" / (86400 / $COINGENTIME) * 100)|number_format:"2"}%
{$LASTBLOCKSBYTIME.7DaysAmount}{$LASTBLOCKSBYTIME.7DaysAmount|number_format:"2"} {($LASTBLOCKSBYTIME.7DaysTotal|default:"0.00" / (604800 / $COINGENTIME) * 100)|number_format:"2"}%
{$LASTBLOCKSBYTIME.4WeeksAmount|number_format}{$LASTBLOCKSBYTIME.4WeeksAmount|number_format:"2"} {($LASTBLOCKSBYTIME.4WeeksTotal|default:"0.00" / (2419200 / $COINGENTIME) * 100)|number_format:"2"}%
{$LASTBLOCKSBYTIME.12MonthAmount|number_format}{$LASTBLOCKSBYTIME.12MonthAmount|number_format:"2"} {($LASTBLOCKSBYTIME.12MonthTotal|default:"0.00" / (29030400 / $COINGENTIME) * 100)|number_format:"2"}%
+ {foreach $SUMMARY as $type=>$total} {/foreach} @@ -23,6 +24,7 @@ + {foreach $SUMMARY as $type=>$total} {/foreach} @@ -44,7 +46,7 @@
{$type}
All Time{$total|number_format:"8"}
- + @@ -57,7 +59,7 @@ - @@ -68,7 +70,7 @@ - @@ -79,7 +81,7 @@ - @@ -90,7 +92,7 @@ - @@ -101,7 +103,7 @@ - @@ -117,7 +119,6 @@ - diff --git a/public/templates/bootstrap/account/transactions/default.tpl b/public/templates/bootstrap/account/transactions/default.tpl index 9cfdff13..5ba392b4 100644 --- a/public/templates/bootstrap/account/transactions/default.tpl +++ b/public/templates/bootstrap/account/transactions/default.tpl @@ -1,5 +1,5 @@
-
+ @@ -31,14 +31,14 @@
-
+
Transaction History
-
Credit Debit AP Debit MP
Last Hour + Last Hour {$BYTIME.1HourCredit|number_format:"8"} {$BYTIME.1HourDebitAP|number_format:"8"} {$BYTIME.1HourDebitMP|number_format:"8"}{$BYTIME.1HourTXFee|number_format:"8"}
Last Day + Last Day {$BYTIME.24HourCredit|number_format:"8"} {$BYTIME.24HourDebitAP|number_format:"8"} {$BYTIME.24HourDebitMP|number_format:"8"}{$BYTIME.24HourTXFee|number_format:"8"}
Last Week + Last Week {$BYTIME.1WeekCredit|number_format:"8"} {$BYTIME.1WeekDebitAP|number_format:"8"} {$BYTIME.1WeekDebitMP|number_format:"8"}{$BYTIME.1WeekTXFee|number_format:"8"}
Last Month + Last Month {$BYTIME.1MonthCredit|number_format:"8"} {$BYTIME.1MonthDebitAP|number_format:"8"} {$BYTIME.1MonthDebitMP|number_format:"8"}{$BYTIME.1MonthTXFee|number_format:"8"}
Last Year + Last Year {$BYTIME.1YearCredit|number_format:"8"} {$BYTIME.1YearDebitAP|number_format:"8"} {$BYTIME.1YearDebitMP|number_format:"8"}
+
@@ -54,10 +54,10 @@ {section transaction $TRANSACTIONS} - - - - + + + - + {if ! $GLOBAL.website.transactionexplorer.disabled} - + {else} - + {/if} - - + + {/section} diff --git a/public/templates/bootstrap/account/workers/default.tpl b/public/templates/bootstrap/account/workers/default.tpl index 8ca7e40a..6a6dbc8b 100644 --- a/public/templates/bootstrap/account/workers/default.tpl +++ b/public/templates/bootstrap/account/workers/default.tpl @@ -42,7 +42,7 @@ - {if $GLOBAL.config.disable_notifications != 1 && $DISABLE_IDLEWORKERNOTIFICATIONS != 1}{/if} + {if $GLOBAL.config.disable_notifications != 1 && $DISABLE_IDLEWORKERNOTIFICATIONS != 1}{/if} @@ -62,7 +62,7 @@ {if $GLOBAL.config.disable_notifications != 1 && $DISABLE_IDLEWORKERNOTIFICATIONS != 1} - diff --git a/public/templates/bootstrap/admin/registrations/default.tpl b/public/templates/bootstrap/admin/registrations/default.tpl index 1bbaba47..93ba2acd 100644 --- a/public/templates/bootstrap/admin/registrations/default.tpl +++ b/public/templates/bootstrap/admin/registrations/default.tpl @@ -3,7 +3,7 @@
- Last registered Users + Last Registered Users
@@ -15,7 +15,7 @@
- + @@ -25,7 +25,7 @@ - + {/section} diff --git a/public/templates/bootstrap/admin/transactions/default.tpl b/public/templates/bootstrap/admin/transactions/default.tpl index cf2cf547..27a159ae 100644 --- a/public/templates/bootstrap/admin/transactions/default.tpl +++ b/public/templates/bootstrap/admin/transactions/default.tpl @@ -7,7 +7,7 @@
-
ID
{$TRANSACTIONS[transaction].id}{$TRANSACTIONS[transaction].timestamp}{$TRANSACTIONS[transaction].type} + {$TRANSACTIONS[transaction].id}{$TRANSACTIONS[transaction].timestamp}{$TRANSACTIONS[transaction].type} {if $TRANSACTIONS[transaction].type == 'Credit_PPS' OR $TRANSACTIONS[transaction].type == 'Fee_PPS' OR $TRANSACTIONS[transaction].type == 'Donation_PPS' OR @@ -73,14 +73,14 @@ Unconfirmed {/if} {$TRANSACTIONS[transaction].coin_address|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].coin_address|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}{if $TRANSACTIONS[transaction].height == 0}n/a{else}{$TRANSACTIONS[transaction].height}{/if}{$TRANSACTIONS[transaction].amount|number_format:"8"}{if $TRANSACTIONS[transaction].height == 0}n/a{else}{$TRANSACTIONS[transaction].height}{/if}{$TRANSACTIONS[transaction].amount|number_format:"8"}
Worker Login Worker Password ActiveMonitorMonitorKhash/s Difficulty Action + eMail Reg. Date InviteInvited fromInvited From
{$LASTREGISTEREDUSERS[user].mposuser} {$LASTREGISTEREDUSERS[user].email} {$LASTREGISTEREDUSERS[user].signup_timestamp|date_format:"%d/%m %H:%M:%S"}{if !$LASTREGISTEREDUSERS[user].inviter}{else}{/if}{if !$LASTREGISTEREDUSERS[user].inviter}{else}{/if} {$LASTREGISTEREDUSERS[user].inviter}
+
{foreach $SUMMARY as $type=>$total} @@ -31,7 +31,7 @@ {/if}
-
+ @@ -73,14 +73,14 @@ -
+
Transaction History
-
+
@@ -97,11 +97,11 @@ {section transaction $TRANSACTIONS} - - - - - + + + + - + {if ! $GLOBAL.website.transactionexplorer.disabled} - + {else} - + {/if} - - + + {/section} diff --git a/public/templates/bootstrap/admin/user/default.tpl b/public/templates/bootstrap/admin/user/default.tpl index 1abd3eae..8853efc5 100644 --- a/public/templates/bootstrap/admin/user/default.tpl +++ b/public/templates/bootstrap/admin/user/default.tpl @@ -88,7 +88,7 @@ - + {if $GLOBAL.config.payout_system != 'pps'} @@ -109,31 +109,31 @@ {nocache} {section name=user loop=$USERS|default} - - - - - + + + + + {if $GLOBAL.config.payout_system != 'pps'} - - + + {else} - + {/if} - - - - + + + - - - + - - + + - + - + @@ -45,11 +45,11 @@ 0.00% {/if} - + - + @@ -70,11 +70,11 @@ 0.00% {/if} - + - + @@ -95,11 +95,11 @@ 0.00% {/if} - + - + @@ -120,11 +120,11 @@ 0.00% {/if} - + - + @@ -145,11 +145,11 @@ 0.00% {/if} - + - + @@ -170,7 +170,7 @@ 0.00% {/if} - + @@ -178,8 +178,8 @@ - + \ No newline at end of file diff --git a/public/templates/bootstrap/statistics/blocks/blocks_found_details.tpl b/public/templates/bootstrap/statistics/blocks/blocks_found_details.tpl index d223ee68..53c0cf72 100644 --- a/public/templates/bootstrap/statistics/blocks/blocks_found_details.tpl +++ b/public/templates/bootstrap/statistics/blocks/blocks_found_details.tpl @@ -9,7 +9,7 @@
ID
{$TRANSACTIONS[transaction].id}{$TRANSACTIONS[transaction].username}{$TRANSACTIONS[transaction].timestamp}{$TRANSACTIONS[transaction].type} + {$TRANSACTIONS[transaction].id}{$TRANSACTIONS[transaction].username}{$TRANSACTIONS[transaction].timestamp}{$TRANSACTIONS[transaction].type} {if $TRANSACTIONS[transaction].type == 'Credit_PPS' OR $TRANSACTIONS[transaction].type == 'Fee_PPS' OR $TRANSACTIONS[transaction].type == 'Donation_PPS' OR @@ -113,14 +113,14 @@ {else if $TRANSACTIONS[transaction].confirmations == -1}Orphaned {else}Unconfirmed{/if} {$TRANSACTIONS[transaction].coin_address|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].coin_address|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}{$TRANSACTIONS[transaction].txid|truncate:20:"...":true:true}{if $TRANSACTIONS[transaction].height == 0}n/a{else}{/if}{$TRANSACTIONS[transaction].height}{$TRANSACTIONS[transaction].amount|number_format:"8"}{if $TRANSACTIONS[transaction].height == 0}n/a{else}{/if}{$TRANSACTIONS[transaction].height}{$TRANSACTIONS[transaction].amount|number_format:"8"}
ID UsernameE-MaileMail Shares Hashrate
{$USERS[user].id}{$USERS[user].username|escape}{$USERS[user].email|escape}{$USERS[user].shares.valid}{$USERS[user].hashrate}{$USERS[user].id}{$USERS[user].username|escape}{$USERS[user].email|escape}{$USERS[user].shares.valid}{$USERS[user].hashrate}{$USERS[user].estimates.donation|number_format:"8"}{$USERS[user].estimates.payout|number_format:"8"}{$USERS[user].estimates.donation|number_format:"8"}{$USERS[user].estimates.payout|number_format:"8"}{$USERS[user].estimates.hours24|number_format:"8"}{$USERS[user].estimates.hours24|number_format:"8"}{$USERS[user].balance|number_format:"8"}{$USERS[user].signup_timestamp|date_format:"%d/%m %H:%M:%S"}{$USERS[user].last_login|date_format:"%d/%m %H:%M:%S"} + {$USERS[user].balance|number_format:"8"}{$USERS[user].signup_timestamp|date_format:"%d/%m %H:%M:%S"}{$USERS[user].last_login|date_format:"%d/%m %H:%M:%S"} + + diff --git a/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl b/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl index 2ac6687f..383107d6 100644 --- a/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl +++ b/public/templates/bootstrap/statistics/blocks/block_overview_time.tpl @@ -10,21 +10,21 @@
Gen est.Gen. Est. Found Valid OrphanAvg DiffShares est.Avg. DiffShares Est. Shares Percentage AmountRate est.Rate Est.
all timeAll Time {($FIRSTBLOCKFOUND / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.Total|number_format} {$LASTBLOCKSBYTIME.TotalValid|number_format}{$LASTBLOCKSBYTIME.TotalAmount|number_format}{$LASTBLOCKSBYTIME.TotalAmount|number_format:"2"} {($LASTBLOCKSBYTIME.Total|default:"0.00" / ($FIRSTBLOCKFOUND / $COINGENTIME) * 100)|number_format:"2"}%
last hourLast Hour {(3600 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.1HourTotal|number_format} {$LASTBLOCKSBYTIME.1HourValid|number_format}{$LASTBLOCKSBYTIME.1HourAmount|number_format}{$LASTBLOCKSBYTIME.1HourAmount|number_format:"2"} {($LASTBLOCKSBYTIME.1HourTotal|default:"0.00" / (3600 / $COINGENTIME) * 100)|number_format:"2"}%
last 24 hoursLast 24 Hours {(86400 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.24HourTotal|number_format} {$LASTBLOCKSBYTIME.24HourValid|number_format}{$LASTBLOCKSBYTIME.24HourAmount|number_format}{$LASTBLOCKSBYTIME.24HourAmount|number_format:"2"} {($LASTBLOCKSBYTIME.24HourTotal|default:"0.00" / (86400 / $COINGENTIME) * 100)|number_format:"2"}%
last 7 daysLast 7 Days {(604800 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.7DaysTotal|number_format} {$LASTBLOCKSBYTIME.7DaysValid|number_format}{$LASTBLOCKSBYTIME.7DaysAmount}{$LASTBLOCKSBYTIME.7DaysAmount|number_format:"2"} {($LASTBLOCKSBYTIME.7DaysTotal|default:"0.00" / (604800 / $COINGENTIME) * 100)|number_format:"2"}%
last 4 WeeksLast 4 Weeks {(2419200 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.4WeeksTotal|number_format} {$LASTBLOCKSBYTIME.4WeeksValid|number_format}{$LASTBLOCKSBYTIME.4WeeksAmount|number_format}{$LASTBLOCKSBYTIME.4WeeksAmount|number_format:"2"} {($LASTBLOCKSBYTIME.4WeeksTotal|default:"0.00" / (2419200 / $COINGENTIME) * 100)|number_format:"2"}%
last 12 MonthThe Past 12 Months {(29030400 / $COINGENTIME)|number_format} {$LASTBLOCKSBYTIME.12MonthTotal|number_format} {$LASTBLOCKSBYTIME.12MonthValid|number_format}{$LASTBLOCKSBYTIME.12MonthAmount|number_format}{$LASTBLOCKSBYTIME.12MonthAmount|number_format:"2"} {($LASTBLOCKSBYTIME.12MonthTotal|default:"0.00" / (29030400 / $COINGENTIME) * 100)|number_format:"2"}%
- + @@ -32,7 +32,7 @@ {assign var="count" value=$count+1} {if $GLOBAL.config.payout_system == 'pplns'}{assign var="pplnsshares" value=$pplnsshares+$BLOCKSFOUND[block].pplns_shares}{/if} {if ! $GLOBAL.website.blockexplorer.disabled} - + {else} {/if} @@ -46,7 +46,7 @@ {/if} - + + {if $DISABLE_POOLNEWSLETTER|default:"" != 1} + + + + + {/if}
BlockBlock Validity Finder Time{$BLOCKSFOUND[block].height}{$BLOCKSFOUND[block].height}{$BLOCKSFOUND[block].height} {if $BLOCKSFOUND[block].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$BLOCKSFOUND[block].finder|default:"unknown"|escape}{/if}{$BLOCKSFOUND[block].time|date_format:"%d/%m %H:%M:%S"}{$BLOCKSFOUND[block].time|date_format:"%d/%m/%Y %H:%M:%S"} {$BLOCKSFOUND[block].difficulty|number_format:"4"} {$BLOCKSFOUND[block].amount|number_format:"2"} @@ -77,7 +77,7 @@ diff --git a/public/templates/bootstrap/statistics/blocks/small_table.tpl b/public/templates/bootstrap/statistics/blocks/small_table.tpl index 8c7c5919..2c1c4303 100644 --- a/public/templates/bootstrap/statistics/blocks/small_table.tpl +++ b/public/templates/bootstrap/statistics/blocks/small_table.tpl @@ -32,7 +32,7 @@ {if $GLOBAL.config.payout_system != 'pps'} {/if} From 88aa40351bd85b944f2eb367988f71b0032dafe5 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Wed, 2 Apr 2014 17:37:02 +0200 Subject: [PATCH 33/51] [FIX] typo --- public/templates/bootstrap/account/edit/cashout.tpl | 2 +- public/templates/bootstrap/account/edit/detail.tpl | 2 +- public/templates/bootstrap/account/edit/password.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/templates/bootstrap/account/edit/cashout.tpl b/public/templates/bootstrap/account/edit/cashout.tpl index 8a853351..1008fda9 100644 --- a/public/templates/bootstrap/account/edit/cashout.tpl +++ b/public/templates/bootstrap/account/edit/cashout.tpl @@ -28,7 +28,7 @@ {nocache}{/nocache}
- +
diff --git a/public/templates/bootstrap/account/edit/detail.tpl b/public/templates/bootstrap/account/edit/detail.tpl index 35049d54..6ca4d131 100644 --- a/public/templates/bootstrap/account/edit/detail.tpl +++ b/public/templates/bootstrap/account/edit/detail.tpl @@ -54,7 +54,7 @@ Hide username on website from others. Admins can still get your user information.
- + The 4 digit PIN you chose when registering
diff --git a/public/templates/bootstrap/account/edit/password.tpl b/public/templates/bootstrap/account/edit/password.tpl index fa3d23e6..6110a543 100644 --- a/public/templates/bootstrap/account/edit/password.tpl +++ b/public/templates/bootstrap/account/edit/password.tpl @@ -31,7 +31,7 @@ {nocache}{/nocache}
- +
From 4702339b9ad3d81b3c674b425271ae46a6c967de Mon Sep 17 00:00:00 2001 From: Boris Date: Thu, 3 Apr 2014 14:52:01 +0100 Subject: [PATCH 34/51] [FIX] Remove static table references --- public/include/classes/transaction.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/include/classes/transaction.class.php b/public/include/classes/transaction.class.php index 60d178b5..1999fd4b 100644 --- a/public/include/classes/transaction.class.php +++ b/public/include/classes/transaction.class.php @@ -150,8 +150,8 @@ class Transaction extends Base { IFNULL(SUM(IF(t.type = 'TXFee' AND timestamp >= DATE_SUB(now(), INTERVAL 31536000 SECOND), t.amount, 0)), 0) AS 1YearTXFee, IFNULL(SUM(IF(t.type = 'Fee' AND timestamp >= DATE_SUB(now(), INTERVAL 31536000 SECOND), t.amount, 0)), 0) AS 1YearFee, IFNULL(SUM(IF(t.type = 'Donation' AND timestamp >= DATE_SUB(now(), INTERVAL 31536000 SECOND), t.amount, 0)), 0) AS 1YearDonation - FROM transactions AS t - LEFT OUTER JOIN blocks AS b ON b.id = t.block_id + FROM $this->table AS t + LEFT OUTER JOIN " . $this->block->getTableName() . " AS b ON b.id = t.block_id WHERE t.account_id = ? AND (b.confirmations > 0 OR b.id IS NULL)"); if ($this->checkStmt($stmt) && $stmt->bind_param("i", $account_id) && $stmt->execute() && $result = $stmt->get_result()) From 8b6f2913842cc69cd9c43a5660f99cfc593addf2 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Thu, 3 Apr 2014 16:25:31 +0200 Subject: [PATCH 35/51] [UPDATE] hide/show qrcode page --- public/include/config/admin_settings.inc.php | 7 +++++++ public/include/pages/account/qrcode.inc.php | 12 +++++++++++- public/include/smarty_globals.inc.php | 1 + .../templates/bootstrap/account/qrcode/disabled.tpl | 0 public/templates/bootstrap/global/navigation.tpl | 2 +- 5 files changed, 20 insertions(+), 2 deletions(-) create mode 100755 public/templates/bootstrap/account/qrcode/disabled.tpl diff --git a/public/include/config/admin_settings.inc.php b/public/include/config/admin_settings.inc.php index fbc396b6..48a5a0d6 100644 --- a/public/include/config/admin_settings.inc.php +++ b/public/include/config/admin_settings.inc.php @@ -279,6 +279,13 @@ $aSettings['acl'][] = array( 'name' => 'acl_moot_forum', 'value' => $setting->getValue('acl_moot_forum'), 'tooltip' => 'Make the forum page private (users only) or public.' ); +$aSettings['acl'][] = array( + 'display' => 'QRCode', 'type' => 'select', + 'options' => array( 0 => 'Enabled', 1 => 'Disabled' ), + 'default' => 0, + 'name' => 'acl_qrcode', 'value' => $setting->getValue('acl_qrcode'), + 'tooltip' => 'Hide or Show the QRCode Page.' +); $aSettings['system'][] = array( 'display' => 'E-mail address for system error notifications', 'type' => 'text', 'size' => 25, diff --git a/public/include/pages/account/qrcode.inc.php b/public/include/pages/account/qrcode.inc.php index 3171ded7..6e30b898 100644 --- a/public/include/pages/account/qrcode.inc.php +++ b/public/include/pages/account/qrcode.inc.php @@ -1,5 +1,15 @@ isAuthenticated()) $smarty->assign("CONTENT", "default.tpl"); +switch($setting->getValue('acl_qrcode')) { +case '0': + if ($user->isAuthenticated()) { + $smarty->assign("CONTENT", "default.tpl"); + } + break; +case '1': + $_SESSION['POPUP'][] = array('CONTENT' => 'Page currently disabled. Please try again later.', 'TYPE' => 'alert alert-danger'); + $smarty->assign("CONTENT", ""); + break; +} ?> diff --git a/public/include/smarty_globals.inc.php b/public/include/smarty_globals.inc.php index 0365ee32..d19fd00b 100644 --- a/public/include/smarty_globals.inc.php +++ b/public/include/smarty_globals.inc.php @@ -134,6 +134,7 @@ $aGlobal['acl']['about']['page'] = $setting->getValue('acl_about_page'); $aGlobal['acl']['contactform'] = $setting->getValue('acl_contactform'); $aGlobal['acl']['chat']['page'] = $setting->getValue('acl_chat_page', 2); $aGlobal['acl']['moot']['forum'] = $setting->getValue('acl_moot_forum', 2); +$aGlobal['acl']['qrcode'] = $setting->getValue('acl_qrcode'); // We don't want these session infos cached if (@$_SESSION['USERDATA']['id']) { diff --git a/public/templates/bootstrap/account/qrcode/disabled.tpl b/public/templates/bootstrap/account/qrcode/disabled.tpl new file mode 100755 index 00000000..e69de29b diff --git a/public/templates/bootstrap/global/navigation.tpl b/public/templates/bootstrap/global/navigation.tpl index d7ec51be..e360a61c 100644 --- a/public/templates/bootstrap/global/navigation.tpl +++ b/public/templates/bootstrap/global/navigation.tpl @@ -18,7 +18,7 @@
  • Earnings
  • {if !$GLOBAL.config.disable_notifications}
  • Notifications
  • {/if} {if !$GLOBAL.config.disable_invitations}
  • Invitations
  • {/if} -
  • QR Codes
  • + {if !$GLOBAL.acl.qrcode}
  • QR Codes
  • {/if} From 739f035087cd49be56657064581915bd609108e2 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 4 Apr 2014 10:05:12 +0200 Subject: [PATCH 36/51] [ADDED] Admin Pool Newsletter * Added throttle option to swiftmailer for SMTP limiting * Added newsletter page for admin panel * Added newsletter mail template (simple one for now) * Added new global configuration option * Added default notification setting system in notification class * Added global pool newsletter enable/disable switch in admin settings Fixes #2087 once merged. --- public/include/classes/mail.class.php | 10 ++++- public/include/classes/notification.class.php | 10 +++++ public/include/config/admin_settings.inc.php | 7 ++++ public/include/config/global.inc.dist.php | 1 + .../pages/account/notifications.inc.php | 1 + public/include/pages/admin/newsletter.inc.php | 41 +++++++++++++++++++ .../account/notifications/default.tpl | 13 +++++- .../bootstrap/admin/newsletter/default.tpl | 37 +++++++++++++++++ .../templates/bootstrap/global/navigation.tpl | 1 + public/templates/mail/newsletter/body.tpl | 9 ++++ 10 files changed, 128 insertions(+), 2 deletions(-) create mode 100644 public/include/pages/admin/newsletter.inc.php create mode 100644 public/templates/bootstrap/admin/newsletter/default.tpl create mode 100644 public/templates/mail/newsletter/body.tpl diff --git a/public/include/classes/mail.class.php b/public/include/classes/mail.class.php index 51a228ba..a5c4fc6b 100644 --- a/public/include/classes/mail.class.php +++ b/public/include/classes/mail.class.php @@ -52,7 +52,7 @@ class Mail extends Base { * subject : Mail Subject * email : Destination address **/ - public function sendMail($template, $aData) { + public function sendMail($template, $aData, $throttle=false) { // Prepare SMTP transport and mailer $transport_type = $this->config['swiftmailer']['type']; if ($transport_type == 'sendmail') { @@ -65,6 +65,14 @@ class Mail extends Base { } } $mailer = Swift_Mailer::newInstance($transport); + + // Throttle mails to x per minute, used for newsletter for example + if ($this->config['swiftmailer']['type'] == 'smtp' && $throttle) { + $mailer->registerPlugin(new Swift_Plugins_ThrottlerPlugin( + $this->config['switfmailer']['smtp']['throttle'], Swift_Plugins_ThrottlerPlugin::MESSAGES_PER_MINUTE + )); + } + // Prepare the smarty templates used $this->smarty->clearCache(BASEPATH . 'templates/mail/' . $template . '.tpl'); $this->smarty->clearCache(BASEPATH . 'templates/mail/subject.tpl'); diff --git a/public/include/classes/notification.class.php b/public/include/classes/notification.class.php index cc586ce1..a393a99e 100644 --- a/public/include/classes/notification.class.php +++ b/public/include/classes/notification.class.php @@ -72,13 +72,23 @@ class Notification extends Mail { * @return array Notification settings **/ public function getNotificationSettings($account_id) { + // Some defaults, we cover them here so we can avoid adding default settings on user creation + $aDefaults = array( 'newsletter' => 1 ); $this->debug->append("STA " . __METHOD__, 4); $stmt = $this->mysqli->prepare("SELECT * FROM $this->tableSettings WHERE account_id = ?"); if ($stmt && $stmt->bind_param('i', $account_id) && $stmt->execute() && $result = $stmt->get_result()) { if ($result->num_rows > 0) { + $aFound = array(); while ($row = $result->fetch_assoc()) { + if (array_key_exists($row['type'], $aDefaults)) $aFound[] = $row['type']; $aData[$row['type']] = $row['active']; } + // Check found types against our defaults, set if required + foreach ($aDefaults as $type => $value) { + if (!in_array($type, $aFound)) { + $aData[$type] = $value; + } + } return $aData; } } diff --git a/public/include/config/admin_settings.inc.php b/public/include/config/admin_settings.inc.php index 48a5a0d6..e0adf7cb 100644 --- a/public/include/config/admin_settings.inc.php +++ b/public/include/config/admin_settings.inc.php @@ -468,6 +468,13 @@ $aSettings['notifications'][] = array( 'name' => 'notifications_disable_idle_worker', 'value' => $setting->getValue('notifications_disable_idle_worker'), 'tooltip' => 'Enable/Disable IDLE worker notifications globally. Will remove the user option too.' ); +$aSettings['notifications'][] = array( + 'display' => 'Disable Pool Newsletter', 'type' => 'select', + 'options' => array( 0 => 'No', 1 => 'Yes'), + 'default' => 0, + 'name' => 'notifications_disable_pool_newsletter', 'value' => $setting->getValue('notifications_disable_pool_newsletter'), + 'tooltip' => 'Enable/Disable pool newsletter globally. Will remove the user option too.' +); $aSettings['pools'][] = array( 'display' => 'Enable Pool Navigation', 'type' => 'select', 'options' => array( 0 => 'No', 1 => 'Yes' ), diff --git a/public/include/config/global.inc.dist.php b/public/include/config/global.inc.dist.php index 548db7b6..c5fd9d74 100644 --- a/public/include/config/global.inc.dist.php +++ b/public/include/config/global.inc.dist.php @@ -70,6 +70,7 @@ $config['switfmailer']['smtp']['port'] = '587'; $config['switfmailer']['smtp']['encryption'] = 'tls'; $config['switfmailer']['smtp']['username'] = ''; $config['switfmailer']['smtp']['password'] = ''; +$config['switfmailer']['smtp']['throttle'] = 100; /** * Getting Started Config diff --git a/public/include/pages/account/notifications.inc.php b/public/include/pages/account/notifications.inc.php index ef26761c..f06c796a 100644 --- a/public/include/pages/account/notifications.inc.php +++ b/public/include/pages/account/notifications.inc.php @@ -25,6 +25,7 @@ if ($user->isAuthenticated()) { // Fetch global settings $smarty->assign('DISABLE_BLOCKNOTIFICATIONS', $setting->getValue('notifications_disable_block')); $smarty->assign('DISABLE_IDLEWORKERNOTIFICATIONS', $setting->getValue('notifications_disable_idle_worker')); + $smarty->assign('DISABLE_POOLNEWSLETTER', $setting->getValue('notifications_disable_pool_newsletter')); // Fetch user notification settings $aSettings = $notification->getNotificationSettings($_SESSION['USERDATA']['id']); diff --git a/public/include/pages/admin/newsletter.inc.php b/public/include/pages/admin/newsletter.inc.php new file mode 100644 index 00000000..10a69c09 --- /dev/null +++ b/public/include/pages/admin/newsletter.inc.php @@ -0,0 +1,41 @@ +isAuthenticated() || !$user->isAdmin($_SESSION['USERDATA']['id'])) { + header("HTTP/1.1 404 Page not found"); + die("404 Page not found"); +} + +// Include markdown library +use \Michelf\Markdown; + +if ($setting->getValue('notifications_disable_pool_newsletter', 0) == 1) { + $_SESSION['POPUP'][] = array('CONTENT' => 'Pool newsletters are disabled.', 'TYPE' => 'alert alert-info'); + $smarty->assign("CONTENT", ""); +} else { + if (@$_REQUEST['do'] == 'send') { + if (!$config['csrf']['enabled'] || $config['csrf']['enabled'] && $csrftoken->valid) { + $iFailed = 0; + $iSuccess = 0; + foreach ($user->getAllAssoc() as $aData) { + $aUserNotificationSettings = $notification->getNotificationSettings($aData['id']); + if (!$aUserNotificationSettings['newsletter'] == 1) continue; + $aData['subject'] = $_REQUEST['data']['subject']; + $aData['CONTENT'] = $_REQUEST['data']['content']; + if (!$mail->sendMail('newsletter/body', $aData, true)) { + $iFailed++; + } else { + $iSuccess++; + } + } + $_SESSION['POPUP'][] = array('CONTENT' => 'Newsletter sent to ' . $iSuccess . ' users.', 'TYPE' => 'alert alert-success'); + if ($iFailed > 0) + $_SESSION['POPUP'][] = array('CONTENT' => 'Failed to send e-mail to ' . $iFailed . ' users. ', 'TYPE' => 'alert alert-info'); + } else { + $_SESSION['POPUP'][] = array('CONTENT' => $csrftoken->getErrorWithDescriptionHTML(), 'TYPE' => 'alert alert-warning'); + } + } + $smarty->assign("CONTENT", "default.tpl"); +} +?> diff --git a/public/templates/bootstrap/account/notifications/default.tpl b/public/templates/bootstrap/account/notifications/default.tpl index ab2fedea..f1fa1a0d 100644 --- a/public/templates/bootstrap/account/notifications/default.tpl +++ b/public/templates/bootstrap/account/notifications/default.tpl @@ -50,6 +50,17 @@
    + + + + +
    - \ No newline at end of file + diff --git a/public/templates/bootstrap/admin/newsletter/default.tpl b/public/templates/bootstrap/admin/newsletter/default.tpl new file mode 100644 index 00000000..11721854 --- /dev/null +++ b/public/templates/bootstrap/admin/newsletter/default.tpl @@ -0,0 +1,37 @@ + + + +
    + +
    +
    + Write Newsletter +
    + Newsletters support the Markdown syntax +
    +
    +
    +
    + + + + +
    + + +
    +
    + + +
    +
    +
    +
    + +
    + +
    diff --git a/public/templates/bootstrap/global/navigation.tpl b/public/templates/bootstrap/global/navigation.tpl index e360a61c..5a09ab9d 100644 --- a/public/templates/bootstrap/global/navigation.tpl +++ b/public/templates/bootstrap/global/navigation.tpl @@ -34,6 +34,7 @@
  • Transactions
  • Settings
  • News
  • +
  • Newsletter
  • Reports
  • Registrations
  • Invitations
  • diff --git a/public/templates/mail/newsletter/body.tpl b/public/templates/mail/newsletter/body.tpl new file mode 100644 index 00000000..f7860adc --- /dev/null +++ b/public/templates/mail/newsletter/body.tpl @@ -0,0 +1,9 @@ + + +

    Dear {nocache}{$DATA.username}{/nocache},

    +
    +{$DATA.CONTENT} +
    +

    + + From 3b26d455c280afe0b8ffa88ad857f04cdb36a750 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Fri, 4 Apr 2014 10:25:00 +0200 Subject: [PATCH 37/51] rebase --- public/site_assets/bootstrap/css/mpos.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/site_assets/bootstrap/css/mpos.css b/public/site_assets/bootstrap/css/mpos.css index 758f2b4e..d50f08af 100644 --- a/public/site_assets/bootstrap/css/mpos.css +++ b/public/site_assets/bootstrap/css/mpos.css @@ -605,12 +605,14 @@ div.fade { /* Footer */ + .footer { clear: both; text-align: center; padding: 4px 0px 0px; font-size: 11px; width: 100%; + margin-bottom: 5px !important; } .confirmations { From e1be46b6eb7ab2bba070ab497be74aaaea8eb1ee Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 4 Apr 2014 10:25:35 +0200 Subject: [PATCH 38/51] [FIX] Skip locked accounts --- public/include/pages/admin/newsletter.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/pages/admin/newsletter.inc.php b/public/include/pages/admin/newsletter.inc.php index 10a69c09..ccac1018 100644 --- a/public/include/pages/admin/newsletter.inc.php +++ b/public/include/pages/admin/newsletter.inc.php @@ -20,7 +20,7 @@ if ($setting->getValue('notifications_disable_pool_newsletter', 0) == 1) { $iSuccess = 0; foreach ($user->getAllAssoc() as $aData) { $aUserNotificationSettings = $notification->getNotificationSettings($aData['id']); - if (!$aUserNotificationSettings['newsletter'] == 1) continue; + if ($aData['is_locked'] != 0 || !$aUserNotificationSettings['newsletter'] == 1) continue; $aData['subject'] = $_REQUEST['data']['subject']; $aData['CONTENT'] = $_REQUEST['data']['content']; if (!$mail->sendMail('newsletter/body', $aData, true)) { From 37cdadbabc4b076bdf0de5f93a034c2ea3ba2e5c Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Fri, 4 Apr 2014 10:28:49 +0200 Subject: [PATCH 39/51] rollback --- public/site_assets/bootstrap/css/mpos.css | 30 +++++++---------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/public/site_assets/bootstrap/css/mpos.css b/public/site_assets/bootstrap/css/mpos.css index d50f08af..64e61275 100644 --- a/public/site_assets/bootstrap/css/mpos.css +++ b/public/site_assets/bootstrap/css/mpos.css @@ -434,6 +434,14 @@ div.dataTables_paginate ul.pagination { border: none; } +.footer { + clear: both; + text-align: center; + padding: 4px 0px 0px; + font-size: 11px; + width: 100%; +} + .margin-bottom-sm { margin-bottom: 5px !important; } @@ -601,24 +609,4 @@ div.fade { -ms-overflow-style: -ms-autohiding-scrollbar; } -/* End Tables */ - -/* Footer */ - - -.footer { - clear: both; - text-align: center; - padding: 4px 0px 0px; - font-size: 11px; - width: 100%; - margin-bottom: 5px !important; -} - -.confirmations { - color: #F79D00; -} - -/* End Footer */ - - +/* End Tables */ \ No newline at end of file From 22e9a62d4e14989ac9dd4eaf2b0c5976be563b3d Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Fri, 4 Apr 2014 10:30:14 +0200 Subject: [PATCH 40/51] [UPDATE] style fixes --- public/site_assets/bootstrap/css/mpos.css | 30 ++++++++++++++++------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/public/site_assets/bootstrap/css/mpos.css b/public/site_assets/bootstrap/css/mpos.css index 64e61275..d50f08af 100644 --- a/public/site_assets/bootstrap/css/mpos.css +++ b/public/site_assets/bootstrap/css/mpos.css @@ -434,14 +434,6 @@ div.dataTables_paginate ul.pagination { border: none; } -.footer { - clear: both; - text-align: center; - padding: 4px 0px 0px; - font-size: 11px; - width: 100%; -} - .margin-bottom-sm { margin-bottom: 5px !important; } @@ -609,4 +601,24 @@ div.fade { -ms-overflow-style: -ms-autohiding-scrollbar; } -/* End Tables */ \ No newline at end of file +/* End Tables */ + +/* Footer */ + + +.footer { + clear: both; + text-align: center; + padding: 4px 0px 0px; + font-size: 11px; + width: 100%; + margin-bottom: 5px !important; +} + +.confirmations { + color: #F79D00; +} + +/* End Footer */ + + From 022430dddbf634cd8e9f12793a993805671f2d98 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 4 Apr 2014 12:26:08 +0200 Subject: [PATCH 41/51] [FIX] Logic error for notification setting --- public/include/pages/admin/newsletter.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/pages/admin/newsletter.inc.php b/public/include/pages/admin/newsletter.inc.php index ccac1018..69204b01 100644 --- a/public/include/pages/admin/newsletter.inc.php +++ b/public/include/pages/admin/newsletter.inc.php @@ -20,7 +20,7 @@ if ($setting->getValue('notifications_disable_pool_newsletter', 0) == 1) { $iSuccess = 0; foreach ($user->getAllAssoc() as $aData) { $aUserNotificationSettings = $notification->getNotificationSettings($aData['id']); - if ($aData['is_locked'] != 0 || !$aUserNotificationSettings['newsletter'] == 1) continue; + if ($aData['is_locked'] != 0 || $aUserNotificationSettings['newsletter'] != 1) continue; $aData['subject'] = $_REQUEST['data']['subject']; $aData['CONTENT'] = $_REQUEST['data']['content']; if (!$mail->sendMail('newsletter/body', $aData, true)) { From f54ece7ee9c00385148aa89c798324612360c896 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 4 Apr 2014 12:51:15 +0200 Subject: [PATCH 42/51] [FIX] Return defaults with no settings at all --- public/include/classes/notification.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/include/classes/notification.class.php b/public/include/classes/notification.class.php index a393a99e..44860281 100644 --- a/public/include/classes/notification.class.php +++ b/public/include/classes/notification.class.php @@ -90,6 +90,9 @@ class Notification extends Mail { } } return $aData; + } else { + foreach ($aDefaults as $type => $value) $aData[$type] = $value; + return $aData; } } return $this->sqlError('E0045'); From 601c3943fb943809bc873ebbfad9cb8ee977c635 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Sat, 5 Apr 2014 08:58:49 +0200 Subject: [PATCH 43/51] [UPDATE] move donors to stats --- public/include/pages/{about => statistics}/donors.inc.php | 0 public/templates/bootstrap/global/navigation.tpl | 2 +- .../bootstrap/{about => statistics}/donors/default.tpl | 0 .../bootstrap/{about => statistics}/donors/disabled.tpl | 0 4 files changed, 1 insertion(+), 1 deletion(-) rename public/include/pages/{about => statistics}/donors.inc.php (100%) rename public/templates/bootstrap/{about => statistics}/donors/default.tpl (100%) rename public/templates/bootstrap/{about => statistics}/donors/disabled.tpl (100%) diff --git a/public/include/pages/about/donors.inc.php b/public/include/pages/statistics/donors.inc.php similarity index 100% rename from public/include/pages/about/donors.inc.php rename to public/include/pages/statistics/donors.inc.php diff --git a/public/templates/bootstrap/global/navigation.tpl b/public/templates/bootstrap/global/navigation.tpl index 5a09ab9d..6982f8d2 100644 --- a/public/templates/bootstrap/global/navigation.tpl +++ b/public/templates/bootstrap/global/navigation.tpl @@ -53,6 +53,7 @@ {acl_check page='statistics' action='blockfinder' name=' Blockfinder' acl=$GLOBAL.acl.blockfinder.statistics} {acl_check page='statistics' action='uptime' name=' Uptime' acl=$GLOBAL.acl.uptime.statistics} {acl_check page='statistics' action='graphs' name=' Graphs' acl=$GLOBAL.acl.graphs.statistics} + {acl_check page='statistics' action='donors' name=' Donors' acl=$GLOBAL.acl.donors.page} @@ -61,7 +62,6 @@ diff --git a/public/templates/bootstrap/about/donors/default.tpl b/public/templates/bootstrap/statistics/donors/default.tpl similarity index 100% rename from public/templates/bootstrap/about/donors/default.tpl rename to public/templates/bootstrap/statistics/donors/default.tpl diff --git a/public/templates/bootstrap/about/donors/disabled.tpl b/public/templates/bootstrap/statistics/donors/disabled.tpl similarity index 100% rename from public/templates/bootstrap/about/donors/disabled.tpl rename to public/templates/bootstrap/statistics/donors/disabled.tpl From 73137ac6e03f545b54fe783a4cc216c5c518d4a1 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 5 Apr 2014 18:12:44 -0400 Subject: [PATCH 44/51] Typo: "paypout" -> "payout" --- public/templates/mpos/about/pool/default.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/mpos/about/pool/default.tpl b/public/templates/mpos/about/pool/default.tpl index e0aedaff..bef761eb 100644 --- a/public/templates/mpos/about/pool/default.tpl +++ b/public/templates/mpos/about/pool/default.tpl @@ -18,7 +18,7 @@ Below is a standard FAQ.
  • Q: What is a Orphan Block?
  •  A: Coins generated by a block will not be available to you right away. They will take some time to be confirmed by the entire network before you are allowed to transfer them out of the pool. Usually coins have a confirmation set to 120. What that actually means: the network (not the pool) has to discover 120 additional blocks on top of the one found by the pool to confirm it.

    -
  • Q: What is estimated paypout?
  • +
  • Q: What is estimated payout?
  •  A: Estimated Payout is your Estimated payout if a block is found at that time. This is an estimate according to your amount of shares submitted for the round(s).

  • Q: What is Pool-variance?
  • From b2a189c3f01233c8e2219b39e35c9828b73ca1fd Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 5 Apr 2014 18:13:14 -0400 Subject: [PATCH 45/51] Typo: "paypout" -> "payout" --- public/templates/bootstrap/about/pool/default.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/bootstrap/about/pool/default.tpl b/public/templates/bootstrap/about/pool/default.tpl index a3a94c5d..92559fc1 100644 --- a/public/templates/bootstrap/about/pool/default.tpl +++ b/public/templates/bootstrap/about/pool/default.tpl @@ -18,7 +18,7 @@
  • Q: What is a Orphan Block?
  •  A: Coins generated by a block will not be available to you right away. They will take some time to be confirmed by the entire network before you are allowed to transfer them out of the pool. Usually coins have a confirmation set to 120. What that actually means: the network (not the pool) has to discover 120 additional blocks on top of the one found by the pool to confirm it.

    -
  • Q: What is estimated paypout?
  • +
  • Q: What is estimated payout?
  •  A: Estimated Payout is your Estimated payout if a block is found at that time. This is an estimate according to your amount of shares submitted for the round(s).

  • Q: What is Pool-variance?
  • From 7e38b98e8f59aec8e222f8953916c9fd7156faaf Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sun, 6 Apr 2014 10:05:08 +0200 Subject: [PATCH 46/51] [FIX] Unset website email, mail issues --- public/include/classes/mail.class.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/public/include/classes/mail.class.php b/public/include/classes/mail.class.php index a5c4fc6b..b67ad7ac 100644 --- a/public/include/classes/mail.class.php +++ b/public/include/classes/mail.class.php @@ -34,7 +34,7 @@ class Mail extends Base { $aData['senderEmail'] = $senderEmail; $aData['senderSubject'] = $senderSubject; $aData['senderMessage'] = $senderMessage; - $aData['email'] = $this->setting->getValue('website_email'); + $aData['email'] = $this->setting->getValue('website_email', 'test@example.com'); $aData['subject'] = 'Contact Form'; if ($this->sendMail('contactform/body', $aData)) { return true; @@ -81,14 +81,16 @@ class Mail extends Base { $this->smarty->assign('DATA', $aData); // Create new message for Swiftmailer + $senderEmail = $this->setting->getValue('website_email', 'test@example.com'); + $senderName = $this->setting->getValue('website_name', 'test@example.com'); $message = Swift_Message::newInstance() ->setSubject($this->smarty->fetch(BASEPATH . 'templates/mail/subject.tpl')) - ->setFrom(array( $this->setting->getValue('website_email') => $this->setting->getValue('website_name'))) + ->setFrom(array( $senderEmail => $senderName)) ->setTo($aData['email']) - ->setSender($this->setting->getValue('website_email')) - ->setReturnPath($this->setting->getValue('website_email')) + ->setSender($senderEmail) + ->setReturnPath($senderEmail) ->setBody($this->smarty->fetch(BASEPATH . 'templates/mail/' . $template . '.tpl'), 'text/html'); - if (strlen(@$aData['senderName']) > 0 && @strlen($aData['senderEmail']) > 0 ) + if (strlen($aData['senderName']) > 0 && strlen($aData['senderEmail']) > 0 && filter_var($aData['senderEmail'], FILTER_VALIDATE_EMAIL)) $message->setReplyTo(array($aData['senderEmail'] => $aData['senderName'])); // Send message out with configured transport From a8d633e7bad47c0b4bc6fd6c873a8b5d8b85885d Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Sun, 6 Apr 2014 17:05:59 +0200 Subject: [PATCH 47/51] [FIX] PHP notice in cronjob --- cronjobs/payouts.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cronjobs/payouts.php b/cronjobs/payouts.php index 0edb9b3c..5b9caa73 100755 --- a/cronjobs/payouts.php +++ b/cronjobs/payouts.php @@ -46,10 +46,10 @@ if (!$dWalletBalance = $bitcoin->getrealbalance()) // Fetch unconfirmed amount from blocks table empty($config['network_confirmations']) ? $confirmations = 120 : $confirmations = $config['network_confirmations']; +$aBlocksUnconfirmed = $block->getAllUnconfirmed($confirmations); +$dBlocksUnconfirmedBalance = 0; +if (!empty($aBlocksUnconfirmed))foreach ($aBlocksUnconfirmed as $aData) $dBlocksUnconfirmedBalance += $aData['amount']; if ($config['getbalancewithunconfirmed']) { - $aBlocksUnconfirmed = $block->getAllUnconfirmed($confirmations); - $dBlocksUnconfirmedBalance = 0; - if (!empty($aBlocksUnconfirmed))foreach ($aBlocksUnconfirmed as $aData) $dBlocksUnconfirmedBalance += $aData['amount']; $dWalletBalance -= $dBlocksUnconfirmedBalance; } // Fetch Newmint @@ -133,10 +133,10 @@ if (!$dWalletBalance = $bitcoin->getrealbalance()) // Fetch unconfirmed amount from blocks table empty($config['network_confirmations']) ? $confirmations = 120 : $confirmations = $config['network_confirmations']; +$aBlocksUnconfirmed = $block->getAllUnconfirmed($confirmations); +$dBlocksUnconfirmedBalance = 0; +if (!empty($aBlocksUnconfirmed))foreach ($aBlocksUnconfirmed as $aData) $dBlocksUnconfirmedBalance += $aData['amount']; if ($config['getbalancewithunconfirmed']) { - $aBlocksUnconfirmed = $block->getAllUnconfirmed($confirmations); - $dBlocksUnconfirmedBalance = 0; - if (!empty($aBlocksUnconfirmed))foreach ($aBlocksUnconfirmed as $aData) $dBlocksUnconfirmedBalance += $aData['amount']; $dWalletBalance -= $dBlocksUnconfirmedBalance; } // Fetch Newmint From 870ad5298575487f458f9f3464c726c9ff9e360e Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sun, 6 Apr 2014 17:31:42 +0200 Subject: [PATCH 48/51] [FIX] PHP Notice on failed crons --- public/include/classes/mail.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/classes/mail.class.php b/public/include/classes/mail.class.php index b67ad7ac..3c016e9c 100644 --- a/public/include/classes/mail.class.php +++ b/public/include/classes/mail.class.php @@ -90,7 +90,7 @@ class Mail extends Base { ->setSender($senderEmail) ->setReturnPath($senderEmail) ->setBody($this->smarty->fetch(BASEPATH . 'templates/mail/' . $template . '.tpl'), 'text/html'); - if (strlen($aData['senderName']) > 0 && strlen($aData['senderEmail']) > 0 && filter_var($aData['senderEmail'], FILTER_VALIDATE_EMAIL)) + if (strlen(@$aData['senderName']) > 0 && strlen(@$aData['senderEmail']) > 0 && filter_var(@$aData['senderEmail'], FILTER_VALIDATE_EMAIL)) $message->setReplyTo(array($aData['senderEmail'] => $aData['senderName'])); // Send message out with configured transport From 0677321259851e4b7d81d8fcfedd3512bbefba40 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 7 Apr 2014 09:55:02 +0200 Subject: [PATCH 49/51] [CLEANUP] Use of isset instead of @ --- public/include/classes/mail.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/include/classes/mail.class.php b/public/include/classes/mail.class.php index 3c016e9c..3a26b089 100644 --- a/public/include/classes/mail.class.php +++ b/public/include/classes/mail.class.php @@ -90,7 +90,11 @@ class Mail extends Base { ->setSender($senderEmail) ->setReturnPath($senderEmail) ->setBody($this->smarty->fetch(BASEPATH . 'templates/mail/' . $template . '.tpl'), 'text/html'); - if (strlen(@$aData['senderName']) > 0 && strlen(@$aData['senderEmail']) > 0 && filter_var(@$aData['senderEmail'], FILTER_VALIDATE_EMAIL)) + if (isset($aData['senderName']) && + isset($aData['senderEmail']) && + strlen($aData['senderName']) > 0 && + strlen($aData['senderEmail']) > 0 && + filter_var($aData['senderEmail'], FILTER_VALIDATE_EMAIL)) $message->setReplyTo(array($aData['senderEmail'] => $aData['senderName'])); // Send message out with configured transport From be83880e1d18db7ea761c44feee7e6b0f4524776 Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Mon, 7 Apr 2014 11:48:37 +0200 Subject: [PATCH 50/51] [FIX] firefox bug aligning the dropdowns --- public/site_assets/bootstrap/css/mpos.css | 1 + 1 file changed, 1 insertion(+) diff --git a/public/site_assets/bootstrap/css/mpos.css b/public/site_assets/bootstrap/css/mpos.css index 321230ad..d8cd9220 100644 --- a/public/site_assets/bootstrap/css/mpos.css +++ b/public/site_assets/bootstrap/css/mpos.css @@ -96,6 +96,7 @@ input[type="color"], .select-mini, .input-group { font-size: 11px; height: 25px; + padding: 3px; } /* Navigation */ From 43c3239b0a54b3b45caf8e35ab99c00ffc7a17fa Mon Sep 17 00:00:00 2001 From: Boris Date: Mon, 7 Apr 2014 11:03:59 +0100 Subject: [PATCH 51/51] Reword T&C's last point as points are no longer numbered. --- public/templates/bootstrap/tac/content.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/bootstrap/tac/content.tpl b/public/templates/bootstrap/tac/content.tpl index 447b0c49..869b0115 100644 --- a/public/templates/bootstrap/tac/content.tpl +++ b/public/templates/bootstrap/tac/content.tpl @@ -6,5 +6,5 @@
  • The Pool is not an e-wallet or a bank for your coins. The Pool and it's operators are not responsible for any loss of coins which are stored on the Pool. It is your responsibility to configure your account so that the coins you mine are regularly transferred to your own secured offline wallet.
  • The uptime of the pool or website is not guaranteed, maintenance and downtime may be required at times. Users are responsible for configuring their miners so that they will automatically reconnect, switch to all the pools we offer or a backup pool in the case of downtime.
  • Botnets are not welcome. Accounts with a large amount of miners connecting from different IPs may be suspended without prior notice. If we are uncertian then an investigation will be opened and the user will be notified via their configured e-mail address. If we do not receive a response your account may be suspended.
  • -
  • Multiple accounts controlled by one person may be considered as a botnet and a investigation will be opened, see 6.
  • +
  • Multiple accounts controlled by one person may be considered as a botnet and an investigation will be opened, see above point.
  • \ No newline at end of file