Location: PHPKode > scripts > Particle Gallery > random.php
<?php
define("IN_SCRIPT", true);

require("includes/global.php");

// process random image
$img = randomimage();
if (!($img === FALSE)){
	redirect("viewimage.php?imageid=" . $img);
}

// else report normal page
$pagetitle = "Random Image";
include("includes/page_header.php");

$t->set_file("page_content", "randomimage");
$t->parse("page_all", "page_content", true);

include("includes/page_footer.php");
?>
Return current item: Particle Gallery