X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=surfbar.php;h=68b6d387077b37f7b493fc662cce3bd9027f64aa;hp=9cc8187bb4bda5eb9d2ef3c446fb1219b3103402;hb=0abe254a699e33eb40d8a9bbddb469830cf4ad93;hpb=6b934c44f3293ec1425af4529b8eaf2f245a5a26 diff --git a/surfbar.php b/surfbar.php index 9cc8187bb4..68b6d38707 100644 --- a/surfbar.php +++ b/surfbar.php @@ -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