"; if($pic_1 == '1' && $pic_1 == '1'){ $picture_sql = "UPDATE user_group_list SET member_image = 'no' WHERE user_id = '$user_id' LIMIT 1"; $picture_sqlresult = mysql_query($picture_sql); }else{ print "error deleting images..."; exit; } } ////////////////////////////////////// // get user data $usersql = "SELECT * FROM user_group_list WHERE user_id = '$user_id' LIMIT 1"; $userresult = mysql_query($usersql); $user_row = mysql_fetch_array($userresult); $per_text = $user_row['per_text']; $geo_area = $user_row['geo_area']; $allow_msg = $user_row['allow_msg']; $intro_text = $user_row['intro_text']; $intro_text = $user_row['intro_text']; $member_image = $user_row['member_image']; $member_title = $user_row['member_title']; // from SESSION if($user_type == 'member'){$user_display_type = 'Member';} if($user_type == 'admin'){$user_display_type = 'Admin';} if($member_title != ''){ $MEMBER_TITLE_ROW = "User Title: $member_title"; } if($member_image == '' || $member_image == 'no'){ $member_pic = ""; }else{ $member_pic = ""; } if($allow_msg == 'yes'){$ALLOWMSG = 'checked';} ///////////////////////////////////// // get header include('/var/www/virtual/psoug.org/htdocs/header.php'); print << Use this page to adjust your account and personal information settings. The information below will be displayed in the Member Profile pages and meeting lists. Allowing other users to contact you does not expose your email address to them, it merely allows them to send you a message though a private contact form.
$MEMBER_TITLE_ROW
Member Account Information
Member Name:$first_name $last_name
Login ID/Email:$login_name
User Type:$user_display_type
User Level: $user_level
Geographic Area:
Personal Text:
(Some text about who you are, your areas of interest, experience, etc.)
Introduction:
(max 200 chars)
Allow messages?Allow people to send you email through the contact form?
$member_pic
EOM; if($member_image == '' || $member_image == 'no'){ print <<

For best results, your original image should be about 300x300 pixels. Images will be resized to fit within the Profile screen.
EOM; }else{ print << EOM; } print <<

EOM; // get footer include('/var/www/virtual/psoug.org/htdocs/footer.php'); /* http://www.webcheatsheet.com/PHP/file_upload.php //check that we have a file if((!empty($_FILES["uploaded_file"])) && ($_FILES['uploaded_file']['error'] == 0)) { //Check if the file is JPEG image and it's size is less than 350Kb $filename = basename($_FILES['uploaded_file']['name']); $ext = substr($filename, strrpos($filename, '.') + 1); if (($ext == "jpg") && ($_FILES["uploaded_file"]["type"] == "image/jpeg") && ($_FILES["uploaded_file"]["size"] < 350000)) { //Determine the path to which we want to save this file $newname = dirname(__FILE__).'/upload/'.$filename; //Check if the file with the same name is already exists on the server if (!file_exists($newname)) { //Attempt to move the uploaded file to it's new place if ((move_uploaded_file($_FILES['uploaded_file']['tmp_name'],$newname))) { echo "It's done! The file has been saved as: ".$newname; } else { echo "Error: A problem occurred during file upload!"; } } else { echo "Error: File ".$_FILES["uploaded_file"]["name"]." already exists"; } } else { echo "Error: Only .jpg images under 350Kb are accepted for upload"; } } else { echo "Error: No file uploaded"; } */ ?>