-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.php
85 lines (84 loc) · 3.23 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
if (isset($_GET['url'])) {
$url = strtoupper($_GET['url']);
// echo $url;
switch ($url) {
case "HOME":
require "App/Controller/HomeController.php";
$HomeController = new HomeController();
$HomeController->Controller();
break;
case "LOGIN":
require "App/Controller/LoginPageController.php";
$LoginPageController = new LoginPageController();
$LoginPageController->Controller();
break;
case "LOGOUT":
require "App/Controller/LogoutController.php";
$LogoutController = new LogoutController();
$LogoutController->Controller();
break;
case "AUTHLOGIN":
require "App/Controller/LoginController.php";
$LoginController = new LoginController();
$LoginController->Controller();
break;
case "USERPAGE":
require "App/Controller/UserPageController.php";
$UserPageController = new UserPageController();
$UserPageController->Controller();
break;
case "CADASTRO":
require "App/Controller/CadastroController.php";
$CadastroController = new CadastroController();
$CadastroController->Controller();
break;
case "AUTHUSER":
require "App/Controller/UserController.php";
$UserController = new UserController();
$UserController->Controller();
break;
case "CADASTRARACOMODACAO":
require "App/Controller/ImovelPageController.php";
$ImovelPage = new ImovelPageController();
$ImovelPage->Controller();
break;
case "IMOVELPAGE":
require "App/Controller/ImovelController.php";
$ImovelController = new ImovelController();
$ImovelController->Controller();
break;
case "MINHASACOMODACOES":
require "App/Controller/MinhasAcomomodacoesController.php";
$AcomodaçãoController = new MinhasAcomomodacoesController();
$AcomodaçãoController->Controller();
break;
case "ACOMODACOES":
require "App/Controller/AcomodacoesController.php";
$AcomodacoesController = new AcomodacoesController();
$AcomodacoesController->Controller();
break;
case "RESERVAR":
require "App/Controller/ReservaController.php";
$ReservaController = new ReservaController();
$ReservaController->Controller();
break;
case "ACOMODACOESOFF":
require "App/Controller/AcomodacoesOffController.php";
$AcomodacoesOffController = new AcomodacoesOffController();
$AcomodacoesOffController->Controller();
break;
case "IMOVELRESERVADO":
require "App/Controller/ImovelReservadoController.php";
$ImovelReservadoController = new ImovelReservadoController();
$ImovelReservadoController->Controller();
break;
// case "TESTE":
// require "App/View/teste.php";
// break;
default:
break;
}
} else {
$url = 'App/View/404.php';
}