init_category_path.php

来自「Zen Cart是一款最新的购物车软件」· PHP 代码 · 共 35 行

PHP
35
字号
<?php/** * @package admin * @copyright Copyright 2003-2006 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_category_path.php 3001 2006-02-09 21:45:06Z wilt $ */if (!defined('IS_ADMIN_FLAG')) {  die('Illegal Access');}// calculate category path  if (isset($_GET['cPath'])) {    $cPath = $_GET['cPath'];  } else {    $cPath = '';  }  if (zen_not_null($cPath)) {    $cPath_array = zen_parse_category_path($cPath);    $cPath = implode('_', $cPath_array);    $current_category_id = $cPath_array[(sizeof($cPath_array)-1)];  } else {    $current_category_id = 0;  }// default open navigation box  if (!$_SESSION['selected_box']) {    $_SESSION['selected_box'] = 'configuration';  }  if (isset($_GET['selected_box'])) {    $_SESSION['selected_box'] = $_GET['selected_box'];  }?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?