$_GET['section'] = 'login'; } if ($_VISSTATE['COOCKIE'] || $_VISSTATE['POST_IN'] || $_VISSTATE['POST_OUT']) { setupGlobalVars(T_SETUP_GLOBAL_VARS__POST_COACH_LOGINOUT); } if (Mobile::isMobile()) { HTMLOUT::mobile_frame_begin(isset($_SESSION['logged_in']) ? $coach->settings['theme'] : $settings['stylesheet']); # Make page frame, banner and menu. MTS('Header loaded, login auth, html frame generated'); // Check if a menu-link was picked, and execute section code from sections.php accordingly. switch ($_GET['section']) { case 'login': sec_login(); break; case 'matches': Match_HTMLOUT::userSched(); break; case 'management': $teamId = Mobile_HTMLOUT::getSelectedTeamId(); Team_HTMLOUT::teamManagementBox($teamId); break; default: Mobile_HTMLOUT::sec_mobile_main(); } } else { HTMLOUT::frame_begin(isset($_SESSION['logged_in']) ? $coach->settings['theme'] : $settings['stylesheet']); # Make page frame, banner and menu. MTS('Header loaded, login auth, html frame generated'); // Check if a menu-link was picked, and execute section code from sections.php accordingly. switch ($_GET['section']) { case 'login':
function sec_matcheshandler() { switch ($_GET['type']) { # Save all these subroutines in class_match_htmlout.php case 'tours': Match_HTMLOUT::tours(); break; case 'tourmatches': Match_HTMLOUT::tourMatches(); break; case 'report': Match_HTMLOUT::report(); break; case 'recent': Match_HTMLOUT::recentMatches(); break; case 'upcoming': Match_HTMLOUT::upcomingMatches(); break; case 'usersched': Match_HTMLOUT::userSched(); break; } }