} //*** Check if the category is a top level product id. if ($productKey = array_search($intCatId, $_CONF['app']['msMypunch']['product'])) { foreach ($_CONF['app']['ms' . ucfirst($productKey)] as $key => $value) { if ($objLiveUser->checkRight($_CONF['app']['navRights'][$value]) == true) { $intCatId = $value; break; } } } //*** Handle data manipulation request. switch ($strCommand) { case CMD_SORT: switch ($intCatId) { case NAV_PCMS_ELEMENTS: Elements::sortChildren($intElmntId); $strCommand = CMD_LIST; break; case NAV_PCMS_TEMPLATES: Templates::sortChildren($intElmntId); $strCommand = CMD_LIST; break; case NAV_PCMS_LANGUAGES: ContentLanguage::sort($intElmntId); $strCommand = CMD_LIST; break; case NAV_PCMS_STORAGE: StorageItems::sortChildren($intElmntId); $strCommand = CMD_LIST; break; }