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

@ -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";
} }
} }
} }

View File

@ -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 ";

View File

@ -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>";