*/ function add_magic_quotes($array) { foreach ($array as $k => $v) { if (is_array($v)) { $array[$k] = add_magic_quotes($v); } else { $array[$k] = addslashes($v); } } return $array; } if (!get_magic_quotes_gpc()) { $_GET = add_magic_quotes($_GET); $_POST = add_magic_quotes($_POST); $_COOKIE = add_magic_quotes($_COOKIE); } $wpvarstoreset = array('action','standalone','redirect','profile','user'); for ($i=0; $iERROR: please enter your nickname (can be the same as your login)"); return false; } /* if the ICQ UIN has been entered, check to see if it has only numbers */ if (!empty($_POST["newuser_icq"])) { if ((ereg("^[0-9]+$",$_POST["newuser_icq"]))==false) { die ("ERROR: your ICQ UIN can only be a number, no letters allowed"); return false; } } /* checking e-mail address */ if (empty($_POST["newuser_email"])) { die ("ERROR: please type your e-mail address"); return false; } else if (!is_email($_POST["newuser_email"])) { die ("ERROR: the email address isn't correct"); return false; } if ($_POST["pass1"] == "") { if ($_POST["pass2"] != "") die ("ERROR: you typed your new password only once. Go back to type it twice."); $updatepassword = ""; } else { if ($_POST["pass2"] == "") die ("ERROR: you typed your new password only once. Go back to type it twice."); if ($_POST["pass1"] != $_POST["pass2"]) die ("ERROR: you typed two different passwords. Go back to correct that."); $newuser_pass = $_POST["pass1"]; $updatepassword = "user_pass=MD5('$newuser_pass'), "; setcookie("wordpresspass_".$cookiehash,md5($newuser_pass),time()+31536000); } $newuser_firstname=addslashes(stripslashes($_POST['newuser_firstname'])); $newuser_lastname=addslashes(stripslashes($_POST['newuser_lastname'])); $newuser_nickname=addslashes(stripslashes($_POST['newuser_nickname'])); $newuser_icq=addslashes(stripslashes($_POST['newuser_icq'])); $newuser_aim=addslashes(stripslashes($_POST['newuser_aim'])); $newuser_msn=addslashes(stripslashes($_POST['newuser_msn'])); $newuser_yim=addslashes(stripslashes($_POST['newuser_yim'])); $newuser_email=addslashes(stripslashes($_POST['newuser_email'])); $newuser_url=addslashes(stripslashes($_POST['newuser_url'])); $newuser_idmode=addslashes(stripslashes($_POST['newuser_idmode'])); $user_description = addslashes(stripslashes($_POST['user_description'])); $query = "UPDATE $tableusers SET user_firstname='$newuser_firstname', $updatepassword user_lastname='$newuser_lastname', user_nickname='$newuser_nickname', user_icq='$newuser_icq', user_email='$newuser_email', user_url='$newuser_url', user_aim='$newuser_aim', user_msn='$newuser_msn', user_yim='$newuser_yim', user_idmode='$newuser_idmode', user_description = '$user_description' WHERE ID = $user_ID"; $result = $wpdb->query($query); if (!$result) { die ("ERROR: couldn't update your profile..."); } header('Location: profile.php?updated=true'); break; case 'viewprofile': $profiledata = get_userdata($user); if ($_COOKIE['wordpressuser_'.$cookiehash] == $profiledata->user_login) header ('Location: profile.php'); include_once('admin-header.php'); ?>

View Profile “ user_idmode) { case 'nickname': $r = $profiledata->user_nickname; break; case 'login': $r = $profiledata->user_login; break; case 'firstname': $r = $profiledata->user_firstname; break; case 'lastname': $r = $profiledata->user_lastname; break; case 'namefl': $r = $profiledata->user_firstname.' '.$profiledata->user_lastname; break; case 'namelf': $r = $profiledata->user_lastname.' '.$profiledata->user_firstname; break; } echo $r; ?> ”

Login user_login ?> | User # ID ?> | Level user_level ?> | Posts

First name: user_firstname ?>

Last name: user_lastname ?>

Nickname: user_nickname ?>

Email: user_email) ?>

Website: user_url ?>

ICQ: user_icq > 0) { echo make_clickable("icq:".$profiledata->user_icq); } ?>

AIM: user_aim) ."&message=Howdy'>$profiledata->user_aim"; ?>

MSN IM: user_msn ?>

Yahoo IM: user_yim ?>

To have a one-click bookmarklet, just copy and paste this
into a new text file:

Save it as wordpress.reg, and double-click on this file in an Explorer
window. Answer Yes to the question, and restart Internet Explorer.

That's it, you can now right-click in an IE window and select
'Post to WP' to make the bookmarklet appear. :)

Profile updated.

Login: user_login ?> | Level: user_level ?> | Posts:

First name:
Last name:
Profile:
Nickname:
Email:
Website:
ICQ:
AIM:
MSN IM:
Yahoo IM:
Identity on blog:
New Password (Leave blank to stay the same.)

user_level != 0) { ?>
SideBar
Add the WordPress Sidebar! SideBar
Add this link to your favorites:
WordPress Sidebar.
*/ include('admin-footer.php'); ?>