<?php /** * [BEGIN_COT_EXT] * Hooks=global * [END_COT_EXT] */ /** * market module * * @package market * @version 2.5.2 * @author CMSWorks Team * @copyright Copyright (c) CMSWorks.ru, littledev.ru * @license BSD */ defined('COT_CODE') or die('Wrong URL.'); require_once cot_incfile('market', 'module'); require_once cot_incfile('payments', 'module'); $marketfirstcats = array(); foreach($structure['market'] as $code => $cat) { if(mb_substr_count($cat['rpath'], ".") == 0) { $marketfirstcats[$code] = $cat; } }