浏览代码

Add files via upload

Daniele Bonini (皮夕): WebDev, DevOps and homomm.org by lots of Simplicity bits 3 年之前
父节点
当前提交
a003c2102c
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Private/core/init.inc

+ 5 - 0
Private/core/init.inc

@@ -33,6 +33,11 @@ ini_set('log_errors',1);
 
 require dirname(__DIR__) . DIRECTORY_SEPARATOR . "config" . DIRECTORY_SEPARATOR . "config.inc";
 
+// Checking Default Context
+if (APP_DEFAULT_CONTEXT != "PRIVATE" && APP_DEFAULT_CONTEXT != "PUBLIC") {
+  die("Invalid DEFAULT_CONTEXT: " . APP_DEFAULT_CONTEXT);
+}	
+
 // Checking a little the configuration..
 if (!file_exists(APP_REPO_PATH)) {
   die("Repository folder doesn't exist. You must create the repository folder in your web app public path and configure it properly inside the config file.");