![]() |
#1
|
||
|
phAlbum outputs a lot of random stuff
I dropped phAlbum.php and the three .gifs on my web server. I did not touch anything in phAlbum.php, and when I view it in my web browser on my server, I get everything after <scott@phphq.net>. I have PHP configured correctly, and phpinfo runs correctly. If I try to create an album, it fails, saying that the requested url, /album/< was not found. Logging in gives the same result.
Edit: I wanted to attach the output, but even though the rules say "You may post attachments" there is no button to do so. http://www.phphq.net :- Copyright (c) 2005 All Rights Reserved :- :- This script is free software; you can redistribute it and/or modify :- it under the terms of the GNU General Public License as published by :- the Free Software Foundation; either version 2 of the License, or :- (at your option) any later version. :- :- This script is distributed in the hope that it will be useful, :- but WITHOUT ANY WARRANTY; without even the implied warranty of :- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the :- GNU General Public License for more details. :-http://www.gnu.org/licenses/gpl.txt :- //================================================== ============================== * Description //================================================== ============================== :- phAlbum has got to be the easiest drag and drop photo album around. It sports an easy customizable look, and very powerfull features. :- With this one little file, you can make a whole photo album, very easily. Have it creat thumbs for you on the fly. (Requires GD Library) :- Features include, unlimited directory + sub-directory support, ignored files, only show certain types, auto image resizeing if desired, and :- simplicity. Plus it requires no database! All you need is this one little file. All that you need to do to create your album, :- is make folders and put images in them. The script does the rest. How much simplier can it get? Well, it now comes with a simple :- admin panel! You can make folders and upload images without your ftp client! Now, it can't get any easier. You can also do it the :- old fashin way with the ftp client if you like and turn the admin panel off! Anyways, hope this script comes in handy! //================================================== ============================== * Setup //================================================== ============================== :- To setup this script, simply drop this file anywhere in your website. Then edit the vars in phAlbum.php. //================================================== ============================== * Frequently Asked Questions //================================================== ============================== :- Q1: The script wont make thumbnails! (Yes it will, but with your help). :- A1: Make sure the folder in which the files are in is chmod 777. Use your ftp client or site admin panel to do this. :- A2: Make sure the file you want the script to make a thumb of is either jpg, gih or png. This script will not make thumbs of any other file types. :- Q2: I keep getting creating thumb errors. :- A1: Maybe the folder is chmod 777. Please do this using your ftp client or site admin panel. :- A2: This script can only make thumbs of jpg or gif images. Any other image types this script will fail to make images of. :- Q3: I cannot upload files to the folders I created in the admin panel. :- A1: Your server may have some security against the chmod() function. You will have to chmod each folder 777 with your ftp client or site admin panel. Sorry ![]() ![]() ![]() ".$phmessage." "); } ?> Make New Album Upload Image \"Album ".$home_link." "; } Else { $nav="\"Album ".$home_link." "; } //How many paths do we got in $album? $count=@count($folder); //Lets make the naviation! Don't look if you have a weak stomache! for($i=0;$i<$count;$i++) { If($folder[$i]) { $path.=$folder[$i]."/"; //Give all the folders except the last folder a link and a closed picture. If(($count-2) > $i) { $nav .=" > \"".ucwords($folder[$i])."\" ".ucwords($folder[$i])." "; } Else { $nav .=" > \"".ucwords($folder[$i])."\" ".ucwords($folder[$i])." "; } } } Echo($nav); //Lets get some images!! $dir=@opendir($full_server.$album); //Loop through them all ![]() ".ucwords($display_name)."\n"; $j++; If(is_int($j / $table_cells)) { //This makes the table all nice and neat, actually, it splits the table with a new every $table_cells images/folders. $folders.= "\n\n"; $folder_close="1"; } Else { $folders.=""; } } // Else, the file is not a directory, so it must be an image. } Else { $file_ext=".".file_ext($file); $file_name=file_name($file); $display_name=str_replace($find,$replace,$file_nam e); //Hide the thumb files from displaying as regular files and disallow any file types that are not allowed. If((!eregi("_thumb",$file)) && (in_array(file_ext($file),$show_files))) { //If the file has the ignore word in it, do not show the file. If(!eregi($ignore_word,$file)) { //If a thumb file dosen't exists, then try and make one. If($auto_thumb) { If(!file_exists($full_server.$album.$file_name."_t humb".$file_ext)) { If(!file_thumb($file,$full_server.$album,$file_nam e)) { $thumb_error .="Thumb for ".$files_path.$album.$file." could not be created. "; } } } //Now, if there is a thumb file, display the thumb, else display the full images but smaller ![]() \n"; $remove.="\n"; $remove.="\n"; $remove.="\n"; $remove.=" \n"; } } If($drop_shadow) { //Cool drop shadow effect. $images .= " \"".ucwords($display_name)."\" ".ucwords($display_name)." ".$remove."\n"; } Else { //Image border $images .= "\"".ucwords($display_name)."\" ".ucwords($display_name)." ".$remove."\n"; } $k++; If(is_int($k / $table_cells)) { //This makes the table all nice and neat, actually, it splits the table with a new every $table_cells images/folders. $images .= "\n\n"; $image_close="1"; } Else { $images .=""; } } } } } } @closedir($dir); //Close the directory so the bugs don't get in and display some folders and images! Whew! What a workout! ?> \n"); Echo("\n"); Echo($folders); If(!$folder_close) { Echo("\n"); } Echo("\n"); Echo("\n"); } Echo(" \n"); If($images) { Echo("\n"); Echo("\n"); Echo($images); If(!$image_close) { Echo("\n"); } Echo(" \n"); If($thumb_error && !$supress_error) { Echo(" The following thumb errors have occured: ".$thumb_error." Maybe this is from the folder ".$files_path.$album." not being chmod 777. "); } } Else { Echo("\n"); Echo("\n"); Echo(""); Echo("\n"); Echo(" No images to display in this album. Please pick another album. \n"); } Echo(" \n"); Echo(" \n"); If($display_admin) { Echo(" \n"); If($phAdmin==true) { phadmin(); } Else { ?> Admin Login Here: Username: Password: ©phAlbum Last edited by jaf1230; 10-25-2007 at 09:35 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A lot of assists | Chrispy | Gaming Talk | 2 | 03-14-2008 05:50 PM |
Seems like we have a lot of junk above us! | BADDOG | General Chat | 0 | 01-20-2006 09:08 AM |
gta spoof and random stuff from robot chicken | Lucky | Humor & Jokes | 2 | 01-20-2006 03:53 AM |
some more random stuff | .ringer. | Sigs and Graphics | 6 | 11-05-2005 04:08 PM |