<?php
require_once('konfigurace.inc.php');
require_once('pamet.inc.php');
$Pamet = new Pamet(RUKOJET, VELIKOST);
require_once('banery.inc.php');
$Banery = new Banery($Pamet->Cti(PAMET_BANERY));
if (isset($_POST['idBaneru']))
$Baner = $Banery->Cti($_POST['idBaneru']);
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
$Vystup = array(
'urlObrazek1' => URL.CAST_URL_OBRAZKY.$Baner['Obrazky'][0],
'urlObrazek2' => URL.CAST_URL_OBRAZKY.$Baner['Obrazky'][1],
'urlObrazek3' => URL.CAST_URL_OBRAZKY.$Baner['Obrazky'][2],
'urlObrazek4' => URL.CAST_URL_OBRAZKY.$Baner['Obrazky'][3],
'urlObrazek5' => URL.CAST_URL_OBRAZKY.$Baner['Obrazky'][4],
'nadpis' => $Baner['Nadpis'],
'popisek' => $Baner['Text'],
'odchoziUrl' => $Baner['Url']
);
print(http_build_query($Vystup));
?>