@@ 10-13 (lines=4) @@ | ||
7 | $dotenv->load(); |
|
8 | ||
9 | // die("Hello"); |
|
10 | if (Session::get('start') != null) { |
|
11 | header("Location:".getenv('APP_URL')."/views/account.php"); |
|
12 | } |
|
13 | ?> |
|
14 | <!Doctype html> |
|
15 | <html> |
|
16 |
@@ 10-18 (lines=9) @@ | ||
7 | $dotenv->load(); |
|
8 | ||
9 | ||
10 | if (Session::get('start') != null) { |
|
11 | Session::forget('start'); |
|
12 | header('Location:'.getenv('APP_URL')."/index.php"); |
|
13 | } else { |
|
14 | echo "Please Login"; |
|
15 | } |
|
16 |
@@ 9-141 (lines=133) @@ | ||
6 | $dotenv = new Dotenv(dirname(__DIR__)); |
|
7 | $dotenv->load(); |
|
8 | ||
9 | if (Session::get('start') != null && empty($_GET['user'])) { |
|
10 | ?> |
|
11 | <!DOCTYPE html> |
|
12 | <html lang="en"> |
|
13 | ||
14 | <head> |
|
15 | <title>Messages</title> |
|
16 | <meta charset="utf-8"> |
|
17 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
|
18 | <link rel="stylesheet" href="../public/assests/css/bootstrap.min.css"> |
|
19 | <link rel="stylesheet" href="../public/assests/css/message.css"> |
|
20 | <!-- Font Awesome File --> |
|
21 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> |
|
22 | <script src="../public/assests/js/jquery-3.0.0.min.js"></script> |
|
23 | <script src="../public/assests/js/bootstrap.min.js"></script> |
|
24 | <script type="text/javascript" src="../public/assests/js/message.js"></script> |
|
25 | </head> |
|
26 | ||
27 | <body> |
|
28 | ||
29 | ||
30 | ||
31 | </body> |
|
32 | ||
33 | </html> |
|
34 | ||
35 | <?php |
|
36 | } else { |
|
37 | header('Location:'.getenv('APP_URL')."/index.php"); |
|
38 | } |
|
39 | ?> |
|
40 |