*** empty log message ***
diff --git a/html/global.php b/html/global.php
index c6cd93c..fcd4a96 100644
--- a/html/global.php
+++ b/html/global.php
@@ -42,6 +42,18 @@
 require(BABEL_BASE_DIR . "classes/system/event_log.class.php");
 require_once(BABEL_BASE_DIR . "classes/system/user.class.php");
 
+# get context
+if (!($ini = @parse_ini_file(BABEL_BASE_DIR . 'classes/base.conf'))) {
+	errorLog("Failed to find/read database conf file - aborting.");
+	exitTo("error.php?errNo=101300","error: 101300 - database conf can not be found");
+}
+  
+$context = $ini['context'];
+if($context == "") {
+	$context = "staging";
+}
+global $context;
+
 session_name(COOKIE_SESSION);
 session_start();
 extract($_SESSION);