25) { $headers .= "From: nonstopgifs.com \n"; $headers .= "Content-Type: text/html\r\n"; $subject = "25 or more gif submissions - nonstopgifs.com"; $contact = ""; $msg = "There are 25 or more pending gif submissions nonstopgifs.com admin!"; mail($contact, $subject, $msg, $headers); } } if(isset($addContent)) { $imagesize = getimagesize($_FILES['imageFilename']['tmp_name']); $imagewidth = $imagesize[0]; $imageheight = $imagesize[1]; if($imagewidth > 400 || $imageheight > 400) { $imageTooBig = true; } else { if ($_FILES['imageFilename']['type'] == "image/gif") { unset($imagename); if(!isset($_FILES) && isset($HTTP_POST_FILES)) { $_FILES = $HTTP_POST_FILES; } if(!isset($_FILES['imageFilename'])) { $noImageFound = true; } $randomNumber = rand(0,1000); $firstImageName = basename($_FILES['imageFilename']['name']); $firstImageName = replaceForLink($firstImageName); $siteTag = "nonstopgifsdotcom-"; $imagename = $siteTag . $randomNumber . $firstImageName; $result = mysql_query("SELECT catName FROM imagecats WHERE catId = '$catId'"); $getCategoryName = mysql_fetch_array($result); $catName = replaceForLink($getCategoryName['catName']); $newimage = 'animated-gifs/' . $catName . '/' . $imagename; $result = @move_uploaded_file($_FILES['imageFilename']['tmp_name'], $newimage); $catId = $_POST['catId']; $dateAdded = date("Y-m-d"); $result = mysql_query("INSERT INTO images (imageId,catId,imageFilename,dateAdded)"."values ('NULL', '$catId', '$imagename', '$dateAdded')"); $newImageId = mysql_insert_id(); } else { $notCorrectFormat = true; } } } ?> Nonstop GIFs - Upload Animated GIFs

upload animations

'; $iconError = true; } if($noImageFound) { echo 'There was no image found, are you sure you selected a file?
'; $iconError = true; } if($notCorrectFormat) { echo 'The image is not in the correct format. We only accept GIF\'s!
'; $iconError = true; } if(isset($addContent) && !isset($iconError)) { echo 'Please name and describe the image you submitted below! For the name, something short and descriptive. For the description, describe what the image contains. This helps for searching!'; } else { if(!isset($iconError) && !isset($addDetails)) { echo 'If you want to put your own gif collection on nonstopgifs.com - this is the place to do it! Simply browse for the animation on your pc using the browse button below, then choose a category!'; } } if($iconUploaded) { echo 'Your Animated GIF has been uploaded, it is now pending review! You can add more gifs here!'; } ?>