*/ 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()) { $HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS); $HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS); $HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS); } $b2varstoreset = 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($HTTP_POST_VARS["newuser_icq"])) { if ((ereg("^[0-9]+$",$HTTP_POST_VARS["newuser_icq"]))==false) { die ("ERROR: your ICQ UIN can only be a number, no letters allowed"); return false; } } /* checking e-mail address */ if (empty($HTTP_POST_VARS["newuser_email"])) { die ("ERROR: please type your e-mail address"); return false; } else if (!is_email($HTTP_POST_VARS["newuser_email"])) { die ("ERROR: the email address isn't correct"); return false; } if ($HTTP_POST_VARS["pass1"] == "") { if ($HTTP_POST_VARS["pass2"] != "") die ("ERROR: you typed your new password only once. Go back to type it twice."); $updatepassword = ""; } else { if ($HTTP_POST_VARS["pass2"] == "") die ("ERROR: you typed your new password only once. Go back to type it twice."); if ($HTTP_POST_VARS["pass1"] != $HTTP_POST_VARS["pass2"]) die ("ERROR: you typed two different passwords. Go back to correct that."); $newuser_pass = $HTTP_POST_VARS["pass1"]; $updatepassword = "user_pass='$newuser_pass', "; setcookie("cafelogpass",md5($newuser_pass),time()+31536000); } $newuser_firstname=addslashes($HTTP_POST_VARS["newuser_firstname"]); $newuser_lastname=addslashes($HTTP_POST_VARS["newuser_lastname"]); $newuser_nickname=addslashes($HTTP_POST_VARS["newuser_nickname"]); $newuser_icq=addslashes($HTTP_POST_VARS["newuser_icq"]); $newuser_aim=addslashes($HTTP_POST_VARS["newuser_aim"]); $newuser_msn=addslashes($HTTP_POST_VARS["newuser_msn"]); $newuser_yim=addslashes($HTTP_POST_VARS["newuser_yim"]); $newuser_email=addslashes($HTTP_POST_VARS["newuser_email"]); $newuser_url=addslashes($HTTP_POST_VARS["newuser_url"]); $newuser_idmode=addslashes($HTTP_POST_VARS["newuser_idmode"]); $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' WHERE ID = $user_ID"; $result = mysql_query($query); if ($result==false) { die ("ERROR: couldn't update your profile... please contact the webmaster !

$query

".mysql_error()); } ?> Profile updated !
If that window doesn't close itself, close it yourself :p
login
first name
last name
nickname
email
URL
ICQ 0) { echo make_clickable("icq:".$profiledata["user_icq"]); } ?>
AIM
MSN IM
YahooIM
ID
level
posts
identity

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

Save it as b2.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 b2' to make the bookmarklet appear :)

login
first name " class="postform" />
last name " class="postform" />
nickname " class="postform" />
email " class="postform" />
URL " class="postform" />
ICQ 0) { echo $profiledata["user_icq"]; } ?>" class="postform" />
AIM " class="postform" />
MSN IM " class="postform" />
YahooIM " class="postform" />
0) { ?>
ID
level
posts
identity on the blog:

new password (twice)


bookmarklet
add the link to your Favorites/Bookmarks
b2 - b2 -

One-click bookmarklet:
click here b2 - b2 -

SideBar
Add the b2 Sidebar !

SideBar
Add this link to your favorites:
b2 Sidebar.


Note: closes the popup window.
*/ include("b2footer.php") ?>