UPDATE : Development to Master

Future merge from Development to Master. Find a detailed changelog here and hints and tips on upgrading this specific release.

# Changelog

* [FIX] Base SQL structure was missing the 0.0.14 updates, thanks @xisi 
* [FIX] Allow payout thresholds below 1
* [ADDED] Mobile detection in PHP to serve a different template for mobile devices
* [ADDED] Coin rounding precision in coin classes


# Mobile Detection

We always had mobile detection in Bootstrap but decided to re-add the ability for admins to specific different templates for desktop and mobile devices. This will allow you to setup your own theme for desktop but keep the existing bootstrap one for mobile systems. You can focus on Desktop development while keeping the functionality supplied by our default bootstrap theme.

Long time users that have been running MPOS prior to the bootstrap merge may have to save their settings in the Admin Panel once again to save the new default value for the mobile template. Otherwise you will get a 'could not load master.tpl' error when browsing to the site with a mobile device.

# Coin Rounding Precision

You can now adjust the precision for each coins pay calculations! Before this change, all payouts were fixed to 8 digits after the decimal point. From now on, the default setting is 8 digits as before, but as a first adjustment we have added a precision of 20 to all sha256d coins. Many of these have very high difficulties and often users only get paid a fraction of the total blocks value. This is especially true when running PPS (not recommended) for high difficulty coins.

You don't need to change anything on your end for this to work, but you can adjust the precision by changing the coin class of your choice and adding this (sample from SHA256d): https://github.com/MPOS/php-mpos/blob/development/include/classes/coins/coin_sha256d.class.php#L11

This will update all payout processing and display values on the website to use that precision instead.