From feddbdcc2aff48502335fbb80605ba414b55f645 Mon Sep 17 00:00:00 2001 From: alopexc0de Date: Sun, 14 Apr 2013 10:07:51 -0500 Subject: [PATCH] Added Search google checkbox --- img/index.php | 46 ++++++++++++++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/img/index.php b/img/index.php index 8565d18..235569f 100755 --- a/img/index.php +++ b/img/index.php @@ -12,13 +12,21 @@ * TODO: * * JavaScript fo show bigger image if clicked - * DONE - Recently Uploaded Pictures on sidebar + * Optomize Upload - Uses 4 mysql calls to upload 1 file * Force Spaces in tags * Multiple tags without search? * Classes? - Might just go as far as to seperate the functions * Temporarly dropped support for bitmap files until I learn how to generate those + * unps.us picture redirection support? (unps.us/?i=name.ext redirect to img.unps-gama.info/?img=name.ext) + * New idea for recent pictures: Instead of using one row in db and array tricks, use multiple rows and order by dateposted in decending order - $sql = "SELECT * FROM `recentpics` ORDER BY `dateposted` DESC LIMIT 2"; - Should reduce upload sql queries to only two. * * ----------------------------------------------------------- + * + * For unps.us short image link support + * if(isset($_GET['i']) && !empty($_GET['i'])){ + * header('location:http://img.unps-gama.info/?img='.$_GET['i']); + * } + * */ require('helper.get.php'); // Helper.Get.php - Holds the functions for get - uname, tag, search, and upload @@ -56,17 +64,24 @@ * Author: David Todd (c0de) of http://www.unps-gama.info and http://unps.us * * ----------------------------------------------------------- - * TODO: + * TODO: * * JavaScript fo show bigger image if clicked - * DONE - Recently Uploaded Pictures on sidebar + * Optomize Upload - Uses 4 mysql calls to upload 1 file * Force spaces on tags * Multiple tags without search? * Classes? - Might just go as far as to seperate the functions * Temporarly dropped support for bitmap files until I learn how to generate those + * unps.us picture redirection support? (unps.us/?i=name.ext redirect to img.unps-gama.info/?img=name.ext) + * New idea for recent pictures: Instead of using one row in db and array tricks, use multiple rows and order by dateposted in decending order - $sql = "SELECT * FROM `recentpics` ORDER BY `dateposted` DESC LIMIT 2"; - Should reduce upload sql queries to only two. * * ----------------------------------------------------------- * + * For unps.us short image link support + * if(isset($_GET['i']) && !empty($_GET['i'])){ + * header('location:http://img.unps-gama.info/?img='.$_GET['i']); + * } + * --> @@ -87,7 +102,8 @@ - + +