Should be just minor changes I think

This commit is contained in:
alopexc0de 2013-02-19 02:26:24 -05:00
parent 6d57b39575
commit d7e59f6dd8
4 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,7 @@
/*------------------------------------------
* Helper.Clean.php - Holds the functions for cleaning input and output
*
* 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)
*------------------------------------------
*/

View File

@ -211,7 +211,7 @@
}elseif(!$result = $db->query($sql)){
die('There was a problem trying to upload your file - [' . $db->error . ']');
}else{
echo "There was a problem trying to upload your file - Could be a database error";
echo "There was a problem trying to upload your file - Could be a server error";
}
}
}

View File

@ -77,7 +77,7 @@
if($pics == '' || $pics == null){
echo '';
}else{ // Checks if there is a thumbnail for the image, if not show nothumb.png
if(in_array($pics, $thethumbs)){
if(in_array($pics, $thethumbs)){ // Totally figured out how to use in_array by looking at default php scripts (Thank you wingrep :3)
echo '<a href="?img='.$pics.'"><img src="thumbs/'.$pics.'" alt="'.$pics.'" title="'.$pics.'"/></a>'."\n ";
}else{
echo '<a href="?img='.$pics.'"><img src="nothumb.png" alt="'.$pics.'" title="'.$pics.'"/></a>'."\n ";

View File

@ -3,7 +3,7 @@
/*------------------------------------------
* Img.Main.php - Main program
*
* 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)
*------------------------------------------
*/
@ -40,7 +40,6 @@
$_SESSION['username'] = $row['username'];
$_SESSION['tags'] = $row['tags'];
echo "<center><img id='the_pic' class='fit' src=\"".$_SESSION['location']."/$img\" /><br /></center>";
//echo "$id<br>$img<br>$location<br>$type<br>$size<br>$time<br>$comment<br>$username<br>$tags\n";
}else{
$_SESSION['noimg'] = true;
echo "<center><h3>That image was not found in our database D:</h3></center>";