diff --git a/img/img.extra.php b/img/img.extra.php new file mode 100644 index 0000000..3b38d86 --- /dev/null +++ b/img/img.extra.php @@ -0,0 +1,86 @@ +\n"; + echo " \n"; + echo " \n"; + echo " \n"; + } + } + + function textstuff(){ // Sets up right side box of info under the other sidebars + if($_SESSION['noimg'] == false){ + echo "
\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 + $thelist = ''; + // Last Modified not working, so removed for the time being + if($handle = opendir('Pictures')){ + while(false != ($file = readdir($handle))){ + if($file != "." && $file != ".." && $file != ".htaccess"){ + //$thelist .= 'Thumbnail for '.$file.'
└ '.$file.'

'."\n"; + $thelist .= "-".$file; + } + } + closedir($handle); + } + echo " +

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

+
+

Uploaded Pictures:

+ "; + $thelist = explode("-", $thelist); + foreach($thelist as $pics){ + if($pics == '' || $pics == null){ + echo ''; + }else{ + echo ''.$pics.''."\n "; + } + } + echo" +
+ "; + } + + function title(){ // Suffers same problem as headstuff() + if(!isset($_SESSION['img'])){ + echo ""; + }else{ + echo " - Now Showing: ".$_SESSION['img']; + } + } + +?> \ No newline at end of file