Location: PHPKode > projects > Wordlog > htdocs/images_browse.php
<? 
	/* Last Edit: 05/28/03 --> v1.5-FINAL */
	require("include/config.php");
	require("include/language.php");
	require("include/functions.internal.php");
	require("include/functions.html.php");
	require("include/functions.format.php");
	require("include/functions.sessions.php");
	require("include/connect.php");
	$current_page = 'images_browse.php';

	$begin = 0;
	if ($_GET[begin]) {
		$begin = $_GET[begin];
	}

	$directory = IMAGES_PATH ."/".$_GET[gallery];
	$handle = opendir($directory);
	$list = array();

	while (false !== ($file = readdir($handle))) {
		if (preg_match("/[.](png|jpg|gif)$/i",$file)) {
			array_push($list, $file);
		}
	}
	closedir($handle);

	html_header(HTML_TITLE." :: $_GET[gallery]");
?>

	<FRAMESET ROWS="520,*" FRAMEBORDER="0">
		<FRAME SRC="images_content.php?filename=<? echo $list[$begin] ?>&amp;gallery=<? echo $_GET[gallery] ?>" SCROLLING="NO">
		<FRAME SRC="images_menu.php?filename=<? echo $list[$begin] ?>&amp;gallery=<? echo $_GET[gallery] ?>&amp;begin=<? echo $begin ?>" SCROLLING="NO">
	</FRAMESET>
	<BODY></BODY>

</HTML>

<? mysql_close($conn); ?>
Return current item: Wordlog