$statuschecked = 'checked="checked"'; } $add_login_reset_chkbox = ''; if ($user_id > 0 || $duplicate_user_id > 0) { if ($duplicate_user_id > 0) { $user_id = $duplicate_user_id; } $sql = new rex_login_sql(); $sql->setQuery('select * from ' . $REX['TABLE_PREFIX'] . 'user where user_id=' . $user_id); // ----- EINLESEN DER PERMS if ($sql->isAdmin()) { $adminchecked = 'checked="checked"'; } else { $adminchecked = ''; } if ($sql->hasPerm('csw[0]')) { $allcatschecked = 'checked="checked"'; } else { $allcatschecked = ''; } if ($sql->hasPerm('media[0]')) { $allmcatschecked = 'checked="checked"'; } else { $allmcatschecked = ''; } if ($sql->getValue($REX['TABLE_PREFIX'] . 'user.status') == 1) { $statuschecked = 'checked="checked"'; } else { $statuschecked = ''; } // Allgemeine Permissions setzen
} $add_login_reset_chkbox = ''; if ($user_id != '') { // User Edit $form_label = $I18N->msg('edit_user'); $add_hidden = '<input type="hidden" name="user_id" value="' . $user_id . '" />'; $add_submit = '<div> <p class="rex-cnt-col2"><input type="submit" class="rex-sbmt" name="FUNC_UPDATE" value="' . $I18N->msg('user_save') . '" ' . rex_accesskey($I18N->msg('user_save'), $REX['ACKEY']['SAVE']) . ' /></p> <p class="rex-cnt-col2"><input type="submit" class="rex-sbmt" name="FUNC_APPLY" value="' . $I18N->msg('user_apply') . '" ' . rex_accesskey($I18N->msg('user_apply'), $REX['ACKEY']['APPLY']) . ' /></p> </div>'; $add_user_login = '******' . htmlspecialchars($sql->getValue($REX['TABLE_PREFIX'] . 'user.login')) . '</span>'; $sql = new rex_login_sql(); $sql->setQuery('select * from ' . $REX['TABLE_PREFIX'] . 'user where user_id=' . $user_id); if ($sql->getRows() == 1) { // ----- EINLESEN DER PERMS if ($sql->hasPerm('admin[]')) { $adminchecked = 'checked'; } else { $adminchecked = ''; } if ($sql->hasPerm('csw[0]')) { $allcatschecked = 'checked'; } else { $allcatschecked = ''; } if ($sql->hasPerm('media[0]')) { $allmcatschecked = 'checked'; } else { $allmcatschecked = ''; } if ($sql->getValue($REX['TABLE_PREFIX'] . 'user.status') == 1) {
$add_login_reset_chkbox = ''; if ($user_id > 0) { // User Edit $form_label = $I18N->msg('edit_user'); $add_hidden = '<input type="hidden" name="user_id" value="' . $user_id . '" />'; $add_submit = '<div class="rex-form-row"> <p class="rex-form-col-a"><input type="submit" class="rex-form-submit" name="FUNC_UPDATE" value="' . $I18N->msg('user_save') . '" ' . rex_accesskey($I18N->msg('user_save'), $REX['ACKEY']['SAVE']) . ' /></p> <p class="rex-form-col-b"><input type="submit" class="rex-form-submit" name="FUNC_APPLY" value="' . $I18N->msg('user_apply') . '" ' . rex_accesskey($I18N->msg('user_apply'), $REX['ACKEY']['APPLY']) . ' /></p> </div>'; $add_user_class = ' rex-form-read'; $add_user_login = '******' . htmlspecialchars($sql->getValue($REX['TABLE_PREFIX'] . 'user.login')) . '</span>'; $sql = new rex_login_sql(); $sql->setQuery('select * from ' . $REX['TABLE_PREFIX'] . 'user where user_id=' . $user_id); if ($sql->getRows() == 1) { // ----- EINLESEN DER PERMS if ($sql->hasPerm('admin[]')) { $adminchecked = 'checked="checked"'; } else { $adminchecked = ''; } if ($sql->hasPerm('csw[0]')) { $allcatschecked = 'checked="checked"'; } else { $allcatschecked = ''; } if ($sql->hasPerm('media[0]')) { $allmcatschecked = 'checked="checked"'; } else { $allmcatschecked = ''; } if ($sql->getValue($REX['TABLE_PREFIX'] . 'user.status') == 1) {