session_start(); require_once('/libs/connection.php'); $adres = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $controller = (isset($_GET['controller']) && $_GET['controller'] != '' ? $_GET['controller'] : "kategoria"); $action = (isset($_GET['action']) && $_GET['action'] != '' ? $_GET['action'] : "indeks"); $id = (isset($_GET['id']) && $_GET['id'] != '' ? $_GET['id'] : 0); if($controller != "punkt") $_SESSION['kategoria'] = $id; else $_SESSION['punkt'] = $id; ?>