-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
42 lines (33 loc) · 910 Bytes
/
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
<?php
header('Content-Type: text/html; charset=utf-8');
include_once("backend/conttroller.php"); //controller\conttroller.php
$ctrl = Controller::GetCrtl();
$ctrl->Action();
?>
<!DOCTYPE html>
<html lang="en">
<?php include("html/head.html"); ?>
<script>
<?php
if($ctrl->user != null){
echo "let current_user = '".$ctrl->user->name."#".$ctrl->user->id."';";
}else{
echo "let current_user = -1;";
}
?>
let jsCtrl = new controller();
</script>
<body>
<header>
<?php include("header.php"); ?>
</header>
<div class="container main">
<?php
$ctrl->Display();
?>
</div>
<footer>
<?php include("footer.php"); ?>
</footer>
</body>
</html>