Home | Tech | Musicians | Music | Search | Contact | Forums «BACK
Everything Hammond Schematics «



Hammond M3 A0-29 PDF. $value) { $$key = $value; } ####################################################### # JCS Image Display v1.0.1 # Jan 11, 2002 # # Brett Profitt # brett@narnarnar.com # www.jcs.k12.oh.us/devel/ # # Modified by Keenan Johnson # kjohnson@utahtelehealth.net # www.come.to/hydraquest # # Modifications by Keenan: # * Added support for multiple lines in descriptions files. # * Fixed description display errors. # * Added support to/not display descriptions on thumbs page. # * Added support for 'Back' link on image display page # without coding it in the template. Also works on no # template systems # * Fixed path displaying on display page if no description # file was found. # * Fixed the hide "Powered by..." routine. # # Released under the GPL. ####################################################### ####################################################### # # JCSID v1.0.1 # # Simply drop this file into a directory, and it will spit out all images # in that dir as a table with clickable thumbnails if so desired. # Templates for both thumbnail displaying and image displaying # can be used also. To use a template, simply include template.html # or template-thumbs.html in the directory along with this file. # For examples, see the templates.txt file. If no templates are found, # a simple (*SIMPLE*) table will be generated with clickable # thumbnails that lead to a simple displaying of the image. # # Along with displaying images, one can display descriptions of the # images also. More on that later. # # The template files can contain *SOME* SSI and very little CGI # exec calls. The support for this is quite limited, so if it doesn't # work...you could fix it and let me know how ya did it! ;) # # NOTE: I do NOT suggest putting crazy SSI or CGI into # templates. IT WILL FAIL! # # As of version 0.1.7, if you call this script with a directory variable, # the script will use that directory. Do this the following way: # # http://www.yourserver.com/php/images.php?directory=/www/htdocs/newpics/ # # On to the configuration! # ####################################################### ####################################################### # Start variables/settings section # ####################################################### # Your base url in http://www.yourdomain.com/ format # NOTE: INCLUDE a trailing slash $base_url = "http://www.hammondb3organ.net/"; ####################################################### # The absolute directory of the base of your site # NOTE: this is NOT the directory that you are # putting this file in. THE BASE DIRECTORY OF # YOUR HTML FILES. # NOTE: INCLUDE a trailing slash $base_dir = "/var/www/hammondb3organ.net/"; ####################################################### # This is the gallery name and description to be displayed # on the thumnails page $gallery = "change with gallery.txt"; ####################################################### # If you want, you can make it look for a gallery.txt file # within the current directory for the gallery name. # this is helpful if you want to edit this file, then just # copy it to different dirs without having to re-edit it # NOTE: If this is set to 1, $gallery will be ignored. $galleryfile = "1"; ####################################################### # Change this to be the number of columns you want # the thumbnails display to display. $columns = "2"; ####################################################### # Change this to be the number of thumbnails you # want to be displayed before starting a new page. $maxpage = "100"; ####################################################### # Look for thumbnails in a subdir named "thumbs"? # (mypics/thumbs/image.jpg would be a thumb for mypics/images.jpg) # if this is set to 0, thumbnails will be assumed to be in the same # directory as the images, named image-thumb.jpg $use_thumbdir = "0"; ####################################################### # Setting this to "1" causes the script to create thumbnails automatically # while this sounds like a good option, often the thumbnails are low # quality. $createthumbs = "0"; ####################################################### # Change this to the width and height of your thumbnails. # if createthumbs is set to 1, this will be the default size of the # thumbnails created. # if you're using this along with evilthumbs to resize the images, # to be thumbnails, you are an evil, evil person. $thumb_width = "120"; $thumb_height = "90"; ####################################################### # When creating images, to conserve the aspect ratio, # the new thumbnails can be based either on width or height # if this is set to 1, new thumbs will be based on width. # set to 0, new thumbs will be based on height. $thumb_based_w = "1"; ####################################################### # For those evil people out there, # if you set this to 1, it will not look for thumnails, but instead # resize the real image and use it as a thumbnail $evilthumbs = "0"; ####################################################### # If you have images in the director you do *NOT* want # to be displayed as thumbs, put them into this array # in the style shown. # NOTE: Case sensitive! $nothumbs = array( "nothumbs.gif", "nothumb1.jpg", "nothumb2.png" ); ####################################################### # Because creating a directory as 777 isn't great, # this script provides a way to delete *script-created* # thumbnails. call the script with # images.php?command=rmthumbs&magicword= # Please be smart and change the default below. # and it will remove the thumbs dir IF AND ONLY IF createthumbs is enabled. $magic = "magicword"; ####################################################### # If set to 1, image descriptions will assume to be # in a subdir named "desc" # (mypics/image.jpg's description would be mypics/desc/image.txt) # If this is set to 0, the description files will be looked for in # the same directory as the image. (mypics/image.txt) # NOTE: no description files are needed, if so desired $use_descdir = "1"; ####################################################### # If set to 1, image descriptions will be displayed on # the thumbnails page. If set to 0, image descriptions # will not be displayed on thumbnails page. $thumb_desc = "0"; ####################################################### # Description font settings when displaying thumbs' descriptions $font = ""; ####################################################### # Put anything else here you want to appear in the tag # NOTE: Image width and height will automatically be inserted. # do NOT put it here. $img_extras = "border = 2"; ####################################################### # Customize this to how you want the table tag to be # TIP: You can put other stuff in here that want before the # images display, but it's a rather sloppy way to do it. $table = "\n"; ####################################################### # Variable for the version number of this php script $version = "1.0.1 Jan 11, 2002"; ####################################################### # If this is set to 0 the script will not display the # "Powered by JCSI ..." Please give me a little bit of credit $hidden_variable = "0"; ####################################################### # Setting up a crlf variable $br_html = chr(10); ####################################################### ############################################################################# # # Nothing below needs to be changed unless you KNOW WHAT YOU'RE DOING! # ############################################################################# ####################################################### # Check to see if a directory was passed on the # address bar as a variable. # If it was the $directory variable will not be empty # Else get the current directory from the browser # Then set the $url variable with the information obtained if ($directory){ $cwd = $directory; $dir = opendir ($directory); } else { $cwd = getcwd (); $dir = opendir($cwd); } $url = ereg_replace ("$base_dir", "$base_url", $cwd); ####################################################### # Check to see if the script is to get the gallery name # from a file or the above variable # If the $galleryfile variable is 1 then read the file # into the $gallery variable if ($galleryfile == "1"){ $galfile = "$cwd/gallery.txt"; $fd = fopen ($galfile, "r"); $gallery = fread ($fd, filesize ($galfile)); fclose ($fd); } ####################################################### # Here we check to see if the display command was sent # from the browser from a user clicking on an image or # if we are just to display the thumbnails of the # current directory # If they wanna display images, send them to the function # Elseif the rmthumbs command was sent, send them to the # rmthumbs function # Else display the thumbnails of the current directory. if ($command=="display"){ display($template,$image,$descpath); } elseif ($command=="rmthumbs"){ rmthumbs($magicword); } else { # Check for the template files assign it to an array and # then parse it line by line if (file_exists("$cwd/template-thumbs.html")){ $template = file("$cwd/template-thumbs.html"); foreach ($template as $key => $value){ # The next stuff is in case the template contains any SSI stuff... # This is dirty, but works...sometimes... if (stristr ($value, "
Everything Hammond Schematics
Home | Tech | Musicians | Music | Search | Contact | Forums
Site designed by Bam Designs, maintained by Dennis Wage(DwageB3)