public function initialize() { $LICENSE_KEY = ''; if (file_exists($filename = Application::getDocumentRoot() . "/freetrix/license_key.php")) { include $filename; } if (empty($LICENSE_KEY)) { $LICENSE_KEY = 'DEMO'; } $this->licenseKey = $LICENSE_KEY; /*dispatchermutatormark2*/ //Do not remove this $this->isInitialized = true; }
public static function getPersonal($path) { /*$context = Application::getInstance()->getContext(); if ($context == null) throw new SystemException("Context is not initialized"); $server = $context->getServer(); if ($server == null) throw new SystemException("Server is not initialized"); $root = $server->getDocumentRoot(); $personal = $server->get("BX_PERSONAL_ROOT"); */ $root = Application::getDocumentRoot(); $personal = isset($_SERVER["BX_PERSONAL_ROOT"]) ? $_SERVER["BX_PERSONAL_ROOT"] : ""; if (!empty($personal) && file_exists($root . $personal . "/" . $path)) { return $root . $personal . "/" . $path; } return self::getLocal($path, $root); }
public static function getPersonal($path) { $root = Application::getDocumentRoot(); $personal = isset($_SERVER["BX_PERSONAL_ROOT"]) ? $_SERVER["BX_PERSONAL_ROOT"] : ""; if (!empty($personal) && file_exists($root . $personal . "/" . $path)) { return $root . $personal . "/" . $path; } return self::getLocal($path, $root); }