Commit Graph

236 Commits

Author SHA1 Message Date
Sebastian Grewe
31d898cbc1 Adding configurable website title
Fixes #310
2013-07-01 17:21:12 +02:00
Sebastian Grewe
2dd333b5d8 Changing wallet error message from litecoind
Since plenty scrypt based currencies are supported, changed error
message to say `wallet` instead of `litecoind` when failing to connect
to RPC service.
2013-07-01 12:47:33 +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
54371ffe11 Updated inline config documentation
Added reference to trade header removal. This allows users to disable
the trade header at the top of the page by setting currency to an empty
string.

Addresses #305
2013-07-01 12:12:04 +02:00
Sebastian Grewe
f333982698 Merge pull request #304 from TheSerapher/issue-275-pos-support
Issue 275 pos support
2013-07-01 01:38:34 -07:00
Sebastian Grewe
01afd2f02f Properly display estimates on 0 valid shares
If pool has no valid shares, display 0 as the estimated payout. This
will avoid a PHP Warning devision by zero.

Fixes #296, do not run into Divide by zero error when missing round
shares
2013-07-01 01:55:29 +02:00
Sebastian Grewe
4be963d7be Detect if we use POS difficulties or not
Fixes #275
2013-06-30 19:35:49 +02:00
Sebastian Grewe
af70a194c9 Adding support for POS coin
This will fix #275 and add proper support for a different implementation
of network difficulty.
2013-06-30 19:35:49 +02:00
Sebastian Grewe
cfb209a425 removed debug output 2013-06-30 13:43:05 +02:00
Sebastian Grewe
5436be049d Improved dist configuration file
* Added more inline documentation
* Removed array notation for config
* Added defaults to documentation

This should help newcomers get setup. All options are now documented and
explained throughout the configuration file.
2013-06-30 13:35:04 +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
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
3421cf63b6 Allow regular users to check their own workers
Fixes #270
2013-06-28 21:38:03 +02:00
Sebastian Grewe
8f20009475 Distinguish between admin and user API call
Fixes #268
2013-06-28 21:32:59 +02:00
Sebastian Grewe
7b0ae8d86e reduced blocks count to fixed 20 2013-06-28 20:29:51 +02:00
Sebastian Grewe
5c6e872867 Fixing false shares result in API call
Fixes #262
2013-06-28 15:54:30 +02:00
Sebastian Grewe
92f2243cfb Fixing getuserstatus API call
Fixes #257
2013-06-28 15:47:21 +02:00
Sebastian Grewe
36acc858ed Fixing global dist config
Defined THEME must be removed for mobile device themes to work.
2013-06-28 13:50:22 +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
1126118cb9 Fetch all user shares in one query
This will fetch all user shares in a single run, not user by user as
done previously. Saves one query and can possibly increase SQL execution
time.

Addresses #246
2013-06-26 10:54:10 +02:00
Sebastian Grewe
416d52078d Adding an optimized valid/invalid shares query
* This should speed up the process of finding shares for round and users

Addresses #246
2013-06-26 10:00:06 +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
2204b6d9f3 Adding support to pay out full block amount
* Configuration setting added: `reward_type`
* Default behaviour: `fixed` payout by `reward` setting
* Optional: `block` to payout full block amount to users

Fixes #76
2013-06-25 08:52:30 +02:00
Sebastian Grewe
2095b09d69 More verbose output on cron updates
* Added more verbosity to crons
* Made the output look better on consoles
* Added another error message to notifications class
2013-06-24 10:36:59 +02:00
Sebastian Grewe
d630329055 Display error message to user on failed logins
Warn a user with an error that there have been failed login attempts
for their account. Login errors can be cleared by clicking on the URL in
the message itself.

Fixes #240
2013-06-23 20:58:42 +02:00
Sebastian Grewe
4113e05a10 Adding multi-API support
This will allow users to change the API url, added coinchose as an
example as pointed out by @vias79 .

* tools class detects the API type
* getPrice returns the price based on API URL parsed

Fixes #236
2013-06-23 20:41:43 +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
bfcf14a74c Sort news by time, newest first
Fixes #231
2013-06-21 20:29:21 +02:00
Sebastian Grewe
706a3422eb Making news page the default homepage
Addresses #232
2013-06-21 20:25:12 +02:00
Sebastian Grewe
4eaa2c8d37 hotfix for news page accessible by all users 2013-06-21 20:21:27 +02:00
Sebastian Grewe
2e566f6e97 Only use valid shares for worker status
Fixes #229
2013-06-21 16:30:08 +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
5221d7a744 adding 3rd party lib folder 2013-06-21 08:48:38 +02:00
Sebastian Grewe
7bcc29c6a8 Adding warning if user exceeds balance thresholds
* Warn user if they exceeded the configured AP max thresholds for their
  account balance

This will address #220. There does not seem a perfect solution for this
but this should help.
2013-06-20 09:18:24 +02:00
Sebastian Grewe
5f271e3f67 Fixing issues with application using BASEPATH
Fixes #217
2013-06-19 14:50:13 +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
68d874b15a Merge pull request #208 from TheSerapher/issue-189
Issue 189
2013-06-18 00:31:51 -07:00
Sebastian Grewe
34509051e2 Properly detect if we did find an upstream share
Avoid returning true even if no share was found.

Addresses #189
2013-06-18 09:30:13 +02:00
Sebastian Grewe
b532bbca51 Do not mark PPS transactions as unconfirmed
Fixes #206
2013-06-17 16:42:17 +02:00
Sebastian Grewe
9bde3d979c removed whitespace 2013-06-17 11:19:05 +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
91ef2caaab Added cronjob to pre-cache statistics
This will fix #199 and help on loading times for the website in case
caches are empty. Caches are pre-filled by a cron so the website only
does it as a fall back. Check Ticket for details.
2013-06-17 10:07:40 +02:00