In this update, all the $CFG settings that were stored in each repository's cfg.php file have now been moved to the back end. There will no longer be a need to update any cfg.php files after this update, as these will only be used to connect to the database. This update also significantly improves the performance of WLOX!
ALL CONFIG VARIABLES ARE NOW IN BACKSTAGE2 UNDER 'STATUS'->'APP CONFIGURATION' AND NOWHERE ELSE
Please follow this guide in the exact order described here so that everything will function correctly.
Run the DB update file update_v1.04.sql (if you have not run previous updates, please run them before this).
The following variables in the cfg.php file should copied to 'Status'->'App Configuration' as follows:
'Frontend Config' Section
$CFG->dirroot => 'Dir Root'
$CFG->baseurl => 'Base URL'
'Global App Settings' Section
$CFG->orders_under_market_percent => 'Min. Order Price (% under Mkt.)' (This should now be given as an integer, so 0.20 is now 20)
$CFG->orders_min_usd => 'Min. Order Amnt. (USD)'
$CFG->bitcoin_sending_fee => 'BTC Miner's Fee'
$CFG->fiat_withdraw_fee => 'Fiat Withdrawal Fee'
$CFG->pass_regex => 'Password Permitted Regex' (If you have never touched this value, set it to /[^0-9a-zA-Z!@#$%&*?\.\-\_]/
)
In addition to these, you should set the following:
Password Min. Chars.: = The minimum password length.
Exchange's Name: = Used in automated emails as well as the site's content as [exchange_name].
Application Timezone: = Any timezone name accepted by PHP.
New optional values:
Notify when a new user registers: = Self explanatory.
Notify user fiat withdrawals: = Notifies when a user wants to withdraw fiat.
When you are finished, please check the new cfg.php.example to see what your cfg.php file should look like (it's now much more simple).
When you are finished, please check the new cfg.php.example to see what your cfg.php file should look like (it's now much more simple).
$CFG->dirroot => 'API Config'-> 'Dir Root'
'Email Settings' Section
$CFG->accounts_email => No longer used.
$CFG->support_email => 'Support Email'
$CFG->email_smtp_host => 'SMTP Host'
$CFG->email_smtp_port => 'SMTP Port'
$CFG->email_smtp_security => 'SMTP Security Type'
$CFG->email_smtp_username = 'SMTP Username'
$CFG->email_smtp_password = 'SMTP Password'
$CFG->email_smtp_send_from = 'SMTP Sender Email'
'Bitcoin Server Settings' Section
$CFG->bitcoin_username => 'Username'
$CFG->bitcoin_accountname => 'Account Name'
$CFG->bitcoin_passphrase => 'Passphrase'
$CFG->bitcoin_host => 'Host' (wlox-cron also uses this variable, so better use the IP)
$CFG->bitcoin_port => 'Port'
$CFG->bitcoin_protocol => 'Protocol'
'Third Party API Keys' Section
$CFG->authy_api_key => 'Authy API Key'
When you are finished, please check the new cfg.php.example to see what your cfg.php file should look like (it's now much more simple).
'Third Party API Keys' Section
$CFG->quandl_api_key = 'Quandl API Key' (this is only for get_stats.php, which is only needed to populate the price history before you have any of your own).
'Bitcoin Server Settings' Section
$CFG->bitcoin_reserve_ratio = 'Reserve Ratio' (This should now be given as an integer, so 0.20 is now 20)
$CFG->bitcoin_reserve_min => 'Reserve Min. BTC'
$CFG->bitcoin_warm_wallet_address = 'Warm Wallet BTC Addr'
Refer to cfg.php.example for which values to delete.
Refer to cfg.php.example for which values to delete.
If you have completed the previous steps, you can now safely run git pull
on your repositories.
We know this was difficult, but it will really make things easier in the future.