1
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:
2017-07-16 12:35:31 -04:00
parent bb8ca88e79
commit db89ee5fe3
183 changed files with 93387 additions and 93305 deletions

15
public/init.php Normal file
View 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;
}
?>