From a127bc2c88f84247d788144b3ac58f6a10894f89 Mon Sep 17 00:00:00 2001 From: alopexc0de Date: Mon, 18 Feb 2013 19:07:57 -0500 Subject: [PATCH] Call genthumb after sucessful upload --- img/helper.get.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/img/helper.get.php b/img/helper.get.php index 64f794d..2f5302d 100644 --- a/img/helper.get.php +++ b/img/helper.get.php @@ -3,7 +3,7 @@ /*------------------------------------------ * Helper.Get.php - Holds the functions for get - uname, tag, search, and upload * - * Copyright (c) 2013 David Todd(c0de) of http://www.unps-gama.info and http://unps.us + * Copyright (c) 2013 David Todd (c0de) of http://www.unps-gama.info and http://unps.us * for use with the image host (http://img.unps-gama.info) *------------------------------------------ */ @@ -112,7 +112,7 @@ $max_file_size="4096"; $file_uploads="1"; $websitename="UnPS-GAMA Image Host Uploader"; - $allow_types=array("jpg","gif","png","bmp","JPEG","JPG","GIF","PNG"); + $allow_types=array("jpg","gif","png","JPEG","JPG","GIF","PNG"); echo "
@@ -125,7 +125,7 @@ - Allowed Types: jpg, gif, png, bmp
+ Allowed Types: jpg, gif, png
Max size per file: 4 MB. @@ -163,7 +163,7 @@ require('dbsettings.php'); $location = 'Pictures'; - $extensions = array('png', 'gif', 'jpg', 'jpeg', 'bmp'); + $extensions = array('png', 'gif', 'jpg', 'jpeg'); $short = substr(number_format(time() * mt_rand(),0,'',''),0,10); $short = base_convert($short, 10, 36); @@ -206,7 +206,7 @@ if($result = $db->query($sql)){ move_uploaded_file($_FILES["file"]["tmp_name"], "Pictures/" . $name); $donefile = 'Pictures/'.$name; - genthumb($donefile); + genthumb($name); echo "Stored at: ". $name.""; }elseif(!$result = $db->query($sql)){ die('There was a problem trying to upload your file - [' . $db->error . ']');