'; exit(); } $Editing = false; // assume not editing someones account if( $_SERVER['QUERY_STRING'] ){ // if any params in URL parse_str( $_SERVER['QUERY_STRING'], $URL ); if( $URL['aID'] && // if modifying user must be site admin or group admin of group user belongs to ( isSiteAdmin($_COOKIE['threads_login']) || ( ( getUsersGroup($URL['aID'])&&getUsersGroup($_COOKIE['threads_login']) ) ) ) ){ $AdminUserType = getUserType( $_COOKIE['threads_login'] ); // get admin user type $Editing = true; // set flag to indicate admin user editing user } } if( $_POST['SubmitAccountChanges'] ){ // submitting account changes $FirstName = $_POST['FirstName']; $LastName = $_POST['LastName']; $email = $_POST['email']; if( ! ($errMsg=ValidateAccountNameAndEmail($FirstName,$LastName,$email)) ){ // validate account info if( $Editing ){ $errMsg = UpdateAccount($FirstName,$LastName,$email,$URL['aID']); $errMsg .= ($errMsg?"
":"") . UpdateUserType($URL['aID'], $_POST['UserType'] ); } else $errMsg = UpdateAccount($FirstName,$LastName,$email); } if( ! $errMsg )$Message = "Account information has been updated"; } else if( $_POST['SubmitPasswordChanges'] ){ // if submitting password change, validate information $FirstName = $_POST['FirstName']; $LastName = $_POST['LastName']; $email = $_POST['email']; if( ! ($errMsg=ValidateAccountPassword($_POST['oPassword'],$_POST['nPassword1'],$_POST['nPassword2'])) ) $errMsg = UpdatePassword($_POST['nPassword1']); // update password info if( ! $errMsg )$Message = "Your password has been updated"; } if( ! $Editing ) // get this users account information $AccountInfo = getAccountInfo(); else $AccountInfo = getAccountInfo($URL['aID']); // get account info for user editing if( ! $FirstName )$FirstName = $AccountInfo['FirstName']; if( ! $LastName )$LastName = $AccountInfo['LastName']; if( ! $email )$email = $AccountInfo['EmailAddress']; ?> Threads of Tradition
 
Welcome " .$un . "":""); ?>
\n"; } if( $Editing ) echo " \n"; else echo " \n"; ?>
"; GroupInfo( getUsersGroup($URL['aID']) ); echo "

You are editing account information for " . $AccountInfo['LoginID'] . "(" . $AccountInfo['FirstName'] . " " . $AccountInfo['LastName'] . ")

You will only be able to change the user type for for other users of lesser or equal type. If you need to to reassign the administrative rights for your group contact administrator@threadsoftradition.org
To modify your information enter the changes below and select the 'Submit Information Changes' button.
\n"; } ?>
Update Information
Login ID :
First Name :
Last Name :
email address :
User Type: "; // if admin user not modifying their own account and their user type >= the user being modified allow change to user type if( $AdminUserType>=$AccountInfo['UserTypeID'] && $_COOKIE['threads_login']!=$AccountInfo['UserID'] ){ echo "\n"; } else{ $uType = $AccountInfo['UserTypeID']; echo "" . $UserTypes[$uType] . ""; } echo "
Update Your Password
Old Password
New Password :
(must be at least 5 characters)
New Password :
for confirmation
\n"; ?>
If you would like to use this site to organize sewing meetings for your own group please send email to GroupInformation@threadsoftradition.org with information about your sewing group.
      Home  •  TachrichimPrivacy
Copyright ThreadsofTradition.org 2005-2006