+ LOAD_TEMPLATE('surfbar_frame_start');
+
+ // Load banner
+ LOAD_TEMPLATE('surfbar_start_banner');
+
+ // This makes the footer appear again
+ REQUEST_UNSET_GET('frame');
+ } elseif ((REQUEST_ISSET_GET('frame')) && (REQUEST_GET('frame') == 'stats')) {
+ // Get total points amount
+ $points = GET_TOTAL_DATA(getUserId(), 'user_points', 'points') - GET_TOTAL_DATA(getUserId(), 'user_data', 'used_points');
+
+ // Prepare content
+ $content = array(
+ 'points' => translateComma($points),
+ 'online' => SURFBAR_DETERMINE_TOTAL_ONLINE(),
+ 'reload' => (getConfig('surfbar_stats_reload') * 1000),
+ 'c_total' => translateComma(getConfig('surfbar_total_counter')),
+ 'c_today' => translateComma(getConfig('surfbar_daily_counter')),
+ 'c_yester' => translateComma(getConfig('surfbar_yester_counter')),
+ 'c_week' => translateComma(getConfig('surfbar_weekly_counter')),
+ 'c_month' => translateComma(getConfig('surfbar_monthly_counter')),
+ );
+
+ // Load template for "stats" page
+ LOAD_TEMPLATE('surfbar_frame_stats', false, $content);
+ } elseif ((REQUEST_ISSET_GET('frame')) && (REQUEST_GET('frame') == 'textlinks')) {
+ // Prepare content
+ $content = array(
+ 'online' => SURFBAR_DETERMINE_TOTAL_ONLINE(),
+ 'reload' => (getConfig('surfbar_stats_reload') * 1000)
+ );
+
+ // Load template for "stats" page
+ LOAD_TEMPLATE('surfbar_frame_textlinks', false, $content);