Commit Graph

1037 Commits

Author SHA1 Message Date
Sebastian Grewe
3930285521 fixing website name in breadcrumbs 2013-09-17 17:14:06 +02:00
Sebastian Grewe
49b6ebe62f Also show negative cold coins
Fixes #660
2013-09-17 16:49:11 +02:00
Sebastian Grewe
e7f62134f1 adding cold wallet coin display and setting 2013-09-17 16:15:18 +02:00
Sebastian Grewe
cdf71cbfba adding account balance to new dashboard via Ajax 2013-09-17 14:27:46 +02:00
Sebastian Grewe
59b82c72e1 fixing PHP notice when blocks table empty on blockstats 2013-09-17 12:56:30 +02:00
Sebastian Grewe
4ffca7d5ac API overhaul for easier handling of API calls
* [FEATURE] Allow in-class checking for user permissions
* [FEATURE] Allow in-class creation of the JSON data for coherence
* [FEATURE} Added API version in JSON data for client side checks
* [IMPROVEMENT] Adjusted all API calls to use the new JSON layout

**NOTE**: This is breaking backwads compatibility with the old API!
Please adjust your client application to support this new version.
The data array should not change much more other than added features.
2013-09-17 11:55:54 +02:00
Sebastian Grewe
04786aafb5 Merge branch 'next' into issue-145 2013-09-17 08:53:21 +02:00
Sebastian Grewe
b89660ae32 re-adjusting old sidebar info 2013-09-16 18:00:38 +02:00
Sebastian Grewe
0af26e7647 moving templates for old themes 2013-09-16 17:53:50 +02:00
Sebastian Grewe
2b8fff3a9b New graph for round shares
* [FEATURE] Adding bar graph for round shares
 * Graph auto-updates via Ajax from getdashboarddata
* [IMPROVEMENT] Minor improvements to the JS template
2013-09-16 16:22:23 +02:00
Sebastian Grewe
e1ec8ed9da removing unused template 2013-09-16 16:20:33 +02:00
Sebastian Grewe
373c25366f minor userinfo update 2013-09-16 16:20:13 +02:00
Sebastian Grewe
4bbe40068a Improved dashboard overview graphs and gauges 2013-09-16 11:36:20 +02:00
Sebastian Grewe
6a7d34181a Adding share rate graph
* [FEATURE] Adding share rate to graph
2013-09-16 11:04:14 +02:00
Sebastian Grewe
b533ea11a7 Updated hashrate graphs in dashboard
* [FEATURE] Display both pool and personal hashrate
* [FEATURE] Use EnhancedLegendRendere to toggle lines in graph
* [IMPROVEMENT] Unified Ajax call for graph and gauges
* [IMPROVEMENT] Allow `getdashboarddata` to supply raw hashrate values
2013-09-16 09:59:22 +02:00
Sebastian Grewe
27a76509f6 disabled JS console output 2013-09-15 17:52:49 +02:00
Sebastian Grewe
0b0483f679 re-enabled jqplot plugins 2013-09-15 17:49:41 +02:00
Sebastian Grewe
286c1d5110 Fixed refresh interval functions and memory leaks
* [FIX] Memory leak fixed in Hashrate Graph
* [FIX] Potential memory leak in Gauges
* [FIX] Properly refresh data via setTimeout
 * Ensures Ajax calls are completed before re-calling them
2013-09-15 17:40:24 +02:00
Sebastian Grewe
0c3713284f removing JS console output 2013-09-15 14:23:31 +02:00
Sebastian Grewe
4aea28cb9c remove graph min/max, adding padding 2013-09-15 01:45:24 +02:00
Sebastian Grewe
8193860bd9 Do not store that many data points 2013-09-15 01:42:25 +02:00
Sebastian Grewe
917aeace49 Better visualize our hashrate graph
* Do not pre-init the data graph
* Fill with new data as it arrives
2013-09-15 01:38:42 +02:00
Sebastian Grewe
8add7f75c4 Adjusted graph colors
* Matching the existing visualize plugin closely
2013-09-15 00:17:35 +02:00
Sebastian Grewe
7471e505f9 Graph line update
* Removed data points from display
* Hover to see data point information
* Fill area under the line
2013-09-14 23:43:32 +02:00
Sebastian Grewe
0eebc89fe7 Added more graph options
* [FEATURE] Added graph trendline (average)
* [FEATURE] Added graph labels
2013-09-14 23:23:36 +02:00
Sebastian Grewe
728ee2dd11 Feature update and Improvement to Dashboard
* [FEATURE] Dasboard honors Ajax interval for hashrate graph
* [IMPROVEMENT] Load graph plugins on graph template not on master template
2013-09-14 23:01:31 +02:00
Sebastian Grewe
8c96e166b7 [FEATURE] Added Ajax Data Interval Setting
* Allows Admins to change the SQL Interval used in queries
 * Default: 300 seconds / 5 minutes
 * Allowed: 1 minute, 5 minutes, 10 minutes
 * Tooltop in admin panel explains this setting
* Added data interval to API call for dashboard
* Added additional output to gauges footer

Addresses #444
2013-09-14 21:45:31 +02:00
Sebastian Grewe
faadf7cbaf [FEATURE] Proper login/logout/auth redirects
* Allow to redirect to referrer page when access is denied
* Logout user and point towards login, add redirect
* Logout user as usual but added save redirects
* Adjusted templates and page codes
2013-09-14 21:20:12 +02:00
Sebastian Grewe
b66c3eafec Admin Option for Ajax Refresh Interval
* Allow admins to change the refresh interval for Ajax calls
 * Only Gauges affected for now

Further Addresses #444 with more goodies
2013-09-14 19:35:30 +02:00
Sebastian Grewe
69ed2ab768 load initial Gauges data via Ajax 2013-09-14 19:08:19 +02:00
Sebastian Grewe
9b50e9d842 removed debug output 2013-09-14 18:52:22 +02:00
Sebastian Grewe
de560ea422 ajax calls interval 10s 2013-09-14 18:43:19 +02:00
Sebastian Grewe
2ba96b6a2f make async ajax calls 2013-09-14 18:01:35 +02:00
Sebastian Grewe
4df57f612e make async ajax calls 2013-09-14 18:00:43 +02:00
Sebastian Grewe
4303ccc42f added query time as gauge 2013-09-14 17:59:13 +02:00
Sebastian Grewe
1fab736eb6 new graph location 2013-09-14 17:59:01 +02:00
Sebastian Grewe
4e19de4c7a Unified gauges Ajax
* Single call for all data
* Use proper hash units as configured in pool
* New API call for dashboard data that has adjusted output
2013-09-14 17:03:19 +02:00
Sebastian Grewe
c7ca211532 Merge branch 'next' into issue-444-theserapher 2013-09-14 15:50:28 +02:00
Sebastian Grewe
e6ab8006d1 [FEATURE] Adding more to gauges, adding graph to dashboard
* Adding live-updates for gauges
* Adding new API calls
* Updated statistics to allow custom intervals
* Disabled caching for API calls for now
* Added new hashrate graph with auto-update

Addresses #444
2013-09-14 14:43:14 +02:00
nrpatten
35f042dd7b Update default.tpl
Add center span
2013-09-14 09:44:38 +10:00
nrpatten
af94ba00fd Update default.tpl
add center span
2013-09-14 09:41:28 +10:00
nrpatten
805fca23a1 Update default.tpl
Add center span
2013-09-14 09:38:27 +10:00
nrpatten
e691c5cd8b Update default.tpl 2013-09-13 22:16:46 +10:00
nrpatten
25027c09b5 Update default.tpl
Update Toggle Switch Test
2013-09-13 22:13:30 +10:00
nrpatten
48e89d78cb Update default.tpl
Toggle Switch Test
2013-09-13 22:05:26 +10:00
nrpatten
aeb3827b4d Update default.tpl
Toggle Switch Test
2013-09-13 22:01:05 +10:00
nrpatten
ca780ba164 Update default.tpl
Toggle Switch Test
2013-09-13 21:58:12 +10:00
nrpatten
5e873c3d8a Update default.tpl
Toggle Switch test
2013-09-13 21:56:38 +10:00
Sebastian Grewe
aa10b6efc1 [FEATURE] Adding hashrate modifiers
* Allow admins to set hashrate speed displays via admin panel
 * Personal
 * Pool
 * Network
* Allows for easier integration of SHA coins

Fixes #652
2013-09-13 13:36:36 +02:00
Sebastian Grewe
6d0854149b adding pool and net hashrate gauges 2013-09-13 10:28:23 +02:00
Sebastian Grewe
522e37717b adding Ajax refresh for Gauges 2013-09-13 09:35:30 +02:00
Sebastian Grewe
e0b1db19db adding missing master template 2013-09-13 08:40:35 +02:00
Sebastian Grewe
c8f7163fa8 adding sample gauges with static data for now 2013-09-13 08:39:17 +02:00
Sebastian Grewe
03fca51af0 minor update to contactform layout 2013-09-12 18:37:06 +02:00
Sebastian Grewe
23bc5295f9 adding fieldset to transaction filters 2013-09-12 18:31:48 +02:00
Sebastian Grewe
6de81c8b78 admin settings via fieldset 2013-09-12 18:25:40 +02:00
Sebastian Grewe
493db31dcc adding better colors for confirms/orphans/... 2013-09-12 17:56:41 +02:00
Sebastian Grewe
c99c98866f fixing PHP notice on navbar 2013-09-12 12:49:20 +02:00
Sebastian Grewe
cca0610cd3 minor donors update 2013-09-12 12:45:19 +02:00
nrpatten
32e789b8e6 Update navigation.tpl 2013-09-12 20:19:49 +10:00
nrpatten
962079b97c Update navigation.tpl 2013-09-12 20:12:40 +10:00
nrpatten
3176363b24 Create body.tpl 2013-09-12 20:06:16 +10:00
nrpatten
233cc96ea2 Create default.tpl 2013-09-12 19:52:10 +10:00
nrpatten
ae7e19c5f6 Create default.tpl 2013-09-12 19:51:36 +10:00
nrpatten
84173e225c Create disabled.tpl 2013-09-12 19:46:37 +10:00
nrpatten
2c1a560e82 Update navigation.tpl 2013-09-12 19:43:59 +10:00
nrpatten
4e36a25c81 Create default.tpl 2013-09-12 19:30:17 +10:00
nrpatten
72e3a75a1e Create default.tpl 2013-09-12 19:29:06 +10:00
nrpatten
2e7187faba Create default.tpl 2013-09-12 19:26:38 +10:00
nrpatten
25ec8f3ec6 Create default.tpl 2013-09-12 19:23:54 +10:00
nrpatten
acecc5ea1d Create default.tpl 2013-09-12 19:22:56 +10:00
nrpatten
18e977e12d Create default.tpl 2013-09-12 19:21:57 +10:00
nrpatten
b2ae8efbd0 Create default.tpl 2013-09-12 19:20:54 +10:00
Sebastian Grewe
e57e82466b adding missing icons to news admin 2013-09-12 10:14:24 +02:00
Sebastian Grewe
0bd21a0873 fixing pagination/pagesort conflicts 2013-09-12 10:02:48 +02:00
Sebastian Grewe
f3ce2cb812 [FEATURE] Added new icons, added pagination
This commit uses the class icons instead of actual images. Also changed
the layout a slight bit to give room for data in the header just as used
in the tab involved version.
2013-09-12 09:48:56 +02:00
Sebastian Grewe
39eddd979d Merge branch 'issue-444-theserapher' of https://github.com/TheSerapher/php-mmcfe-ng into issue-444-theserapher 2013-09-12 08:50:08 +02:00
Sebastian Grewe
e203f31ba9 adding login icon 2013-09-12 08:49:57 +02:00
Sebastian Grewe
00c6955680 removing unpaid shares, not used 2013-09-12 08:45:26 +02:00
Sebastian Grewe
85fa71136f adding placeholder dashboards and missing image 2013-09-12 08:43:01 +02:00
Sebastian Grewe
b05aac4678 @nrpatten: Updated dashboard for prop 2013-09-09 16:03:54 +02:00
Sebastian Grewe
62c0641131 Merge branch 'next' into issue-145 2013-09-09 14:53:42 +02:00
Sebastian Grewe
a128ca3ba0 minor fix to contrib hashrates 2013-09-09 14:44:17 +02:00
Sebastian Grewe
823ba4d844 minor changes to account-edit 2013-09-09 14:41:44 +02:00
Sebastian Grewe
eb20c0304e adding hide button to admin panel 2013-09-09 09:53:54 +02:00
Sebastian Grewe
4b9105b84b small update to account-workers 2013-09-09 09:52:44 +02:00
Sebastian Grewe
31fe769091 adding API qrcode in account 2013-09-09 09:52:05 +02:00
Sebastian Grewe
6fa46137f5 adding account invitations 2013-09-09 09:47:28 +02:00
Sebastian Grewe
8e05ab71a6 adding notification account view 2013-09-09 09:37:59 +02:00
Sebastian Grewe
fb9fb9cdb2 adding account transaction view 2013-09-09 09:27:42 +02:00
Sebastian Grewe
ab7360d187 adding account edit page 2013-09-09 09:24:26 +02:00
Sebastian Grewe
f7ced8f80d added registration templates 2013-09-09 07:46:52 +02:00
Sebastian Grewe
0dd1cc7d50 template updates for new empty content 2013-09-09 07:46:36 +02:00
Sebastian Grewe
3c7bb41f81 stats template changes 2013-09-09 07:45:35 +02:00
Sebastian Grewe
b4ed4ed06a fixing PHP warning 2013-09-08 00:23:00 +02:00
Sebastian Grewe
a19b3f5e31 Adding round statistics 2013-09-08 00:22:02 +02:00
Sebastian Grewe
82e8941c02 Merge branch 'next' into issue-444-theserapher 2013-09-07 23:55:49 +02:00
Sebastian Grewe
98688d5839 Updated testing template
* Removed unneeded template icons
* Added new icon font
* Added icons to navbard
* Added full admin features

Updates #444
2013-09-07 23:49:45 +02:00
Sebastian Grewe
8ae36844f1 fixing some PHP warnings 2013-09-07 20:53:28 +02:00
Sebastian Grewe
f87a7fc380 Merge branch 'next' into issue-145 2013-09-06 10:55:31 +02:00
Sebastian Grewe
d4ce764d77 proper allow back/forth on blocks 2013-09-06 10:49:19 +02:00
Sebastian Grewe
ab6a4f57d3 further implemetation into mmcfe-ng 2013-09-06 10:29:42 +02:00
Sebastian Grewe
b3ba080345 obigals work, cherrypicked 2013-09-06 09:48:08 +02:00
Sebastian Grewe
5b353ab759 Merge branch 'next' into issue-543 2013-09-06 09:40:28 +02:00
Sebastian Grewe
ecfbeec01c adding new icon set 2013-09-02 12:55:33 +02:00
Sebastian Grewe
cecbcb7d4b Adding testing theme for #444
This is just a WiP to test a new website template. Taken online from
source referenced in the sidebar footer.

Very nice and clean look, have not had the time to add all features yet
and is only used to demonstrate it.
2013-08-26 20:07:54 +02:00
Sebastian Grewe
75d0dfe5f7 adding share rate to all sidebars 2013-08-22 14:18:04 +02:00
Sebastian Grewe
6522fb2747 fixing merge conflicts 2013-08-22 11:54:17 +02:00
Sebastian Grewe
1f6ccfd6be Merge pull request #628 from TheSerapher/issue-610
Issue 610
2013-08-22 02:47:46 -07:00
Sebastian Grewe
eacb8dff03 updated templates 2013-08-22 11:30:27 +02:00
Sebastian Grewe
36d64b27fd adding share rate to prop sidebar 2013-08-22 11:28:01 +02:00
Sebastian Grewe
96066993ac adding per-worker difficulty display 2013-08-20 16:50:40 +02:00
Sebastian Grewe
526701d2e1 Merging with origin/next to get branch updated 2013-08-20 15:55:05 +02:00
Sebastian Grewe
7ec8fa9b95 Moving a lot of settings from config to adminpanel
* Migrated configuration options to admin panel
* Removed configuration options from config file
* Added help text for each configuration option into panel

Addresses #622 and needs extensive testing by pools. A lot has changed
so pool owners might have to adjust their own templates to match this
new system.
2013-08-20 12:02:47 +02:00
Sebastian Grewe
2e4a94ff8c Merge pull request #615 from TheSerapher/issue-612
Removing IRC reference
2013-08-19 00:40:10 -07:00
Sebastian Grewe
f8f50fdc05 Removing IRC reference
Fixes #612
2013-08-19 09:39:45 +02:00
Sebastian Grewe
d6422ea5a8 Merge pull request #602 from TheSerapher/issue-582
Adding QRCodes under Accounts
2013-08-19 00:38:37 -07:00
Sebastian Grewe
7e4c5dab4e Adding unconfirmed blocks to wallet
First attempt addressing #610, still missing a detection for the actual
confirmation limit required for each block in case one lowers it in the
config.
2013-08-19 09:31:53 +02:00
Sebastian Grewe
14c0535b10 Fill empty hours with proper data
* Properly sort the array prior to sending it back
 * Sort from current to one hour earlier for proper data display
 * Adjusted templates to use new sorted arrays

Fixes #606
2013-08-15 09:58:33 +02:00
Sebastian Grewe
ad6ceed77e fixing worker activity on mobile template 2013-08-14 11:47:46 +02:00
Sebastian Grewe
fcf5a21ce3 Adding QRCodes under Accounts
* Added: API String QR Code for #582 and #591

This will allow more QRCodes being added that are specific to an
account. The require library is added and the API string can be used as
an example how codes are generated.

Fixes #582
2013-08-14 11:44:29 +02:00
Sebastian Grewe
e5cb4d0886 Fixing combined hashrate graph
This shouuld fix #598 with graphs being completely off
2013-08-14 11:23:14 +02:00
Sebastian Grewe
184ad5d58b fixing color of total percentage again 2013-08-14 11:15:49 +02:00
Sebastian Grewe
567b8e1655 Fix rounding issues on total row
* Use actual percentages to calculate the total to ensure
  the rows average matches the totals average

Fixes #596
2013-08-14 11:10:58 +02:00
Sebastian Grewe
0679601fbd Initilize totals with 0 values
Addresses #596
2013-08-14 11:03:56 +02:00
Sebastian Grewe
c0e8459519 fix coloring of total percentage 2013-08-14 10:59:50 +02:00
Sebastian Grewe
85e22bc02f Adding totals to block statistics
* Total expected shares
* Total actual shares
* Average Percentage
2013-08-12 10:07:19 +02:00
Sebastian Grewe
7214d27d9e make blocks list sortable 2013-08-09 14:58:46 +02:00
Sebastian Grewe
71abaf29f3 Merge pull request #583 from TheSerapher/issue-581
Issue 581
2013-08-09 05:58:12 -07:00
Sebastian Grewe
d42b66d94e removing useless strings 2013-08-08 12:09:50 +02:00
Sebastian Grewe
1a459a7913 Adding transaction summary by types
Addresses #581
2013-08-08 12:02:39 +02:00
Sebastian Grewe
92623902b2 adding round shares back to PPS sidebar 2013-08-08 10:03:33 +02:00
Sebastian Grewe
c568683152 Adding empty example for round stat integration
Addresses #543
2013-08-08 10:01:33 +02:00
Sebastian Grewe
aad8271a13 Fix blockexplorer links to use blockhash not height
Fixes #571
2013-08-08 09:42:10 +02:00
Sebastian Grewe
6767b5a235 Merge pull request #576 from TheSerapher/issue-561
Issue 561
2013-08-07 21:46:44 -07:00
obigal
360bd22dc6 Updates 2013-08-07 09:42:06 +02:00
obigal
45d5db65c8 Update default.tpl 2013-08-07 09:34:55 +02:00
obigal
86d4ec18cd Update authenticated.tpl 2013-08-07 09:34:01 +02:00
obigal
ef234fe80b Vardiff/pushpool and pps payout support 2013-08-07 09:29:48 +02:00
obigal
c3a63d58ce Updates 2013-08-07 09:29:48 +02:00
obigal
2d2f480888 Update default.tpl 2013-08-07 09:29:48 +02:00
obigal
2b1c628238 Update authenticated.tpl 2013-08-07 09:29:47 +02:00
Sebastian Grewe
073a42cfc8 Fixing worker hashrates and activity status
* Fix hashrate calculations and include archived shares
* Fix worker activity to only check for our_result = Y shares
* Mark as active if worker has a hashrate > 0, removes a query

Addresses #561, crons need to be updated to remove the active flag from
as the worker activity and check the hashrate instead.
2013-08-07 09:20:08 +02:00
Sebastian Grewe
fafd75d994 Honor anonymous flag on mobile template
Fixes #535
2013-08-07 08:59:22 +02:00
Sebastian Grewe
367f057e6d Refactored monitoring page
* Allow easier addition of new crons to the monitor list
* Make the data generation dynamic instead of hard to adjust lists

Fixes #559 upon merge.
2013-08-05 17:45:56 +02:00
Sebastian Grewe
4d77a7d299 Refactored admin panel settings
This will allow easier integration of new settings managed by the admin
panel. Includes setting types, tooltips, tabs etc.

No open ticket, just figured I'd add this.
2013-08-05 10:02:39 +02:00
Sebastian Grewe
2ced75b752 Merge pull request #556 from TheSerapher/issue-536
Issue 536
2013-08-05 00:20:53 -07:00
Sebastian Grewe
680fa46013 Merge pull request #555 from TheSerapher/issue-545
Adding Admin MOTD
2013-08-05 00:20:26 -07:00
Sebastian Grewe
0c35a046e0 Merge pull request #554 from TheSerapher/issue-553
Adding jQuery Mobile 1.3.2
2013-08-04 12:57:15 -07:00
Sebastian Grewe
fa0e7379a6 Adding jQuery Mobile 1.3.2
* Adding new CSS and JS files
* Adding missing images
* Removing old version
* Updated master template

Fixes #553
2013-08-04 21:53:36 +02:00
Sebastian Grewe
c25e54f79c Adding Admin MOTD
* Adding MOTD to admin settings
* Adding MOTD to smarty_globals as regular INFO popup

Fixes #545
2013-08-01 16:25:43 +02:00
Sebastian Grewe
3c57d5bd0a fixing missing template warnings 2013-08-01 11:29:16 +02:00
Sebastian Grewe
4eb6c59cb3 Refactored getTransactions, unified admin/user view
* Removed getAllTransactions method
* Unified getTransactions for users and admins
* Added filter abilities to user transaction view

This should speed up things a fair bit for transaction heavy pools.

Addresses #536
2013-08-01 11:00:54 +02:00
Sebastian Grewe
fd8b07f02a Removing orphaned credits from Sidebars
This will remove some confusion for users.

Addresses #524
2013-07-31 08:59:02 +02:00
Nicolas Schteinschraber
5a377d6106 Issue #537 2013-07-31 03:44:49 -03:00
Sebastian Grewe
86633e1603 Adding JS/CSS code to project
Instead of calling remote sites, deploy the JS and CSS locally. Will
allow HTTPs sites to work properly.

Fixes #521
2013-07-24 16:37:22 +02:00
Sebastian Grewe
c0b0d438b8 Catch errors on missing templates
Pages that are missing a template will cause a error 500. We now catch
this and display a default string.

Fixes #513
2013-07-24 14:56:34 +02:00
Sebastian Grewe
b5eca59e58 Fixing alignment in mobile template
Addresses #514
2013-07-24 11:41:12 +02:00
Sebastian Grewe
e760cbdc03 Fixing mobile templates
Addresses #514
2013-07-24 11:39:59 +02:00
Sebastian Grewe
3f62612af9 Fixing mobile templates too 2013-07-24 11:30:16 +02:00
Sebastian Grewe
eca77d551c Changed percentages for invalids, pool efficiency
This should address #514 with negative efficiencies. Formulas were
wrong.

Will fix #514 when merged.
2013-07-24 10:00:27 +02:00
Sebastian Grewe
777e160cf3 cleaning PHP Notice from log 2013-07-23 16:55:05 +02:00
Sebastian Grewe
35d1f5fa92 Merge pull request #498 from TheSerapher/manual-payout-cron
Adding manual payout cron
2013-07-23 05:36:49 -07:00
Sebastian Grewe
4f46e9f781 remove worker monitoring if notifications are disabled 2013-07-23 13:11:39 +02:00
Sebastian Grewe
760f1a679e Allow admin to disable notification system
This addresses #497 and allows the admins to disable notifications
through the admin panel. Might be used by those relying on clients using
the API instead.

Once merged it will fix #497.
2013-07-23 13:06:38 +02:00
Sebastian Grewe
a6c8d507dc Merge pull request #501 from TheSerapher/issue-260
Issue 260
2013-07-23 03:55:20 -07:00
Sebastian Grewe
9c2cefd2c3 adding blockexplorer link if URL configured 2013-07-23 12:10:32 +02:00
Sebastian Grewe
24a277312c fixing TXFee display and filter 2013-07-23 12:01:45 +02:00
Sebastian Grewe
fb24ad81ae fixing php warning 2013-07-23 11:52:01 +02:00
Sebastian Grewe
9899507839 Fix some reported issues in #260 2013-07-23 11:05:45 +02:00
Sebastian Grewe
63b942a7e1 Adding No Fee option to admin panel
Admins can disable a users fee via admin panel now.

Fixes #260
2013-07-23 10:56:45 +02:00
Sebastian Grewe
330169ae58 more fixes and log cleanup 2013-07-23 10:53:47 +02:00
Sebastian Grewe
ed259a5b44 properly deal with Fee_PPS and Donation_PPS 2013-07-23 09:21:11 +02:00
Sebastian Grewe
61cea524d1 properly use limit for pagination 2013-07-23 09:18:50 +02:00
Sebastian Grewe
1a5d216b7a Allow adjusting the tx row limit 2013-07-23 09:08:57 +02:00
Sebastian Grewe
1d6cbd44a6 Adding new admin transaction view
* Added transaction filters
* Added proper paging support
* Removed the tabs that caused confusion
* Added transaction status column

Fixes #404
2013-07-23 09:03:36 +02:00
Sebastian Grewe
2c3eac1f67 proper coloring for start/end times 2013-07-22 16:47:50 +02:00
Sebastian Grewe
4b6582ac35 More colorful monitoring output
* Added colorized start/end times
* Added Success/Error image for Active status
* Added color to runtime status
2013-07-22 16:42:23 +02:00
Sebastian Grewe
44c31fe630 Merge pull request #500 from TheSerapher/issue-488
Admin Panel Setting to disable/enable AP/MP
2013-07-22 05:55:12 -07:00
Sebastian Grewe
36a74b0bbf Fix transaction table, adjust transaction class
* Ensure we also check newly added blocks for unconfirmed tx
* Only list orphaned transactions in the orphaned tab

Fixes #490
2013-07-21 17:25:09 +02:00
Sebastian Grewe
7d801a561c Fixing Orphan showing as unconfirmed
* Fixes orphaned transactions showing as unconfirmed too
* Fixes transaction tables to show orphaned credits in green, not red

Fixes #490
2013-07-21 08:20:53 +02:00
Sebastian Grewe
7fce187ab0 Admin Panel Setting to disable/enable AP/MP
This will allow admins to temporarily or permanantly enable and disable
auto and manual payout processing.

Fixes #488
2013-07-19 11:12:28 +02:00
Sebastian Grewe
5f161cdbb0 Merge pull request #487 from TheSerapher/issue-486
Adding notifications and start/end times
2013-07-18 06:42:15 -07:00
Sebastian Grewe
6641cf7f5c Adding notifications and start/end times
Fixes #486
2013-07-18 15:41:52 +02:00
Sebastian Grewe
7cf3ff3d88 Fix anonymous detection in share contributors list
Fixes #484
2013-07-18 13:55:05 +02:00
Sebastian Grewe
1cd39099ee Merge pull request #483 from TheSerapher/issue-446
Issue 446
2013-07-18 02:05:45 -07:00
Sebastian Grewe
a655abddbf fixing mobile template 2013-07-18 11:05:09 +02:00
Sebastian Grewe
33a058dc4b Merge pull request #482 from TheSerapher/issue-467
Issue 467
2013-07-18 01:49:47 -07:00
Sebastian Grewe
b57f6b59a1 Disable API on mobile theme if disabled 2013-07-18 10:49:16 +02:00
Sebastian Grewe
73ec707381 Adds blockhash to blockexplorer URL
* Changed blockexplorer URL to use Blockhash instead of height
* Added calls to find current networks blocks blockhash
* Propagated changes onto temmplate
* Added new dist configuration for new blockexplorer URL

Fixes #446
2013-07-18 09:43:16 +02:00
Sebastian Grewe
72ed08c92c Adding tooltip help for anonymous account flag
Fixes #459
2013-07-18 09:30:44 +02:00
Sebastian Grewe
8393053641 Disabel API references if API disabled
This will turn off displaying any API references and links when API was
turned off in the configuration.

Fixes #467
2013-07-18 09:04:59 +02:00
Sebastian Grewe
7b929ed3e4 Fixing PHP Warning on resetting failed login count
Addresses #330 and further cleans PHP Log
2013-07-15 16:16:40 +02:00
Sebastian Grewe
7f4f5cd343 Make invitations configurable via admin panel
Invitations can now be configured through admin panel settings. By
default, invitations are enabled. Invitation system is also available if
registrations are disabled. To completely remove the ability of new
users to sign up, disable both registration and invitations.

Fixes #330
2013-07-15 12:43:29 +02:00
Sebastian Grewe
bd32dfa9f8 Adding invitation system to mmcfe-ng core
This will allow users to send invitations to other people via email.
Each account will still need to confirm the email address if the option
is enabled.

Addresses #330, will need to allow pool operators to enable this feature
even with registrations turned off.
2013-07-15 12:26:31 +02:00
Sebastian Grewe
0ede05a6fd Adding email verification
* Adding mail verification during account registration
* Added new dist file option for mail verification
* Added account confirmation page using tokens
* Added mail class into user class for password resets
* Moved password reset template
* Adjusted account registration page
* Adjusted user class for email confirmation

Also fixed a bug with smarty_cache_key not being used properly if smarty
is disabled. Key still needs to be available even if caching is disabled

Addresses #330 and prepare the ticket for invitation only system.
2013-07-15 12:26:31 +02:00
Sebastian Grewe
29d5d36a7e WiP for one time tokens
* Added token type class
* Storing Token Type as ID not varchar
* Added new system to user class and fixed issues with it
* Started on mail verification process in user class
* Updated autoloader
* Updated change password template

Addresses #330
2013-07-15 12:26:31 +02:00
Sebastian Grewe
8ec1d2cab3 Adding anonymous account support
* Added anonymous flag to accounts table
* Added checkbox for anonymous flag in edit account page
* Updated user class to support new flag
* Updated statistics class to support anonymous and donations
* Updated all templates showing usernames to show anonymous instead
* Added new SQL `ALTER TABLE` file for upgrading the table

Fixes #419 once merged.
2013-07-12 10:33:42 +02:00
Sebastian Grewe
ab620f1fe0 Merge pull request #443 from TheSerapher/issue-432
Get rid of Orphan transaction types
2013-07-12 00:46:45 -07:00
Sebastian Grewe
e0d43141b5 Merge pull request #438 from TheSerapher/issue-431
Adding last runtime to monitoring page
2013-07-11 07:45:38 -07:00
Sebastian Grewe
7466689b50 further escapes on templates 2013-07-11 15:55:32 +02:00
Sebastian Grewe
08359c0d19 Further escaping of user inputs 2013-07-11 15:53:38 +02:00
Sebastian Grewe
5b50422675 Fixing XSS for user registration 2013-07-11 15:49:08 +02:00
Sebastian Grewe
dfde017267 Get rid of Orphan transaction types
This fixes #432 and puts orphans on the same system as unconfirmed
transactions.
2013-07-11 14:26:53 +02:00
Sebastian Grewe
875572813b Adding last runtime to monitoring page
Displays the date/time of the last successful run.

Fixes #431
2013-07-11 13:25:22 +02:00
Sebastian Grewe
ed573e6e46 Merge pull request #428 from TheSerapher/issue-418
Issue 418
2013-07-11 03:35:50 -07:00
Sebastian Grewe
bffeea07c9 Adding cache detection to many pages
This will allow pages to skip loading data from backends like the
database or the wallet RPC server. If a cached page is detected and
valid, all dynamic content generation will be skipped completely.

Other pages that have not been adjusted in this commit will still fetch
backend data all the time. This will ensure clients always see the most
recent data, like worker information or account changes.

This should fix #309 completely but needs some testing.
2013-07-11 09:02:34 +02:00
Sebastian Grewe
3c426e913b Adding {nocache} flags for dynamic content
This will update content instantly once the user changes it and not load
a cached version from the smarty cache.

Addresses #309
2013-07-11 08:58:19 +02:00
Sebastian Grewe
39d1193e6a Add default value for active pool workers
Fixes #418
2013-07-11 08:51:40 +02:00
Sebastian Grewe
271f7f8381 Better monitoring layout 2013-07-10 11:39:16 +02:00
Sebastian Grewe
a6d752a096 adding some defaults on template 2013-07-10 10:45:10 +02:00
Sebastian Grewe
94d9c1eb4c Added cronjob monitoring to admin panel
* Added monitoring class to deal with monitoring events
* Added event calls to all important cronjobs
* Added cron_end include file for monitoring cleanups on successful runs
* Added Monitoring to autoloader
* Modified account page to check for running auto_payout in monitoring
* Added monitoring to Navigation bar
* Added monitoring controller page

Fixes #415
2013-07-10 10:40:11 +02:00
Sebastian Grewe
70644b4299 Merge pull request #413 from TheSerapher/issue-408
Issue 408
2013-07-09 14:22:33 -07:00
Sebastian Grewe
2f2acdad6d First working version of PPLNS payouts
* Based PPLNS on Prop Payout script
* Using defaults from prop payout, no class adjustments
* Added more methods required for PPLNS
* Added block methods for dynamic payout calculations
* Added PPLNS Sidebar that also displays the PPLNS Target
 * Shares beyond this target will not be included in payouts
 * Shares missing to this target will be added from archives
* Enabled archiving by default for PPLNS
* Added configuration options for PPLNS
 * Documented the usage for PPLNS, defaults are sane
* Added pplns_payout to run-crons

Addresses #143 and if accepted will fix it
2013-07-09 21:59:44 +02:00
Sebastian Grewe
5acebc37d3 Allow guest access to pages with config options
This will allow pool owners to make certain pages public accessible
without user registration or login. Please check the config dist file
for details.

Fixes #408
2013-07-09 16:13:43 +02:00
Sebastian Grewe
3da5a226e1 Better number format for est. shares 2013-07-08 15:42:23 +02:00
Sebastian Grewe
308b01c700 Better number format for block percentages 2013-07-08 15:40:21 +02:00
Sebastian Grewe
1c2891cc78 Removed piechart, removed no shares notification
* Removed broken piechart for now
* Do not display message if no shares are found for calculations to
  avoid cross-tabe error messages

Fixes #312
2013-07-08 08:54:17 +02:00
Sebastian Grewe
952c8732b1 Properly display piechart, first attempt
Should further address #312
2013-07-07 22:15:40 +02:00
Sebastian Grewe
fdb562b078 Fixing PHP warning message for empty price var
Fixes #375
2013-07-06 17:57:37 +02:00
Sebastian Grewe
0719958353 Merge pull request #386 from TheSerapher/issue-380
Change message on empty donor list
2013-07-05 23:39:20 -07:00
Sebastian Grewe
c4592d2b6f Merge pull request #384 from TheSerapher/issue-315
Further attempt to clean up transactions list
2013-07-05 14:49:01 -07:00
Sebastian Grewe
0d5653dda0 Change message on empty donor list
This fixes #380.
2013-07-05 23:28:51 +02:00
Ilya Stromberg
7a0f08d3d0 (#376) Fix HTML/CSS markup at Statistics page 2013-07-05 21:16:51 +04:00
Sebastian Grewe
7a194a6293 Further attempt to clean up transactions list
This hopefully cleans out remaining PHP warnings and table issues with
no/partial transactions available. Please test this out and report back
in #315.
2013-07-05 15:30:51 +02:00
Sebastian Grewe
5654f38154 remove link to block when blockexplorer empty 2013-07-05 11:04:56 +02:00
Sebastian Grewe
a0243ee31e allow empty blockexplorer URL 2013-07-05 09:47:44 +02:00
Sebastian Grewe
3d942e8434 Adding getpoolstatus API Method
Fixes #369
2013-07-04 13:26:58 +02:00
Sebastian Grewe
b8771091fb Adding link to JSON API to server stats page 2013-07-04 13:26:03 +02:00
Sebastian Grewe
425b821618 Link API key to User API Call
Fixes #367
2013-07-04 13:01:48 +02:00
Sebastian Grewe
f3dd9caa2c Added 8 digit estimates precision and balance
This expands the prevision for LTC estimates to 8 digits. Since the
sidebar was widened, they should fit for most resolutions.
2013-07-04 12:17:09 +02:00
Sebastian Grewe
4a8cc8f884 Merge pull request #362 from TheSerapher/issue-336
Remove link on mobile if chaininfo empty
2013-07-04 01:40:39 -07:00
Sebastian Grewe
bc1ca7feb3 Fixing mobile template warning on reset pw 2013-07-03 19:12:32 +02:00
Sebastian Grewe
ce5a8f7240 Fix PHP Warnings on Password Reset page
* Added HTML5 required to username field
* Added empty string check to resetPassword method

Fixes #348
2013-07-03 14:25:14 +02:00
Sebastian Grewe
382fddb528 Remove PHP Warnings from worker page
* Added HTML5 required flags for username/passwords
* Added empty string check in addWorker method

Fixes #347
2013-07-03 14:21:05 +02:00
Sebastian Grewe
24473ee98f Remove link on mobile if chaininfo empty
* Remove URL from Difficulty on stats page if chaininfo is empty
* Added note to global dist configuration file

Fixes #336
2013-07-03 07:52:38 +02:00
Sebastian Grewe
bba15719db Do not use link difficulty if chaininfo unset
Fixes #336
2013-07-02 21:15:44 +02:00
Sebastian Grewe
03e8ee0c46 Re-adding default My Account link
Fixes #338
2013-07-02 21:11:48 +02:00
Sebastian Grewe
c8f662f91d Show nethash rate in MHash/s not GHash/s
* Easier to compare directly with pool hashrate
* Better display format for low nethash rate coins

Fixes #331
2013-07-02 13:28:51 +02:00
Sebastian Grewe
f3caa80d80 Merge pull request #334 from TheSerapher/issue-327
Potential fix for PHP Warning
2013-07-02 02:00:15 -07:00
Sebastian Grewe
535f13c184 Fixing PHP Warnings in Registration page
* Fix API Key generation not using SALT when creating hash
 * This should not affect existing API keys since hashes are compared
* Fix PHP Warning for RECAPTCHA if disabled

Fixes #328
2013-07-02 10:38:23 +02:00
Sebastian Grewe
9e306bf06e Potential fix for PHP Warning
This should fix #327
2013-07-02 09:00:01 +02:00
Sebastian Grewe
5a40e38635 Properly display network hashrate in ghash 2013-07-01 18:44:34 +02:00
Sebastian Grewe
c157a76551 Adding network hashrate to ministats header
Fixes #325
2013-07-01 18:41:18 +02:00
Sebastian Grewe
e0c1c3edf1 Adding reference for API documentation
This is a simple version since API documentation is already documented
on the GitHub Wiki.

Fixes #323
2013-07-01 18:34:08 +02:00
Sebastian Grewe
19a0eeb8a1 Adding colorized percentage
As requested by @obigal this will add colorized percentage:

* Above 100% it's red
* Below or even 100% it's green

Fixes #321
2013-07-01 18:27:41 +02:00
Sebastian Grewe
ce69fb6375 Merge pull request #320 from TheSerapher/issue-310
Proper fix for #310
2013-07-01 09:04:07 -07:00
Sebastian Grewe
fde7ea1507 Proper fix for #310
Too many tasks at the same time, but this time fixed, for real.
2013-07-01 18:03:11 +02:00
Sebastian Grewe
46f39723de Display block amount/value on block list
Fixes #318
2013-07-01 18:01:03 +02:00
Sebastian Grewe
ae9f8402af Merge pull request #317 from TheSerapher/issue-314
Issue 314
2013-07-01 08:55:23 -07:00
Sebastian Grewe
b89561df78 Proper fix for top estimates being 0
Properly fixes #314
2013-07-01 17:53:57 +02:00
Sebastian Grewe
31d898cbc1 Adding configurable website title
Fixes #310
2013-07-01 17:21:12 +02:00
Sebastian Grewe
fac2814618 Re-assign own estimate variable
This might fix #314 that a user was since #306.
2013-07-01 17:05:41 +02:00
Sebastian Grewe
014813603e Cleaning up more PHP warnings
* Cleaned up registration page
* Made all fields required via HTML5 tag
* Adjusted login template with required HTML5 tags too
2013-07-01 12:43:13 +02:00
Sebastian Grewe
e3c1d7e0d0 Modfied templates to support empty trade currency
This will remove any template content related to the trade currency if
that one is left empty in the configuration.

While going through the templates I also cleaned up the PHP Warnings
left. The code and templates should now process without throwing any PHP
warnings.

Fixes #305 and further addresses #301
2013-07-01 12:32:59 +02:00
Sebastian Grewe
fe5c42e6f6 Disable trade currency if no price currency defined
This will disable the trace exchange display in the header if no
currency is defined in the configuration.

Fixes #298
2013-07-01 02:00:05 +02:00
Sebastian Grewe
4c04142f45 Merge pull request #294 from TheSerapher/issue-291
Re-add favicon to master template
2013-06-30 10:24:58 -07:00
Sebastian Grewe
94b75d7a44 Re-add favicon to master template
Fixes #291
2013-06-30 19:24:05 +02:00
Sebastian Grewe
cf921e72c3 Fix own list entry if not in top-15
Fixes #292
2013-06-30 19:22:57 +02:00
Sebastian Grewe
3e07263ae9 Removed registration configuration option
* Removed old registration configuration option from config file
* Changed database registration option to allow registrations by default
* Changed admin settings template for new DB option
* Changed registration controllers for new DB option

Fixes an issue with registrations not working if settings table is
empty.
2013-06-30 12:29:52 +02:00
Sebastian Grewe
7390ca38e5 Enable or Disable maintenance and registrations
This will allow any admin to enable or disable a pool maintenance mode.
Regular users that are still logged in will not be kicked out (yet). New
users that are trying to login and are not admins will be denied access.

Also added registration option to Admin Settings via WebUI. You can now
disable new accounts via web option or configuration setting.

Fixes #259 but also adds an additional feature.
2013-06-30 12:03:46 +02:00
Sebastian Grewe
483e554259 Adding SQL based pagination to admin transactions
This will prevent PHP OOM errors due to a large amount of transactions.
You can find navigation arrows at the top and fetch 30 transactions at a
time.

Fixes #267
2013-06-30 11:04:12 +02:00
Sebastian Grewe
cc6b4b3120 Add number formatting in account transactions
This should fix #282 where numbers are displayed in scientific notation.
2013-06-30 10:32:09 +02:00
Sebastian Grewe
4371238bd5 Adding worker overview via navbar
Fixes #285
2013-06-30 10:19:20 +02:00
Sebastian Grewe
8ff4dceca3 force opening in new tab on footer link 2013-06-29 21:53:29 +02:00
Sebastian Grewe
c812fe1527 adding URL to my project in footer 2013-06-29 21:51:55 +02:00
Sebastian Grewe
f6242f2c74 Adding swipable sidebar
* Login to mobile version to enable sidebar
* Swipe right to display your old dashboard
* Modified `home.inc.php` to default to news at all times again
* Modified sidebar implementation to change via config setting
* Modified mobile navigation bar and header
* Added `sidebar_prop.tpl` file for both themes

Some breaking changes might be introduced here if you are running your
own template implementation. Please ensure that `home/default.tpl` will
display the news posts. `sidebar.tpl` is now `sidebar_prop.tpl`.

If the files are missing you will get a PHP error. Check your logs what
file is missing and create them from my original samples.

Fixes #283
2013-06-29 21:26:58 +02:00
Sebastian Grewe
f9f776a015 Display newspage on Mobile if not authed
* Do not show dashboard if user is not logged in
* Show news on Mobile and Desktop by default
* Show Dasboard on mobile once logged in
* Make News Navbar item default for unauthed users on mobile
* Add Dash Navbar item for authed users on mobile
2013-06-29 15:26:16 +02:00
Sebastian Grewe
c66c448836 Adding mobile dashboard and news page
* Adding mobile detection to home page
* Allow home page to default to news for desktops
* Use payout specific sidebar for mobile homescreen
* Added News navigation option to mobile

Fixes #278
Fixes #279
2013-06-29 15:11:57 +02:00
Sebastian Grewe
207c779cd6 Merge branch 'next' of github.com:TheSerapher/php-mmcfe-ng into next 2013-06-28 22:01:12 +02:00
Sebastian Grewe
f80648e1fd proper number format for invalid % 2013-06-28 22:00:46 +02:00
Sebastian Grewe
b90662e544 Merge branch 'next' of github.com:TheSerapher/php-mmcfe-ng into next 2013-06-28 21:54:52 +02:00
Sebastian Grewe
ee9a6eed6a Added % of invalids for pool and user
Fixes #272
2013-06-28 21:52:28 +02:00
Sebastian Grewe
99a58e7119 fixed missing /if 2013-06-28 20:39:01 +02:00
Sebastian Grewe
9e59f99230 remove block confirm notice for pps 2013-06-28 20:32:18 +02:00
Sebastian Grewe
7b0ae8d86e reduced blocks count to fixed 20 2013-06-28 20:29:51 +02:00
Sebastian Grewe
9f7cc5c0e1 fixing mobile hashrate table 2013-06-28 15:34:40 +02:00
Sebastian Grewe
d4f4b9073f Working jQuery Mobile frontend for mobile devices
* Added mobile device detection PHP library
* Call PHP library to decide which theme to use
* Added theme as a configuration option into global config
 * Selectable Desktop theme (default: mmcFE)
 * Selectable Mobile theme (default: mobile)
 * Disable mobile theme support entirely

**NOTE**: This requires updates to the `global.inc.php` so please check
the dist file and update your config before filing a new issue!

Addresses #25
2013-06-28 13:45:14 +02:00
Sebastian Grewe
61a2a30916 Missing </b> 2013-06-25 14:11:25 +02:00
Sebastian Grewe
62e7563c6d Merge branch 'next' of github.com:TheSerapher/php-mmcfe-ng into next 2013-06-25 14:09:49 +02:00
Sebastian Grewe
65d8b08e82 Better looking news post header 2013-06-25 14:09:01 +02:00
Sebastian Grewe
a09bd1470e Adding account name to all transactions
Fixes #251
2013-06-25 11:39:44 +02:00
Sebastian Grewe
370b3475b9 Adding transactions admin panel
* Lists all transactions for all users

Addresses #251
2013-06-25 10:57:56 +02:00
Sebastian Grewe
d5d2d3d36f Fixing unauthenticated navigation for stats
Use different link to properly display pool statistics if not
authenticated.

Fixes #245
2013-06-25 08:49:13 +02:00
Sebastian Grewe
2e7a4a8092 Adding donors page to About dropdown
Lists all donors, their donation setting and total donated amount.
This will allow people to see who is contributing to the pool.

Fixes #223
2013-06-23 20:12:34 +02:00
Sebastian Grewe
b4c1c5b667 removed wrong link, re-added admin, removed news 2013-06-21 20:28:29 +02:00
Sebastian Grewe
f39d9cca2d Removed News from navigation
Fixes #232
2013-06-21 20:25:49 +02:00
Sebastian Grewe
706a3422eb Making news page the default homepage
Addresses #232
2013-06-21 20:25:12 +02:00
Sebastian Grewe
84ababe9f7 Adding support for post time and author
* Added new SQL upgrade and structure
* Added post time and author to admin panel
* Added post time and author to news list

Fixes #226
2013-06-21 12:11:13 +02:00
Sebastian Grewe
e4e88e5226 Adding custom news posts via admin panel
* Adding dynamic news posts from DB
* Support Adding, Editing, Activating, Deactivating through admin panel
* Display all active posts on news page
* Implemented Markdown Library by Michelf

Fixes #61
2013-06-21 11:16:02 +02:00
Sebastian Grewe
82f6961645 Adding PPS specific sidebar
* Adding PPS sidebar to seperate the HTML code
* Added PPS specific globals section if need be some day
* Added payout detection to master template for sidebar
* Added 7 days and 14 days estimates

Fixes #160
2013-06-18 10:22:43 +02:00
Sebastian Grewe
3f0c3884aa Adding some more information for PPS to sidebar
* Added user share rate to sidebar for PPS
* Added estimated 24h LTC payout based on PPS value and share rate

Addresses #160
2013-06-18 09:35:01 +02:00
Sebastian Grewe
647b522b00 Adding percentage colulmn to block template
This shows the % of shares found for a block compared to the expected
value.
2013-06-17 15:00:56 +02:00
Sebastian Grewe
fa7f61c436 Adding transaction fees to transaction class
This will add back the transaction fees. Prior to this commit the pool
had to cover the transaction fees. Now for each transaction the full
balance is transferred (RPC Daemon will remove the TX Fee) but two
transactions are added. One for the Debig and one TXFee.

Fixes #203.

**Requires database upgrade with supplied SQL file**
2013-06-17 11:17:15 +02:00
Sebastian Grewe
4f3e1e9ccb Adding support for API currencies
Since some altcoins are not listed with USD yet @vias79 suggested adding
different API target currencies. This commit will add the feature and
closes #201.
2013-06-17 10:40:36 +02:00
Sebastian Grewe
ca1237c11c fixing admin user information table format 2013-06-14 17:52:56 +02:00
Sebastian Grewe
0817befaaa Further cleanup to reduce PHP notice warnings 2013-06-14 13:51:06 +02:00
Sebastian Grewe
d23d577368 always show 2 digit pool efficiency 2013-06-14 12:36:17 +02:00
Sebastian Grewe
c0870b3a48 Added more generic pool stats
* added pool efficiency based on valid and invalid shares
* added estimated shares progress based on est and valid shares
2013-06-14 11:58:41 +02:00
Sebastian Grewe
bee35325dc Only show 20 blocks for block graph
Graph dynamically expands if the blocks don't fit so it's now limited to
20 which should always fit well enough.
2013-06-14 11:38:00 +02:00
Sebastian Grewe
6f3912b6a2 fixed worker name in mail body 2013-06-14 09:58:54 +02:00
Sebastian Grewe
6f858188ad Adding pool and combined hashrate graphs
* Moving from My Graph to its own section: Hashrate Graphs
* Adding pool hashrate graph
* Adding combined hashrate graph and piechart

Fixes #187
2013-06-13 22:59:19 +02:00
Sebastian Grewe
90640d345e removing static-ish stats width, use table width instead 2013-06-13 22:26:12 +02:00
Sebastian Grewe
e7bb725da4 remove decimals for expected shares in graph 2013-06-13 22:03:21 +02:00
Sebastian Grewe
2b56423272 adding line graphs in block stats 2013-06-13 22:01:34 +02:00
Sebastian Grewe
12843fab14 adding new master template for tooltips 2013-06-13 22:01:18 +02:00
Sebastian Grewe
538c5ead88 properly sort blocks in graph 2013-06-13 17:09:59 +02:00
Sebastian Grewe
acc4880dd6 Adding block luck graph
* Added expected vs actual share graph to block stats
* Added new small table template for overall stats in pool stats

Fixes #91
2013-06-13 16:25:52 +02:00
Sebastian Grewe
dda1585353 Adding ReCaptcha support for account registration
* You will need to create a re-captcha account for your site
* Disabled by default to keep backwards compatability

Fixes #179
2013-06-13 14:47:33 +02:00
Sebastian Grewe
a703877122 Adding support do disable account registration
* Adding new configuration variable, see `global.inc.dist.php`
* If you are not able to register anymore check the config var is
* set

Requested in and fixes #150
2013-06-13 13:38:32 +02:00
Sebastian Grewe
01c859d5f5 proper number format for USD/Est 2013-06-13 13:25:33 +02:00
Sebastian Grewe
ba4a272442 reduced row size for time and difficulty 2013-06-13 13:25:08 +02:00
Sebastian Grewe
38f2ae5af7 adding proper avg shares calculation based on target diff and network diff 2013-06-13 13:24:46 +02:00
Sebastian Grewe
44851e35df Add admin/lock changes to admin panel
* Add clickable boxes for Admin and Locked status for all users
* Change status via Ajax call, script embedded to the admin page

Fixes #147
2013-06-13 11:36:28 +02:00
Sebastian Grewe
42b6d4b3b2 Adding support for user locking
* Currently no GUI, use DB access to change the row entry
* Upgraded Database table `accounts` with upgrade SQL
* Updated `admin` field to `is_admin` as boolean
* Modified pages, classes, templates to support is_admin and is_locked

Addresses #147
2013-06-13 11:36:28 +02:00
Sebastian Grewe
8859f0c091 forgot to add the actual files :/ 2013-06-13 09:21:08 +02:00
Sebastian Grewe
13fc01243e Adding configurable currency name to global config
Addresses #138
2013-06-13 09:21:07 +02:00
Sebastian Grewe
8b20d44ab7 Merge pull request #173 from lhpool/next
Added Usd/Day
2013-06-13 00:18:49 -07:00
lhpool
baed854bc9 Added Usd/Day
Added Est Usd/Day to stats
2013-06-12 19:22:40 +02:00
Sebastian Grewe
1b850ae67c Changing default statistics URL to pool
Fixes #170
2013-06-12 12:04:44 +02:00
Sebastian Grewe
4d51331883 trying new layout for stats page 2013-06-12 11:31:37 +02:00
Sebastian Grewe
a006ea782a Adding confirmed and unconfirmed balance
* Added SQL code to support both balances
* Added sidebar entries
* Modified auto_payout to use new index
* Mofified account page to use new index

Addresses #140 but needs to be tested!
2013-06-12 09:13:14 +02:00
Sebastian Grewe
eb42993c2b formatting some numbers 2013-06-11 16:32:53 +02:00
Sebastian Grewe
786926a328 fixing newline on footer 2013-06-10 20:39:41 +02:00
Sebastian Grewe
d2daed3317 Fixing montoring checkboxes
This will fix #163
2013-06-10 20:21:42 +02:00
Sebastian Grewe
b782857c41 Adding new config option payout_system
* Change templates based on the payout system used
* Modified sidebar for new PPS method

Further addresses #70
2013-06-10 18:56:28 +02:00
Sebastian Grewe
666fde91b6 adding PPS value to sidebard 2013-06-10 18:54:54 +02:00
Sebastian Grewe
4745a2f6f8 Adding support for PPS payout method
This commit changed a few things in the backend and classes code:

* Any <type>_PPS transaction does NOT need to be confirmed
* Queries updated for added <type>_PPS transactions
* Template updated to properly display these transactions

Cronjob

* Added pps_payput cron to run payouts based on worker submitted shares
* **IMPORTANT**: Can NOT be run with proportional_payout!

Addresses #70
2013-06-10 18:49:57 +02:00
Sebastian Grewe
56f3d57c35 further improved checkboxes 2013-06-10 18:37:14 +02:00
Sebastian Grewe
b1d698e686 Allow users to change their email address
* Added email to account page
* No confirmation required as of yet

Fixes #142
2013-06-10 10:54:57 +02:00
Sebastian Grewe
9e74175ca3 Make email mandatory during registration
Partially addresses #142
2013-06-10 10:45:46 +02:00
Sebastian Grewe
4e284895a8 Adding support for block finder bonus
* Added new configuration option `block_bonus`, see `global.inc.dist.php`, default 0
* Added new transaction types: `Bonus` and `Orphan_Bonus`
* Changes transaction table structure, added upgrade SQL
* Changed findblock cron to credit bonus to finder
* Modified transactions class to reflect changes

Fixes #148
2013-06-10 10:11:56 +02:00
Sebastian Grewe
bc485ec213 Merge pull request #151 from TheSerapher/issue-144
Issue 144 : Add notification handler and settings
2013-06-09 23:57:53 -07:00
Sebastian Grewe
bbffdeb689 Allow pagination on Transaction page
* Added pager to all three transaction tables
* Added two additional pagination definitions to JS
* Added pagination ID to pagination template
2013-06-09 16:38:12 +02:00
Sebastian Grewe
b2b853d3e0 Added manual payout notification
* Added mail template for manual payouts
* Added code to account page to notify via mail on payout
* Added new option to notification setting template

Adds another feature to #144
2013-06-09 15:24:58 +02:00
Sebastian Grewe
d723f4e8ef Adding notification on automatic payout
* Added new mail template
* Added notification code to auto_payout cron
2013-06-09 15:17:14 +02:00
Sebastian Grewe
4ea8b6c695 Adding new notification system for new blocks
* Modified findblocks cron
* Modified notifications cron for new structure
* Improved notification class
* Added new template for new_block type
* Moved idle_worker type template
* Added new_block type to notification settings
2013-06-09 14:26:18 +02:00
Sebastian Grewe
88ade9cfa3 Adding support for various notifications
* Adding new SQL upgrade for notifications
* Added support for per user notification settings
* Added account_id to notifications table
* Added new notification_settings table
* Added new account page: notifications

Addresses #144
2013-06-09 13:10:58 +02:00
Sebastian Grewe
4da9fd2369 Working notification system
* Added things to mail templates
* Modified user password reset call for new mail template
* Added BASEPATH to smarty code to ensure templates are compiled in the
  proper directory
* Updated mail and notification class
* Updated notification cron
* Added notification cron to run-cron list
2013-06-07 15:36:35 +02:00
Sebastian Grewe
9ac2dadd97 Progress on notifications
* Added main mail class
* notification class extends mail class
* Added mail template for IDLE workers
* Added notification table to SQL structure

This works already but once notified the status is not reset as soon as
a worker is active again. Need to think of a system to do that
automatically.

Addresses #116
2013-06-07 15:36:35 +02:00
Sebastian Grewe
c69fbe4fc4 Add worker montioring to template and worker class
* Add configurable monitoring for workers into template
* Store monitoring status in DB

First commit for #116
2013-06-07 15:36:35 +02:00
Sebastian Grewe
6802bac4b9 Merge pull request #132 from TheSerapher/issue-130
Re-Adding shares for admin user panel
2013-06-06 23:43:07 -07:00
Sebastian Grewe
4b05846a78 Re-Adding shares for admin user panel
* Re-enables estimations
* Still fixes #130 which had issues with hashrates, those are still
  fixed
2013-06-07 08:42:07 +02:00
Sebastian Grewe
c80fae30d2 Merge pull request #131 from TheSerapher/issue-130
Fixing admin panel user display
2013-06-06 23:34:40 -07:00
Sebastian Grewe
f63485a539 Fixing admin panel user display
* Fixes #130. Removed total shares in favor of the hashrate.
* Fixes hashrate display.
* Added pagination template file to include pagination on other pages in
the future.
2013-06-07 08:33:14 +02:00
Sebastian Grewe
1046bd113d minor template update for contributor shares 2013-06-07 00:54:24 +02:00
Sebastian Grewe
84f48efa41 minor template update for contributor hashrates 2013-06-07 00:51:25 +02:00
Sebastian Grewe
c7e9aaac09 adding proper credits since only the UI code is still the original 2013-06-06 17:28:41 +02:00
Sebastian Grewe
3094c9bb9d re-adjusting template again 2013-06-06 16:54:21 +02:00
Sebastian Grewe
2c56066763 changed time-range for graphs 2013-06-06 15:15:27 +02:00
Sebastian Grewe
e3702a5804 better looking worker table 2013-06-06 13:37:05 +02:00
Sebastian Grewe
7e76bb4a63 properly display username in graph 2013-06-06 12:02:58 +02:00
Sebastian Grewe
8fccc8fe3a proper time range 2013-06-06 11:57:46 +02:00
Sebastian Grewe
1bf2e7cf18 Pre-sort SQL data in array for easy time access
This allows us to access the array key as the time. This way the
template can properly render the time axis according to current time.
2013-06-06 11:47:20 +02:00
Sebastian Grewe
7dc0736b77 First version for new user graphs
* Properly calculate hashrate
* Remove number formatting, it breaks the graph
* Not properly in order based on time but displays correct values

Addresses #90
2013-06-05 17:22:47 +02:00
Sebastian Grewe
8ee987a98d Adding reference to API on public stats page
Addresses #113
2013-06-05 15:31:53 +02:00
Sebastian Grewe
11338cedf3 Add new threshold display to template
Forgot to add the template files that adds configurable thresholds
2013-06-05 09:17:10 +02:00
Sebastian Grewe
91d225e340 Adding wallet information in Admin panel
Fixes #63 and adds proper wallet information:

* Wallet balance
* Locked balance for users
* Liquid assets available to pool owner
2013-06-04 14:03:46 +02:00
Sebastian Grewe
b19473ff42 sorting does not work with number_format 2013-06-04 13:23:00 +02:00
Sebastian Grewe
d85ded7c5c Moving from user to statistics class
* This fetches all users and joins with shares table

Should speed up things a fair bit.
2013-06-04 13:14:25 +02:00
Sebastian Grewe
4fa3089655 fixing JS crash when table has no content 2013-06-04 12:13:38 +02:00
Sebastian Grewe
43772f439b fixing sort arrows showing behind text 2013-06-04 12:10:43 +02:00
Sebastian Grewe
38a66b917f adding number format to admin user query table 2013-06-04 12:01:16 +02:00
Sebastian Grewe
60789b9332 adding user ID to table 2013-06-04 11:55:36 +02:00
Sebastian Grewe
065f5e6d16 Adding working user admin panel to query user DB
* Users are all fetched from the DB
* Each user is assigned special stats
 * Hashrate
 * Shares
 * Balance
 * Est. Payout
 * Est. Donation
* Display in sortable and paginated table

This is not well optimized. Each user stats are grabbed individually
via the stats and transaction classes. It would probably make sense to
expand the statistics class to list a full user list with all statistics
available instead to cover this in a single SQL query.
2013-06-04 11:34:22 +02:00
Sebastian Grewe
ed0853202b Initial file import for admin panel
* Added isAdmin to user class
 * Run isAdmin on EACH page to ensure admin status hasn't changed
* Added main page with no content
* Added user query page with basic form, no content
2013-06-04 09:15:55 +02:00
Sebastian Grewe
bdcc3f747c Addressing #96, missing difficulty on stats page
* Properly assign template variable
* Removed unneeded additional template
2013-06-04 09:08:30 +02:00
Sebastian Grewe
da1d7daaa2 Removed warning from worker list
* Workers can safely be removed even during a round
2013-06-03 20:54:58 +02:00
Sebastian Grewe
8a50e14f0b Fixing minor template issues
* Fixed donation link in userinfo bar
* Fixed sidebar table format with proper width
2013-06-03 12:30:37 +02:00
Sebastian Grewe
3eb652402f adding est. shares for a block based on est time and share rate 2013-06-03 08:59:12 +02:00
Sebastian Grewe
b2725fbce5 Getting rid of various PHP notice warnings
* Assigned empty defaults on templates
* Added some variable checking
2013-05-31 11:56:56 +02:00
Sebastian Grewe
10266959a5 removed More button for blocks 2013-05-29 20:59:08 +02:00
Sebastian Grewe
2376c82c79 default to n/a on template if no value is stored yet 2013-05-29 10:59:10 +02:00
Sebastian Grewe
cdfb074076 Re-adding LTC/usd to website ministats header
* Use tickerupdate.php cron to update setting value
* Added new configuration variables for ticket updates
* Added some missing configuration vars for some URLs
2013-05-29 10:56:08 +02:00
Sebastian Grewe
ddc1446a2b removing API reference since it is split into many methods now 2013-05-28 16:01:53 +02:00
Sebastian Grewe
2548d4b03d add API key back to account details
Fixes #73.
2013-05-28 15:35:28 +02:00
Sebastian Grewe
c258a4860a updated support information 2013-05-28 15:24:16 +02:00
Sebastian Grewe
d44c236f2b Adding support for orphan blocks
* Adjusted blockupdate cronjob
 * Fetch block information via `gettransaction`
* Adjusted block class
 * Only getAllUnconfirmed where confirmations > -1
* Adjusted transaction class
 * added setOrphan method to mark orphaned transactions
* If block is orphaned
 * Mark all related transactions as Orphan_*type*
 * Set confirmations of block to -1 so it is ignored and marked as orphan
* Change transaction template, added listing for orphan transactions
* Add orphan status to block listings template
2013-05-27 14:44:40 +02:00
Sebastian Grewe
436aed65f1 fixing margin between sidebar and content 2013-05-27 12:45:22 +02:00
Sebastian Grewe
3d5eddecb8 added more number formatting in sidear 2013-05-26 20:44:34 +02:00
Sebastian Grewe
510d366a9e removing PPLNS references since pool runs propotional system for now 2013-05-26 20:30:29 +02:00
Sebastian Grewe
3849454a2e Merge branch 'next' of github.com:TheSerapher/php-mmcfe-ng into next 2013-05-26 20:29:58 +02:00
Sebastian Grewe
34de1ae36e removing PPLNS about page since pool is running propotional system for now 2013-05-26 20:29:05 +02:00
Sebastian Grewe
587e5ba9a7 better alignment of numbers in some tables 2013-05-26 20:23:38 +02:00
Sebastian Grewe
93d0ec06a6 adding proper headers for HTML mail 2013-05-25 12:25:41 +02:00
Sebastian Grewe
787942b6f9 working version of password reset with one time token 2013-05-25 12:08:51 +02:00
Sebastian Grewe
841d986726 initial work on password reset, not working fully yet 2013-05-25 10:58:53 +02:00
Sebastian Grewe
30a46979b9 adding configurable block explorer and chain info URLs 2013-05-24 16:16:53 +02:00
Sebastian Grewe
7b8aec1699 Merge pull request #57 from TheSerapher/block-stats
adding block status page for past 30 blocks, no graphs yet
2013-05-24 06:57:43 -07:00
Sebastian Grewe
b771920210 adding block status page for past 30 blocks, no graphs yet 2013-05-24 15:57:14 +02:00
Sebastian Grewe
1c5bd14646 removed hard link to index.php 2013-05-24 08:51:25 +02:00
Sebastian Grewe
3c99fef939 Merge pull request #56 from WKNiGHT-/patch-2
Fix broken link for workers
2013-05-23 14:10:18 -07:00
WKNiGHT-
5e8df562fc Fix broken link for workers 2013-05-23 15:48:29 -05:00
WKNiGHT-
89f9673ec0 fix common link backs for register and worker 2013-05-23 15:43:14 -05:00
Sebastian Grewe
e078c5447a properly highlight user in top tables even if row is of class even 2013-05-22 17:09:49 +02:00
Sebastian Grewe
c30bd0ee60 fixing LTC/day display from earlier commit 2013-05-22 16:03:16 +02:00
Sebastian Grewe
eae1f564dd adding proper difficulty when not authenticated 2013-05-22 16:00:27 +02:00
Sebastian Grewe
f42b4d81ca adding user to top stats to always display even if not part of results 2013-05-22 15:45:32 +02:00
Sebastian Grewe
7b2c8e1725 fixing pool fee display, thanks @lhpool 2013-05-21 22:21:49 +02:00
Sebastian Grewe
2c890d2bd5 fix display of fee amount, based on est. block payout 2013-05-21 22:17:36 +02:00
Sebastian Grewe
6429b2b442 adding support for pool fees 2013-05-21 13:57:49 +02:00
Sebastian Grewe
09671131e6 properly display payment address in transactions log 2013-05-20 21:01:55 +02:00
Sebastian Grewe
e4732f55ca adding support for user donations, added all required changes into this commit 2013-05-20 19:38:21 +02:00
Sebastian Grewe
6ffaece837 allow caching to be more transparent and configurable 2013-05-17 16:25:45 +02:00
Sebastian Grewe
f14f0ff981 adding proper confirmations from global config 2013-05-17 13:52:48 +02:00
Sebastian Grewe
ccf322bde1 re-adding seperate tables for shares and hashes due to SQL load when combining them 2013-05-17 13:47:56 +02:00
Sebastian Grewe
aed9d58c6b added proper shares per second to contributor list 2013-05-16 21:14:46 +02:00
Sebastian Grewe
88ff579647 removed last stats update since values are cached and not generated regularly 2013-05-16 21:14:29 +02:00
Sebastian Grewe
f67b5855a9 removed unused ministats field 2013-05-16 21:14:03 +02:00
Sebastian Grewe
72156c543d updated footer 2013-05-16 15:03:36 +02:00
Sebastian Grewe
ec3d6d7cbd merger contributer and hashrate tables into a sortable table, added personal hashrate graphs, added JS files, updated statistics class and page controllers 2013-05-15 16:55:29 +02:00
Sebastian Grewe
1a2c357b59 removed admin link for now 2013-05-15 16:52:03 +02:00
Sebastian Grewe
649b527a8f further moved stats from user into statistics class, added more caching 2013-05-15 01:07:59 +02:00
Sebastian Grewe
1534b53686 removing a lot of uneeded JS 2013-05-14 23:56:51 +02:00
Sebastian Grewe
839327179a shares per second, not minute 2013-05-14 16:43:19 +02:00
Sebastian Grewe
7ebba88f04 adding new shares/minute to mini stats 2013-05-14 16:31:41 +02:00
Sebastian Grewe
b3cafc7291 added new valid and invalid shares to sidebar template, enable Round Estimate LTC 2013-05-14 12:46:47 +02:00
Sebastian Grewe
f16de4f81f properly calcluate estimated time with 50/50 chance to find blocks, also properly calculate LTC per day matching litecoinpool.org/calc 2013-05-14 11:00:39 +02:00
Sebastian Grewe
924646619d removed paid out share counts 2013-05-14 00:08:57 +02:00
Sebastian Grewe
b626c02088 fixed lastblock display and removed debug colum from hashrate top 20 2013-05-13 23:34:33 +02:00
Sebastian Grewe
ebe3fe88ff adding new columns to accounts worker page 2013-05-13 23:33:56 +02:00
Sebastian Grewe
d90b496dfd adding some first statistics including memcache storage, adjusted template. LTC/day not working yet 2013-05-13 17:56:30 +02:00
Sebastian Grewe
df8b1bb974 adding all available block inforation to block stats table 2013-05-13 14:58:04 +02:00
Sebastian Grewe
ece3d8fd25 adding block statistics, added finder and round shares for blocks, updates transactions for new columns, updated template and pool statistics code 2013-05-13 09:21:41 +02:00
Sebastian Grewe
fbfc8d60da adding new transaction class to manual payout through website 2013-05-12 16:58:48 +02:00
Sebastian Grewe
a6e0b98552 use new blocks table properly 2013-05-12 11:37:42 +02:00
Sebastian Grewe
9dcdc91a7f updated account template and user class to work with simplified accounts table 2013-05-11 20:16:32 +02:00
Sebastian Grewe
4a7b51d9eb implemented transactions, PPS payouts and Transactions displayed on the website 2013-05-11 16:50:15 +02:00
Sebastian Grewe
3971ea797c further work on sharecounter cron, almost all features available now 2013-05-11 09:15:19 +02:00
Sebastian Grewe
5dc31fe392 properly display credit/debit in color 2013-05-10 15:31:33 +02:00
Sebastian Grewe
1ca5c37da7 properly search next block in chain 2013-05-06 21:19:18 +02:00
Sebastian Grewe
14c44dc4f4 adding proper confirmation messages to block list 2013-05-06 21:18:26 +02:00
Sebastian Grewe
8817a1a0aa added missing block context for login box 2013-05-06 21:17:14 +02:00
Sebastian Grewe
d6cb93fa5a adding propagates statistics page 2013-05-06 17:13:24 +02:00
Sebastian Grewe
5769aad0c0 move debug console out of main div 2013-05-06 17:10:12 +02:00
Sebastian Grewe
2f7c7cf863 proper format for MHash in header 2013-05-06 15:32:56 +02:00
Sebastian Grewe
1b50f76f72 initial import of file base of my WIP 2013-05-06 14:11:38 +02:00