\n"; echo "

Image Name:

- ".$_SESSION['img']."\n"; echo "

Image Type:

- ".$_SESSION['type']."\n"; echo "

Image Size:

- ".$_SESSION['size']."\n"; echo "

Time Uploaded:

- ".$_SESSION['time']."\n"; echo "

Username:

- "; $username = $_SESSION['username']; echo "$username"; // For future use - catagorize by username echo "\n"; echo "

Comment:

- ".$_SESSION['comment']."\n"; echo "

Tags:

- "; $tags = $_SESSION['tags']; $tags = explode(" ", $tags); foreach($tags as $tag){ echo "$tag "; // For future use - catagorize by tag } echo "\n"; echo ""; } } function noimg(){ // Shown in place of the image if one isn't available $thethumbs = ''; if($thumbs = opendir('thumbs')){ while(false != ($fiel = readdir($thumbs))){ // Test if thumbnail exists if not show nothumb.png if($fiel != "." && $fiel != ".." && $fiel != ".htaccess"){ $thethumbs .= "-".$fiel; } } closedir($thumbs); } echo "

Please specify an image with the url: img.unps-gama.info/?img=(IMGAGE STUFF HERE)

Uploaded Pictures:


"; $thethumbs = explode("-", $thethumbs); // The following code has a bunch of whitespaces in it to make the html look nice when its source is looked at $output = " \n"; $output .= " \n"; $dir = opendir("Pictures"); $counter = 0; while (false !== ($fname = readdir($dir))){ if ($fname != '.' && $fname != '..'){ $output .= " \n"; $counter += 1; if ($counter % 5 == 0){ $output .= " \n"; } } } closedir( $dir ); $output .= " \n"; $output .= "
"; if(in_array($fname, $thethumbs)){ // Totally figured out how to use in_array by looking at default php scripts (Thank you wingrep :3) $output .= ''.$fname.''; }else{ $output .= ''.$fname.''; } //$output .= "$fname"; $output .= "
"; // End of weird whitespaces echo $output; echo"
"; } ?>