| @@ 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-154 (lines=146) @@ | ||
| 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 src="../public/assests/js/anchorme.min.js"></script> |
|
| 25 | <script type="text/javascript" src="../public/assests/js/message.js"></script> |
|
| 26 | </head> |
|
| 27 | ||
| 28 | <body> |
|
| 29 | ||
| 30 | ||
| 31 | ||
| 32 | </body> |
|
| 33 | ||
| 34 | </html> |
|
| 35 | ||
| 36 | <?php |
|
| 37 | } else { |
|
| 38 | header('Location:'.getenv('APP_URL')."/index.php"); |
|
| 39 | } |
|
| 40 | ?> |
|
| 41 | ||