]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-surfbar_start.php
Mahor rewrite:
[mailer.git] / inc / modules / member / what-surfbar_start.php
index 9fb90957946bda22b786e03e6adb5076aeedf3e2..ccb4d2dd5c381f387976c13e6e29987009d8f577 100644 (file)
@@ -48,17 +48,17 @@ ADD_DESCR("member", __FILE__);
 
 // Prepare content for output
 $content = array(
-       'surfbar_static_reward' => TRANSLATE_COMMA($_CONFIG['surfbar_static_reward']),
-       'surfbar_static_time'   => CREATE_FANCY_TIME($_CONFIG['surfbar_static_time']),
-       'surfbar_static_lock'   => CREATE_FANCY_TIME($_CONFIG['surfbar_static_lock']),
+       'surfbar_static_reward' => TRANSLATE_COMMA(getConfig('surfbar_static_reward')),
+       'surfbar_static_time'   => CREATE_FANCY_TIME(getConfig('surfbar_static_time')),
+       'surfbar_static_lock'   => CREATE_FANCY_TIME(getConfig('surfbar_static_lock')),
        'surfbar_total_urls'    => SURFBAR_GET_TOTAL_URLS("ACTIVE", "0")
 );
 
 // In dynamic mode we need some more data
-if ($_CONFIG['surfbar_pay_model'] == "DYNAMIC") {
+if (getConfig('surfbar_pay_model') == "DYNAMIC") {
        // Total URLs
        $content = array(
-               'surfbar_dynamic_percent' => TRANSLATE_COMMA($_CONFIG['surfbar_dynamic_percent']),
+               'surfbar_dynamic_percent' => TRANSLATE_COMMA(getConfig('surfbar_dynamic_percent')),
                'surfbar_total_urls'      => SURFBAR_GET_TOTAL_URLS("ACTIVE", "0"),
                'surfbar_user_urls'       => SURFBAR_GET_TOTAL_USER_URLS(),
                'surfbar_total_online'    => SURFBAR_DETERMINE_TOTAL_ONLINE(),
@@ -68,13 +68,13 @@ if ($_CONFIG['surfbar_pay_model'] == "DYNAMIC") {
                'surfbar_min_time'        => CREATE_FANCY_TIME(SURFBAR_CALCULATE_DYNAMIC_MIN_VALUE()),
                'surfbar_max_time'        => CREATE_FANCY_TIME(SURFBAR_CALCULATE_DYNAMIC_MAX_VALUE()),
                'surfbar_dynamic_lock'    => CREATE_FANCY_TIME(SURFBAR_CALCULATE_DYNAMIC_LOCK()),
-               'surfbar_static_reward'   => TRANSLATE_COMMA($_CONFIG['surfbar_static_reward']),
-               'surfbar_static_time'     => CREATE_FANCY_TIME($_CONFIG['surfbar_static_time'])
+               'surfbar_static_reward'   => TRANSLATE_COMMA(getConfig('surfbar_static_reward')),
+               'surfbar_static_time'     => CREATE_FANCY_TIME(getConfig('surfbar_static_time'))
        );
 } // END - if
 
 // Load the template
-LOAD_TEMPLATE("member_surfbar_start_".strtolower($_CONFIG['surfbar_pay_model']), false, $content);
+LOAD_TEMPLATE("member_surfbar_start_".strtolower(getConfig('surfbar_pay_model')), false, $content);
 
 // Load surfbar link template
 LOAD_TEMPLATE("member_surfbar_link");