define("PREFIX","osmin_"); $prefX="osmin_"; require "functions.php"; set_connection(); require_once "auth.module.php"; if(!isset($_SESSION['bag'])) $_SESSION['bag']=array(); if(isset($_POST['amount'])) { if(sizeof($_POST['amount'])>0) foreach($_POST['amount'] as $k=>$v) { if(ctype_digit($v)&&$v>0) { $_SESSION['bag'][$k]=$v; } } } if(isset($page) && $page=="cart" && isset($delitem)) { unset($_SESSION['bag']["$delitem"]); header("Location: index.php?page=cart"); } if(isset($page) && $page=="cart" && isset($clearall)) { $_SESSION['bag']=array(); header("Location: index.php?page=cart"); } include "title.php"; ?>