Commit Graph

789 Commits

Author SHA1 Message Date
Iain Kay
3e2608fcef Removed unnecessary cookie name variable that was not used. 2013-07-11 20:30:39 +00: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
aac202da2b Pull cookie session params from include/config/global.inc.php before session_start() 2013-07-11 19:34:58 +00:00
Iain Kay
9f4789c707 In order to read the cookie configuration from include/config/globa.inc.php the session must begin after this has been included. 2013-07-11 19:29:24 +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
Iain Kay
638b8387c3 Updated global.inc.php to reflect the new values required for cookie configuration and documented each of the options. 2013-07-11 19:17:49 +00:00
Sebastian Grewe
ed573e6e46 Merge pull request #428 from TheSerapher/issue-418
Issue 418
2013-07-11 03:35:50 -07:00
Sebastian Grewe
1344f39f96 Ensure we set workers to 0
If no workers are found false is returned. Smarty is not able to set a
default on `false` values so we have to set it to 0 if the query failed.

Fixes #418
2013-07-11 11:43:48 +02:00
Sebastian Grewe
83c979b260 Merge pull request #427 from TheSerapher/issue-309
Issue 309
2013-07-11 02:35:24 -07:00
Sebastian Grewe
32f076d498 Merge pull request #426 from TheSerapher/issue-421
Issue 421
2013-07-11 02:35:05 -07:00
Sebastian Grewe
b88cdc135c Merge pull request #425 from TheSerapher/cronhome-fix-symlink
Fix CRONHOME detection if a symlink is used
2013-07-11 00:52:15 -07:00
Sebastian Grewe
dad727a8f0 Fix CRONHOME detection if a symlink is used
This will fix CRONHOME detection if `run-rcrons.sh` is a symlink in `/etc/cron.minutely`.
Before symlinks would not return the proper path.
2013-07-11 09:50:51 +02:00
Sebastian Grewe
4b684ac45a Merge pull request #424 from TheSerapher/cronhome-detection
Adding CRONHOME detection to run-crons.sh
2013-07-11 00:43:06 -07:00
Sebastian Grewe
5d568a4621 Adding CRONHOME detection to run-crons.sh
This will ensure the cron will run without having to change the CRONHOME
configuration.
2013-07-11 09:42:10 +02:00
Sebastian Grewe
25b12d204a Better description what type uses what for PPLNS
Fixes #422
2013-07-11 09:19:30 +02:00
Sebastian Grewe
72d91ff6c3 adding proper account balance warning back in 2013-07-11 09:16:31 +02:00
Sebastian Grewe
39cfdc78e0 onliner security check 2013-07-11 09:15:36 +02:00
Sebastian Grewe
17829cfd4a always assign default content 2013-07-11 09:13:50 +02:00
Sebastian Grewe
09efdfc172 fixing merge commit with origin 2013-07-11 09:05:41 +02:00
Sebastian Grewe
65c6318b02 fixing empty variable when using cache 2013-07-11 09:03:47 +02:00
Sebastian Grewe
e0275566ae disable smarty cache by default in dist 2013-07-11 09:02:34 +02: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
0e6edc562c Add detailed smarty cache documentation to config
Instead of just making it availble document the smarty cache feature.

It might work for users, but it's advised to rely on the memcache
instead.

Fixes #309
2013-07-11 08:58:19 +02:00
Sebastian Grewe
426268f71d adjust smarty configurations 2013-07-11 08:58:19 +02:00
Sebastian Grewe
e9311f08a5 Adding cache lifetime option to smarty config
* Renamed configuration array to `smarty` => `cache`
* Added `smarty` => `cache_lifetime` to expire cache files properly

This should be safe to use, be aware that each page request is cached!
That includes any POST/GET calls to the site.

It does help in speeding up the site, up to 100% on some requests. For a
high traffic site it probably makes sense to enable this option with a
low cache lifetime to ensure most recent data.

Addresses #309
2013-07-11 08:58:19 +02:00
Sebastian Grewe
6632920fa1 Add detailed smarty cache documentation to config
Instead of just making it availble document the smarty cache feature.

It might work for users, but it's advised to rely on the memcache
instead.

Fixes #309
2013-07-11 08:58:19 +02:00
Sebastian Grewe
aace0dd014 More descriptive PPLNS options
Fixes #421 and #422
2013-07-11 08:57:11 +02:00
Sebastian Grewe
39d1193e6a Add default value for active pool workers
Fixes #418
2013-07-11 08:51:40 +02:00
Sebastian Grewe
fdf97c8832 fixing config access in share class for archive purge 2013-07-10 14:24:15 +02:00
Sebastian Grewe
993ddaf3bc fixing 24h shares retention in dist config 2013-07-10 14:17:20 +02:00
Sebastian Grewe
0272fb222b Merge branch 'next' of github.com:TheSerapher/php-mmcfe-ng into next 2013-07-10 11:39:58 +02:00
Sebastian Grewe
271f7f8381 Better monitoring layout 2013-07-10 11:39:16 +02:00
Sebastian Grewe
652bf8ed4b Update README.md
Updated features
2013-07-10 11:30:41 +02:00
Sebastian Grewe
29ce9d2123 Merge pull request #417 from TheSerapher/issue-415-statistics
Adding statistics cron to monitoring
2013-07-10 02:26:51 -07:00
Sebastian Grewe
ceeed45bb3 Adding statistics cron to monitoring
Useful to trace cron runtimes in order to adjust caching times for long
rounds.

Addresses #145 and adds a new cron to monitoring page
2013-07-10 11:26:06 +02:00
Sebastian Grewe
0e98d81af0 adding new monitoring table to SQL imports 2013-07-10 11:22:57 +02:00
Sebastian Grewe
9cc397a9f0 Merge pull request #416 from TheSerapher/issue-415
Issue 415
2013-07-10 02:08:48 -07:00
Sebastian Grewe
a6d752a096 adding some defaults on template 2013-07-10 10:45:10 +02:00
Sebastian Grewe
0c014da726 unknown index PHP warning fix 2013-07-10 10:44: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
adceaf6913 Update README.md
Added new donor
2013-07-09 23:28:59 +02:00
Sebastian Grewe
223195c08a Merge pull request #414 from TheSerapher/issue-409
Ensure people know what the memcache setting does
2013-07-09 14:23:10 -07:00
Sebastian Grewe
70644b4299 Merge pull request #413 from TheSerapher/issue-408
Issue 408
2013-07-09 14:22:33 -07:00
Sebastian Grewe
1adbd960b2 Merge pull request #412 from TheSerapher/issue-143
Issue 143
2013-07-09 14:21:16 -07:00
Sebastian Grewe
b4b6b118bf Ensure to return 0 if no valid/invalid shares are found 2013-07-09 23:19:36 +02:00
Sebastian Grewe
ecf3db3a5b Removed BETWEEN call for round shares
Now shares are calculated proper with

`id > ? AND id <= ?`

as boundaries. This will ensure the upstream result is also calculated
for the round.

Addresses #143
2013-07-09 22:41:21 +02:00
Sebastian Grewe
85c1a8eaf5 more debug information on non-existing block shares 2013-07-09 22:41:07 +02:00
Sebastian Grewe
8808913ca5 Fixing Sidebar estimations on PPLNS
This will address a new issue in #143, estimates where not displayed
properly when pplns was active.

Fixes #143
2013-07-09 22:02:12 +02:00