mirror of
https://github.com/c0de-archive/GAMA-Site.git
synced 2024-12-22 17:42:40 +00:00
Should be just minor changes I think
This commit is contained in:
parent
6d57b39575
commit
d7e59f6dd8
@ -211,7 +211,7 @@
|
|||||||
}elseif(!$result = $db->query($sql)){
|
}elseif(!$result = $db->query($sql)){
|
||||||
die('There was a problem trying to upload your file - [' . $db->error . ']');
|
die('There was a problem trying to upload your file - [' . $db->error . ']');
|
||||||
}else{
|
}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){
|
if($pics == '' || $pics == null){
|
||||||
echo '';
|
echo '';
|
||||||
}else{ // Checks if there is a thumbnail for the image, if not show nothumb.png
|
}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 ";
|
echo '<a href="?img='.$pics.'"><img src="thumbs/'.$pics.'" alt="'.$pics.'" title="'.$pics.'"/></a>'."\n ";
|
||||||
}else{
|
}else{
|
||||||
echo '<a href="?img='.$pics.'"><img src="nothumb.png" alt="'.$pics.'" title="'.$pics.'"/></a>'."\n ";
|
echo '<a href="?img='.$pics.'"><img src="nothumb.png" alt="'.$pics.'" title="'.$pics.'"/></a>'."\n ";
|
||||||
|
@ -40,7 +40,6 @@
|
|||||||
$_SESSION['username'] = $row['username'];
|
$_SESSION['username'] = $row['username'];
|
||||||
$_SESSION['tags'] = $row['tags'];
|
$_SESSION['tags'] = $row['tags'];
|
||||||
echo "<center><img id='the_pic' class='fit' src=\"".$_SESSION['location']."/$img\" /><br /></center>";
|
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{
|
}else{
|
||||||
$_SESSION['noimg'] = true;
|
$_SESSION['noimg'] = true;
|
||||||
echo "<center><h3>That image was not found in our database D:</h3></center>";
|
echo "<center><h3>That image was not found in our database D:</h3></center>";
|
||||||
|
Loading…
Reference in New Issue
Block a user