Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
451bd55559 | ||
|
|
4ad893bde8 | ||
|
|
14c77ea7db | ||
|
|
33f402ad80 | ||
|
|
3f83098e7b | ||
|
|
0de732cb9d | ||
|
|
4628cb83ac | ||
|
|
8cff8fe2f2 | ||
|
|
e3dcc72bf1 | ||
|
|
0bf606f486 |
@ -238,6 +238,13 @@ $aSettings['statistics'][] = array(
|
|||||||
'name' => 'statistics_analytics_code', 'value' => $setting->getValue('statistics_analytics_code'),
|
'name' => 'statistics_analytics_code', 'value' => $setting->getValue('statistics_analytics_code'),
|
||||||
'tooltip' => '.'
|
'tooltip' => '.'
|
||||||
);
|
);
|
||||||
|
$aSettings['acl'][] = array(
|
||||||
|
'display' => 'Show Menu for logged in users only', 'type' => 'select',
|
||||||
|
'options' => array( 0 => 'No', 1 => 'Yes' ),
|
||||||
|
'default' => 0,
|
||||||
|
'name' => 'acl_show_menu_loggedin', 'value' => $setting->getValue('acl_show_menu_loggedin'),
|
||||||
|
'tooltip' => 'Should Menu be visible for logged in users only.'
|
||||||
|
);
|
||||||
$aSettings['acl'][] = array(
|
$aSettings['acl'][] = array(
|
||||||
'display' => 'Show Stats for logged in users only', 'type' => 'select',
|
'display' => 'Show Stats for logged in users only', 'type' => 'select',
|
||||||
'options' => array( 0 => 'No', 1 => 'Yes' ),
|
'options' => array( 0 => 'No', 1 => 'Yes' ),
|
||||||
|
|||||||
@ -84,6 +84,9 @@ $dEstNextDifficulty = $statistics->getExpectedNextDifficulty();
|
|||||||
$iBlocksUntilDiffChange = $statistics->getBlocksUntilDiffChange();
|
$iBlocksUntilDiffChange = $statistics->getBlocksUntilDiffChange();
|
||||||
|
|
||||||
// Block statistics
|
// Block statistics
|
||||||
|
$now = new DateTime( "now" );
|
||||||
|
$aLastBlock = $block->getLast();
|
||||||
|
$dTimeSinceLast = ($now->getTimestamp() - $aLastBlock['time']);
|
||||||
$aLastBlocks = $statistics->getBlocksFound(5);
|
$aLastBlocks = $statistics->getBlocksFound(5);
|
||||||
if (!$user->isAdmin(@$_SESSION['USERDATA']['id'])) {
|
if (!$user->isAdmin(@$_SESSION['USERDATA']['id'])) {
|
||||||
foreach ($aLastBlocks as $key => $data) {
|
foreach ($aLastBlocks as $key => $data) {
|
||||||
@ -107,6 +110,7 @@ $data = array(
|
|||||||
'currency' => $config['currency']
|
'currency' => $config['currency']
|
||||||
),
|
),
|
||||||
'esttimeperblock' => round($dPoolExpectedTimePerBlock, 2),
|
'esttimeperblock' => round($dPoolExpectedTimePerBlock, 2),
|
||||||
|
'timesincelastblock' => round($dTimeSinceLast, 2),
|
||||||
'blocks' => $aLastBlocks,
|
'blocks' => $aLastBlocks,
|
||||||
'workers' => $worker->getCountAllActiveWorkers(), 'hashrate' => $dPoolHashrateAdjusted,
|
'workers' => $worker->getCountAllActiveWorkers(), 'hashrate' => $dPoolHashrateAdjusted,
|
||||||
'shares' => array( 'valid' => $aRoundShares['valid'], 'invalid' => $aRoundShares['invalid'], 'invalid_percent' => $dPoolInvalidPercent, 'estimated' => $iEstShares, 'progress' => $dEstPercent ),
|
'shares' => array( 'valid' => $aRoundShares['valid'], 'invalid' => $aRoundShares['invalid'], 'invalid_percent' => $dPoolInvalidPercent, 'estimated' => $iEstShares, 'progress' => $dEstPercent ),
|
||||||
|
|||||||
@ -38,6 +38,9 @@ if ($user->isAuthenticated()) {
|
|||||||
$iBlocksUntilDiffChange = $statistics->getBlocksUntilDiffChange();
|
$iBlocksUntilDiffChange = $statistics->getBlocksUntilDiffChange();
|
||||||
|
|
||||||
// Block statistics
|
// Block statistics
|
||||||
|
$now = new DateTime( "now" );
|
||||||
|
$aLastBlock = $block->getLast();
|
||||||
|
$dTimeSinceLast = ($now->getTimestamp() - $aLastBlock['time']);
|
||||||
$aLastBlocks = $statistics->getBlocksFound(5);
|
$aLastBlocks = $statistics->getBlocksFound(5);
|
||||||
if (!$user->isAdmin(@$_SESSION['USERDATA']['id'])) {
|
if (!$user->isAdmin(@$_SESSION['USERDATA']['id'])) {
|
||||||
foreach ($aLastBlocks as $key => $data) {
|
foreach ($aLastBlocks as $key => $data) {
|
||||||
@ -50,6 +53,7 @@ if ($user->isAuthenticated()) {
|
|||||||
|
|
||||||
// Make it available in Smarty
|
// Make it available in Smarty
|
||||||
$smarty->assign('PRECISION', $coin->getCoinValuePrevision());
|
$smarty->assign('PRECISION', $coin->getCoinValuePrevision());
|
||||||
|
$smarty->assign('LASTBLOCKTIME', $dTimeSinceLast);
|
||||||
$smarty->assign('BLOCKSFOUND', $aLastBlocks);
|
$smarty->assign('BLOCKSFOUND', $aLastBlocks);
|
||||||
$smarty->assign('DISABLED_DASHBOARD', $setting->getValue('disable_dashboard'));
|
$smarty->assign('DISABLED_DASHBOARD', $setting->getValue('disable_dashboard'));
|
||||||
$smarty->assign('DISABLED_DASHBOARD_API', $setting->getValue('disable_dashboard_api'));
|
$smarty->assign('DISABLED_DASHBOARD_API', $setting->getValue('disable_dashboard_api'));
|
||||||
|
|||||||
@ -129,6 +129,7 @@ $aGlobal['statistics']['analytics']['enabled'] = $setting->getValue('statistics_
|
|||||||
$aGlobal['statistics']['analytics']['code'] = $setting->getValue('statistics_analytics_code');
|
$aGlobal['statistics']['analytics']['code'] = $setting->getValue('statistics_analytics_code');
|
||||||
|
|
||||||
// ACLs
|
// ACLs
|
||||||
|
$aGlobal['acl']['menu']['loggedin'] = $setting->getValue('acl_show_menu_loggedin');
|
||||||
$aGlobal['acl']['statistics']['loggedin'] = $setting->getValue('acl_show_stats_loggedin');
|
$aGlobal['acl']['statistics']['loggedin'] = $setting->getValue('acl_show_stats_loggedin');
|
||||||
$aGlobal['acl']['help']['loggedin'] = $setting->getValue('acl_show_help_loggedin');
|
$aGlobal['acl']['help']['loggedin'] = $setting->getValue('acl_show_help_loggedin');
|
||||||
$aGlobal['acl']['pool']['statistics'] = $setting->getValue('acl_pool_statistics');
|
$aGlobal['acl']['pool']['statistics'] = $setting->getValue('acl_pool_statistics');
|
||||||
|
|||||||
3394
public/site_assets/bluemoon/css/new.css
Normal file
1
public/site_assets/bluemoon/css/normalize.css
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}
|
||||||
2
public/site_assets/bluemoon/css/plugins/uikit/notify.min.css
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/*! UIkit 2.26.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
||||||
|
.uk-notify{position:fixed;top:10px;left:10px;z-index:1040;box-sizing:border-box;width:350px}.uk-notify-bottom-right,.uk-notify-top-right{left:auto;right:10px}.uk-notify-bottom-center,.uk-notify-top-center{left:50%;margin-left:-175px}.uk-notify-bottom-center,.uk-notify-bottom-left,.uk-notify-bottom-right{top:auto;bottom:10px}@media (max-width:479px){.uk-notify{left:10px;right:10px;width:auto;margin:0}}.uk-notify-message{position:relative;margin-bottom:10px;padding:15px;background:#444;color:#fff;font-size:16px;line-height:22px;cursor:pointer}.uk-notify-message>.uk-close{visibility:hidden;float:right}.uk-notify-message:hover>.uk-close{visibility:visible}.uk-notify-message-primary{background:#ebf7fd;color:#2d7091}.uk-notify-message-success{background:#f2fae3;color:#659f13}.uk-notify-message-warning{background:#fffceb;color:#e28327}.uk-notify-message-danger{background:#fff1f0;color:#d85030}
|
||||||
BIN
public/site_assets/bluemoon/img/16-circle-blue-add.png
Normal file
|
After Width: | Height: | Size: 355 B |
BIN
public/site_assets/bluemoon/img/16-circle-blue-remove.png
Normal file
|
After Width: | Height: | Size: 387 B |
BIN
public/site_assets/bluemoon/img/16-circle-red-remove.png
Normal file
|
After Width: | Height: | Size: 381 B |
BIN
public/site_assets/bluemoon/img/16-cube-blue.png
Normal file
|
After Width: | Height: | Size: 250 B |
BIN
public/site_assets/bluemoon/img/alpha.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
public/site_assets/bluemoon/img/arrow_refresh.png
Normal file
|
After Width: | Height: | Size: 685 B |
BIN
public/site_assets/bluemoon/img/base.gif
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
public/site_assets/bluemoon/img/blue-folder-horizontal-open.png
Normal file
|
After Width: | Height: | Size: 504 B |
BIN
public/site_assets/bluemoon/img/blue-folder-horizontal.png
Normal file
|
After Width: | Height: | Size: 375 B |
BIN
public/site_assets/bluemoon/img/building--minus.png
Normal file
|
After Width: | Height: | Size: 700 B |
BIN
public/site_assets/bluemoon/img/building--plus.png
Normal file
|
After Width: | Height: | Size: 727 B |
BIN
public/site_assets/bluemoon/img/building-medium.png
Normal file
|
After Width: | Height: | Size: 588 B |
10
public/site_assets/bluemoon/img/cd-icon-small-arrow.svg
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 18.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
width="20px" height="20px" viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">
|
||||||
|
<style type="text/css">
|
||||||
|
.st0{fill:#FFFFFF;}
|
||||||
|
</style>
|
||||||
|
<polygon class="st0" points="7.1,1.9 5,4.1 10.9,10 5,15.9 7.1,18.1 15,10 "/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 609 B |
BIN
public/site_assets/bluemoon/img/cd.gif
Normal file
|
After Width: | Height: | Size: 239 B |
BIN
public/site_assets/bluemoon/img/clear.png
Normal file
|
After Width: | Height: | Size: 509 B |
BIN
public/site_assets/bluemoon/img/close.png
Normal file
|
After Width: | Height: | Size: 280 B |
BIN
public/site_assets/bluemoon/img/collapsable-last.gif
Normal file
|
After Width: | Height: | Size: 655 B |
BIN
public/site_assets/bluemoon/img/collapsable.gif
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
public/site_assets/bluemoon/img/cross.png
Normal file
|
After Width: | Height: | Size: 655 B |
BIN
public/site_assets/bluemoon/img/disk.png
Normal file
|
After Width: | Height: | Size: 620 B |
BIN
public/site_assets/bluemoon/img/empty.gif
Normal file
|
After Width: | Height: | Size: 62 B |
BIN
public/site_assets/bluemoon/img/expandable-last.gif
Normal file
|
After Width: | Height: | Size: 670 B |
BIN
public/site_assets/bluemoon/img/expandable.gif
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
public/site_assets/bluemoon/img/favicon.ico
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
public/site_assets/bluemoon/img/folder.gif
Normal file
|
After Width: | Height: | Size: 372 B |
BIN
public/site_assets/bluemoon/img/folder_add.png
Normal file
|
After Width: | Height: | Size: 668 B |
BIN
public/site_assets/bluemoon/img/folder_delete.png
Normal file
|
After Width: | Height: | Size: 666 B |
BIN
public/site_assets/bluemoon/img/folder_edit.png
Normal file
|
After Width: | Height: | Size: 733 B |
BIN
public/site_assets/bluemoon/img/folderopen.gif
Normal file
|
After Width: | Height: | Size: 376 B |
BIN
public/site_assets/bluemoon/img/globe--minus.png
Normal file
|
After Width: | Height: | Size: 911 B |
BIN
public/site_assets/bluemoon/img/globe--plus.png
Normal file
|
After Width: | Height: | Size: 939 B |
BIN
public/site_assets/bluemoon/img/globe.gif
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
public/site_assets/bluemoon/img/globe.png
Normal file
|
After Width: | Height: | Size: 882 B |
BIN
public/site_assets/bluemoon/img/glyphicons-halflings-white.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
public/site_assets/bluemoon/img/glyphicons-halflings.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
public/site_assets/bluemoon/img/grid.png
Normal file
|
After Width: | Height: | Size: 96 B |
BIN
public/site_assets/bluemoon/img/home-medium.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
public/site_assets/bluemoon/img/home.png
Normal file
|
After Width: | Height: | Size: 752 B |
BIN
public/site_assets/bluemoon/img/hue.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
public/site_assets/bluemoon/img/icon_sprite.png
Normal file
|
After Width: | Height: | Size: 808 B |
BIN
public/site_assets/bluemoon/img/imgfolder.gif
Normal file
|
After Width: | Height: | Size: 622 B |
BIN
public/site_assets/bluemoon/img/join.gif
Normal file
|
After Width: | Height: | Size: 69 B |
BIN
public/site_assets/bluemoon/img/joinbottom.gif
Normal file
|
After Width: | Height: | Size: 66 B |
BIN
public/site_assets/bluemoon/img/leaf-last.gif
Normal file
|
After Width: | Height: | Size: 615 B |
BIN
public/site_assets/bluemoon/img/leaf.gif
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
public/site_assets/bluemoon/img/line.gif
Normal file
|
After Width: | Height: | Size: 66 B |
BIN
public/site_assets/bluemoon/img/line_bg.gif
Normal file
|
After Width: | Height: | Size: 93 B |
BIN
public/site_assets/bluemoon/img/line_bg_over.gif
Normal file
|
After Width: | Height: | Size: 251 B |
BIN
public/site_assets/bluemoon/img/line_bg_over_last.gif
Normal file
|
After Width: | Height: | Size: 235 B |
BIN
public/site_assets/bluemoon/img/loading-black.gif
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
public/site_assets/bluemoon/img/loading-blue.gif
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
public/site_assets/bluemoon/img/loading-green.gif
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
public/site_assets/bluemoon/img/loading-orange.gif
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
public/site_assets/bluemoon/img/loading-red.gif
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
public/site_assets/bluemoon/img/loading-sm.gif
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
public/site_assets/bluemoon/img/loading.gif
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
public/site_assets/bluemoon/img/map--minus.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
public/site_assets/bluemoon/img/map--plus.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/site_assets/bluemoon/img/marker--minus.png
Normal file
|
After Width: | Height: | Size: 616 B |
BIN
public/site_assets/bluemoon/img/marker--plus.png
Normal file
|
After Width: | Height: | Size: 680 B |
BIN
public/site_assets/bluemoon/img/minus.gif
Normal file
|
After Width: | Height: | Size: 86 B |
BIN
public/site_assets/bluemoon/img/minusbottom.gif
Normal file
|
After Width: | Height: | Size: 85 B |
BIN
public/site_assets/bluemoon/img/musicfolder.gif
Normal file
|
After Width: | Height: | Size: 633 B |
BIN
public/site_assets/bluemoon/img/next.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
public/site_assets/bluemoon/img/nolines_minus.gif
Normal file
|
After Width: | Height: | Size: 861 B |
BIN
public/site_assets/bluemoon/img/nolines_plus.gif
Normal file
|
After Width: | Height: | Size: 870 B |
BIN
public/site_assets/bluemoon/img/page.gif
Normal file
|
After Width: | Height: | Size: 582 B |
BIN
public/site_assets/bluemoon/img/page_add.png
Normal file
|
After Width: | Height: | Size: 739 B |
BIN
public/site_assets/bluemoon/img/page_delete.png
Normal file
|
After Width: | Height: | Size: 740 B |
BIN
public/site_assets/bluemoon/img/page_edit.png
Normal file
|
After Width: | Height: | Size: 807 B |
BIN
public/site_assets/bluemoon/img/panel.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
public/site_assets/bluemoon/img/plus.gif
Normal file
|
After Width: | Height: | Size: 89 B |
BIN
public/site_assets/bluemoon/img/plusbottom.gif
Normal file
|
After Width: | Height: | Size: 88 B |
BIN
public/site_assets/bluemoon/img/prev.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
public/site_assets/bluemoon/img/profile.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
public/site_assets/bluemoon/img/question.gif
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
public/site_assets/bluemoon/img/root.gif
Normal file
|
After Width: | Height: | Size: 1004 B |
BIN
public/site_assets/bluemoon/img/saturation.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
public/site_assets/bluemoon/img/select2.png
Normal file
|
After Width: | Height: | Size: 199 B |
BIN
public/site_assets/bluemoon/img/slider_handle.png
Normal file
|
After Width: | Height: | Size: 817 B |
BIN
public/site_assets/bluemoon/img/social_icons.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
public/site_assets/bluemoon/img/sort_asc.png
Normal file
|
After Width: | Height: | Size: 160 B |
BIN
public/site_assets/bluemoon/img/sort_asc_disabled.png
Normal file
|
After Width: | Height: | Size: 148 B |
BIN
public/site_assets/bluemoon/img/sort_both.png
Normal file
|
After Width: | Height: | Size: 201 B |
BIN
public/site_assets/bluemoon/img/sort_desc.png
Normal file
|
After Width: | Height: | Size: 158 B |
BIN
public/site_assets/bluemoon/img/sort_desc_disabled.png
Normal file
|
After Width: | Height: | Size: 146 B |
BIN
public/site_assets/bluemoon/img/sorting.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
public/site_assets/bluemoon/img/sorting_asc.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
public/site_assets/bluemoon/img/sorting_desc.png
Normal file
|
After Width: | Height: | Size: 177 B |
BIN
public/site_assets/bluemoon/img/spacer.gif
Normal file
|
After Width: | Height: | Size: 43 B |
BIN
public/site_assets/bluemoon/img/spinner.gif
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
public/site_assets/bluemoon/img/trash.gif
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
public/site_assets/bluemoon/img/tree_line.gif
Normal file
|
After Width: | Height: | Size: 197 B |