<?
## (c) Marek Laco 5/2002; mlaco@mlaco.sk; http://www.mlaco.sk/projekty/cdshop/
//triedy
include "class.db.php";
$db = new db(); //na vseobecne pouzitie
include "class.tituly.php";
include "class.stranka.php";
include "class.kosik.php";
include "class.objednavky.php";
//kategorie
$kategorie = Array(
1 => "mp3",
2 => "hry",
3 => "programy",
4 => "filmy"
);
//nocache headery
$now = gmdate('D, d M Y H:i:s') . ' GMT';
header('Expires: ' . $now);
header('Last-Modified: ' . $now);
header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1
header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1
header('Pragma: no-cache'); // HTTP/1.0
//vyuzivame sessions
session_start();
//nakopnutie kosika
if(!isSet($_SESSION['kosik']))
{
$kosik = new kosik();
$_SESSION['kosik'] = $kosik;
} else {
$kosik = $_SESSION['kosik'];
}
$status = isset($_SESSION['status']) ? $_SESSION['status'] : null;
?>