-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
47 lines (41 loc) · 1.34 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
<?php
date_default_timezone_set("Asia/Bangkok");
header("Cache-Control: no-cache, no-store, must-revalidate");
header("Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE, OPTIONS");
ob_start();
session_start();
require('./modules/use-import/main.m.php');
require('./Database/Database.php');
require('./components/lib/getAlert.php');
require('./components/lib/htmlchar.php');
require('./components/lib/deleteUser.php');
$getParams = import('wisit-router/getParams');
// use for api
if ($getParams(0) == 'api') {
import('wisit-express');
Wexpress::origin(); // allow origin
return require('./pages/_main.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php import('./components/meta/MetaTag'); ?>
<link rel="shortcut icon" href="/public/default/logo.svg" type="image/x-icon">
<link rel="stylesheet" href="/public/style.css">
<link rel="stylesheet" href="/public/output.css">
</head>
<body>
<?php
require('./components/Navbar.php');
/********* Content ***********/
require('./pages/_main.php');
/********* Content ***********/
?>
<script src="/public/flowbite.js"></script>
<script src="/public/script.js"></script>
</body>
</html>