error_reporting(E_ALL); require_once '../lib/db.interface.php'; require_once '../lib/db.class.php'; require_once '../models/allModels.php'; require_once 'utilities.php'; ?> <?php $intermediateConfigFile = 'config.ini'; if (!file_exists($intermediateConfigFile)) { die("index.php; Intermediate config file not found: " . $intermediateConfigFile); } $configArray = parse_ini_file($intermediateConfigFile); $config = new Configuration($configArray['realConfigFile']); $config->SaveInSession(); $action = isset($_GET["action"]) ? $_GET["action"] : ''; $user = NULL; switch ($action) { case 'onSite': $_SESSION['location'] = $action; if (!isset($_SESSION['FFuser'])) { addGuestUserToSession(); } header('Location: entryTracker.php'); break; case 'atHome': $_SESSION['location'] = $action; if (!isset($_SESSION['FFuser'])) { addGuestUserToSession(); }