[configure/titan.xml] não encontrado.'); $xml = file_get_contents ($file); $regTag = '/(.*?)<\/core-path>/s'; preg_match_all ($regTag, $xml, $match); if (!isset ($match [1][0])) { $regTag = '/core-path="(.*?)"/s'; preg_match_all ($regTag, $xml, $match); if (!isset ($match [1][0])) die ('A diretiva <core-path></core-path> deve estar devidamente setada no arquivo de configuração [configure/titan.xml].'); } $corePath = $match [1][0]; if (!file_exists ($corePath .'switch.php')) die ('O core do Titan não foi localizado no caminho especificado em <core-path>'. $corePath .'</core-path> no arquivo de configuração [configure/titan.xml].'); require $corePath .'switch.php';