diff --git a/templates/bluemoon/admin/wallet/transactions.tpl b/templates/bluemoon/admin/wallet/transactions.tpl
new file mode 100644
index 00000000..63f627ca
--- /dev/null
+++ b/templates/bluemoon/admin/wallet/transactions.tpl
@@ -0,0 +1,43 @@
+
+
+
+
+ Last {$TRANSACTIONS|count} transactions
+
+
+
+
+
+
+ Account
+ Address
+ Category
+ Amount
+ Confirmations
+ Transaction ID
+ Time
+
+
+
+{foreach key=KEY item=ARRAY from=$TRANSACTIONS}
+
+ {$ARRAY['account']|default:"Default"}
+ {$ARRAY['address']|default:""}
+ {$ARRAY['category']|capitalize}
+ {$ARRAY['amount']|number_format:"$PRECISION"}
+ {$ARRAY['confirmations']}
+
+ {if !$GLOBAL.website.transactionexplorer.disabled}
+ {$ARRAY['txid']|truncate:20:"...":false:true}
+ {else}
+ {$ARRAY['txid']|truncate:20:"...":false:true}
+ {/if}
+
+ {$ARRAY['time']|date_format:$GLOBAL.config.date}
+
+{/foreach}
+
+
+
+
+
diff --git a/templates/bluemoon/contactform/contactform/default.tpl b/templates/bluemoon/contactform/contactform/default.tpl
new file mode 100644
index 00000000..738291db
--- /dev/null
+++ b/templates/bluemoon/contactform/contactform/default.tpl
@@ -0,0 +1,45 @@
+
diff --git a/templates/bluemoon/contactform/default.tpl b/templates/bluemoon/contactform/default.tpl
new file mode 100644
index 00000000..a2509e4f
--- /dev/null
+++ b/templates/bluemoon/contactform/default.tpl
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+ Contact Us
+
+
+
+
+
+ Your Name
+
+
+
+ Your Email Address
+
+
+
+ Your Subject
+
+
+
+
{nocache}{$RECAPTCHA|default:"" nofilter}{/nocache}
+
+
+
+
+ Your Message
+ {$smarty.request.senderMessage|escape|default:""}
+
+
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/contactform/disabled.tpl b/templates/bluemoon/contactform/disabled.tpl
new file mode 100644
index 00000000..50933cdd
--- /dev/null
+++ b/templates/bluemoon/contactform/disabled.tpl
@@ -0,0 +1,19 @@
+
+
+
+
+ Contact & Support
+
+
+
+
+ This product comes 'as-is' without any warranty. Please check the Apache License, Version 2.0, for details.
+
+
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/dashboard/account_data/_workers.tpl b/templates/bluemoon/dashboard/account_data/_workers.tpl
new file mode 100644
index 00000000..4e3887d1
--- /dev/null
+++ b/templates/bluemoon/dashboard/account_data/_workers.tpl
@@ -0,0 +1,15 @@
+ {if !$DISABLED_DASHBOARD and !$DISABLED_DASHBOARD_API}
+
+
+
+ Worker
+ Hashrate
+ Difficulty
+
+
+
+ No worker information available
+
+
+
+ {/if}
diff --git a/templates/bluemoon/dashboard/account_data/default.tpl b/templates/bluemoon/dashboard/account_data/default.tpl
new file mode 100644
index 00000000..cef98720
--- /dev/null
+++ b/templates/bluemoon/dashboard/account_data/default.tpl
@@ -0,0 +1,46 @@
+
+
+
+
Account Information
+
+
+
+
+
+ {if $GLOBAL.userdata.no_fees}
+ You are mining without any pool fees applied and
+ {else if $GLOBAL.fees > 0}
+ You are mining at {if $GLOBAL.fees < 0.0001}{$GLOBAL.fees|escape|number_format:"8"}{else}{$GLOBAL.fees|escape}{/if}% pool fee and
+ {else}
+ This pool does not apply fees and
+ {/if}
+ {if $GLOBAL.userdata.donate_percent > 0}
+ you donate {$GLOBAL.userdata.donate_percent|escape}% .
+ {else}
+ you are not donating .
+ {/if}
+
+
+
+
+
+ {$GLOBAL.config.currency} Account Balance
+
+
+
+ Confirmed
+
+ {$GLOBAL.userdata.balance.confirmed|number_format:"6"}
+
+
+
+ Unconfirmed
+
+ {$GLOBAL.userdata.balance.unconfirmed|number_format:"6"}
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/dashboard/blocks/default.tpl b/templates/bluemoon/dashboard/blocks/default.tpl
new file mode 100644
index 00000000..d947f537
--- /dev/null
+++ b/templates/bluemoon/dashboard/blocks/default.tpl
@@ -0,0 +1,49 @@
+{if !$DISABLED_DASHBOARD and !$DISABLED_DASHBOARD_API}
+
+
+
+
Last Found Blocks
+
+
+
+
+
+ Height
+ Finder
+ Time
+ Difficulty
+ Amount
+ Expected Shares
+ Actual Shares
+ Percentage
+
+
+
+{section block $BLOCKSFOUND}
+
+ {$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:$GLOBAL.config.date}
+ {$BLOCKSFOUND[block].difficulty|number_format:"4"}
+ {$BLOCKSFOUND[block].amount|number_format:"2"}
+ {$BLOCKSFOUND[block].estshares|number_format}
+ {$BLOCKSFOUND[block].shares|number_format}
+
+ {math assign="percentage" equation="shares / estshares * 100" shares=$BLOCKSFOUND[block].shares|default:"0" estshares=$BLOCKSFOUND[block].estshares}
+ {$percentage|number_format:"2"}
+
+
+{/section}
+
+
+
+ {if $GLOBAL.website.blockfindersound.enabled|default:"1"}
+
+
+
+ {/if}
+
+
+{/if}
\ No newline at end of file
diff --git a/templates/bluemoon/dashboard/default.tpl b/templates/bluemoon/dashboard/default.tpl
new file mode 100644
index 00000000..9deac4c8
--- /dev/null
+++ b/templates/bluemoon/dashboard/default.tpl
@@ -0,0 +1,38 @@
+{if $smarty.session.AUTHENTICATED|default}
+
+
+
+
+
+
+
+
Overview
+
+
+
+
+ {* Load our payout system so we can load some payout specific templates *}
+ {assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
+ {include file="dashboard/overview/default.tpl"}
+ {include file="dashboard/round_statistics/$PAYOUT_SYSTEM/default.tpl"}
+ {include file="dashboard/account_data/default.tpl"}
+ {if !$DISABLED_API}
+ {include file="dashboard/worker_information/default.tpl"}
+ {/if}
+ {include file="dashboard/blocks/default.tpl"}
+
+
+
+
+
+
+
+ {* Include our JS libraries, we allow a live updating JS and a static one *}
+ {if !$DISABLED_DASHBOARD and !$DISABLED_DASHBOARD_API}
+ {include file="dashboard/js/api.tpl"}
+ {else}
+ {include file="dashboard/js/static.tpl"}
+ {/if}
+{/if}
diff --git a/templates/bluemoon/dashboard/js/api.tpl b/templates/bluemoon/dashboard/js/api.tpl
new file mode 100644
index 00000000..8387434d
--- /dev/null
+++ b/templates/bluemoon/dashboard/js/api.tpl
@@ -0,0 +1,307 @@
+
+
+
diff --git a/templates/bluemoon/dashboard/js/static.tpl b/templates/bluemoon/dashboard/js/static.tpl
new file mode 100644
index 00000000..c3f4eade
--- /dev/null
+++ b/templates/bluemoon/dashboard/js/static.tpl
@@ -0,0 +1,6 @@
+
diff --git a/templates/bluemoon/dashboard/overview/_with_price_graph.tpl b/templates/bluemoon/dashboard/overview/_with_price_graph.tpl
new file mode 100644
index 00000000..7f2a6e44
--- /dev/null
+++ b/templates/bluemoon/dashboard/overview/_with_price_graph.tpl
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
My Hashrate
+
+ {$GLOBAL.userdata.hashrate|number_format:"2"}
+ {$GLOBAL.hashunits.personal}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Pool Hashrate
+
+ {$GLOBAL.hashrate|number_format:"2"}
+ {$GLOBAL.hashunits.pool}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
My Sharerate
+
+ {$GLOBAL.userdata.sharerate|number_format:"2"}
+ S/s
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Pool Workers
+
+ {$GLOBAL.workers}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Net Hashrate
+
+ {if $GLOBAL.nethashrate > 0}{$GLOBAL.nethashrate|number_format:"2"}{else}n/a{/if}
+ {$GLOBAL.hashunits.network}
+
+
+
+
+
+
+
+
+
+
+
+
+
{$GLOBAL.config.currency}/{$GLOBAL.config.price.currency}
+
+ {$GLOBAL.price|default:"0"|number_format:"8"}
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/dashboard/overview/_without_price_graph.tpl b/templates/bluemoon/dashboard/overview/_without_price_graph.tpl
new file mode 100644
index 00000000..5ccbe0f5
--- /dev/null
+++ b/templates/bluemoon/dashboard/overview/_without_price_graph.tpl
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+
My Hashrate
+
+ {$GLOBAL.userdata.hashrate|number_format:"2"}
+ {$GLOBAL.hashunits.personal}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Pool Hashrate
+
+ {$GLOBAL.hashrate|number_format:"2"}
+ {$GLOBAL.hashunits.pool}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
My Sharerate
+
+ {$GLOBAL.userdata.sharerate|number_format:"2"}
+ S/s
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Pool Workers
+
+ {$GLOBAL.workers}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Net Hashrate
+
+ {if $GLOBAL.nethashrate > 0}{$GLOBAL.nethashrate|number_format:"2"}{else}n/a{/if}
+ {$GLOBAL.hashunits.network}
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/dashboard/overview/default.tpl b/templates/bluemoon/dashboard/overview/default.tpl
new file mode 100644
index 00000000..94652aad
--- /dev/null
+++ b/templates/bluemoon/dashboard/overview/default.tpl
@@ -0,0 +1,19 @@
+
+
+
+
+ Pool Information
+
+
+
+
+
diff --git a/templates/bluemoon/dashboard/round_statistics/pplns/default.tpl b/templates/bluemoon/dashboard/round_statistics/pplns/default.tpl
new file mode 100644
index 00000000..d5c4927a
--- /dev/null
+++ b/templates/bluemoon/dashboard/round_statistics/pplns/default.tpl
@@ -0,0 +1,22 @@
+
+
+
+
+ Round Information
+
+
+ {assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
+ {include file="dashboard/round_statistics/$PAYOUT_SYSTEM/round.tpl"}
+
+
+
+
+
+
+ Share Information
+
+
+ {assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
+ {include file="dashboard/round_statistics/$PAYOUT_SYSTEM/shares.tpl"}
+
+
diff --git a/templates/bluemoon/dashboard/round_statistics/pplns/round.tpl b/templates/bluemoon/dashboard/round_statistics/pplns/round.tpl
new file mode 100644
index 00000000..234e31ce
--- /dev/null
+++ b/templates/bluemoon/dashboard/round_statistics/pplns/round.tpl
@@ -0,0 +1,94 @@
+
diff --git a/templates/bluemoon/dashboard/round_statistics/pplns/shares.tpl b/templates/bluemoon/dashboard/round_statistics/pplns/shares.tpl
new file mode 100644
index 00000000..68e8ee60
--- /dev/null
+++ b/templates/bluemoon/dashboard/round_statistics/pplns/shares.tpl
@@ -0,0 +1,47 @@
+
diff --git a/templates/bluemoon/dashboard/round_statistics/pps/default.tpl b/templates/bluemoon/dashboard/round_statistics/pps/default.tpl
new file mode 100644
index 00000000..d5c4927a
--- /dev/null
+++ b/templates/bluemoon/dashboard/round_statistics/pps/default.tpl
@@ -0,0 +1,22 @@
+
+
+
+
+ Round Information
+
+
+ {assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
+ {include file="dashboard/round_statistics/$PAYOUT_SYSTEM/round.tpl"}
+
+
+
+
+
+
+ Share Information
+
+
+ {assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
+ {include file="dashboard/round_statistics/$PAYOUT_SYSTEM/shares.tpl"}
+
+
diff --git a/templates/bluemoon/dashboard/round_statistics/pps/round.tpl b/templates/bluemoon/dashboard/round_statistics/pps/round.tpl
new file mode 100644
index 00000000..7fc95e6c
--- /dev/null
+++ b/templates/bluemoon/dashboard/round_statistics/pps/round.tpl
@@ -0,0 +1,154 @@
+
diff --git a/templates/bluemoon/dashboard/round_statistics/pps/shares.tpl b/templates/bluemoon/dashboard/round_statistics/pps/shares.tpl
new file mode 100644
index 00000000..19968d36
--- /dev/null
+++ b/templates/bluemoon/dashboard/round_statistics/pps/shares.tpl
@@ -0,0 +1,47 @@
+
+
+
+
+ Own
+ Pool
+
+
+ Valid
+
+
+
{$GLOBAL.userdata.shares.valid|number_format:$GLOBAL.config.sharediffprecision}
+
+
+
+
+
{$GLOBAL.roundshares.valid|number_format:$GLOBAL.config.sharediffprecision}
+
+
+
+
+ Invalid
+
+
+
{$GLOBAL.userdata.shares.invalid|number_format:$GLOBAL.config.sharediffprecision}
+
+
+
+
+
{$GLOBAL.roundshares.invalid|number_format:$GLOBAL.config.sharediffprecision}
+
+
+
+
+ Efficiency
+
+
+
{if $GLOBAL.userdata.shares.valid > 0}{(100 - ($GLOBAL.userdata.shares.invalid / ($GLOBAL.userdata.shares.valid + $GLOBAL.userdata.shares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}
+
+
+
+
+
{if $GLOBAL.roundshares.valid > 0}{(100 - ($GLOBAL.roundshares.invalid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100))|number_format:"2"}%{else}0.00%{/if}
+
+
+
+
diff --git a/templates/bluemoon/dashboard/round_statistics/prop/default.tpl b/templates/bluemoon/dashboard/round_statistics/prop/default.tpl
new file mode 100644
index 00000000..d5c4927a
--- /dev/null
+++ b/templates/bluemoon/dashboard/round_statistics/prop/default.tpl
@@ -0,0 +1,22 @@
+
+
+
+
+ Round Information
+
+
+ {assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
+ {include file="dashboard/round_statistics/$PAYOUT_SYSTEM/round.tpl"}
+
+
+
+
+
+
+ Share Information
+
+
+ {assign var=PAYOUT_SYSTEM value=$GLOBAL.config.payout_system}
+ {include file="dashboard/round_statistics/$PAYOUT_SYSTEM/shares.tpl"}
+
+
diff --git a/templates/bluemoon/dashboard/round_statistics/prop/round.tpl b/templates/bluemoon/dashboard/round_statistics/prop/round.tpl
new file mode 100644
index 00000000..1fe67f59
--- /dev/null
+++ b/templates/bluemoon/dashboard/round_statistics/prop/round.tpl
@@ -0,0 +1,94 @@
+
diff --git a/templates/bluemoon/dashboard/round_statistics/prop/shares.tpl b/templates/bluemoon/dashboard/round_statistics/prop/shares.tpl
new file mode 100644
index 00000000..68e8ee60
--- /dev/null
+++ b/templates/bluemoon/dashboard/round_statistics/prop/shares.tpl
@@ -0,0 +1,47 @@
+
diff --git a/templates/bluemoon/dashboard/worker_information/default.tpl b/templates/bluemoon/dashboard/worker_information/default.tpl
new file mode 100644
index 00000000..499e7360
--- /dev/null
+++ b/templates/bluemoon/dashboard/worker_information/default.tpl
@@ -0,0 +1,23 @@
+{if !$DISABLED_DASHBOARD and !$DISABLED_DASHBOARD_API}
+
+
+
+
Worker Information
+
+
+
+
+
+ Worker
+ Hashrate
+ Difficulty
+
+
+
+ No worker information available
+
+
+
+
+
+{/if}
diff --git a/templates/bluemoon/error/404/default.tpl b/templates/bluemoon/error/404/default.tpl
new file mode 100644
index 00000000..36f017b7
--- /dev/null
+++ b/templates/bluemoon/error/404/default.tpl
@@ -0,0 +1,6 @@
+
+
+
+
The page you requested was not found.
+
+
diff --git a/templates/bluemoon/error/default.tpl b/templates/bluemoon/error/default.tpl
new file mode 100644
index 00000000..36f017b7
--- /dev/null
+++ b/templates/bluemoon/error/default.tpl
@@ -0,0 +1,6 @@
+
+
+
+
The page you requested was not found.
+
+
diff --git a/templates/bluemoon/error/ratelimit/default.tpl b/templates/bluemoon/error/ratelimit/default.tpl
new file mode 100644
index 00000000..7ab5c72b
--- /dev/null
+++ b/templates/bluemoon/error/ratelimit/default.tpl
@@ -0,0 +1,6 @@
+
+Request rate limit exceeded
+
+
You're sending too many requests too fast!
+
+
\ No newline at end of file
diff --git a/templates/bluemoon/gettingstarted/default.tpl b/templates/bluemoon/gettingstarted/default.tpl
new file mode 100644
index 00000000..955629c2
--- /dev/null
+++ b/templates/bluemoon/gettingstarted/default.tpl
@@ -0,0 +1,75 @@
+
+
+
+
+ Getting Started Guide
+
+
+
+
1. Create account.
+
+ Register here , or login if you already have account
+ Create a worker that will be used by the miner to login
+
+
+
2. Download a miner.
+
+
+
3. Configure your miner.
+
+ If your using Linux, Then type the following into the console:
+ CGMiner
+ ./cgminer {if $GLOBAL.config.algorithm == 'scrypt'}--scrypt {/if}-o stratum+tcp://{$SITESTRATUMURL|default:$smarty.server.SERVER_NAME}:{$SITESTRATUMPORT|default:"3333"} -u Weblogin .WorkerName -p WorkerPassword
+
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.
Simply open notepad and then copy and paste the following:
+
CGMiner
+
cgminer {if $GLOBAL.config.algorithm == 'scrypt'}--scrypt {/if}-o stratum+tcp://{$SITESTRATUMURL|default:$smarty.server.SERVER_NAME}:{$SITESTRATUMPORT|default:"3333"} -u Weblogin .WorkerName -p WorkerPassword
+
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
+
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
+ {if $GLOBAL.config.algorithm == 'scrypt'}
+
Cudaminer For NVIDIA Cards
+
cudaminer -o stratum+tcp://{$SITESTRATUMURL|default:$smarty.server.SERVER_NAME}:{$SITESTRATUMPORT|default:"3333"} -u Weblogin .WorkerName -p WorkerPassword
+ {/if}
+
+
You then need to change "-u Weblogin.Worker -p Worker password" to reflect your own account. Eg, "-u Steve.StevesWorker -p StevesWorkerPassword" then go to "File > Save as" and save the file as "RunMe.bat" in the same folder containing your miners application files. You are now ready to mine, double click on "RunMe.bat" to start mining. If you want, you can create additional workers with usernames and passwords of your choice here
+
+
4. Create a {$SITECOINNAME|default:"Litecoin"} address to receive payments.
+
+
+ {if $GLOBAL.config.algorithm == 'scrypt'}
+
5. Advanced CGMiner settings / FAQ
+
+ 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 .
+ 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.
+
+
+ {/if}
+
+
+
+
+
diff --git a/templates/bluemoon/global/footer.tpl b/templates/bluemoon/global/footer.tpl
new file mode 100644
index 00000000..90fb345f
--- /dev/null
+++ b/templates/bluemoon/global/footer.tpl
@@ -0,0 +1,8 @@
+
+
diff --git a/templates/bluemoon/global/header.tpl b/templates/bluemoon/global/header.tpl
new file mode 100644
index 00000000..bb5cd24c
--- /dev/null
+++ b/templates/bluemoon/global/header.tpl
@@ -0,0 +1,85 @@
+
+
+
+
+
diff --git a/templates/bluemoon/global/navigation.tpl b/templates/bluemoon/global/navigation.tpl
new file mode 100644
index 00000000..2aae731f
--- /dev/null
+++ b/templates/bluemoon/global/navigation.tpl
@@ -0,0 +1,113 @@
+
+
+
+
+
diff --git a/templates/bluemoon/global/navjs_api.tpl b/templates/bluemoon/global/navjs_api.tpl
new file mode 100644
index 00000000..d998e926
--- /dev/null
+++ b/templates/bluemoon/global/navjs_api.tpl
@@ -0,0 +1,66 @@
+
diff --git a/templates/bluemoon/global/navjs_static.tpl b/templates/bluemoon/global/navjs_static.tpl
new file mode 100644
index 00000000..d81ad578
--- /dev/null
+++ b/templates/bluemoon/global/navjs_static.tpl
@@ -0,0 +1,42 @@
+
diff --git a/templates/bluemoon/home/default.tpl b/templates/bluemoon/home/default.tpl
new file mode 100644
index 00000000..67735384
--- /dev/null
+++ b/templates/bluemoon/home/default.tpl
@@ -0,0 +1,5 @@
+{if $GLOBAL.website.newsstyle|default:"0" == 0}
+ {include file="home/news_all.tpl"}
+{else}
+ {include file="home/news_accordion.tpl"}
+{/if}
\ No newline at end of file
diff --git a/templates/bluemoon/home/news_accordion.tpl b/templates/bluemoon/home/news_accordion.tpl
new file mode 100644
index 00000000..71392775
--- /dev/null
+++ b/templates/bluemoon/home/news_accordion.tpl
@@ -0,0 +1,27 @@
+
+
+
+
+
latest News
+
+
+
+{section name=news loop=$NEWS}
+
+
+
{$NEWS[news].header}
+
+
posted {$NEWS[news].time|date_format:$GLOBAL.config.date}{if $HIDEAUTHOR|default:"0" == 0} by {$NEWS[news].author} {/if}
+
+
+
+ {$NEWS[news].content nofilter}
+
+
+
+{/section}
+
+
+
+
+
diff --git a/templates/bluemoon/home/news_all.tpl b/templates/bluemoon/home/news_all.tpl
new file mode 100644
index 00000000..82769586
--- /dev/null
+++ b/templates/bluemoon/home/news_all.tpl
@@ -0,0 +1,16 @@
+{section name=news loop=$NEWS}
+
+
+
+
+ {$NEWS[news].header}
+
+ posted {$NEWS[news].time|date_format:$GLOBAL.config.date}{if $HIDEAUTHOR|default:"0" == 0} by {$NEWS[news].author} {/if}
+
+
+ {$NEWS[news].content nofilter}
+
+
+
+
+{/section}
diff --git a/templates/bluemoon/login/default.tpl b/templates/bluemoon/login/default.tpl
new file mode 100644
index 00000000..30ef9ed2
--- /dev/null
+++ b/templates/bluemoon/login/default.tpl
@@ -0,0 +1,27 @@
+
+
+
+
+
+ Login with existing account
+
+
+
{nocache}{$RECAPTCHA|default:"" nofilter}{/nocache}
+
+
+
+
diff --git a/templates/bluemoon/master.tpl b/templates/bluemoon/master.tpl
new file mode 100644
index 00000000..7741e02b
--- /dev/null
+++ b/templates/bluemoon/master.tpl
@@ -0,0 +1,80 @@
+
+
+
+
+
+
{$GLOBAL.website.title} - {$smarty.request.page|escape|default:"home"|capitalize}
+
+
+
+
+ {if $GLOBAL.statistics.analytics.enabled}
+ {$GLOBAL.statistics.analytics.code nofilter}
+ {/if}
+
+
+
+
+
+
+
+
+
+ {if $GLOBAL.config.website_design|default:"default" != "default"}
+
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {include file="global/header.tpl"}
+ {include file="global/navigation.tpl"}
+
+
+ {nocache}
+ {if is_array($smarty.session.POPUP|default)}
+ {section popup $smarty.session.POPUP}
+
+ {/section}
+ {/if}
+ {/nocache}
+ {if $CONTENT != "empty" && $CONTENT != ""}
+ {if file_exists($smarty.current_dir|cat:"/$PAGE/$ACTION/$CONTENT")}
+ {include file="$PAGE/$ACTION/$CONTENT"}
+ {else}
+ Missing template for this page
+ {/if}
+ {/if}
+
+ {include file="global/footer.tpl"}
+
+
diff --git a/templates/bluemoon/password/change/default.tpl b/templates/bluemoon/password/change/default.tpl
new file mode 100644
index 00000000..341abd70
--- /dev/null
+++ b/templates/bluemoon/password/change/default.tpl
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
Password reset
+
+
+
+
+
+
diff --git a/templates/bluemoon/password/default.tpl b/templates/bluemoon/password/default.tpl
new file mode 100644
index 00000000..508ade33
--- /dev/null
+++ b/templates/bluemoon/password/default.tpl
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
Password reset
+
+
+
+ If you have an email set for your account, enter your username to get your password reset
+
+
+
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/password/reset/empty.tpl b/templates/bluemoon/password/reset/empty.tpl
new file mode 100644
index 00000000..e69de29b
diff --git a/templates/bluemoon/register/default.tpl b/templates/bluemoon/register/default.tpl
new file mode 100644
index 00000000..2f49357b
--- /dev/null
+++ b/templates/bluemoon/register/default.tpl
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+ {if $smarty.request.token|default:""}
+
+ {/if}
+
+
+
+ Register new account
+
+
+
+
{nocache}{$RECAPTCHA|default:"" nofilter}{/nocache}
+
+
+
+
+
+
+
+
+
+
+
+ {include file="tac/content.tpl"}
+
+
+
+
+
+
diff --git a/templates/bluemoon/register/disabled.tpl b/templates/bluemoon/register/disabled.tpl
new file mode 100644
index 00000000..fec01255
--- /dev/null
+++ b/templates/bluemoon/register/disabled.tpl
@@ -0,0 +1 @@
+
We are currently not accepting new user registrations.
diff --git a/templates/bluemoon/register/register/empty.tpl b/templates/bluemoon/register/register/empty.tpl
new file mode 100644
index 00000000..e69de29b
diff --git a/templates/bluemoon/start/default.tpl b/templates/bluemoon/start/default.tpl
new file mode 100644
index 00000000..e69de29b
diff --git a/templates/bluemoon/statistics/blockfinder/default.tpl b/templates/bluemoon/statistics/blockfinder/default.tpl
new file mode 100644
index 00000000..34320929
--- /dev/null
+++ b/templates/bluemoon/statistics/blockfinder/default.tpl
@@ -0,0 +1,6 @@
+
+{include file="statistics/blockfinder/finder_top.tpl"}
+{if $smarty.session.AUTHENTICATED|default}
+{include file="statistics/blockfinder/finder_own.tpl" SHORT=true}
+{/if}
+
\ No newline at end of file
diff --git a/templates/bluemoon/statistics/blockfinder/finder_own.tpl b/templates/bluemoon/statistics/blockfinder/finder_own.tpl
new file mode 100644
index 00000000..74892fe4
--- /dev/null
+++ b/templates/bluemoon/statistics/blockfinder/finder_own.tpl
@@ -0,0 +1,30 @@
+
+
+
+ Blocks found by own Workers
+
+
+
+
+
+ Rank
+ Worker
+ Blocks
+ Coins Generated
+
+
+
+{assign var=rank value=1}
+{section block $BLOCKSSOLVEDBYWORKER}
+
+ {$rank++}
+ {$BLOCKSSOLVEDBYWORKER[block].finder|default:"unknown/deleted"|escape}
+ {$BLOCKSSOLVEDBYWORKER[block].solvedblocks}
+ {$BLOCKSSOLVEDBYWORKER[block].generatedcoins|number_format}
+
+{/section}
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/bluemoon/statistics/blockfinder/finder_top.tpl b/templates/bluemoon/statistics/blockfinder/finder_top.tpl
new file mode 100644
index 00000000..51ba80ef
--- /dev/null
+++ b/templates/bluemoon/statistics/blockfinder/finder_top.tpl
@@ -0,0 +1,30 @@
+
+
+
+ Top 25 Blockfinder
+
+
+
+
+
+ Rank
+ Username
+ Blocks
+ Coins Generated
+
+
+
+{assign var=rank value=1}
+{section block $BLOCKSSOLVEDBYACCOUNT}
+
+ {$rank++}
+ {if $BLOCKSSOLVEDBYACCOUNT[block].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$BLOCKSSOLVEDBYACCOUNT[block].finder|default:"unknown"|escape}{/if}
+ {$BLOCKSSOLVEDBYACCOUNT[block].solvedblocks}
+ {$BLOCKSSOLVEDBYACCOUNT[block].generatedcoins|number_format}
+
+{/section}
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/blocks/block_overview_time.tpl b/templates/bluemoon/statistics/blocks/block_overview_time.tpl
new file mode 100644
index 00000000..61bae492
--- /dev/null
+++ b/templates/bluemoon/statistics/blocks/block_overview_time.tpl
@@ -0,0 +1,192 @@
+
+
+
+
+ Block Overview
+
+
+
+
+
+
+
+ Gen. Est.
+ Found
+ Valid
+ Orphan
+ Orphan %
+ Avg. Diff
+ Shares Est.
+ Shares
+ Percentage
+ Amount
+ Rate Est.
+
+
+
+
+ All Time
+ {($FIRSTBLOCKFOUND / $COINGENTIME)|number_format}
+ {$LASTBLOCKSBYTIME.Total|number_format}
+ {$LASTBLOCKSBYTIME.TotalValid|number_format}
+ {$LASTBLOCKSBYTIME.TotalOrphan|number_format}
+ {if $LASTBLOCKSBYTIME.TotalOrphan|default:"0" > 0}{(100 / $LASTBLOCKSBYTIME.Total * $LASTBLOCKSBYTIME.TotalOrphan)|number_format:"2"}{else}0.00{/if}
+
+ {if $LASTBLOCKSBYTIME.TotalValid > 0}
+ {($LASTBLOCKSBYTIME.TotalDifficulty / $LASTBLOCKSBYTIME.TotalValid)|number_format:"4"}
+ {else}
+ 0
+ {/if}
+
+ {$LASTBLOCKSBYTIME.TotalEstimatedShares|number_format}
+ {$LASTBLOCKSBYTIME.TotalShares|number_format}
+
+ {if $LASTBLOCKSBYTIME.TotalEstimatedShares > 0}
+ {($LASTBLOCKSBYTIME.TotalShares / $LASTBLOCKSBYTIME.TotalEstimatedShares * 100)|number_format:"2"}%
+ {else}
+ 0.00%
+ {/if}
+
+ {$LASTBLOCKSBYTIME.TotalAmount|number_format:"2"}
+ {($LASTBLOCKSBYTIME.Total|default:"0.00" / ($FIRSTBLOCKFOUND / $COINGENTIME) * 100)|number_format:"2"}%
+
+
+ Last Hour
+ {(3600 / $COINGENTIME)|number_format}
+ {$LASTBLOCKSBYTIME.1HourTotal|number_format}
+ {$LASTBLOCKSBYTIME.1HourValid|number_format}
+ {$LASTBLOCKSBYTIME.1HourOrphan|number_format}
+ {if $LASTBLOCKSBYTIME.1HourOrphan|default:"0" > 0}{(100 / $LASTBLOCKSBYTIME.1HourTotal * $LASTBLOCKSBYTIME.1HourOrphan)|number_format:"2"}{else}0.00{/if}
+
+ {if $LASTBLOCKSBYTIME.1HourValid > 0}
+ {($LASTBLOCKSBYTIME.1HourDifficulty / $LASTBLOCKSBYTIME.1HourValid)|number_format:"4"}
+ {else}
+ 0
+ {/if}
+
+ {$LASTBLOCKSBYTIME.1HourEstimatedShares|number_format}
+ {$LASTBLOCKSBYTIME.1HourShares|number_format}
+
+ {if $LASTBLOCKSBYTIME.1HourEstimatedShares > 0}
+ {($LASTBLOCKSBYTIME.1HourShares / $LASTBLOCKSBYTIME.1HourEstimatedShares * 100)|number_format:"2"}%
+ {else}
+ 0.00%
+ {/if}
+
+ {$LASTBLOCKSBYTIME.1HourAmount|number_format:"2"}
+ {($LASTBLOCKSBYTIME.1HourTotal|default:"0.00" / (3600 / $COINGENTIME) * 100)|number_format:"2"}%
+
+
+ Last 24 Hours
+ {(86400 / $COINGENTIME)|number_format}
+ {$LASTBLOCKSBYTIME.24HourTotal|number_format}
+ {$LASTBLOCKSBYTIME.24HourValid|number_format}
+ {$LASTBLOCKSBYTIME.24HourOrphan|number_format}
+ {if $LASTBLOCKSBYTIME.24HourOrphan|default:"0" > 0}{(100 / $LASTBLOCKSBYTIME.24HourTotal * $LASTBLOCKSBYTIME.24HourOrphan)|number_format:"2"}{else}0.00{/if}
+
+ {if $LASTBLOCKSBYTIME.24HourValid > 0}
+ {($LASTBLOCKSBYTIME.24HourDifficulty / $LASTBLOCKSBYTIME.24HourValid)|number_format:"4"}
+ {else}
+ 0
+ {/if}
+
+ {$LASTBLOCKSBYTIME.24HourEstimatedShares|number_format}
+ {$LASTBLOCKSBYTIME.24HourShares|number_format}
+
+ {if $LASTBLOCKSBYTIME.24HourEstimatedShares > 0}
+ {($LASTBLOCKSBYTIME.24HourShares / $LASTBLOCKSBYTIME.24HourEstimatedShares * 100)|number_format:"2"}%
+ {else}
+ 0.00%
+ {/if}
+
+ {$LASTBLOCKSBYTIME.24HourAmount|number_format:"2"}
+ {($LASTBLOCKSBYTIME.24HourTotal|default:"0.00" / (86400 / $COINGENTIME) * 100)|number_format:"2"}%
+
+
+ Last 7 Days
+ {(604800 / $COINGENTIME)|number_format}
+ {$LASTBLOCKSBYTIME.7DaysTotal|number_format}
+ {$LASTBLOCKSBYTIME.7DaysValid|number_format}
+ {$LASTBLOCKSBYTIME.7DaysOrphan|number_format}
+ {if $LASTBLOCKSBYTIME.7DaysOrphan|default:"0" > 0}{(100 / $LASTBLOCKSBYTIME.7DaysTotal * $LASTBLOCKSBYTIME.7DaysOrphan)|number_format:"2"}{else}0.00{/if}
+
+ {if $LASTBLOCKSBYTIME.7DaysValid > 0}
+ {($LASTBLOCKSBYTIME.7DaysDifficulty / $LASTBLOCKSBYTIME.7DaysValid)|number_format:"4"}
+ {else}
+ 0
+ {/if}
+
+ {$LASTBLOCKSBYTIME.7DaysEstimatedShares|number_format}
+ {$LASTBLOCKSBYTIME.7DaysShares|number_format}
+
+ {if $LASTBLOCKSBYTIME.7DaysEstimatedShares > 0}
+ {($LASTBLOCKSBYTIME.7DaysShares / $LASTBLOCKSBYTIME.7DaysEstimatedShares * 100)|number_format:"2"}%
+ {else}
+ 0.00%
+ {/if}
+
+ {$LASTBLOCKSBYTIME.7DaysAmount|number_format:"2"}
+ {($LASTBLOCKSBYTIME.7DaysTotal|default:"0.00" / (604800 / $COINGENTIME) * 100)|number_format:"2"}%
+
+
+ Last 4 Weeks
+ {(2419200 / $COINGENTIME)|number_format}
+ {$LASTBLOCKSBYTIME.4WeeksTotal|number_format}
+ {$LASTBLOCKSBYTIME.4WeeksValid|number_format}
+ {$LASTBLOCKSBYTIME.4WeeksOrphan|number_format}
+ {if $LASTBLOCKSBYTIME.4WeeksOrphan|default:"0" > 0}{(100 / $LASTBLOCKSBYTIME.4WeeksTotal * $LASTBLOCKSBYTIME.4WeeksOrphan)|number_format:"2"}{else}0.00{/if}
+
+ {if $LASTBLOCKSBYTIME.4WeeksValid > 0}
+ {($LASTBLOCKSBYTIME.4WeeksDifficulty / $LASTBLOCKSBYTIME.4WeeksValid)|number_format:"4"}
+ {else}
+ 0
+ {/if}
+
+ {$LASTBLOCKSBYTIME.4WeeksEstimatedShares|number_format}
+ {$LASTBLOCKSBYTIME.4WeeksShares|number_format}
+
+ {if $LASTBLOCKSBYTIME.4WeeksEstimatedShares > 0}
+ {($LASTBLOCKSBYTIME.4WeeksShares / $LASTBLOCKSBYTIME.4WeeksEstimatedShares * 100)|number_format:"2"}%
+ {else}
+ 0.00%
+ {/if}
+
+ {$LASTBLOCKSBYTIME.4WeeksAmount|number_format:"2"}
+ {($LASTBLOCKSBYTIME.4WeeksTotal|default:"0.00" / (2419200 / $COINGENTIME) * 100)|number_format:"2"}%
+
+
+ The Past 12 Months
+ {(29030400 / $COINGENTIME)|number_format}
+ {$LASTBLOCKSBYTIME.12MonthTotal|number_format}
+ {$LASTBLOCKSBYTIME.12MonthValid|number_format}
+ {$LASTBLOCKSBYTIME.12MonthOrphan|number_format}
+ {if $LASTBLOCKSBYTIME.12MonthOrphan|default:"0" > 0}{(100 / $LASTBLOCKSBYTIME.12MonthTotal * $LASTBLOCKSBYTIME.12MonthOrphan)|number_format:"2"}{else}0.00{/if}
+
+ {if $LASTBLOCKSBYTIME.12MonthValid > 0}
+ {($LASTBLOCKSBYTIME.12MonthDifficulty / $LASTBLOCKSBYTIME.12MonthValid)|number_format:"4"}
+ {else}
+ 0
+ {/if}
+
+ {$LASTBLOCKSBYTIME.12MonthEstimatedShares|number_format}
+ {$LASTBLOCKSBYTIME.12MonthShares|number_format}
+
+ {if $LASTBLOCKSBYTIME.12MonthEstimatedShares > 0}
+ {($LASTBLOCKSBYTIME.12MonthShares / $LASTBLOCKSBYTIME.12MonthEstimatedShares * 100)|number_format:"2"}%
+ {else}
+ 0.00%
+ {/if}
+
+ {$LASTBLOCKSBYTIME.12MonthAmount|number_format:"2"}
+ {($LASTBLOCKSBYTIME.12MonthTotal|default:"0.00" / (29030400 / $COINGENTIME) * 100)|number_format:"2"}%
+
+
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/blocks/block_shares_graph.tpl b/templates/bluemoon/statistics/blocks/block_shares_graph.tpl
new file mode 100644
index 00000000..d35ff2af
--- /dev/null
+++ b/templates/bluemoon/statistics/blocks/block_shares_graph.tpl
@@ -0,0 +1,58 @@
+
+
+
diff --git a/templates/bluemoon/statistics/blocks/blocks_found_details.tpl b/templates/bluemoon/statistics/blocks/blocks_found_details.tpl
new file mode 100644
index 00000000..834c0fe2
--- /dev/null
+++ b/templates/bluemoon/statistics/blocks/blocks_found_details.tpl
@@ -0,0 +1,84 @@
+
+
+
+
+ Last {$BLOCKLIMIT} Blocks Found
+
+
+
+
+
+
+ Block
+ Validity
+ Finder
+ Time
+ Difficulty
+ Amount
+ Expected Shares
+ {if $GLOBAL.config.payout_system == 'pplns'}PPLNS Shares {/if}
+ Actual Shares
+ Percentage
+
+
+
+ {assign var=count value=0}
+ {assign var=totalexpectedshares value=0}
+ {assign var=totalshares value=0}
+ {assign var=pplnsshares value=0}
+ {section block $BLOCKSFOUND}
+
+ {assign var="totalshares" value=$totalshares+$BLOCKSFOUND[block].shares}
+ {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}
+ {$BLOCKSFOUND[block].height}
+ {else}
+ {$BLOCKSFOUND[block].height}
+ {/if}
+
+ {if $BLOCKSFOUND[block].confirmations >= $GLOBAL.confirmations}
+ Confirmed
+ {else if $BLOCKSFOUND[block].confirmations == -1}
+ Orphan
+ {else}
+ {$GLOBAL.confirmations - $BLOCKSFOUND[block].confirmations} left
+ {/if}
+
+ {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:$GLOBAL.config.date}
+ {$BLOCKSFOUND[block].difficulty|number_format:"4"}
+ {$BLOCKSFOUND[block].amount|number_format:"2"}
+
+ {assign var="totalexpectedshares" value=$totalexpectedshares+$BLOCKSFOUND[block].estshares}
+ {$BLOCKSFOUND[block].estshares|number_format}
+
+ {if $GLOBAL.config.payout_system == 'pplns'}
+ {$BLOCKSFOUND[block].pplns_shares|number_format}
+ {/if}
+ {$BLOCKSFOUND[block].shares|number_format}
+
+ {math assign="percentage" equation="shares / estshares * 100" shares=$BLOCKSFOUND[block].shares|default:"0" estshares=$BLOCKSFOUND[block].estshares}
+ {$percentage|number_format:"2"}
+
+
+ {/section}
+
+ Totals
+ {$totalexpectedshares|number_format}
+ {if $GLOBAL.config.payout_system == 'pplns'}
+ {$pplnsshares|number_format}
+ {/if}
+ {$totalshares|number_format}
+ {if $count > 0}{($totalshares / $totalexpectedshares * 100)|number_format:"2"} {else}0{/if}
+
+
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/blocks/default.tpl b/templates/bluemoon/statistics/blocks/default.tpl
new file mode 100644
index 00000000..aa72aefc
--- /dev/null
+++ b/templates/bluemoon/statistics/blocks/default.tpl
@@ -0,0 +1,3 @@
+{include file="statistics/blocks/block_shares_graph.tpl"}
+{include file="statistics/blocks/block_overview_time.tpl"}
+{include file="statistics/blocks/blocks_found_details.tpl"}
diff --git a/templates/bluemoon/statistics/blocks/small_table.tpl b/templates/bluemoon/statistics/blocks/small_table.tpl
new file mode 100644
index 00000000..544ffd22
--- /dev/null
+++ b/templates/bluemoon/statistics/blocks/small_table.tpl
@@ -0,0 +1,39 @@
+
+
+
+ Last Found Blocks
+
+
+
+
+
+ Block
+ Finder
+ Time
+ Actual Shares
+
+
+
+{assign var=rank value=1}
+{section block $BLOCKSFOUND}
+
+ {if ! $GLOBAL.website.blockexplorer.disabled}
+ {$BLOCKSFOUND[block].height}
+ {else}
+ {$BLOCKSFOUND[block].height}
+ {/if}
+ {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:$GLOBAL.config.date}
+ {$BLOCKSFOUND[block].shares|number_format}
+
+{/section}
+
+
+
+{if $GLOBAL.config.payout_system != 'pps'}
+
+{/if}
+
+
diff --git a/templates/bluemoon/statistics/default.tpl b/templates/bluemoon/statistics/default.tpl
new file mode 100644
index 00000000..21bee0e6
--- /dev/null
+++ b/templates/bluemoon/statistics/default.tpl
@@ -0,0 +1,33 @@
+
+
+
+ General Statistics
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/bluemoon/statistics/donors/default.tpl b/templates/bluemoon/statistics/donors/default.tpl
new file mode 100644
index 00000000..b6c3d321
--- /dev/null
+++ b/templates/bluemoon/statistics/donors/default.tpl
@@ -0,0 +1,33 @@
+
+
+
+
+ Pool Donors
+
+
+
+
+
+ Name
+ %
+ {$GLOBAL.config.currency} Total
+
+
+
+{section name=donor loop=$DONORS}
+
+ {if $DONORS[donor].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$DONORS[donor].username}{/if}
+ {$DONORS[donor].donate_percent}
+ {$DONORS[donor].donation|number_format:"2"}
+
+{sectionelse}
+
+ No confirmed donations yet, please be patient!
+
+{/section}
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/donors/disabled.tpl b/templates/bluemoon/statistics/donors/disabled.tpl
new file mode 100644
index 00000000..e69de29b
diff --git a/templates/bluemoon/statistics/graphs/default.tpl b/templates/bluemoon/statistics/graphs/default.tpl
new file mode 100644
index 00000000..b2007f71
--- /dev/null
+++ b/templates/bluemoon/statistics/graphs/default.tpl
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+ Average Hashrate past 24h
+
+
+
+
+
+
+
+
+
+
+
+ Average Workers past 24h
+
+
+
+
+
+
+
+
+
+
+
+ Average Sharerate past 24h
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/pool/contributors_hashrate.tpl b/templates/bluemoon/statistics/pool/contributors_hashrate.tpl
new file mode 100644
index 00000000..3b7fa0dd
--- /dev/null
+++ b/templates/bluemoon/statistics/pool/contributors_hashrate.tpl
@@ -0,0 +1,61 @@
+
+
+
+ Contributor Hashrates
+
+
+
+
+
+ Rank
+ Donor
+ User Name
+ KH/s
+ {$GLOBAL.config.currency}/Day
+ {if $GLOBAL.config.price.enabled}
+ {if $GLOBAL.config.price.currency}{$GLOBAL.config.price.currency}/Day {/if}
+ {/if}
+
+
+
+{assign var=rank value=1}
+{assign var=listed value=0}
+{section contrib $CONTRIBHASHES}
+ {math assign="estday" equation="round(reward / ( diff * pow(2,32) / ( hashrate * 1000 ) / 3600 / 24), 3)" diff=$DIFFICULTY reward=$REWARD hashrate=$CONTRIBHASHES[contrib].hashrate}
+ {if $GLOBAL.userdata.username|default:""|lower == $CONTRIBHASHES[contrib].account|lower}{assign var=listed value=1}{else} {/if}
+ {$rank++}
+ {if $CONTRIBHASHES[contrib].donate_percent|default:"0" >= 2} {elseif $CONTRIBHASHES[contrib].donate_percent|default:"0" < 2 AND $CONTRIBHASHES[contrib].donate_percent|default:"0" > 0} {else} {/if}
+ {if $CONTRIBHASHES[contrib].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$CONTRIBHASHES[contrib].account|escape}{/if}
+ {$CONTRIBHASHES[contrib].hashrate|number_format}
+ {$estday|number_format:"3"}
+ {if $GLOBAL.config.price.enabled}
+ {if $GLOBAL.config.price.currency}{($estday * $GLOBAL.price)|default:"n/a"|number_format:"4"} {/if}
+ {/if}
+
+{/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}
+ 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}
+ {$GLOBAL.userdata.rawhashrate|number_format}
+ {$myestday|number_format:"3"|default:"n/a"}
+ {if $GLOBAL.config.price.enabled}
+ {if $GLOBAL.config.price.currency}{($myestday * $GLOBAL.price)|default:"n/a"|number_format:"4"} {/if}
+ {/if}
+
+{/if}
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/pool/contributors_shares.tpl b/templates/bluemoon/statistics/pool/contributors_shares.tpl
new file mode 100644
index 00000000..f0d4018a
--- /dev/null
+++ b/templates/bluemoon/statistics/pool/contributors_shares.tpl
@@ -0,0 +1,46 @@
+
+
+
+ Contributor Shares
+
+
+
+
+
+ Rank
+ Donor
+ User Name
+ Shares
+
+
+
+{assign var=rank value=1}
+{assign var=listed value=0}
+{section shares $CONTRIBSHARES}
+ {if $GLOBAL.userdata.username|default:""|lower == $CONTRIBSHARES[shares].account|lower}{assign var=listed value=1}{else} {/if}
+ {$rank++}
+ {if $CONTRIBSHARES[shares].donate_percent|default:"0" >= 2} {else if $CONTRIBSHARES[shares].donate_percent|default:"0" < 2 AND $CONTRIBSHARES[shares].donate_percent|default:"0" > 0} {else} {/if}
+ {if $CONTRIBSHARES[shares].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$CONTRIBSHARES[shares].account|escape}{/if}
+ {$CONTRIBSHARES[shares].shares|number_format}
+
+{/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}
+ 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}
+ {$GLOBAL.userdata.shares.valid|number_format}
+
+{/if}
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/pool/default.tpl b/templates/bluemoon/statistics/pool/default.tpl
new file mode 100644
index 00000000..cf917562
--- /dev/null
+++ b/templates/bluemoon/statistics/pool/default.tpl
@@ -0,0 +1,10 @@
+
+
+{include file="statistics/pool/contributors_shares.tpl"}
+{include file="statistics/pool/contributors_hashrate.tpl"}
+
+
+
+{include file="statistics/pool/general_stats.tpl"}
+{include file="statistics/blocks/small_table.tpl"}
+
diff --git a/templates/bluemoon/statistics/pool/general_stats.tpl b/templates/bluemoon/statistics/pool/general_stats.tpl
new file mode 100644
index 00000000..9e78bcb8
--- /dev/null
+++ b/templates/bluemoon/statistics/pool/general_stats.tpl
@@ -0,0 +1,75 @@
+
+
+
+ General Statistics
+
+
+
+
+
+ Pool Hash Rate
+ {$GLOBAL.hashrate|number_format:"3"} {$GLOBAL.hashunits.pool}
+
+
+ Pool Efficiency
+ {if $GLOBAL.roundshares.valid > 0}{($GLOBAL.roundshares.valid / ($GLOBAL.roundshares.valid + $GLOBAL.roundshares.invalid) * 100)|number_format:"2"}%{else}0%{/if}
+
+
+ Current Active Workers
+ {$GLOBAL.workers|number_format}
+
+
+ Current Difficulty
+ {if ! $GLOBAL.website.chaininfo.disabled}
+ {$NETWORK.difficulty|number_format:"8"}
+ {else}
+ {$NETWORK.difficulty|number_format:"8"}
+ {/if}
+
+
+ Est. Next Difficulty
+ {if ! $GLOBAL.website.chaininfo.disabled}
+ {$NETWORK.EstNextDifficulty|number_format:"8"} (Change in {$NETWORK.BlocksUntilDiffChange} Blocks)
+ {else}
+ {$NETWORK.EstNextDifficulty|number_format:"8"} (Change in {$NETWORK.BlocksUntilDiffChange} Blocks)
+ {/if}
+
+
+ Est. Avg. Time per Round (Network)
+ {$NETWORK.EstTimePerBlock|seconds_to_words}
+
+
+ Est. Avg. Time per Round (Pool)
+ {$ESTTIME|seconds_to_words}
+
+
+ Est. Shares this Round
+ {$ESTIMATES.shares|number_format} (done: {$ESTIMATES.percent}%)
+
+ {if ! $GLOBAL.website.blockexplorer.disabled}
+
+ Next Network Block
+ {($CURRENTBLOCK + 1)|number_format} (Current: {$CURRENTBLOCK|number_format})
+
+ {else}
+
+ Next Network Block
+ {($CURRENTBLOCK + 1)|number_format} (Current: {$CURRENTBLOCK|number_format})
+
+ {/if}
+
+ Last Block Found
+ {$LASTBLOCK|default:"0"|number_format}
+
+
+ Time Since Last Block
+ {$TIMESINCELAST|seconds_to_words}
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/round/block_stats.tpl b/templates/bluemoon/statistics/round/block_stats.tpl
new file mode 100644
index 00000000..c09499ff
--- /dev/null
+++ b/templates/bluemoon/statistics/round/block_stats.tpl
@@ -0,0 +1,60 @@
+
+
+
+
+ Block Statistics
+
+
+
+
+
+
+
+
+
+
+
+ ID
+ {$BLOCKDETAILS.id|number_format:"0"|default:"0"}
+ Height
+ {if ! $GLOBAL.website.blockexplorer.disabled}
+ {$BLOCKDETAILS.height|number_format:"0"|default:"0"}
+ {else}
+ {$BLOCKDETAILS.height|number_format:"0"|default:"0"}
+ {/if}
+ Amount
+ {$BLOCKDETAILS.amount|number_format|default:"0"}
+ Confirmations
+ {if $BLOCKDETAILS.confirmations >= $GLOBAL.confirmations}
+ Confirmed
+ {else if $BLOCKDETAILS.confirmations == -1}
+ Orphan
+ {else if $BLOCKDETAILS.confirmations == 0}0
+ {else}{($GLOBAL.confirmations - $BLOCKDETAILS.confirmations)|default:"0"} left{/if}
+
+
+ Difficulty
+ {$BLOCKDETAILS.difficulty|default:"0"}
+ Time
+ {$BLOCKDETAILS.time|default:"0"}
+ Shares
+ {$BLOCKDETAILS.shares|number_format:"0"|default:"0"}
+ Finder
+ {$BLOCKDETAILS.finder|default:"unknown"}
+
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/round/default.tpl b/templates/bluemoon/statistics/round/default.tpl
new file mode 100644
index 00000000..61507860
--- /dev/null
+++ b/templates/bluemoon/statistics/round/default.tpl
@@ -0,0 +1,19 @@
+{if $GLOBAL.config.payout_system == 'pplns'}
+ {include file="statistics/round/pplns_block_stats.tpl"}
+ {include file="statistics/round/pplns_transactions.tpl"}
+
+ {include file="statistics/round/round_shares.tpl"}
+ {include file="statistics/round/pplns_round_shares.tpl"}
+
+{else if $GLOBAL.config.payout_system == 'prop'}
+ {include file="statistics/round/block_stats.tpl"}
+
+ {include file="statistics/round/round_shares.tpl"}
+ {include file="statistics/round/round_transactions.tpl"}
+
+{else}
+
+ {include file="statistics/round/block_stats.tpl"}
+ {include file="statistics/round/round_shares.tpl"}
+
+{/if}
diff --git a/templates/bluemoon/statistics/round/pplns_block_stats.tpl b/templates/bluemoon/statistics/round/pplns_block_stats.tpl
new file mode 100644
index 00000000..0874715c
--- /dev/null
+++ b/templates/bluemoon/statistics/round/pplns_block_stats.tpl
@@ -0,0 +1,117 @@
+
+
+
+
+ Round Statistics
+
+
+
+
+
+
+ Block Statistics
+ PPLNS Round Statistics
+
+
+
+
+ ID
+ {$BLOCKDETAILS.id|number_format:"0"|default:"0"}
+ PPLNS Shares
+ {$PPLNSSHARES|number_format:"0"|default:"0"}
+
+
+ Height
+ {if ! $GLOBAL.website.blockexplorer.disabled}
+ {$BLOCKDETAILS.height|number_format:"0"|default:"0"}
+ {else}
+ {$BLOCKDETAILS.height|number_format:"0"|default:"0"}
+ {/if}
+ Estimated Shares
+ {$BLOCKDETAILS.estshares|number_format|default:"0"}
+
+
+ Amount
+ {$BLOCKDETAILS.amount|default:"0"}
+ Target Variance
+{assign var=percentage value=0}
+{assign var=percentage1 value=0}
+{assign var=percentage2 value=0}
+ {if $PPLNSSHARES > 0}{math assign="percentage" equation=(($BLOCKDETAILS.estshares / $PPLNSSHARES) * 100)}{/if}{$percentage|number_format:"2"} %
+
+
+ Confirmations
+ {if $BLOCKDETAILS.confirmations >= $GLOBAL.confirmations}
+ Confirmed
+ {else if $BLOCKDETAILS.confirmations == -1}
+ Orphan
+ {else if $BLOCKDETAILS.confirmations == 0}0
+ {else}{($GLOBAL.confirmations - $BLOCKDETAILS.confirmations)|default:"0"} left{/if}
+ Block Average
+ {$BLOCKAVERAGE|number_format:"0"|default:"0"}
+
+
+ Difficulty
+ {$BLOCKDETAILS.difficulty|default:"0"}
+ Average Efficiency
+ {if $BLOCKAVERAGE > 0 && $BLOCKDETAILS.estshares > 0}{math assign="percentage2" equation=(($BLOCKDETAILS.estshares / $BLOCKAVERAGE) * 100)}{/if}{$percentage2|number_format:"2"} %
+
+
+ Time
+ {$BLOCKDETAILS.time|default:"0"}
+ Target Rounds
+ {$BLOCKAVGCOUNT|number_format:"0"|default:"0"}
+
+
+ Shares
+ {$BLOCKDETAILS.shares|number_format:"0"|default:"0"}
+ Seconds This Round
+ {$BLOCKDETAILS.round_time|number_format:"0"|default:"0"}
+
+
+ Finder
+ {$BLOCKDETAILS.finder|default:"unknown"}
+ Round Variance
+ {if $PPLNSSHARES > 0}{math assign="percentage1" equation=(($BLOCKDETAILS.shares / $PPLNSSHARES) * 100)}{/if}{$percentage1|number_format:"2"} %
+
+
+
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/round/pplns_block_stats_small.tpl b/templates/bluemoon/statistics/round/pplns_block_stats_small.tpl
new file mode 100644
index 00000000..7a0e27a5
--- /dev/null
+++ b/templates/bluemoon/statistics/round/pplns_block_stats_small.tpl
@@ -0,0 +1,89 @@
+
+
+
+
+ Block Statistics
+
+
+
+
+
+ Block Statistics
+ PPLNS Round Statistics
+
+
+
+
+ ID
+ {$BLOCKDETAILS.id|number_format:"0"|default:"0"}
+ Height
+ {if ! $GLOBAL.website.blockexplorer.disabled}
+ {$BLOCKDETAILS.height|number_format:"0"|default:"0"}
+ {else}
+ {$BLOCKDETAILS.height|number_format:"0"|default:"0"}
+ {/if}
+ PPLNS Shares
+ {$PPLNSSHARES|number_format:"0"|default:"0"}
+ Estimated Shares
+ {$BLOCKDETAILS.estshares|number_format|default:"0"}
+
+
+ Amount
+ {$BLOCKDETAILS.amount|default:"0"}
+ Confirmations
+ {if $BLOCKDETAILS.confirmations >= $GLOBAL.confirmations}
+ Confirmed
+ {else if $BLOCKDETAILS.confirmations == -1}
+ Orphan
+ {else if $BLOCKDETAILS.confirmations == 0}0
+ {else}{($GLOBAL.confirmations - $BLOCKDETAILS.confirmations)|default:"0"} left{/if}
+ Block Average
+ {$BLOCKAVERAGE|number_format:"0"|default:"0"}
+ Average Efficiency
+ {math assign="percentage2" equation=(($BLOCKDETAILS.estshares / $BLOCKAVERAGE) * 100)}{$percentage2|number_format:"2"} %
+
+
+ Difficulty
+ {$BLOCKDETAILS.difficulty|default:"0"}
+ Time
+ {$BLOCKDETAILS.time|default:"0"}
+ Target Rounds
+ {$BLOCKAVGCOUNT|number_format:"0"|default:"0"}
+ Target Variance
+ {math assign="percentage" equation=(($BLOCKDETAILS.estshares / $PPLNSSHARES) * 100)}{$percentage|number_format:"2"} %
+
+
+ Shares
+ {$BLOCKDETAILS.shares|number_format:"0"|default:"0"}
+ Finder
+ {$BLOCKDETAILS.finder|default:"unknown"}
+ Seconds This Round
+ {$BLOCKDETAILS.round_time|number_format:"0"|default:"0"}
+ Round Variance
+ {math assign="percentage1" equation=(($BLOCKDETAILS.shares / $PPLNSSHARES) * 100)}{$percentage1|number_format:"2"} %
+
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/round/pplns_round_shares.tpl b/templates/bluemoon/statistics/round/pplns_round_shares.tpl
new file mode 100644
index 00000000..a0645240
--- /dev/null
+++ b/templates/bluemoon/statistics/round/pplns_round_shares.tpl
@@ -0,0 +1,34 @@
+
+
+
+ PPLNS Round Shares
+
+
+
+
+
+
+ Rank
+ User Name
+ Valid
+ Invalid
+ Invalid %
+
+
+
+{assign var=rank value=1}
+{section contrib $PPLNSROUNDSHARES}
+
+ {$rank++}
+ {if $PPLNSROUNDSHARES[contrib].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$PPLNSROUNDSHARES[contrib].username|default:"unknown"|escape}{/if}
+ {$PPLNSROUNDSHARES[contrib].pplns_valid|number_format}
+ {$PPLNSROUNDSHARES[contrib].pplns_invalid|number_format}
+ {if $PPLNSROUNDSHARES[contrib].pplns_invalid > 0 && $PPLNSROUNDSHARES[contrib].pplns_valid > 0}{($PPLNSROUNDSHARES[contrib].pplns_invalid / $PPLNSROUNDSHARES[contrib].pplns_valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}
+
+{/section}
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/round/pplns_transactions.tpl b/templates/bluemoon/statistics/round/pplns_transactions.tpl
new file mode 100644
index 00000000..4d71e703
--- /dev/null
+++ b/templates/bluemoon/statistics/round/pplns_transactions.tpl
@@ -0,0 +1,42 @@
+
+
+
+
+ Round Transactions
+
+
+
+
+
+
+ User Name
+ Round Shares
+ Round %
+ PPLNS Shares
+ PPLNS Round %
+ Variance
+ Amount
+
+
+
+{assign var=percentage1 value=0}
+{section txs $ROUNDTRANSACTIONS}
+
+ {if $ROUNDTRANSACTIONS[txs].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$ROUNDTRANSACTIONS[txs].username|default:"unknown"|escape}{/if}
+ {$ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid|number_format|default:0}
+ {if $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid|default:"0" > 0 }{(( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid)|number_format:"2"}{else}0.00{/if}
+ {$PPLNSROUNDSHARES[txs].pplns_valid|number_format|default:"0"}
+ {if $PPLNSROUNDSHARES[txs].pplns_valid|default:"0" > 0 }{(( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)|number_format:"2"|default:"0"}{else}0{/if}
+ {if $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid|default:"0" > 0 && $PPLNSROUNDSHARES[txs].pplns_valid|default:"0" > 0}{math assign="percentage1" equation=(100 / ((( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid) / (( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)))}{else if $PPLNSROUNDSHARES[txs].pplns_valid|default:"0" == 0}{assign var=percentage1 value=0}{else}{assign var=percentage1 value=100}{/if}
+ {$percentage1|number_format:"2"}
+ {$ROUNDTRANSACTIONS[txs].amount|default:"0"|number_format:"8"}
+ {assign var=percentage1 value=0}
+
+{/section}
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/round/pplns_transactions_small.tpl b/templates/bluemoon/statistics/round/pplns_transactions_small.tpl
new file mode 100644
index 00000000..7217c522
--- /dev/null
+++ b/templates/bluemoon/statistics/round/pplns_transactions_small.tpl
@@ -0,0 +1,49 @@
+
+
+
+
+ Round Statistics
+
+
+
+
+
+
+ User Name
+ Round Valid
+ Invalid
+ Invalid %
+ Round %
+ PPLNS Valid
+ Invalid
+ Invalid %
+ PPLNS Round %
+ Variance
+ Amount
+
+
+
+{section txs $ROUNDTRANSACTIONS}
+
+ {if $ROUNDTRANSACTIONS[txs].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$ROUNDTRANSACTIONS[txs].username|default:"unknown"|escape}{/if}
+ {$SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid|number_format}
+ {$SHARESDATA[$ROUNDTRANSACTIONS[txs].username].invalid|number_format}
+ {if $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].invalid > 0 }{($SHARESDATA[$ROUNDTRANSACTIONS[txs].username].invalid / $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}
+ {if $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid > 0 }{(( 100 / $BLOCKDETAILS.shares) * $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid)|number_format:"2"}{else}0.00{/if}
+ {$PPLNSROUNDSHARES[txs].pplns_valid|number_format}
+ {$PPLNSROUNDSHARES[txs].pplns_invalid|number_format}
+ {if $PPLNSROUNDSHARES[txs].pplns_invalid > 0 }{($PPLNSROUNDSHARES[txs].pplns_invalid / $PPLNSROUNDSHARES[txs].pplns_valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}
+ {(( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)|number_format:"2"}
+ {if $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid > 0 }{math assign="percentage1" equation=(100 / ((( 100 / $BLOCKDETAILS.shares) * $SHARESDATA[$ROUNDTRANSACTIONS[txs].username].valid) / (( 100 / $PPLNSSHARES) * $PPLNSROUNDSHARES[txs].pplns_valid)))}{else if $PPLNSROUNDSHARES[txs].pplns_valid == 0}{assign var=percentage1 value=0}{else}{assign var=percentage1 value=100}{/if}
+ {$percentage1|number_format:"2"}
+ {$ROUNDTRANSACTIONS[txs].amount|default:"0"|number_format:"8"}
+ {assign var=percentage1 value=0}
+
+{/section}
+
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/round/round_shares.tpl b/templates/bluemoon/statistics/round/round_shares.tpl
new file mode 100644
index 00000000..7cc8bb97
--- /dev/null
+++ b/templates/bluemoon/statistics/round/round_shares.tpl
@@ -0,0 +1,35 @@
+
+
+
+ Round Shares
+
+
+
+
+
+
+ Rank
+ User Name
+ Valid
+ Invalid
+ Invalid %
+
+
+
+{assign var=rank value=1}
+{assign var=listed value=0}
+{foreach key=id item=data from=$ROUNDSHARES}
+
+ {$rank++}
+ {if $data.is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$data.username|default:"unknown"|escape}{/if}
+ {$data.valid|number_format}
+ {$data.invalid|number_format}
+ {if $data.invalid > 0 }{($data.invalid / $data.valid * 100)|number_format:"2"|default:"0"}{else}0.00{/if}
+
+{/foreach}
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/round/round_transactions.tpl b/templates/bluemoon/statistics/round/round_transactions.tpl
new file mode 100644
index 00000000..5ea4de28
--- /dev/null
+++ b/templates/bluemoon/statistics/round/round_transactions.tpl
@@ -0,0 +1,33 @@
+
+
+
+ Round Transactions
+
+
+
+
+
+
+ User Name
+ Type
+ Round Shares
+ Round %
+ Amount
+
+
+
+{section txs $ROUNDTRANSACTIONS}
+
+ {if $ROUNDTRANSACTIONS[txs].is_anonymous|default:"0" == 1 && $GLOBAL.userdata.is_admin|default:"0" == 0}anonymous{else}{$ROUNDTRANSACTIONS[txs].username|default:"unknown"|escape}{/if}
+ {$ROUNDTRANSACTIONS[txs].type|default:""}
+ {$ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid|number_format}
+ {(( 100 / $BLOCKDETAILS.shares) * $ROUNDSHARES[$ROUNDTRANSACTIONS[txs].uid].valid)|default:"0"|number_format:"2"}
+ {$ROUNDTRANSACTIONS[txs].amount|default:"0"|number_format:"8"}
+
+{/section}
+
+
+
+
+
+
diff --git a/templates/bluemoon/statistics/uptime/default.tpl b/templates/bluemoon/statistics/uptime/default.tpl
new file mode 100644
index 00000000..b89ecea3
--- /dev/null
+++ b/templates/bluemoon/statistics/uptime/default.tpl
@@ -0,0 +1,64 @@
+
+
+
+
UptimeRobot Status
+
+
+
+
+ Location
+ Service
+ Status
+ Status Since
+ Day
+ Week
+ Month
+ All Time
+
+
+
+ {foreach key=key item=item from=$STATUS}
+ {assign var=node value="."|explode:$item.friendlyname}
+
+
+ {if $node|count > 1}{$node.1} {/if}
+ {$CODES[$item.status]}
+ {$item.log.1.datetime|date_format:$GLOBAL.config.date}
+
+
+
+ {$item.customuptimeratio.0}% up
+
+
+
+
+
+
+ {$item.customuptimeratio.1}% up
+
+
+
+
+
+
+ {$item.customuptimeratio.2}% up
+
+
+
+
+
+
+ {$item.alltimeuptimeratio}% up
+
+
+
+
+ {/foreach}
+
+
+
+
+
+
diff --git a/templates/bluemoon/tac/content.tpl b/templates/bluemoon/tac/content.tpl
new file mode 100644
index 00000000..869b0115
--- /dev/null
+++ b/templates/bluemoon/tac/content.tpl
@@ -0,0 +1,10 @@
+
This Agreement governs your use of {$GLOBAL.website.name}.
+
+ By using any of the Pools or registering an account on the website, you agree to be bound by the terms and conditions below. If you do not agree with the terms and conditions in this Agreement you may not use the Pool.
+ The {$GLOBAL.website.name} staff may modify this Agreement and any policies affecting the Site at any point of time. Such modification is effective immediately upon posting to the website and will be distribution via email, forum post and a link in chat. Your continued use of the Pool following any modification to this Agreement shall be deemed an acceptance of all modifications.
+ The Pool rewards miners according to a {$GLOBAL.config.payout_system|upper} system with {$GLOBAL.fees|upper}% fee. The fee may change at any time, but notice will be given before doing so. Any fee change will be communicated through the pools news page.
+ 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 an investigation will be opened, see above point.
+
\ No newline at end of file
diff --git a/templates/bluemoon/tac/default.tpl b/templates/bluemoon/tac/default.tpl
new file mode 100644
index 00000000..4fa30528
--- /dev/null
+++ b/templates/bluemoon/tac/default.tpl
@@ -0,0 +1,12 @@
+
+
+
+
+ Terms & Conditions
+
+
+ {include file="tac/content.tpl"}
+
+
+
+
diff --git a/templates/bootstrap/dashboard/js/api.tpl b/templates/bootstrap/dashboard/js/api.tpl
index 972869ad..8387434d 100644
--- a/templates/bootstrap/dashboard/js/api.tpl
+++ b/templates/bootstrap/dashboard/js/api.tpl
@@ -17,7 +17,7 @@ $(document).ready(function(){
$('#togglesound').hide();
} else {
if (playSound == 'True') {
- var audioPath = "{/literal}{$PATH}{literal}/audio/";
+ var audioPath = "{/literal}{$GLOBALASSETS}{literal}/audio/";
var sound = [ {id:"ding", src:"ding.mp3"} ];
var playSound = 'True';
createjs.Sound.alternateExtensionseExtensions = ["mp3"];
diff --git a/templates/bootstrap/master.tpl b/templates/bootstrap/master.tpl
index 7741e02b..7ce935d2 100644
--- a/templates/bootstrap/master.tpl
+++ b/templates/bootstrap/master.tpl
@@ -6,20 +6,20 @@
{$GLOBAL.website.title} - {$smarty.request.page|escape|default:"home"|capitalize}
-
+
{if $GLOBAL.statistics.analytics.enabled}
{$GLOBAL.statistics.analytics.code nofilter}
{/if}
-
+
-
+
-
+
@@ -27,13 +27,13 @@
{/if}
-
-
-
-
+
+
+
+
-
-
+
+