HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/deensekroon.komma-mediadesign.nl/wwwroot/init.php
<?php
/**
 * init.php
 * Created by Komma Mediadesign.
 * Author: mike
 * Date: 6/25/13
 */

# start session
//session_set_cookie_params(0, '/', '.deensekroon.nl');
session_start();

# check for language / language-update
if(!isset($_SESSION['lang'])) $_SESSION['lang'] = 'nl';
if(isset($_POST['lang-nl']) || isset($_POST['lang-en']) || isset($_POST['lang-de']) || isset($_POST['lang-fr'])){
    if(isset($_POST['lang-nl'])) $_SESSION['lang'] = 'nl';
    if(isset($_POST['lang-en'])) $_SESSION['lang'] = 'en';
    if(isset($_POST['lang-de'])) $_SESSION['lang'] = 'de';
    if(isset($_POST['lang-fr'])) $_SESSION['lang'] = 'fr';
    header('location: ./');
}

# include necessary
include './lang/'.$_SESSION['lang'].'.php';

require_once 'config/errorReport.php';
require_once 'config/paths.php';
require_once 'config/friendlyUrl.php';
initFriendlyUrl(0,0);
require_once 'lib/general/url_pin.class.php';
require_once 'lib/general/session.class.php';

// Require App Core
include_once($_SERVER['DOCUMENT_ROOT'] . '/App/Core/Repository.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/App/Core/View.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/App/Tree/Tree.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/App/Tree/TreeNode.php');

include_once($_SERVER['DOCUMENT_ROOT'] . '/App/Brands/BrandController.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/App/Brands/BrandRepository.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/App/Categories/CategoryController.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/App/Categories/CategoryRepository.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/App/Categories/CategoryTree.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/App/Products/ProductRepository.php');

include_once($_SERVER['DOCUMENT_ROOT'] . '/App/Routes/RouteResolver.php');
include_once($_SERVER['DOCUMENT_ROOT'] . '/App/Routes/RouteRepository.php');

// Require Lib
include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/Carbon/Carbon.php';

require_once 'php/sitefunctions.php';
require_once 'admin/php/connect.php';
require_once 'admin/php/functions2.php';