Files
website/backend/editor/index.php

24 lines
719 B
PHP

<?php
/**
* Created by CS medien- & kommunikationssysteme.
* @author Christian Steinle
* @date 29.09.2016
*
* @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
*/
session_start();
$_SESSION['lang'] = 'de';
$siteID = (!isset($_GET['siteID']) || empty($_GET['siteID'])) ? '1' : $_GET['siteID'];
$pathRoot = dirname(dirname(__DIR__)) . '/';
require_once($pathRoot . '.config/config_global.php');
require_once(__DIR__ . '/.config/editor_config.php');
$loader = require PATH_ROOT . '/vendor/autoload.php';
$registry = \Helper\Registry::getInstance();
$registry->editorConfig = $editor;
$registry->editorConfig['token'] = session_id();
$route = new \Route\FrontendRoute($siteID, true);