xisi
e7bace5550
basic logging, adds logs folder to root dir
...
htaccess to block access to the logs
by default, only log warnings
simple config check to see if that folder is writable
warning if changeNoFee is used
warning if setLocked is used
warning if changeAdmin is used
warning if when logging in that IP is different than saved IP
info if a login fails with bad user or password
warning if a user is locked via failed logins
info if an update/etc fails with bad pin
warning if a user is locked via failed pins
info when a pin request is sent
warning when a pin request email doesn't send
warning when trying to request pin reset and incorrect password
info when a twofactor token sent
warning if twofactor email doesn't send
warning when a user tries to request multiple of the same type of token
info when a twofactor token is deleted
warning if a twofactor token fails to delete
warning when an invalid change password token is used
info on successful account update
warning when reset password is called and IP doesn't match saved IP, info otherwise
warning if isAuthenticated falls through and kills a session
2014-01-31 13:11:38 -05:00
Sebastian Grewe
255b9e1f56
[FIX] API Timeout added
...
Fixes #1643
2014-01-31 16:27:03 +01:00
Sebastian Grewe
319d9439a4
Merge pull request #1621 from xisi/sessions-mclimiter-fixes
...
[UPDATE] Security updates and fixes
2014-01-31 05:55:09 -08:00
xisi
afdf3abb29
ripped out all the memcache session stuff, not worth it with the side effects of caching things
...
cleaned up config/checks
2014-01-30 18:41:56 -05:00
xisi
8487a8d462
respect client validation settings for failures
2014-01-30 09:38:41 -05:00
xisi
3d414e9ffa
I think this is a good midway between hardcoding it in and allowing configurability
2014-01-29 23:35:07 -05:00
xisi
0643cf4b87
fixed crons, tested on 2 boxes
2014-01-29 18:33:34 -05:00
xisi
53a8b4adf1
.htaccess check for @ahmedbodi
2014-01-29 15:43:09 -05:00
xisi
51818421d8
weird problem, strict for isAuthenticated
2014-01-29 14:46:21 -05:00
xisi
5d017f60c3
how this worked before is beyond me
2014-01-29 13:28:38 -05:00
xisi
ae47437ab7
fixed worker delete csrf thing I stubbed earlier
...
took to field out of the rest of the login forms
2014-01-29 09:41:50 -05:00
xisi
f298c60260
little more cleanup
...
put version check/config check after sessions/rate limiter so it works correctly & only uses 1 db hit
2014-01-29 09:16:03 -05:00
xisi
568445845a
changes DEBUG SALT and SALTY from defines to variables
...
switched that in all places used (class loads mostly)
moved all includes at the beginning of index into bootstrap
moves *_PATH defines from config to bootstrap
config now uses defaults first, then user config
2014-01-29 07:34:50 -05:00
xisi
c2b1c68699
added check if we can write config files to admin_checks, we shouldnt be able to
2014-01-29 05:20:06 -05:00
Sebastian Grewe
923795c23b
[FIX] Ignore AP for empty/NULL addresses
2014-01-29 09:58:18 +01:00
xisi
56ad9266d3
last login time not this login time
2014-01-29 03:55:51 -05:00
Sebastian Grewe
d84018763d
[FIX] Admin Panel Users: Show user shares
...
Fixes #1624
2014-01-29 09:27:34 +01:00
Sebastian Grewe
d007358710
[FIX] Ignore missing HTTP_REFERRER
...
Fixes #1626
2014-01-29 08:52:12 +01:00
xisi
74dec2796d
Added last login time/ip address popup on login w/ close button
...
Info/blue if your ip matches, warning/yellow if not
2014-01-28 15:45:24 -05:00
xisi
3efe979ae3
Switch config over to wiki, yay
2014-01-28 14:24:48 -05:00
xisi
614b5b1dbb
of all the pages to miss it on
2014-01-28 08:19:58 -05:00
xisi
9f6cf99aa3
small fixes
2014-01-28 08:08:53 -05:00
xisi
f56c18276a
small fixes
2014-01-28 07:26:33 -05:00
xisi
6398e5dfec
merged session manager/memcache limiter
...
cleanup for PR
2014-01-28 07:26:33 -05:00
Joey
63c3b96a29
now enforce client & server validity on login with strict on
...
fixed csrf token check for a few pages where it mightve been broken
session manager now can be bound to base user class and used, like in login
logout now pushes you to login regardless, no longer has param to push to custom url
fixed validate client, hijacking sessions no longer works
2014-01-28 07:26:32 -05:00
Joey
795e019d0d
cleaned up config options a bit
2014-01-28 07:26:32 -05:00
Joey
493c43e0ed
updated check in autoloader so default needs to be changed if SECHASH_CHECK is enabled
2014-01-28 07:26:32 -05:00
xisi
b728b680ca
blah blah
2014-01-28 07:26:08 -05:00
xisi
9dcb855b34
strict class, trying to figure out why edit account doesnt work
2014-01-28 06:18:57 -05:00
xisi
f21f05e874
pushing to start core rebuild
2014-01-28 06:18:57 -05:00
Sebastian Grewe
967c1cc48f
[FIX] Proper HTTPS detection
...
Fixes #1618 once merged
2014-01-28 09:25:20 +01:00
Sebastian Grewe
b783237c2e
Merge pull request #1457 from MPOS/issue-1332
...
Issue 1332
2014-01-28 00:18:56 -08:00
Sebastian Grewe
f83c88aae6
Merge pull request #1603 from MPOS/double-payouts
...
Double payouts
2014-01-27 22:25:44 -08:00
Sebastian Grewe
ecfa741223
[FIX] Do not assign smarty vars if caching hits
2014-01-27 13:43:33 +01:00
Sebastian Grewe
b5cb8171ba
Merge branch 'master-read-only-check' into next
2014-01-27 13:26:14 +01:00
Sebastian Grewe
f183b586a8
[ADDED] Check if master is read-only
...
Just to ensure we can run at all.
2014-01-27 12:58:41 +01:00
Sebastian Grewe
fab3c44e90
[ADDED] THash/second modifier
2014-01-27 12:45:46 +01:00
Sebastian Grewe
1cd9352952
[FIX] Transaction ID and RPC Transaction ID
2014-01-27 10:31:18 +01:00
Sebastian Grewe
d4557982ba
[FIX] API call for transactions
...
Fixes #1602 once merged.
2014-01-27 09:13:09 +01:00
Sebastian Grewe
b87691371f
[SECURITY] Path disclosure and redirects
...
* [SECURITY] Do not disclose paths with wrong query arguments in API
* [SECURITY] Removed $to redirect after login
Fixes #1596 once merged.
2014-01-26 17:41:27 +01:00
Sebastian Grewe
7c8d7701f2
[FIX] Lock state 2 for admin locks
2014-01-26 11:17:33 +01:00
Sebastian Grewe
702ed49704
[ADDED] Account lock status
...
* Lock 1: user confirmation/unlock pending, count shares
* Lock 2: Admin disabled, ignore shares
This further addresses #1332 and should allow proper dropping of shares
for banned accounts.
2014-01-26 11:17:33 +01:00
Sebastian Grewe
e4627fc51d
[IMPROVED] Ignore locked account shares
...
* Updated getRoundShares to honor locked accounts
* Updated getSharesForAccounts and getArchiveShares
This will fix #1332 and ignore locked user accounts in share
calculations for payouts.
2014-01-26 11:17:33 +01:00
Sebastian Grewe
816fb783ce
Merge pull request #1589 from joebauers/next
...
Update user.class.php
2014-01-25 23:50:25 -08:00
joebauers
48ce68e612
Update user.class.php
...
No need to show world if valid account.
2014-01-26 02:44:30 -05:00
Sebastian Grewe
a343ac4047
Merge pull request #1568 from MPOS/payout-fail-bail
...
[FIX] Bail payouts on failed sendtoaddress calls
2014-01-25 08:38:56 -08:00
Sebastian Grewe
768d193793
Merge pull request #1576 from xisi/csrf-backend-only
...
[FIXES] More CSRF improvements
2014-01-25 06:59:08 -08:00
Sebastian Grewe
9e6a2a3bea
[FIX] Do not treat disabled notification as error
...
Fixes #1582 once merged.
2014-01-25 13:10:38 +01:00
xisi
c81aec4c64
fixed bug in registration form
2014-01-24 15:38:56 -05:00
xisi
0f88f70fcf
fixes bug in registration form, thanks @Zen00
2014-01-24 15:34:01 -05:00
xisi
3006cb544f
Reworked csrf tokens, now enabled globally
...
The way this now works is, if csrf is enabled:
* Any new or existing template can have csrf protection by adding the hidden input ctoken that's in this batch to its form, removes any logic in templates
* Page controllers that already exist have been updated, new ones only require checking if csrf is enabled and valid
2014-01-24 13:00:24 -05:00
Sebastian Grewe
a586cc36ab
[FIX] Honor cache flag for getUserSharerate
2014-01-24 12:32:21 +01:00
Sebastian Grewe
2891a07637
[FIX] Bail payouts on failed sendtoaddress calls
...
* [WORKAROUND] Helps for coins that run a bad RPC implementation
* Addresses #1406 and wil at least stop double payouts
2014-01-24 12:15:23 +01:00
Sebastian Grewe
481c8dd980
[FIX] Round donations on donor page
2014-01-24 10:52:13 +01:00
Sebastian Grewe
a1a3d7e873
[IMPROVED] Added donation minimum and rounding
...
* [ADDED] Config option `$config['donate_threshold']['min'] = 1;`
* [VERSION] Incremented config file version to `0.0.6`
* [CHANGED] Round donations to at least two digits
* [CHANGED] Honor minimum set pool donation percentage
* [UPDATED] Account edit template
Fixes #1475 once merged
2014-01-24 10:06:13 +01:00
Sebastian Grewe
659c203c06
Merge pull request #1551 from xisi/csrf-improvements
...
[FIXES] CSRF tokens & login cleanup
2014-01-23 23:27:31 -08:00
Sebastian Grewe
90d0ff1081
Merge pull request #1546 from ahmedbodi/patch-1
...
Get Cronjob Status API
2014-01-23 23:13:42 -08:00
Hüseyin Uslu
b518ce0799
Tiny update.
2014-01-24 00:38:28 +02:00
Hüseyin Uslu
0639af54b3
Added reward_type and reward info to api/getpoolinfo
2014-01-24 00:37:50 +02:00
ahmedbodi
6d7d3f2026
Update getcronjobstatus.inc.php
2014-01-23 20:23:41 +00:00
xisi
a3314fa81e
Cleaned up login page logic a bit more
...
Fixed up CSRF tokens so rollover minutes/hours are now checked and valid
2014-01-23 11:01:30 -05:00
Sebastian Grewe
33cfa5667d
Merge branch 'next' of github.com:MPOS/php-mpos into next
2014-01-23 16:59:46 +01:00
Sebastian Grewe
92e7f3e1e4
[FIX] Return floats for some statistics
...
Fixes #1540
2014-01-23 16:59:12 +01:00
Andrea Baccega
d6670508f7
Lets always use $this->table instead of hardcoding
2014-01-23 12:56:19 +01:00
ahmedbodi
ece8b3adf6
Create getcronjobstatus.inc.php
2014-01-23 10:29:01 +00:00
Sebastian Grewe
7acd3bc821
Merge pull request #1543 from Neozonz/issue-1542
...
[BUG] FIX txfee in getpoolinfo API
2014-01-23 01:13:00 -08:00
Sebastian Grewe
8a53e0319d
[FIX] Missed file for admin maintenance
2014-01-23 10:01:35 +01:00
Sebastian Grewe
ac1bc4b2ce
[FIX] Allow admin logins in maintenance mode
...
Fixes #1489
2014-01-23 08:58:25 +01:00
Neozonz
7a21b05a3d
[BUG] Fix txfee API call with added support for old API calls
...
[ADD] txfee_auto to API Calls
[ADD] txfee_manual to API Calls
[ADD] confirmations to API Calls
2014-01-23 02:38:34 -05:00
freynder
952d5d979c
Bugfix: shares and shares_archive values should be added up.
2014-01-22 14:18:38 +01:00
Sebastian Grewe
2a661b5e78
[FIX] Return proper data if memcache disabled
...
If memcache option is disabled, the functions should return the data we
tried to set instead of false. At least we can ensure data is returned
as expected from any methods trying to use the memcache.
2014-01-22 14:02:44 +01:00
Sebastian Grewe
593149742e
Merge pull request #1491 from Neozonz/issue-1488
...
[Optimize] SQL Queries : Remove joins from account table
2014-01-22 04:56:16 -08:00
Neozonz
8b4ad00b1a
[FIX] Fixed Data types for getHashrate
2014-01-22 07:33:01 -05:00
Neozonz
3de2fee57f
[FIX] Updated function call to include account id as well
2014-01-22 07:10:05 -05:00
Sebastian Grewe
faf648d1d2
[FIX] Show username in Login Mails
2014-01-22 12:18:51 +01:00
Neozonz
0faf23027a
[CACHE] Readded
2014-01-21 20:29:09 -05:00
Neozonz
a9853e2832
[Removed] Caching for testing
2014-01-21 20:18:38 -05:00
Neozonz
934825e8dc
[FIX] Remove old query remnants
2014-01-21 20:14:44 -05:00
Neozonz
3222792533
[BUG FIX] Missing JSON
2014-01-21 20:14:13 -05:00
Neozonz
be8437e9dd
[FIX] Missing User ID argument
2014-01-21 20:07:07 -05:00
Neozonz
f613cc6bfd
[FIX] Set interval for sample size as well
2014-01-21 20:06:37 -05:00
Neozonz
2090247afb
[COMMENT] Added commenting and fixed function descriptions
...
[CLEAN] Clean Code
2014-01-21 19:43:33 -05:00
Neozonz
02f085f2d7
[FIX] MySQLi Queries
2014-01-22 00:13:58 +00:00
Nonstopmine.com
ac7aed4bc4
Update mail.class.php
...
PHP Notice
2014-01-21 22:28:39 +02:00
Neozonz
34dfd4aefb
[FIX] SQL Conditional Operator
2014-01-21 11:16:00 -08:00
Sebastian Grewe
971006b7a2
[FIX] Live stats not being done with global cache
...
Fixes live stats not updating and always using the global cache instead.
2014-01-21 17:16:26 +01:00
Sebastian Grewe
0d367697e0
[FIX] Storing/showing wrong data from cache
...
Fixes #1517
2014-01-21 15:24:44 +01:00
Sebastian Grewe
af1e6e8e13
Merge pull request #1516 from MPOS/default-payout-block
...
[UPDATE] Change payout by default to block
2014-01-21 04:15:18 -08:00
Sebastian Grewe
10ba200df6
[UPDATE] Change payout by default to block
2014-01-21 13:14:53 +01:00
Neozonz
1630d85440
[FIX] Cache by Account_ID
...
[FIX] Query by Username
2014-01-21 06:58:28 -05:00
Sebastian Grewe
2eb53d8efc
Merge pull request #1515 from xisi/security-typofix
...
Typo in registration
2014-01-21 03:56:18 -08:00
xisi
c88a14bac1
typo
2014-01-21 06:51:56 -05:00
Neozonz
0a5344cba0
Merge branch 'github.com/issue-1488'
...
Conflicts:
public/include/classes/statistics.class.php
2014-01-21 06:44:10 -05:00
Neozonz
07e8af55f8
[FIX] Added back accound_ids for caching
...
[FIX] SQL string termination
2014-01-21 06:42:08 -05:00
Neozonz
df97e7a8ea
[Optimize] Switched calls to username from id
2014-01-21 06:41:00 -05:00
Neozonz
9e8841b1df
[Optimize] Switched calls to username from id
2014-01-21 06:41:00 -05:00
Neozonz
4d845c7c73
[Optimize] Switched calls to username from id
2014-01-21 06:41:00 -05:00
Neozonz
4b98c09fb2
[Optimize] Switched calls to username from id
2014-01-21 06:41:00 -05:00
Neozonz
3d72da0ca4
[Optimize] Switched calls to username from id
2014-01-21 06:40:59 -05:00
Neozonz
d99ae5bab5
[Optimize] Switched calls to username from id
2014-01-21 06:40:59 -05:00