<?php
/*
  $Id: $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2007 osCommerce

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/

  class osC_Actions_cart_remove {
    function execute() {
      global $osC_Session, $osC_ShoppingCart;

      if ( is_numeric($_GET['item']) ) {
        $osC_ShoppingCart->remove($_GET['item']);
      }

      osc_redirect(osc_href_link(FILENAME_CHECKOUT));
    }
  }
?>
