DIR : /home/kozerus/public_html/zc/adam/includes/init_includes/init_category_path.php
/home/kozerus/public_html/zc/adam/includes/init_includes
<?php
/**
* @package admin
* @copyright Copyright 2003-2019 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: DrByte 2019 Jan 04 Modified in v1.5.6a $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
// calculate category path
if (isset($_POST['cPath'])) {
$cPath = $_POST['cPath'];
} elseif (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 {
$cPath_array = array();
$current_category_id = 0;
}
// default open navigation box
if (!isset($_SESSION['selected_box'])) {
$_SESSION['selected_box'] = 'configuration';
}
if (isset($_GET['selected_box'])) {
$_SESSION['selected_box'] = $_GET['selected_box'];
}
//