mirror of
https://github.com/jakejarvis/spoons.git
synced 2025-10-22 20:34:29 -04:00
prep for move to heroku w/ composer info
This commit is contained in:
15
public/init.php
Normal file
15
public/init.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
include_once('config.php'); // these have probably all been included already, but just in case...
|
||||
include_once('functions.php');
|
||||
include_once('db_connect.php');
|
||||
|
||||
if(!$initialized) {
|
||||
session_start();
|
||||
if(!isset($_SESSION['logged_in']) || $_SESSION['logged_in'] == FALSE) {
|
||||
header("Location:" . $site_url . "/login");
|
||||
die();
|
||||
}
|
||||
|
||||
$initialized = TRUE;
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user