-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
32 lines (27 loc) · 894 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
<?php
session_start();
if(isset($SESSION["user"])) {
header("location:home/index.php");
}
else {
if(isset($_GET["action"])) {
switch ($_GET["action"]) {
case '1':
$message = "User was created correctly";
$class = "alert alert-success";
break;
case '2':
$message = "User was not inserted";
$class = "alert alert-danger";
break;
case '3':
$message = "User or password were not correct";
$class = "alert alert-danger";
break;
}
}
require_once "view/partials/headerindex.php";
require_once "view/index.php";
require_once "view/partials/footer.php";
}
?>