-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
56 lines (42 loc) · 1.25 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
49
50
51
52
53
54
55
56
<?php
$request = $_SERVER['REQUEST_URI'];
echo "PISS";
// echo $request;
switch ($request) {
case '/':
require __DIR__ . '/public/login/index.php';
break;
//test
// case '/login':
// require __DIR__ . '/public/loginPage/login.php';
// break;
// case '/signup':
// require __DIR__ . '/public/signupPage/signup.php';
// break;
// case '/db':
// require __DIR__ . '/config/database.php';
// $info = getUserInfo("chad");
// for ($i =0; $i<count($info); $i++) {
// echo $info[$i] . " ";
// }
// break;
// case '/historym':
// require __DIR__ . '/phistorym.php';
// break;
// case '/historyw':
// require __DIR__ . '/historyw.php';
// break;
// case '/content':
// require __DIR__ . '/content.php';
// break;
// case '/recommendations':
// require __DIR__ . '/recommendations.php';
// break;
// case '/mealtrack':
// require __DIR__ . '/mealtrack.php';
// break;
// default:
// http_response_code(404);
// require __DIR__ . '/public/404.php';
// break;
}