Example #1
0
  -->

  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

    <title>Test CMS</title>

    <link rel="stylesheet" type="text/css" href="style/style.css" />
  </head>

  <body>
  	<div id="page-wrap">
      <?php 
define('__ROOT__', dirname(dirname(__FILE__)));
require_once "class/session.php";
Session::sessionStart("Rotary");
if (isset($_SESSION['id'])) {
    require_once "templates/logout.php";
    echo "</br>";
    require_once "templates/posts.php";
} else {
    require_once "templates/login.php";
    echo "</br>";
    require_once "templates/register.php";
}
?>
	  </div>
  </body>

</html>