Sebastian Grewe
1708e5d2b5
Do not add 24th hour, use 0 hour
2013-08-15 10:03:22 +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
50f380c25e
first test to fill with data
2013-08-15 09:14:02 +02:00
Sebastian Grewe
16557465e4
Added: getuserbalance API call
...
* Adds getbalance to API
* Admins: Can fetch any users balance
* Users: Can fetch only their own balance
Fixes #605
2013-08-15 08:58:50 +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
22e7904da7
Fixing round estimates on public stats page
...
* Fix: Display round restimates when making pool stats public via ACL
* Fix: Display proper pool efficiency when pool stats are public
Fixes #585
2013-08-13 09:20:06 +02:00
Sebastian Grewe
031b4940cd
admin should see all transactions in summary
2013-08-08 12:05:06 +02:00
Sebastian Grewe
1a459a7913
Adding transaction summary by types
...
Addresses #581
2013-08-08 12:02:39 +02:00
Sebastian Grewe
c568683152
Adding empty example for round stat integration
...
Addresses #543
2013-08-08 10:01:33 +02:00
Sebastian Grewe
03da52117a
Fix user seeing other users transactions
...
Fixes #577
2013-08-08 09:36:05 +02:00
Sebastian Grewe
6767b5a235
Merge pull request #576 from TheSerapher/issue-561
...
Issue 561
2013-08-07 21:46:44 -07:00
Sebastian Grewe
c9139034a4
Merge pull request #573 from TheSerapher/issue-549
...
Make block count on stats page configurable
2013-08-07 21:44:30 -07:00
Sebastian Grewe
cbf39f7905
Fix IDLE worker detection
...
* Also mark as IDLE if no valid shares were received
Fixes #561
2013-08-07 09:27:50 +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
d4a9af86c4
removed debug output
2013-08-06 09:26:43 +02:00
Sebastian Grewe
0b8243ab69
Fixing archiving of PPS, TXFees and Debits
...
Emergency fix. Includes balance PPS calculation fix.
Addresses #563
2013-08-06 09:24:01 +02:00
Sebastian Grewe
c55bf8354f
Fixing bug with archived transactions
...
This will fix #563 , only mark transactions as archived that have been
confirmed.
2013-08-05 23:00:24 +02:00
Sebastian Grewe
df28e77319
fixing payout cron display
2013-08-05 17:51:31 +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
2cddc27130
fixing PPS locked balance
2013-08-05 10:54:32 +02:00
Sebastian Grewe
f675fc7055
Removed page generation PHP from settings
...
Committed those by accident, so removed.
2013-08-05 10:08:24 +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
d59b8ef563
Make block count on stats page configurable
...
Fixes #549
2013-08-05 09:18:52 +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
7bde00c452
properly display auto-confirmed tx
2013-08-01 12:48:55 +02:00
Sebastian Grewe
95825224a1
Adding archiving flag for transactions
...
* Added new column to transactions table (`007_transactions.sql`)
* Added setArchived method to mark old transactions as archived
* Honor archived flag in getBalance and getLockedBalance
This will further address and fix #536 once merged.
2013-08-01 12:16:59 +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
52f58807b0
Refactored admin transactions
...
* Properly generate the bind_params statement
* Extended from Base Class
* Added methods to Base Class
Addresses #536
2013-08-01 10:40:49 +02:00
Sebastian Grewe
4b3534ce61
Fixing WHERE clause for getBalance call
...
Addresses #536
2013-08-01 10:38:20 +02:00
Sebastian Grewe
9e1f424742
Great performance increase on transaction queries
...
This will address an issue with database including a lot of
transactions. No more nested queries that put unwanted strain on a DB.
Address #536
2013-08-01 10:38:20 +02:00
Sebastian Grewe
60bf687d1c
increased limit back to 30
2013-07-31 17:11:26 +02:00
Sebastian Grewe
68c8d29a01
removed line by accident
2013-07-31 17:10:26 +02:00
Sebastian Grewe
4c37ab4950
Find actual row count without LIMITs applied
...
Addresses #542
2013-07-31 17:09:30 +02:00
Nicolas Schteinschraber
5a377d6106
Issue #537
2013-07-31 03:44:49 -03:00
Sebastian Grewe
c7f952a27a
Display network hashrate in public API
...
Instead of 0 show the actual hashrate, still shows 0 if unable to
connect to RPC server.
Fixes #511
2013-07-24 09:12:29 +02:00
Sebastian Grewe
c6a4df2975
Check coin address when updating account
...
This will fix #506 and ensures valid addresses are added when updating
the account.
2013-07-23 14:37:58 +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
7209f570f4
properly fetch account balance
2013-07-23 14:16:20 +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
9cb80c6fd9
Properly filter Debit transactions
2013-07-23 12:36:16 +02: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
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
3cfef93580
WiP to disable fees for specific accounts
...
* added new account table column: `no_fee`
* honor `no_fee` flag during payout process
* added upgrade SQL file for this feature
Address #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
728bfe8c9d
properly filter Credit_PPS as confirmed
2013-07-23 09:18:04 +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
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
ee5e2c46c6
Adding manual payout cron
...
This will avoid double payouts via the website. Payouts will be
requested by users and processed by a cron. If, for whatever reason,
users do add two requests (it is checked if a payout exists) they would
only have one successful payout until their account balance is back up
to a save value to trigger the payout.
This should fix any issues with manual payouts being exploited through
the website. Will require some testing by others to ensure things work
as expected.
2013-07-22 16:14:22 +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
00f7f3fadf
Merge branch 'next' of github.com:TheSerapher/php-mmcfe-ng into next
2013-07-22 10:41:56 +02:00
obigal
93e36a8259
Cryptsy api support
2013-07-21 14:15:34 -04:00
obigal
ee2c90525c
Cryptsy api support
2013-07-21 14:14:12 -04:00
Sebastian Grewe
1086d81f09
Merge pull request #495 from TheSerapher/issue-490
...
Issue 490
2013-07-21 10:26:05 -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
c94c1be7be
Using proper SQL query by @CaptainAK
...
Proposed fix did not work, using proper Query now.
Thank @CaptainAK for the fix!
Fixes #492
2013-07-21 08:35:57 +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
440ca027a2
Fixing PPLNS target calculation on blockavg
...
This will fix #492 with PPLNS targets not taking the blocks in proper
order.
2013-07-21 08:12:40 +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
43923fe4e9
only fetch blockhash for valid blocks
2013-07-19 09:49:48 +02:00
Sebastian Grewe
6641cf7f5c
Adding notifications and start/end times
...
Fixes #486
2013-07-18 15:41:52 +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
33a058dc4b
Merge pull request #482 from TheSerapher/issue-467
...
Issue 467
2013-07-18 01:49:47 -07:00
Sebastian Grewe
6d379e8e58
Removing debug output
2013-07-18 09:45:20 +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
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
d492b532b7
Adding ability to disable the sites API functions
...
Addresses #467 and will fix upon merge.
2013-07-17 09:43:02 +02:00
Sebastian Grewe
a12499ecd9
Fixing negative time since last block
...
This will fix #466 if approved by reporter.
2013-07-16 21:55:52 +02:00
Sebastian Grewe
b7ffbd0bfd
fixing issue for first created admin user
2013-07-16 16:02:52 +02:00
Sebastian Grewe
41ec58ea16
Adding inline docuemtation to invitation class
...
Adding proper inline documentation to invitation class.
2013-07-15 16:28:22 +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
501f369b4e
Further fixes to PHP warnings
...
Addresses #330 and further cleans up the PHP log.
2013-07-15 15:31:18 +02:00
Sebastian Grewe
525c0ab009
Fixing PHP Warning on unsert token on register
...
Addresses #330 and cleans up PHP Log
2013-07-15 14:28:54 +02:00
Sebastian Grewe
0f00f7d322
Another fix for registration issues
...
Addresses #330
2013-07-15 13:46:20 +02:00
Sebastian Grewe
8f72062558
Fixing issue with registration disabled and invitations
...
This will fix an issue with certain combinations of registration and/or
invitations being enabled or disabled.
Addresses #330
2013-07-15 13:44:22 +02:00
Sebastian Grewe
bf3cd25326
removing unused token methods
2013-07-15 12:52:55 +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
7cc1e2543c
fixing syntax error
2013-07-15 12:26:31 +02:00
Sebastian Grewe
be9a8d3fda
Go through activiation even for admin accounts
...
Fixes an issue with accounts being locked after trying to activate it.
Addresses #330
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
253d6e8a47
Fixing username regexp during registration
...
Fixes wrong regext of #453
2013-07-14 21:08:03 +02:00
Sebastian Grewe
15753f5eca
Merge pull request #455 from typal/issue-452
...
fucked up...
2013-07-14 01:15:21 -07:00
typ
ed5e320ff6
fucked up...
2013-07-14 02:43:44 +02:00
Sebastian Grewe
d190866315
Merge pull request #454 from TheSerapher/issue-419
...
Adding anonymous account support
2013-07-13 10:43:21 -07:00
typ
0775eaf8c1
add check for non alpa/-/_ chars
2013-07-13 16:41:51 +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
dca14886de
Merge pull request #448 from IainKay/Issue-447
...
Issue 447
2013-07-11 21:42:10 -07:00
Iain Kay
3e2608fcef
Removed unnecessary cookie name variable that was not used.
2013-07-11 20:30:39 +00:00
Sebastian Grewe
a9ae72cd50
Merge pull request #445 from IainKay/issue-434
...
Issue 434
2013-07-11 13:06:41 -07:00
Iain Kay
a635d2163c
Added note about php.ini session.gc_maxlifetime value - Important to stop garbage collection removing cookies that should be valid.
2013-07-11 19:56:10 +00:00
Iain Kay
dfbaf621de
When destroying a users session on the server we now also remove all session data immediately, rather than relying on garbage collection, and we destroy the cookie on the users browser.
2013-07-11 19:41:50 +00:00
Iain Kay
d2bbc366d1
Changed the Cookie Explanation in global.inc.php to be more in line with the rest of the structure.
2013-07-11 19:26:09 +00:00