topical media & game development
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 ***************************
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;
handle = opendir(file = readdir(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='.timer.'; URL='.title; ?></div>
<table align="center"><tr><td><?php echo
(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.