Example #1
0
<?php

require_once "classes/AutoLoader.php";
if (isset($_SESSION["userid"])) {
    try {
        $user = User::LoadUserById($_SESSION["userid"]);
    } catch (Exception $e) {
        header("Location: index.php?id=" . base64_encode($e->getMessage()));
    }
} else {
    $error = base64_encode("No user found.");
    header("Location: index.php?id=" . $error);
}
$page = new Page();
echo $page->Html_Head();
echo $page->Javascripts();
?>
	<title>Yearnly</title>
	
</head>
<body>
	<div class="container">
		<div class="row">
			<div class="twelve columns">
				<div class="five columns"><h1>Yearnly</h1></div>
				<a href="logout.php" class="button red">Log Out</a>
				<hr />
			</div>
		</div>
		
		<div class="row">