Location: PHPKode > scripts > Windows Image Gallery > windows_image_gallery/index.php
<?php require('config.php'); ?>
<html>

<head>
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title><?php echo $sitename; ?></title>
<script language="JavaScript" src="include/popup.js"></script>
<link rel="stylesheet" type="text/css" href="include/basic.css">
</head>

<?php include ('include/getwallpaper.php'); ?>

<body background="wallpapers/<?php echo $afbeelding[$rand]; ?>" style="background-attachment: fixed">

<center><img border="0" src="include/images/wig_header.png"></center>
<script>
window.onload=function(){
	<?php
		$directory = "images/";
		$files = glob($directory . "*");
		foreach($files as $file) {
			if(is_dir($file)) {
				$url = $file;
				$file = ltrim($file, $directory);

				if(!file_exists($url."/thumbs/")) {
					mkdir($url."/thumbs/");
				}

			?>
			new popUp(200, 100, 720, 520, "<?php echo $file; ?>", "<iframe name=\"<?php echo $file; ?>\" align=\"center\" src=\"gallery.php?dir=<?php echo $file; ?>\" width=\"700\" height=\"480\" scrolling=\"yes\" border=\"0\" frameborder=\"0\"></iframe>", "white", "black", "bold 10pt sans-serif", "<?php echo $file; ?>", "navy", "white", "#dddddd", "gray", "black", false, true, true, true, false);
			<?php
 			}
		}
	?>
}
</script>

<?php
	$div_left = "10";
	$div_top = "120";
	$div_count = 0;
	$directory = "images/";
	$files = glob($directory . "*");
	foreach($files as $file) {
		if(is_dir($file)) {
			$url = $file;
			$file = ltrim($file, $directory);
			$div_count = $div_count+1;
		?>

		<div id="divid" onmouseover="this.style.background='<?php echo $backgroundcolor; ?>';" onmouseout="this.style.background='';" style="position:absolute; width:95px; left:<?php echo $div_left; ?>; top:<?php echo $div_top; ?>;">
			<center>
				<a href="javascript:showbox('<?php echo $file; ?>')">
				<?php include ("include/icon.php"); ?>
				<img border="0" src="<?php echo $icon; ?>" width="64" height="64"></a><br>
				<a style="background-color:<?php echo $linkbgcolor;?>;" href="javascript:showbox('<?php echo $file; ?>')"><?php echo $file; ?></a>
			</center>
		</div>

		<?php

			$div_top = $div_top+105;
			if ($div_count == $icons_vertical) {
				$div_left = $div_left+105;
  				$div_top = 120;
				$div_count = "0";
			}
		}
	}

?>

</body>

</html>
Return current item: Windows Image Gallery