[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].'); try { if (!isset ($corePath) || !file_exists ($corePath)) throw new Exception ('Titan Core path on [titan.xml] is invalid!'); require_once $corePath .'function/general.php'; require_once $corePath .'function/legacy.php'; require_once $corePath .'class/Xml.php'; require_once $corePath .'class/Instance.php'; require_once $corePath .'extra/Browscap.php'; if (!@set_include_path ($corePath .'extra')) toLog ('Impossible to set include path. This cause Zend Framework load fail!'); include_once 'Zend/Search/Lucene.php'; include_once 'Zend/Search/Lucene/Exception.php'; include_once 'Zend/Uri/Http.php'; include_once 'Zend/Http/CookieJar.php'; include_once 'Zend/Http/Client/Adapter/Socket.php'; include_once 'Zend/Service/Twitter.php'; $blockAccess = array (Instance::singleton ()->getDocPath (), Archive::singleton ()->getDataPath ()); foreach ($blockAccess as $trash => $path) if (!file_exists ($path .'.htaccess') && is_writable ($path)) if (!@copy (Instance::singleton ()->getCorePath () .'extra/access/.htaccess', $path .'.htaccess')) toLog ('Impossible to copy ['. Instance::singleton ()->getCorePath () .'extra/.htaccess] to ['. $path .']'); $instance = Instance::singleton (); require_once $instance->getCorePath () .'class/AjaxLogon.php'; session_name ($instance->getSession ()); session_start (); $skin = Skin::singleton (); if (!Social::isActive ()) die ('Integration with social networks is note enable! Please, contact administrator.'); if (isset ($_GET['error']) && $_GET['error'] == 'access_denied') $_GET['error'] = __ ('Apparently you deny this application to access your profile data. Without granting this permission is not possible to authenticate!'); $socialButtons = array (); while ($driver = Social::singleton ()->getSocialNetwork ()) { if ($driver->authenticate ()) try { if ($driver->login ()) { ?> getMessage (); } catch (PDOException $e) { $_GET ['error'] .= $e->getMessage (); } $socialButtons [$driver->getName ()] = array ($driver->getLoginUrl (), 'titan.php?target=loadFile&file=repos/social/'. $driver->getName () .'/_resource/button.png'); } ?> <?= $instance->getName () ?>

$array) echo '' ?>
getMobile (); if (isset ($mobileButtons ['android'])) echo '' ?>
Embrapa Gado de Corte Universidade Federal de Mato Grosso do Sul Olimpo Tecnologia
getMessage (); } catch (Exception $e) { header ('HTTP/1.1 500 Internal Server Error'); echo $e->getMessage (); } ?>