<?php
if ( file_exists("../".$cms_root_path."core/includes/header.inc.php") ) {
    $path = "../".$cms_root_path;
    $core_root_path = $path."core/";
    if ( !isset($_mtcAPP) ) {
        $_mtcAPP = array();
    }
    $_mtcAPP['system'] = "core";
    $_mtcAPP['core'] =  true;
    require_once($path."core/includes/header.inc.php");
} else {
    $path = $cms_root_path;
    $core_root_path = $path;
    if ( !isset($_mtcAPP) ) {
        $_mtcAPP = array();
    }
    $_mtcAPP['system'] = "cms2";
    $_mtcAPP['core'] =  false;
    require_once("header.inc.php");
}