mirror of
https://github.com/c0de-archive/GAMA-Site.git
synced 2024-12-22 09:42:39 +00:00
Should be just minor changes I think
This commit is contained in:
parent
6d57b39575
commit
d7e59f6dd8
@ -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)
|
||||
*------------------------------------------
|
||||
*/
|
||||
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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 ";
|
||||
|
@ -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>";
|
||||
|
Loading…
Reference in New Issue
Block a user