server-php-micro-show-index.php / php
<?php
**************************************************************************** Micro Photo Slideshow Version: 1.0 Release date: 2007-09-11 USAGE: You only need to copy the files into your image folder. All *.jpg and *.jpeg images will be displayed. You can set the interval and album title by setting up the title variable below. ****************************************************************************
*********** S E T T H I S V A R I A B L E S ***************************
// Switch to the next image after 5 sec title = "Micro Photo Slideshow"; // Title of your photo album
***************************************************************************
function displayPhoto(){ // dir="../../../../assets/img/create/0/"; // do not omit trailing global id = isset(_GET['id'] : 0; // Open the actual directory if (handle = opendir(// Read all file from the actual directory while (file = readdir(// Check whether tha actual item is a valid file //echo file." ".file."<br>"; if (is_file(file)){ // Check whether the actual image is a thumbnail if ((strpos(file,'.jpg')) || (strpos(file,'.jpeg'))){ if (id){ return '<img src="'.file.'" alt="Slideshow" />'; } if (first = '<img src="'.file.'" alt="Slideshow" />'; } gid = 1; return gid = isset(_GET['id'] : 0; image = displayPhoto(); _SERVER['PHP_SELF'].'?id='.//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <head> <title>Micro Photo Slideshow</title> <link href="style/style.css" rel="stylesheet" type="text/css" /> <?php echo '<META HTTP-EQUIV="Refresh" CONTENT="'.timer.'; URL='.</head> <body> <div id="main"> <div class="caption"><?php echo title; ?></div> <table align="center"><tr><td><?php echo </td></tr></table> <div id="source">Micro Photo SlideShow 1.0</div> </div> </body>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.