-
Notifications
You must be signed in to change notification settings - Fork 3
/
admin.php
40 lines (33 loc) · 919 Bytes
/
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
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>Admin Panel MVC</title>
<link rel="stylesheet" href="/public/css/reset.css" media="all">
<link rel="stylesheet" href="/public/css/admin.css" media="all">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<body>
<nav id="homeNav">
<ol>
<li><a href="admin.php">Home Page</a></li>
<li><a href="admin.php?content">Gestione Contenuto</a></li>
<li><a href="admin.php?menu">Gestione Menu</a></li>
</ol>
</nav>
<?php
define('ROOT', dirname(__FILE__));
define('DS', DIRECTORY_SEPARATOR);
$param = 'backend';
if(isset($_GET['menu'])){
require_once ROOT.DS."views".DS."backend".DS."view_adm_menu.php";
} elseif(isset($_GET['content'])) {
require_once ROOT.DS."views".DS."backend".DS."view_adm_content.php";
}
?>
</body>
</html>