Anpassung an Data-Attribute und Verzeichnisstrukturen
This commit is contained in:
@@ -21,9 +21,10 @@ elseif (ENVIRONMENT === 'production')
|
||||
$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['imageDimension']['image'] = array('width' => 480, 'height' => null, 'standardImage' => HTML_IMG . 'standard_upload.jpg', 'quality' => 95);
|
||||
$editor['imageDimension']['keyVisual'] = array('width' => 1368, 'height' => 342, 'standardImage' => HTML_IMG . 'standard_upload.jpg', 'quality' => 95, );
|
||||
$editor['imageDimension']['thumb'] = array('width' => 152, 'quality' => 90);
|
||||
$editor['imageDimension']['orig'] = array('width' => 2560, 'height' => 2560, 'quality' => 97);
|
||||
|
||||
$editor['contentElements'] = array('subline', 'text', 'textimage');
|
||||
$editor['backendPrefix'] = PATH_PREFIX . '/' . str_replace(PATH_ROOT, '', dirname(__DIR__));
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
session_start();
|
||||
$_SESSION['lang'] = 'de';
|
||||
$_SESSION['userID'] = 1;
|
||||
$_SESSION['isLoggedIn'] = true;
|
||||
|
||||
$siteID = (!isset($_GET['siteID']) || empty($_GET['siteID'])) ? '1' : $_GET['siteID'];
|
||||
$pathRoot = dirname(dirname(__DIR__)) . '/';
|
||||
|
||||
@@ -7,5 +7,21 @@
|
||||
* @copyright CS medien- & kommunikationssysteme (http://www.steinle-computer.de)
|
||||
*/
|
||||
|
||||
if (!isset($_POST['token']) || !is_string($_POST['token']) || empty($_POST['token']))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
session_start($_POST['token']);
|
||||
if (!isset($_SESSION['userID']) || !is_numeric($_SESSION['userID']) || $_SESSION['userID'] < 1)
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
if (!isset($_SESSION['isLoggedIn']) || $_SESSION['isLoggedIn'] !== true)
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
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