Basdorf-Wandlitz-Zühlsdorf
Niederbarnim
Groß-Schönebeck / Zerpenschleuse
<?php
// Geben Sie hier Ihre Veranstalter-ID von www.ekbo-termine.de ein:
$vid = "559";
// Dekanatsausgabe 3-stellige Dekanatsnummer
// Für die Dekanatsausgabe setzen Sie bitte $vid auf 'all'
$region = 'all';
// Wie viele Veranstaltungen sollen angezeigt werden?
$itemsPerPage = "500";
// Nur Highlights (high) anzeigen oder alles (all)
$highlight = "all";
// Nur bestimmte Kategorie oder alles (all)
$eventtype = "all";
// Nur bestimmte Zielgruppe oder alles (all)
$people = "all";
// Ort
$place = 'all';
// Ansprechpartner
$person = 'all';
// Suchwort
$q = '';
// Breite (1) oder schmale (2) Ausgabe
$tpl = 1;
// Kanal:
$cha = 'all';
// Veranstaltungen über mehrere Tage werden bis zu Enddatum angezeigt yes|no
$until = 'yes';
// Encoding latin1 oder utf8
// Geben Sie die Zeichencodierung Ihrer Website an
$encoding = 'utf8';
// Designanpssung: Geben Sie hier den vollständigen Pfad auf eine eigene CSS-Datei an
// oder 'none' um alle CSS-Angaben zu entfernen
// z.B: $css = 'none';
$css = '';
// --------- Unterhalb nichts aendern! ---------------- //
$queryString = 'vid=' . $vid . '&'.'region=' . $region. '&itemsPerPage=' . $itemsPerPage . '&highlight=' . $highlight
. '&eventtype=' . $eventtype . '&people=' . $people . '&place=' . $place . '&person=' . $person
. '&q=' . $q . '&tpl=' . $tpl . '&cha=' . $cha . '&until=' . $until . '&encoding='. $encoding . '&css=' . $css;
$url = "https://www.ekbo-termine.de/teaser?" . $queryString;
if(function_exists('curl_init')){
$sobl = curl_init($url);
curl_setopt($sobl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($sobl, CURLOPT_USERAGENT, 'TeaserScript');
curl_setopt($sobl, CURLOPT_REFERER, $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']);
curl_setopt($sobl, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($sobl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
$pageContent = curl_exec ($sobl);
$sobl_info = curl_getinfo ( $sobl);
if($sobl_info['http_code'] == '200'){
$teaser = $pageContent;
} else {
$teaser = "Der Terminkalender ist derzeit nicht erreichbar.";
}
} else {
$teaser = "Das benötigte PHP-Modul curl ist nicht installiert.";
}
?