]> git.mxchange.org Git - mailer.git/blobdiff - surfbar.php
More bugs resolved, thanks to profi-concept
[mailer.git] / surfbar.php
index 9cc8187bb4bda5eb9d2ef3c446fb1219b3103402..02d12ccf14e960d173056b05761b3c2247616e25 100644 (file)
@@ -54,10 +54,10 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Only logged in users may use this surfbar!
        if (!EXT_IS_ACTIVE("surfbar")) {
                // Surfbar deactivated
-               LOAD_URL(URL."/modules.php?module=login&msg=".CODE_EXTENSION_PROBLEM."&ext=surfbar");
+               LOAD_URL("modules.php?module=login&msg=".CODE_EXTENSION_PROBLEM."&ext=surfbar");
        } elseif (!IS_MEMBER()) {
                // Redirect
-               LOAD_URL(URL."/modules.php?module=index");
+               LOAD_URL("modules.php?module=index");
        }
 
        // Handle tasks on self-maintenance
@@ -88,12 +88,12 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                        $content = array(
                                'points'   => TRANSLATE_COMMA($points),
                                'online'   => SURFBAR_DETERMINE_TOTAL_ONLINE(),
-                               'reload'   => ($_CONFIG['surfbar_stats_reload'] * 1000),
-                               'c_total'  => TRANSLATE_COMMA($_CONFIG['surfbar_total_counter']),
-                               'c_today'  => TRANSLATE_COMMA($_CONFIG['surfbar_daily_counter']),
-                               'c_yester' => TRANSLATE_COMMA($_CONFIG['surfbar_yester_counter']),
-                               'c_week'   => TRANSLATE_COMMA($_CONFIG['surfbar_weekly_counter']),
-                               'c_month'  => TRANSLATE_COMMA($_CONFIG['surfbar_monthly_counter']),
+                               'reload'   => (getConfig('surfbar_stats_reload') * 1000),
+                               'c_total'  => TRANSLATE_COMMA(getConfig('surfbar_total_counter')),
+                               'c_today'  => TRANSLATE_COMMA(getConfig('surfbar_daily_counter')),
+                               'c_yester' => TRANSLATE_COMMA(getConfig('surfbar_yester_counter')),
+                               'c_week'   => TRANSLATE_COMMA(getConfig('surfbar_weekly_counter')),
+                               'c_month'  => TRANSLATE_COMMA(getConfig('surfbar_monthly_counter')),
                        );
 
                        // Load template for "stats" page
@@ -102,7 +102,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                        // Prepare content
                        $content = array(
                                'online'   => SURFBAR_DETERMINE_TOTAL_ONLINE(),
-                               'reload'   => ($_CONFIG['surfbar_stats_reload'] * 1000)
+                               'reload'   => (getConfig('surfbar_stats_reload') * 1000)
                        );
 
                        // Load template for "stats" page
@@ -110,9 +110,9 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                } else {
                        // Prepare content
                        $content = array(
-                               'restart'   => $_CONFIG['surfbar_restart_time'],
-                               'start'     => str_repeat("X", strlen($_CONFIG['surfbar_restart_time'])),
-                               'autostart' => ($_CONFIG['surfbar_autostart'] == "Y") ? "true" : "false"
+                               'restart'   => getConfig('surfbar_restart_time'),
+                               'start'     => str_repeat("X", strlen(getConfig('surfbar_restart_time'))),
+                               'autostart' => (getConfig('surfbar_autostart') == "Y") ? "true" : "false"
                        );
 
                        // Load template for stopped surfbar
@@ -194,7 +194,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Load footer
        require_once(PATH."inc/footer.php");
 } else {
-       // You have to configure first!
+       // You have to install first!
        LOAD_URL("install.php");
 }