-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
48 lines (45 loc) · 1.22 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
41
42
43
44
45
46
47
48
<?PHP
require_once 'config/config.inc.php';
require_once DOC_ROOT.CLASS_DIR.'database.class.php';
require_once DOC_ROOT.CLASS_DIR.'category.lib.php';
require_once DOC_ROOT.CLASS_DIR.'user.lib.php';
require_once DOC_ROOT.CLASS_DIR.'product.lib.php';
?>
<!DOCTYPE html>
<html>
<head>
<?PHP
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Scoutbar2.0</title>
<link href="'. STYLE_DIR.'modern.css" rel="stylesheet">
<link href="'. STYLE_DIR.'modern-responsive.css" rel="stylesheet">
<link href="'. STYLE_DIR.'site.css" rel="stylesheet" type="text/css">
<link href="'. STYLE_DIR.'icons.css" rel="stylesheet">
<script src="'. JAVASCRIPT_DIR.'jquery-1.8.2.min.js"></script>
<script src="'. JAVASCRIPT_DIR.'google-analytics.js"></script>
<script src="'. JAVASCRIPT_DIR.'github.info.js"></script>
<script src="'. JAVASCRIPT_DIR.'db.min.js"></script>
<script src="'. JAVASCRIPT_DIR.'error.js"></script>';
?>
</head>
<?PHP
if(isset($_GET['page'])){
switch($_GET['page']){
case "user":
include("user.php");
break;
case "poduct":
include("product.php");
break;
case "key":
include("keyboard.php");
break;
case "start":
include("start.php");
break;
}
}else{
include("user.php");
}
?>
</html>