Beispiel #1
0
                        $c->setRing(Coach::T_RING_GROUP_LOCAL, (int) $_POST['ring'], (int) $_POST['lid']);
                        $changed++;
                    }
                }
                status(true, "Changed {$changed} local access levels");
            }
            break;
        case 'ch_passwd':
            $errors = array('Please use a password of at least 5 characters.' => strlen($_POST['passwd']) < 5);
            foreach ($errors as $msg => $halt) {
                if ($halt) {
                    status(false, $msg);
                    break 2;
                }
            }
            status($c->setPasswd($_POST['passwd']));
            break;
        case 'disp_access_levels':
            status(true);
            # Display the access levels in box below.
            $_SHOW_ACCESS_LEVELS = true;
            break;
    }
    // Reload manage state.
    $coach = new Coach($coach->coach_id);
    # Re-load in case of we changed our OWN (logged on coach) settings.
}
title($lng->getTrn('menu/admin_menu/usr_man'));
$T_GLOBAL_RINGS = array(Coach::T_RING_GLOBAL_ADMIN => 'Global commisoner (site admin)', Coach::T_RING_GLOBAL_NONE => 'No global rights (regular coach)');
$T_LOCAL_RINGS = array(Coach::T_RING_LOCAL_ADMIN => 'Local commisioner', Coach::T_RING_LOCAL_REGULAR => 'Regular coach');
?>