0){ $shop_id = $_GET['shop_id']; } else { $shop_id = current_shop_by_ip(); if (isset($shop_id)) { //$shop_id stays the same } else { $gotopage = PAGE_START_SHOP . "?error=no_shop"; header(sprintf("Location: %s",$gotopage )); } } if($_GET['visit_id']>0){ $visit_id = $_GET['visit_id']; } else { $visit_id =-1; } if($_GET['new_user_id']>0){ $new_user_id = $_GET['new_user_id']; } else { $new_user_id = -1; } ?>