Submit News     Terms of Use     Legal Notices 
\n"; $table = $table."\n"; $table = $table. "\n"; $table = $table. "\n"; $table = $table."\n"; } closedir($dh); $table = $table. "
-

Login failed.


You are not logged in.


You should log in to view the blog.
Image deleted successfully."; } } else if(isset($_GET['token']) && strcmp($_GET['token'], "235mn4567899999999923457mnmnrmmns34")==0){ // delete profile image. deleteProfileImage($userId); } else{} //echo "111111111111111111111"; $tempdir = $path. "/users/".$userId."/temp_image/"; $uploaddir = $path. "/users/".$userId."/image/"; $error1 = ""; $error = ""; //echo "22222222222222222222"; $sizeValid = "yes"; $mainImageSet = 0; if(isset($_FILES['upload']) && strlen(trim($_FILES['upload']['tmp_name']))>0 ){ if(!file_exists($tempdir)) mkdir($tempdir); if(!file_exists($uploaddir)) mkdir($uploaddir); $error = "

Image uploaded successfully.

"; if($_FILES['upload']['size'] > 1000000){ $sizeValid = "no"; $invalidInput235790L = "yes"; $error = "

The size of the file exceeds maximum allowed size (1 MB).

"; } //echo $_FILES['upload']['type']; if( $sizeValid == "yes" AND $_FILES['upload']['type'] != "image/gif" AND $_FILES['upload']['type'] != "image/pjpeg" AND $_FILES['upload']['type'] !="image/jpeg" AND $_FILES['upload']['type'] !="image/x-png") { $error = "

This file type is not allowed.

"; //echo $_FILES['upload']['tmp_name']; unlink($_FILES['upload']['tmp_name']); $invalidInput235790L = "yes"; } if($invalidInput235790L != "no23457890MN"){ } else{ $errorOccurred="no"; //$uploadfile = $tempdir . basename($_FILES['upload']['name']); $name = $_FILES['upload']['name']; $tmp_name = $_FILES['upload']['tmp_name']; //echo $tmp_name; //$pext = getExtension($name); //$pext = strtolower($pext); $final_filename = $name;//$_POST['propertyId'].".".$pext; $newfile = $tempdir."/$final_filename"; if (is_uploaded_file($tmp_name)){ if (!copy($tmp_name,$newfile)) { $error = "

Unable to upload the file.

"; $invalidInput235790L = "yes"; }else{ saveThumbnail($uploaddir."/", $newfile, $final_filename, 350, 250); //updateHomeValidity($property_id, 1); $error="

Image uploaded successfully.

"; unlink($newfile); unlink($tmp_name); } } } } function getUserImages($user){ global $path, $imageCount; $user_dir = $path . "/users/".$user."/image"; //echo $user_dir; //$images = scandir($user_dir, 1); if(!file_exists($user_dir)){ $array["imageExists"]="no"; //return; "

You do not have any pictures or videos.
You can upload pictures or videos from My Picture or My Video menu.

"; } else{ $dh = opendir($user_dir); while (false !== ($filename = readdir($dh))) { $images[] = $filename; } $count = 0; $divTable=""; $table = "My Pictures

"; $imageCount = count($images); for ( $i=0; $i < $imageCount ; $i++ ) { if(strcmp($images[$i], ".") == 0 || strcmp($images[$i], "..") == 0) continue; $count++; $table = $table.""; $div="
"; $div=$div. "
"; $div = $div. ""; //$viewLink=""; $viewLink="" ; $divTable = $divTable. $div; $table =$table."
" .$images[$i]. " ".$viewLink." Delete ".$viewLink." View
"; $table = $divTable. "
\n\n".$table; } return $table; } $pictures = getUserImages($userId) // on the left side a short description of ?> [ Edit my profile ]     [ Edit my music ]     [ Edit my videos ]

Edit My Pictures


"; if(!file_exists($fileImage)){ //echo $profileImage; $img =""; } if(file_exists($fileImage)){ ?>
Your profile picture:
  [ View Profile Picture]   

  [ Change Profile Picture]   

  [ "> Delete Profile Picture ]
  You do not have a picture for your profile.

   Upload a picture for your pofile


Upload a new picture. Click browse to find the picture and then click on upload button.

Image:  
8) echo "disabled"; ?> name="upload" type="file" style="width=300px;color:003366; font-family:helvetica,sans-serif;font-size:11px;font-weight:bold; background-color:white;"/>       8) echo "disabled"; ?> type="submit" value=" Upload " style="color:003366; font-family:helvetica,sans-serif;font-size:11px;font-weight:bold; background-color:#C8C8C8;"/>
8) echo "You reached the maximum number of images you can upload. If you wish to upload new pictures, please delete one or more of your pictures first.

"; ?> Below is a list of your uploaded pictures. Please use the links to view or delete those pictures. Please note: you can upload up to 7 pictures to your account.



Privacy Policy     Legal Notices     Contact Us    

Copyright(c) 2007 Ontariowww.com, All Rights Reserved.
Use is subjec to acceptance of Terms of Use.
.