-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
38 lines (27 loc) · 963 Bytes
/
index.php
File metadata and controls
38 lines (27 loc) · 963 Bytes
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
<?php
require_once "utils/common.php";
$uri = getRootURI();
switch ($_SERVER['REQUEST_URI']) {
case $uri . '':
case $uri . '/':
require __DIR__ . '/user-registration/vendor/login.php';
break;
case $uri . '/projects/list':
require __DIR__ . '/user-registration/vendor/index.php';
break;
case $uri . '/tasks/list':
require __DIR__ . '/user-registration/vendor/user-registration.php';
break;
case $uri . '/projects/add':
require __DIR__ . '/user-registration/vendor/home.php';
break;
case $uri . '/tasks/add':
require __DIR__ . '/user-registration/Model/Member.php';
break;
// case preg_match($uri . '/\/projects\/\?id=\d/', $_SERVER['REQUEST_URI']):
// require __DIR__ . '/controllers/project.php';
// break;
default:
http_response_code(404);
require __DIR__ . '/views/404.php';
break;