-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
40 lines (38 loc) · 1.26 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Shop</title>
<link rel="icon" type="image/x-icon" href="assets/favicon.icon" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet" />
<link href="/shop/css/styles.css" type="text/css" rel="stylesheet" />
</head>
<body>
<script type="text/javascript" src="../../shop/js/jquery-1.7.2.min.js"></script>
<?php include_once 'php/route.php';
include_once 'php/DB-singleton.php';
spl_autoload_register( function($class_name)
{
$path=str_replace("_", "/", $class_name);
include_once($path .".php");
});
$route=new Route;
$member=$route->Run();
$member['init']=0;
if(isset($member)){
foreach ($member as $key => $value)
{
$$key= $value;
}
include_once 'php/template/navigation.html';
include_once 'php/template/header.html';
$view=$route->getView();
include ($view);
}
include_once 'php/template/footer.html';?>
<!-- Bootstrap core JS-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- Core theme JS-->
</body>
</html>