// Created by Mark Scholten // This file is called index.php and is the start for everything, it includes everything that is required // Start session session_start(); // Debugging, can be enabled here or disabled ini_set("show_errors", "off"); error_reporting(E_ALL); ini_set('display_errors', 0); // Enable check to see if things where included (a small security feature) $index = 1; // Includes some basic files used by many parts of the scripts require_once "function.php"; require_once "config.php"; require_once 'LanguageParser.php'; $lang = LanguageParser::getInstance(addslashes(htmlentities(strtolower(lang_get_value_defaultlang()))), addslashes(htmlentities(strtolower($lang_dir)))); $html = ''; // Check if someone is logged in if (check_is_loggedin() == FALSE) { if (isset($_POST) && !empty($_POST) && isset($_POST['login']) && !empty($_POST['login'])) { if (login_do_action_checkcredentials() == TRUE) { login_do_action_createsession(); } else { echo login_create_loginscreen(); exit; } } else { echo login_create_loginscreen(); exit; } }