define('SERVER_URL', "http://www.mxchange.org");
// Current SVN revision
-define('CURR_SVN_REVISION', "642");
+define('CURR_SVN_REVISION', "643");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
UPDATE_CONFIG(array('bonus_mode'), array("JACKPOT"));
// Update configuration
- getConfig('bonus_mode') = "JACKPOT";
+ $_CONFIG['bonus_mode'] = "JACKPOT";
} // END - if
if ($MODE == "login_bonus") {
global $_CONFIG;
// Fix zero points to 0.00000
- if (getConfig('ref_payout') == "0") getConfig('ref_payout') = "0.00000";
+ if (getConfig('ref_payout') == "0") $_CONFIG['ref_payout'] = "0.00000";
// Init multi array
$users = array(
$_CONFIG = merge_array($_CONFIG, $data);
// Temporary allow maximum
- getConfig('yoomedia_tm_max_reload') = 1000;
- getConfig('yoomedia_tm_min_wait') = 0;
- getConfig('yoomedia_tm_clicks_remain') = 10;
- getConfig('yoomedia_tm_min_pay') = 0;
- getConfig('yoomedia_erotic_allowed') = 1;
+ $_CONFIG['yoomedia_tm_max_reload'] = 1000;
+ $_CONFIG['yoomedia_tm_min_wait'] = 0;
+ $_CONFIG['yoomedia_tm_clicks_remain'] = 10;
+ $_CONFIG['yoomedia_tm_min_pay'] = 0;
+ $_CONFIG['yoomedia_erotic_allowed'] = 1;
// Query the API with a test request without couting it
// If zero reply comes back the data is invalid!
}
// When type of admin menu is not set fallback to old menu system
- if (getConfig('admin_menu') == null) getConfig('admin_menu') = "OLD";
+ if (getConfig('admin_menu') == null) $_CONFIG['admin_menu'] = "OLD";
// Check for version and switch between old menu system and new "intelligent menu system"
if ((ADMIN_CHECK_MENU_MODE() == "NEW") && (FILE_READABLE(PATH."inc/modules/admin/lasys-inc.php"))) {
ADMIN_SAVE_SETTINGS($_POST);
// Remember new settings
- getConfig('bonus_active') = $_POST['bonus_active'];
+ $_CONFIG['bonus_active'] = $_POST['bonus_active'];
$_CONFIG['bonus_en_notify'] = $_POST['bonus_en_notify'];
$_CONFIG['bonus_di_notify'] = $_POST['bonus_di_notify'];
} else {
case "target": // Set which what-file will be placed in home-page (only modules.php?module=index)
if (isset($_GET['home'])) {
// Set new home
- UPDATE_CONFIG("index_home", $_GET['home']);
- getConfig('index_home') = SQL_ESCAPE($_GET['home']);
+ UPDATE_CONFIG("index_home", SQL_ESCAPE($_GET['home']));
} // END - if
// Load all what menu points
// Calculate page count (0.5 fixes a bug with page count)
if (getConfig('user_limit') == 0) {
- getConfig('user_limit') = 100;
+ $_CONFIG['user_limit'] = 100;
LOAD_TEMPLATE("admin_settings_saved", false, EXTENSION_WARNING_USER_LIMIT);
} // END - if
define('__TLOCK_VALUE', TRANSLATE_COMMA($TLOCK));
// Fixes a bug when there is no bonus extension installed
-if (EXT_VERSION_IS_OLDER("bonus", "0.4.4")) getConfig('bonus_active') = "X";
+if (EXT_VERSION_IS_OLDER("bonus", "0.4.4")) $_CONFIG['bonus_active'] = "X";
// Display login bonus and turbo-click bonus
if ((GET_EXT_VERSION("bonus") >= "0.2.2") && (EXT_IS_ACTIVE("bonus")) && (getConfig('bonus_active') == "Y")) {