Example #1
0
$getRoleId = admFuncVariableIsValid($_GET, 'rol_id', 'numeric');
$getStart = admFuncVariableIsValid($_GET, 'start', 'numeric');
$getShowMembers = admFuncVariableIsValid($_GET, 'show_members', 'numeric');
$getFullScreen = admFuncVariableIsValid($_GET, 'full_screen', 'numeric');
// Initialize the content of this parameter (otherwise some servers will keep the content)
unset($role_ids);
if ($getRoleId > 0) {
    $role_ids[] = $getRoleId;
} else {
    $role_ids = $_SESSION['role_ids'];
    $getRoleId = $role_ids[0];
}
// Rollenobjekt erzeugen
$role = new TableRoles($gDb, $getRoleId);
//Testen ob Recht zur Listeneinsicht besteht
if ($role->viewRole() == false) {
    $gMessage->show($gL10n->get('SYS_NO_RIGHTS'));
}
// if no list parameter is set then load role default list configuration or system default list configuration
if ($getListId == 0) {
    // set role default list configuration
    $getListId = $role->getDefaultList();
    if ($getListId == 0) {
        $gMessage->show($gL10n->get('LST_DEFAULT_LIST_NOT_SET_UP'));
    }
}
// initialize some special mode parameters
$separator = '';
$valueQuotes = '';
$charset = '';
$classTable = '';