<?php
@session_start();
$shopConfig = require(__DIR__.'/config.php');
$comConfig = require($shopConfig['SELF_ROOT'].'../../mvc/common.config.php');
$sysConfig = require($shopConfig['SELF_ROOT'].'../system/config.php');
$config = array_merge($comConfig, $sysConfig, $shopConfig);

$config['SYS_DOMAIN'] =  $config['HOST']['dshop'];
$config['SYS_URL'] =  $config['HOST']['dshop'].$config['SYS_URL'];
$config['SELF_URL'] =  $config['HOST']['dshop'].$config['SHOPID'].'/';
$config['SELF_URI'] =  $config['HOST']['dshop'].$config['SHOPID'].'/'.'index.php/';
require_once($config['ROOT_MVC'].'mvc.php');
mvc::execute($config);