ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/includes/init_includes/init_category_path.php
Go to the documentation of this file.
00001 <?php
00009 if (!defined('IS_ADMIN_FLAG')) {
00010   die('Illegal Access');
00011 }
00012 // calculate category path
00013   if (isset($_GET['cPath'])) {
00014     $cPath = $_GET['cPath'];
00015   } else {
00016     $cPath = '';
00017   }
00018 
00019   if (zen_not_null($cPath)) {
00020     $cPath_array = zen_parse_category_path($cPath);
00021     $cPath = implode('_', $cPath_array);
00022     $current_category_id = $cPath_array[(sizeof($cPath_array)-1)];
00023   } else {
00024     $current_category_id = 0;
00025   }
00026 
00027 // default open navigation box
00028   if (!isset($_SESSION['selected_box'])) {
00029     $_SESSION['selected_box'] = 'configuration';
00030   }
00031 
00032   if (isset($_GET['selected_box'])) {
00033     $_SESSION['selected_box'] = $_GET['selected_box'];
00034   }
 All Data Structures Namespaces Files Functions Variables Enumerations