public static function LoadCoreLibs() { if (!self::$isLoaded) { $root = __DIR__; while ($root !== '/' && !file_exists($root . DS . 'configuration.php')) { //recurse back to site root. $root = dirname($root); } //check for geolive core include. $core = $root . DS . 'administrator' . DS . 'components' . DS . 'com_geolive' . DS . 'core.php'; if (!file_exists($core)) { throw new Exception('Unable to load Geolive Framework'); } include_once $core; Core::Parameters()->disableCaching(); Core::Parameters()->disableCompression(); Core::LoadPlugin('Attributes'); Core::LoadPlugin('Maps'); self::$isLoaded = true; } $file = dirname(__DIR__) . DS . 'siteSearch.php'; $map = dirname(__DIR__) . DS . 'paddlingAreas.php'; if (key_exists('TERM', $_SERVER)) { self::$isTerm = true; if (isset($argv) && (realpath($argv[0]) === $file || realpath($argv[0]) === $map)) { self::$isDirect = true; } } else { self::$isUrl = true; if (Core::HTML()->getScriptName() == basename($file) || Core::HTML()->getScriptName() == basename($map)) { self::$isDirect = true; } } // Core::HTML()->setThrowsResouceInclusionError('Document header has already been printed'); }