<?php // Include the class require 'imgbrowz0r.class.php'; // Set configuration values $config = array( // the file where imgbrowz0r.php is included (in this case index.php) 'basefile' => basename($_SERVER['SCRIPT_FILENAME']), // The folder where categories are located 'gallery_dir' => 'gallery/', // Date format, check http://nl3.php.net/date for help 'time_format' => 'F j, Y - H:i', // Timezone 'time_zone' => '2' ); // Start the class $gallery = new imgbrowz0r($config); // Set page title $page_title = $gallery->cur_category_name === false ? 'Gallery' : $gallery->cur_category_name; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $page_title; ?> - ImgBrowz0r</title> <link rel="stylesheet" type="text/css" href="imgbrowz0r_css.css" /> </head> <body> <?php // Show the title of the page echo '<h1>'.$page_title.'</h1>'; // Display the thumbnails/images/categories $gallery->display(); ?> </body> </html>