if (isset($FUNC_ADD) && $FUNC_ADD) { $statuschecked = 'checked'; } $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 = '';
$info = $I18N->msg('user_data_updated'); } else { $warning = $updateuser->getError(); } } // ---------------------------------- ERR MSG if ($info != '') { echo rex_info($info); } if ($warning != '') { echo rex_warning($warning); } // --------------------------------- FORMS $sql = new rex_login_sql(); $sql->setQuery('select * from ' . $REX['TABLE_PREFIX'] . 'user where user_id=' . $user_id); if ($sql->getRows() != 1) { echo rex_warning('You have no permission to this area!'); } else { $userpsw = $sql->getValue($REX['TABLE_PREFIX'] . 'user.psw'); $username = $sql->getValue($REX['TABLE_PREFIX'] . 'user.name'); $userdesc = $sql->getValue($REX['TABLE_PREFIX'] . 'user.description'); echo ' <div class="rex-usr-editmode"> <form action="index.php" method="post"> <fieldset> <legend class="rex-lgnd">' . $I18N->msg('profile_myprofile') . '</legend> <div class="rex-fldst-wrppr"> <input type="hidden" name="page" value="profile" /> <div>