[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * initialise and handle cart actions 4 * see {@link http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details. 5 * 6 * @package initSystem 7 * @copyright Copyright 2003-2005 Zen Cart Development Team 8 * @copyright Portions Copyright 2003 osCommerce 9 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 10 * @version $Id: init_cart_handler.php 4528 2006-09-16 01:12:14Z ajeh $ 11 */ 12 if (!defined('IS_ADMIN_FLAG')) { 13 die('Illegal Access'); 14 } 15 if (isset($_GET['action'])) { 16 /** 17 * redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled 18 */ 19 if ($session_started == false) { 20 zen_redirect(zen_href_link(FILENAME_COOKIE_USAGE)); 21 } 22 if (DISPLAY_CART == 'true') { 23 $goto = FILENAME_SHOPPING_CART; 24 $parameters = array('action', 'cPath', 'products_id', 'pid', 'main_page'); 25 } else { 26 $goto = $_GET['main_page']; 27 if ($_GET['action'] == 'buy_now') { 28 $parameters = array('action', 'products_id'); 29 } else { 30 $parameters = array('action', 'pid', 'main_page'); 31 } 32 } 33 /** 34 * require file containing code to handle default cart actions 35 */ 36 require(DIR_WS_INCLUDES . 'main_cart_actions.php'); 37 } 38 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |