-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.php
More file actions
37 lines (31 loc) · 713 Bytes
/
Copy pathindex.php
File metadata and controls
37 lines (31 loc) · 713 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
28
29
30
31
32
33
34
35
36
37
<?php
// Resources
// Video
// - Build your first Tiny PHP MVC Framework
// i. http://www.youtube.com/watch?v=CGiIVQPaOJQ&feature=related
// - Creating an MVC from Scratch with PHP - Part 1
// i. http://www.youtube.com/watch?v=ZbBf4jfwWko&feature=related
// Display errors in production mode
ini_set('display_errors', 1);
// Check if user is logged in
/*session_start();
if(!(isset($_SESSION['myuser'])))
{
header("Location: ../login/");
exit;
if(!($_SESSION['myusers']=="admin"))
{
header("Location: ../login/");
exit;
}
}*/
/* // Alternative
if (!($_SESSION['myuser']=="admin"))
{
header("Location: login/");
exit;
}
*/
// Let's get started
require 'application/core.php';
?>