1
mirror of https://github.com/jakejarvis/spoons.git synced 2025-04-26 12:18:27 -04:00
spoons/public/init.php

17 lines
415 B
PHP

<?php
require('../vendor/autoload.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;
}
?>