if (!$session->IsLoggedIn()) { RedirectTo("login.php"); } ?> <?php IncludeLayout("left-menu.php"); ?> <section class="page-cont"> <div> <h2>Welcome, <?php echo $session->user_id; ?> </h2> <?php echo $session->Message(); ?> </div> </section> <?php if ($_GET['logout'] == 'true') { $session->Logout(); RedirectTo("login.php"); } ?> <?php IncludeLayout("footer.php");
<?php require_once "../includes/initialize.php"; IncludeLayout("head.php"); ?> <header> <a class= "logo" title="JClass" href="http://localhost/~tsukomoto/project_cms/public/"><span>JClass</span></a> <div class="hero"> <h1>All you need is to learn Japanese</h1> <a class="btn" ttitle="Get lessons from top teachers" href="#"><span>Register</span> And Start This Journey</a> </div> </header> <section class = "main"> <aside> <div class = "content community"> <h3><a href="#inside-course"><?php echo "Hello"; ?> </a></h3> <p><?php echo "Hello"; ?> </p> </div> </aside> <aside> <div class = "content stratagy">
<?php include "../../includes/layouts/admin-header.php"; require_once "../../includes/initialize.php"; if (!$session->IsLoggedIn()) { RedirectTo("login.php"); } ?> <?php IncludeLayout("left-menu.php"); ?> <section class="page-cont"> <div> <h2>Photo view</h2> <?php echo Messages($message); ?> <table> <tr> <th>Photo</th> <th>Filename</th> <th>Caption</th> <th>Size</th> <th>Type</th> </tr> <?php $photos = Photograph::FindAll(); foreach ($photos as $photo) {