-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.php
36 lines (34 loc) · 997 Bytes
/
layout.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8"/>
<link rel="stylesheet" type="text/css" href="/style.css"/>
<title></title>
</head>
<body>
<div id="wrapper">
<?php if (is_authenticated()) { ?>
<div>
Du är inloggad som <?=user_current()?>
|
<?= form_start(array('action' => '/session.php', 'method' => 'delete'))?>
<input type="submit" value="logout" />
</form>
<?php } else { ?>
<div>
<a href="/session.php">Logga in</a>
|
<a href="/user.php">registrera</a>
</div>
<?php } ?>
<?php if (isset($p['flash_notice'])) { ?>
<div class="msg notice"><?=h($p['flash_notice'])?></div>
<?php } else if (isset($p['flash_error'])) { ?>
<div class="msg error"><?=h($p['flash_error'])?></div>
<?php } ?>
<?= $p['_content']?>
<?= template('_webcam.php')?>
<address>copyleft! <?php unset($p['_content']); //var_dump($p)?></address>
</div>
</body>
</html>