<?php
/* Pardus Image Pack Preloader
   ---------------------------
   BASED ON:
   MatDirLister 0.2 Script
   Created by Mattia Campolese; 23/05/2004 - 08/07/2005
   Email: webmaster@matsoftware.it
   URL: www.matsoftware.it
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Pardus Image Pack Preloader</title>
<meta name="Title" content="Pardus Image Pack Preloader" />
<meta name="Author" content="Uncledan (Orion)/Larry Legend (Artemis)" />
<link rel="stylesheet" href="main.css" type="text/css" />
<link rel="shortcut icon" href="http://www.pardus.at/favicon.ico" type="image/x-icon" />
<link rel="http://www.pardus.at/favicon.ico" href="favicon.ico" type="image/x-icon" />
</head>
<body>
<h1>Pardus Image Pack Preloader</h1>
<p style="text-align:justify;margin:10px 10px 10px 10px;">This script will preload all images of the image pack for the game <a href="http://www.pardus.at/" target="_blank"><b>Pardus</b></a>. This will take a while, depending also on your connection speed, and will download some megs in the cache of your browser. But will dramatically improve the load time of the pages of the game if you use this image pack. This is specially useful when using a browser that doesn't allow the use of a local image pack, like <a href="http://www.google.com/chrome/" target="_blank"><b>Google Chrome</b></a>, <a href="http://www.chromium.org/" target="_blank"><b>Chromium</b></a> or <a href="http://www.srware.net/en/software_srware_iron.php" target="_blank"><b>SRWare Iron</b></a>.</p>
<p style="text-align:justify;margin:10px 10px 10px 10px;">Click on the banner below to go to <a href="http://www.pardus.at/" target="_blank"><b>Pardus</b></a> page after this page has loaded completely.</p>
<p style="text-align:center;margin:30px 0px 0px 0px;"><a href="http://www.pardus.at/" target="_self"><img style="border:0px solid;" src="http://static.pardus.at/various/portal/bg_front.jpg" alt="Let's play Pardus!" title="Let's play Pardus!" /></a></p>
<p style="text-align:center;margin:5px 0px 30px 0px;font-size:80%;"><small>Script design by Uncledan ( <a
href="http://orion.pardus.at/sendmsg.php?to=Uncledan"
target="_blank">PM</a> | <a href="http://www.uncledan.it/"
target="_blank">website</a> ) - <a href="http://www.w3.org/"
target="_blank">W3C</a> Compliant ( <a
href="http://validator.w3.org/check?uri=referer"
target="_blank">HTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer"
target="_blank">CSS</a> )</small><br />
<small><a href="http://www.pardus.at/" target="_blank">Pardus</a> is
Copyright &copy; 2003-2010 Bayer &amp; Szell OG. All rights
reserved.</small><br />
<small>This is an indipendent website, made for and by <span
style="font-weight: bold;">Pardus game fans</span>, and is <span
style="font-weight: bold;">NO WAY</span> related nor affiliated to
Bayer &amp; Szell OG.</small>
</p>

<?php

function DisplayFromFolder($ThisFolder) {
  $folder = opendir($ThisFolder);
  while($file = ReadDir($folder)) {
	if (($file != ".") && ($file != "..") ) {
	if (FileType($ThisFolder."/".$file) == "dir") DisplayFromFolder($ThisFolder."/".$file);
	  else {
		$file_ext = strtolower(end(explode(".",$file)));
		if (($file_ext == "jpg") || ($file_ext == "jpeg")|| ($file_ext == "gif") || ($file_ext == "png")  ) {
		  echo("<a href=\"".$ThisFolder."/".$file."\" target=\"_blank\"><img alt=\"".$file."\" title=\"".$file."\" src=\"".$ThisFolder."/".$file."\" border=\"0\" /></a><br />\n");
		}
	  }
	}
  }	  
  return;
}

DisplayFromFolder(".");

// Unsetting all variables
unset($file_array);
unset($file);
unset($folder);
unset($directory);
unset($sub);
unset($subw);
unset($path);
unset($id);
unset($listpath);
unset($listfiles);
?>
</body>
</html>
