-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin.php
executable file
·41 lines (41 loc) · 1.1 KB
/
admin.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
37
38
39
40
41
<?php $authentication = true; ?>
<?php include "controller/bootstrap.php"; ?>
<?php $page_title = "Administration Area - Application " ; ?>
<?php $data = get_drawings($_SESSION["user"]["id"]); ?>
<?php include "controller/metainformations.php"; ?>
<?php
$action = (empty($_GET["page"]))? sha1("inicio") : $_GET["page"];
?>
<body class=" grey lighten-5">
<div class="container-fluid">
<?php include 'view/components/navbar_general.php' ?>
<?php include 'view/components/sidebar_admin.php' ?>
</div>
<div class="container-fluid">
<div class="row">
<div class="col s9 offset-s3 pt-1">
<?php
switch ($action) {
case sha1("inicio"):
include 'view/components/inicio_admin.php';
break;
case sha1("perfil"):
include 'view/components/perfil_admin.php';
break;
case sha1("configuracoes"):
include 'view/components/configuracoes_admin.php';
break;
case sha1("sobre"):
include 'view/components/sobre_admin.php';
break;
default:
// code...
break;
}
?>
</div>
</div>
</div>
</div>
</body>
<?php include 'view/script.php' ?>