session_start(); include('config.php'); include('functions.php'); if($xml = simplexml_load_file('http://api.napiarfolyam.hu/?valuta=eur&bank=cib')){ $eur = objectsIntoArray($xml); $_SESSION['eur'] = $eur['valuta']['item']['eladas']; } if($_GET['task'] == 'kosar_torles'){ unset($_SESSION['kosar_tomb']); unset($_SESSION['rend_szamlalo']); unset($_SESSION['sum_price']); unset($_SESSION['sum_db']); unset($_SESSION['sum_db_posta']); session_destroy(); header('Location:index.php'); } ?>