예제 #1
0
<?php

require_once "../includes/initialize.php";
//if (!$session->is_logged_in()) { redirect_to("login.php"); }
include_layout_tempate('header.php');
?>
			

<?php 
//
// testing logger code
//
echo "<hr />";
Logger::log_action("login", "Rich is logging in");
echo "the log file name is: " . Logger::display_log_file_name();
echo Logger::read_log_file();
Logger::clear_log_file();
echo Logger::read_log_file();
?>
			
<?php 
include_layout_tempate('footer.php');
?>

?>
예제 #2
0
//	chdir(SITE_ROOT.DS.'public'.DS.$photo->get_upload_dir());
?>
<html>
<body>
 <h2>Photo Gallery</h2>
 <?php 
$photos = Photograph::find_all();
foreach ($photos as $photo) {
    ?>
 	  <img src="<?php 
    echo $photo->get_image_file();
    ?>
" width="200" height="200"><br />
	  caption: <?php 
    echo $photo->caption;
    ?>
<br />
 <?php 
}
?>
</body>
</html>


	
			
<?php 
include_layout_tempate('admin_footer.php');
?>