[geeklog-cvs] geeklog: Made the user editor a little less forgetful (cf. bug #...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Aug 28 11:08:57 EDT 2011
changeset 8371:cff95c06a7ab
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/cff95c06a7ab
user: Dirk Haun <dirk at haun-online.de>
date: Thu Jun 23 15:11:20 2011 +0200
description:
Made the user editor a little less forgetful (cf. bug #0000653)
diffstat:
public_html/admin/user.php | 28 +++++++++++++++++-----------
1 files changed, 17 insertions(+), 11 deletions(-)
diffs (45 lines):
diff -r 63942b473ab5 -r cff95c06a7ab public_html/admin/user.php
--- a/public_html/admin/user.php Thu Jun 23 14:56:17 2011 +0200
+++ b/public_html/admin/user.php Thu Jun 23 15:11:20 2011 +0200
@@ -123,6 +123,22 @@
$lastlogin = '';
$lasttime = '';
$A['status'] = USER_ACCOUNT_ACTIVE;
+
+ if (isset($_POST['username'])) {
+ $A['username'] = strip_tags($_POST['username']);
+ }
+ if (isset($_POST['fullname'])) {
+ $A['fullname'] = strip_tags($_POST['fullname']);
+ }
+ if (isset($_POST['email'])) {
+ $A['email'] = strip_tags($_POST['email']);
+ }
+ if (isset($_POST['homepage'])) {
+ $A['homepage'] = strip_tags($_POST['homepage']);
+ }
+ if (isset($_POST['userstatus'])) {
+ $A['status'] = COM_applyFilter($_POST['userstatus'], true);
+ }
}
$token = SEC_createToken();
@@ -1230,17 +1246,7 @@
$direction = COM_applyFilter ($_GET['direction']);
}
-if (isset ($_POST['passwd']) && isset ($_POST['passwd_conf']) &&
- ($_POST['passwd'] != $_POST['passwd_conf'])) {
- // entered passwords were different
- $uid = COM_applyFilter ($_POST['uid'], true);
- if ($uid > 1) {
- $display .= COM_refresh ($_CONF['site_admin_url']
- . '/user.php?mode=edit&msg=67&uid=' . $uid);
- } else {
- $display .= COM_refresh ($_CONF['site_admin_url'] . '/user.php?msg=67');
- }
-} elseif (($mode == $LANG_ADMIN['delete']) && !empty ($LANG_ADMIN['delete'])) { // delete
+if (($mode == $LANG_ADMIN['delete']) && !empty ($LANG_ADMIN['delete'])) { // delete
$uid = COM_applyFilter($_POST['uid'], true);
if ($uid <= 1) {
COM_errorLog('Attempted to delete user uid=' . $uid);
More information about the geeklog-cvs
mailing list