Example #1
0
    # 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':
            sec_login();
            break;
        case 'admin':
            sec_admin();
            break;
        case 'teamlist':
            sec_teamlist();