- // @TODO Display quick login form here or redirect as configured
- LOAD_URL("modules.php?module=index");
- } // END - if
-
- // Handle tasks on self-maintenance
- SURFBAR_HANDLE_SELF_MAINTENANCE();
-
- // Is there a check value?
- if ((SURFBAR_CHECK_RELOAD_FULL()) || ((isset($_GET['frame'])) && (in_array($_GET['frame'], array("stop", "stop2", "stats", "textlinks"))))) {
- // Reload-lock is full, surfbar stopped so...
- // Load header
- LOAD_INC_ONCE("inc/header.php");
-
- // Load template
- if (((isset($_GET['frame'])) && ($_GET['frame'] == "stop")) || (!isset($_GET['frame']))) {
- // Load template for "start" page
- LOAD_TEMPLATE("surfbar_frame_start");
-
- // Load banner
- LOAD_TEMPLATE("surfbar_start_banner");
-
- // This makes the footer appear again
- unset($_GET['frame']);
- } elseif ((isset($_GET['frame'])) && ($_GET['frame'] == "stats")) {
- // Get total points amount
- $points = GET_TOTAL_DATA($GLOBALS['userid'], "user_points", "points") - GET_TOTAL_DATA($GLOBALS['userid'], "user_data", "used_points");
-
- // Prepare content
- $content = array(
- 'points' => TRANSLATE_COMMA($points),
- 'online' => SURFBAR_DETERMINE_TOTAL_ONLINE(),
- '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')),
- );