Fixing the dateformat issue + some other tweaks

Date formats can be edited in profiles. The field defaults to the current
dateformat set (either the default or the user's), but will only be saved in
the database if it differs from $defaultdateformat.

Edit Profile (editprofile.php) has been cleaned up and now does less absurd
things. For one, it doesn't pass along your password in plaintext any more!

The formatting of the file has also been cleaned up a bit and should
hopefully be less absurd.
This commit is contained in:
Xkeeper
2011-11-13 14:17:48 -08:00
parent aeae01621c
commit b4c7bace9f
4 changed files with 319 additions and 237 deletions

View File

@@ -121,6 +121,8 @@
$dateformat = $defaultdateformat;
$dateshort = $defaultdateshort;
$loguser = array();
@@ -164,6 +166,7 @@
$loguser[powerlevel]= 0;
$loguser['signsep'] = 0;
$log = 0;
}
if ($x_hacks['superadmin']) $loguser['powerlevel'] = 4;