From cce5e7710295021b41d9aaecc503a60fb99256be Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 4 Oct 2008 10:38:03 +0000 Subject: Initial revision --- forum/utils/profile.php | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 forum/utils/profile.php (limited to 'forum/utils/profile.php') diff --git a/forum/utils/profile.php b/forum/utils/profile.php new file mode 100644 index 0000000..ee47cb0 --- /dev/null +++ b/forum/utils/profile.php @@ -0,0 +1,39 @@ +username = $username; + $current_user->name = $name; + $current_user->email = $email; + $current_user->avatar = $avatar; + if($password != "") { + if($password == $password_confirm) { + $current_user->password = sha1(md5($password)); + } else { + error("Passwords do not match - thus not changed!"); + } + } + $users->write(); +} +?> + +
+username; ?>">
*/ ?> +Name:
+New password:
+Confirm password:
+E-Mail:
+Avatar:
+
+ +
-- cgit v1.2.3