Erweiterung der Funktionalität, erste Anbindung an Editoren, Einbinden von JS-Bibliotheken
This commit is contained in:
30
backend/editor/.config/editor_config.php
Normal file
30
backend/editor/.config/editor_config.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by CS medien- & kommunikationssysteme.
|
||||
* @author Christian Steinle
|
||||
* @date 29.09.2016
|
||||
*
|
||||
* @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
|
||||
*/
|
||||
|
||||
$editor['name'] = 'AHD Allradhaus GmbH';
|
||||
if (ENVIRONMENT === 'local')
|
||||
{
|
||||
$editor['editorUrl'] = SCHEME . '://csteinle.ddns.net/rist-editors/';
|
||||
$editor['editorVersion'] = '2.0.0';
|
||||
}
|
||||
elseif (ENVIRONMENT === 'production')
|
||||
{
|
||||
$editor['editorUrl'] = SCHEME . '://rist-editors.ri-st.de/';
|
||||
$editor['editorVersion'] = '1.0.2';
|
||||
}
|
||||
$editor['webserviceUrl'] = HOST_URL . str_replace(PATH_ROOT, '', dirname(__DIR__)) . '/remote_data.php';
|
||||
|
||||
$editor['imageTypes'] = array('image/png', 'image/jpeg', 'image/gif');
|
||||
$editor['imageDimension']['small'] = array('width' => 480, 'height' => 360, 'quality' => 95);
|
||||
$editor['imageDimension']['keyVisual'] = array('width' => 1368, 'height' => 342, 'quality' => 95);
|
||||
$editor['imageDimension']['orig'] = array('width' => 2560, 'height' => 2560, 'quality' => 99);
|
||||
|
||||
$editor['contentElements'] = array('subline', 'text', 'textimage');
|
||||
$editor['backendPrefix'] = PATH_PREFIX . '/' . str_replace(PATH_ROOT, '', dirname(__DIR__));
|
||||
$editor['backendUrl'] = HOST_URL . str_replace(PATH_ROOT, '', dirname(__DIR__)) . '/webservice/requestData.php';
|
||||
24
backend/editor/index.php
Normal file
24
backend/editor/index.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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);
|
||||
11
backend/editor/webservice/requestData.php
Normal file
11
backend/editor/webservice/requestData.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by CS medien- & kommunikationssysteme.
|
||||
* @author Christian Steinle
|
||||
* @date 05.10.2016
|
||||
*
|
||||
* @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
|
||||
*/
|
||||
|
||||
file_put_contents(__DIR__ . '/request.log', var_export($_POST, true) . "\n\n", FILE_APPEND);
|
||||
echo json_encode(1);
|
||||
Reference in New Issue
Block a user