Beispiel #1
0
 function getFeature($key, $fname)
 {
     $arrFeature = LogiksConfig::loadFeature($fname);
     if (isset($arrFeature[$key])) {
         return $arrFeature[$key];
     }
     return "";
 }
Beispiel #2
0
if ($isDebug) {
    ini_set('display_errors', 1);
    error_reporting(1);
    define("MASTER_DEBUG_MODE", true);
} else {
    ini_set('display_errors', 0);
    error_reporting(0);
}
include_once ROOT . "config/classpath.php";
include_once ROOT . "api/bootlogiks.php";
logiksRequestPreboot();
include_once SERVICE_ROOT . "ServiceAuthEngine.inc";
include_once SERVICE_ROOT . "api.php";
include_once ROOT . "api/configurator.php";
loadConfigs([ROOT . "config/basic.cfg", ROOT . "config/php.cfg", ROOT . "config/system.cfg", ROOT . "config/developer.cfg", ROOT . "config/services.cfg", ROOT . "config/errorlog.cfg", ROOT . "config/security.cfg", ROOT . "config/others.cfg", ROOT . "config/xtras.cfg", ROOT . "config/folders.cfg"]);
LogiksConfig::fixPHPINIConfigs();
define('SiteLocation', 'http' . (_server('HTTPS') ? 's' : '') . '://' . "{_server('HTTP_HOST')}/" . InstallFolder);
require_once ROOT . "api/libs/errorLogs/boot.php";
logiksServiceBoot();
header("X-Powered-By: Logiks [http://openlogiks.org]", false);
header("SESSION-KEY:" . session_id(), false);
header("Access-Control-Allow-Origin:*");
//Origin
//Access-Control-Allow-Methods:OPTIONS,GET,POST,PUT,DELETE
//Access-Control-Allow-Headers:Content-Type, Authorization, X-Requested-With
//header("Access-Control-Allow-Headers", "access-control-allow-origin, accept, access-control-allow-methods, access-control-allow-headers, x-random-shit");
//header("X-Powered-By: ".Framework_Title." [".Framework_Site."]",false);
//print_r($GLOBALS['LOGIKS']["_SERVER"]);exit();
include_once ROOT . "api/libs/logiksCache/boot.php";
include_once ROOT . "api/libs/loaders/boot.php";
include_once ROOT . "api/system.php";
Beispiel #3
0
 function fetchLogiksAppInfo($appName = SITENAME)
 {
     $cfgPath = ROOT . APPS_FOLDER . $appName . "/apps.cfg";
     if (file_exists($cfgPath)) {
         return LogiksConfig::parseConfigFile($cfgPath);
     }
     return false;
 }