-
Notifications
You must be signed in to change notification settings - Fork 117
Expand file tree
/
Copy pathindex.php
More file actions
27 lines (20 loc) · 695 Bytes
/
index.php
File metadata and controls
27 lines (20 loc) · 695 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
<?php
include("_includes/config.inc");
include("_includes/dbconnect.inc");
include("_includes/functions.inc");
echo template("templates/partials/header.php");
if (isset($_GET['return'])) {
$msg = "";
if ($_GET['return'] == "fail") {$msg = "Login Failed. Please try again.";}
$data['message'] = "<p>$msg</p>";
}
if (isset($_SESSION['id'])) {
$data['content'] = "<p>Welcome to your dashboard.";
echo template("templates/partials/nav.php");
echo template("templates/default.php", $data);
} else {
echo template("templates/login.php", $data);
}
echo template("templates/partials/footer.php");
// another test edit
?>