<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

if (!defined('BASEDIR')) {
  include_once '..' . DIRECTORY_SEPARATOR . 'classes' . DIRECTORY_SEPARATOR . 'constants.php';
}


CodingOperations::encodeEingaben();
CodingOperations::setObStartIfInternalAndExternalEncodingAreDiffrent();

SecurityOperations::PurgeInput();

if (RequestOperations::getVarValue('type', 0) === 'json') {
  header('Content-Type: application/json');
  $sight = new DataMenuKursHighlightsSeparat(new URLParameterHighlights());
  echo $sight->getContent();
} else {
  $sight = new DataMenuKursHighlights(new URLParameterHighlights());
  echo $sight->getContent();
}

CodingOperations::encodeAnzeige();