Exemplo n.º 1
0
                 $db->free_result($res);
             }
             $mf->AddField(t('Zugriffsberechtigung') . HTML_NEWLINE . HTML_NEWLINE . '(' . t('Der Benutzertyp muss zusätzlich Admin, oder Superadmin sein.') . ')' . HTML_NEWLINE . HTML_NEWLINE . '(' . t('Solange kein Admim einem Modul zugeordnet ist, hat dort jeder Admin Berechtigungen.') . ')', 'permissions', IS_MULTI_SELECTION, $selections, FIELD_OPTIONAL);
             $mf->AddDropDownFromTable(t('Gruppe'), 'group_id', 'group_id', 'group_name', 'party_usergroups', t('Keine'));
             $mf->AddGroup('Rechte');
         }
     }
     // If not admin and user is created (not changed)
     // or if quick sign on is enabled
     if ($quick_signon or $auth['type'] < 2 and !$_GET['userid']) {
         $mf->AddFix('type', 1);
     }
     $mf->AddField(t('E-Mail'), 'email', '', '', '', CheckValidEmail);
     if ($_GET['action'] != 'change' and $_GET['action'] != 'entrance' or $_GET['action'] == 'entrance' and !$_GET['userid']) {
         if ($cfg['signon_autopw']) {
             $_SESSION['tmp_pass'] = $usrmgr->GeneratePassword();
             $mf->AddFix('password', md5($_SESSION['tmp_pass']));
         } else {
             $mf->AddField(t('Passwort'), 'password', IS_NEW_PASSWORD);
         }
         if ($cfg['signon_captcha'] and !$_GET['userid']) {
             $mf->AddField('', 'captcha', IS_CAPTCHA);
         }
     }
     $mf->AddGroup(t('Zugangsdaten'));
 }
 if (!$DoSignon and !$quick_signon) {
     // Clan Options
     if (ShowField('clan')) {
         if (!isset($_POST['clan'])) {
             $users_clan = $db->qry_first("SELECT clanid FROM %prefix%user WHERE userid = %int%", $_GET['userid']);