init_cart_handler.php
来自「Easy_Buy是一个在线销售系统」· PHP 代码 · 共 38 行
PHP
38 行
<?php
/**
* initialise and handle cart actions
* see {@link http://www.zen-cart.com/wiki/index.php/Developers_API_Tutorials#InitSystem wikitutorials} for more details.
*
* @package initSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: init_cart_handler.php 2753 2005-12-31 19:17:17Z wilt $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
if (isset($_GET['action'])) {
/**
* redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled
*/
if ($session_started == false) {
zen_redirect(zen_href_link(FILENAME_COOKIE_USAGE));
}
if (DISPLAY_CART == 'true') {
$goto = FILENAME_SHOPPING_CART;
$parameters = array('action', 'cPath', 'products_id', 'pid', 'main_page');
} else {
$goto = $_GET['main_page'];
if ($_GET['action'] == 'buy_now') {
$parameters = array('action');
} else {
$parameters = array('action', 'pid', 'main_page');
}
}
/**
* require file containing code to handle default cart actions
*/
require(DIR_WS_INCLUDES . 'main_cart_actions.php');
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?