The directory ($upload_dir) doesn't exist"); } if (!is_writeable("$upload_dir")){ die ("
The directory ($upload_dir) is NOT writable, Please CHMOD (777)"); } $file = $oldfile; if(file_exists($upload_dir.$file)){ @unlink($upload_dir."/$file"); } $size = $pic['size']; if ($size > $size_bytes) { $kb = $size_bytes / 1024; echo "
File Too Large. File must be $kb KB.
back"; exit(); } $ext = strrchr($pic['name'],'.'); if (($extlimit == "yes") && (!in_array($ext,$limitedext))) { echo("
Wrong file extension. "); echo "
Click here to go back"; exit(); } $filename = $pic['name']; if(file_exists($upload_dir.$filename)){ echo "
A image with the name $filename already exists change the name of your Image.
back"; exit(); } if (move_uploaded_file($pic['tmp_name'],$upload_dir.$filename)) { chmod($upload_dir.$filename, 0644); } else { echo "
There was a problem saving your file.
please try again later
back"; } } function GenerateCode ($num, $mach) { $let = array('Q', 'q', 'W', 'w', 'E', 'e', 'R', 'r', 'T', 't', 'Y', 'y', 'U', 'u', 'A', 'a', 'S', 's', 'D', 'd', 'F', 'f', 'G', 'g', 'H', 'h', 'J', 'j', 'K', 'k', 'Z', 'z', 'X', 'x', 'C', 'c', 'V', 'v', 'B', 'b', 'N', 'n', 'M', 'm', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); srand((float) microtime() * 10000000); for ($i=0;$i<$mach;$i++) { unset ($code); $ids = array_rand ($let, $num); foreach ($ids as $val) $code .=$let[$val]; $return=strtoupper($code); } return $return; } ?>
Share your photos with friends & other members:
 
Name:  
Email:  
Age:  
City:  
Gender:  
Picture:  
Photos may be a max of 1 mb in these formats: GIF or JPG
Description:  

    Powered By Karachimag.com