aboutsummaryrefslogtreecommitdiff
path: root/constants.inc.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-04-18 09:57:32 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-04-18 09:57:32 +0000
commit74fb49098eb52b8f42110713caa3892572305cf3 (patch)
tree88c45fd70c571df74e26210c19a2ae3d4ce529d1 /constants.inc.php
parent09cbb64c829e8e4a413a90cb5a753c27b901a050 (diff)
downloadsemanticscuttle-74fb49098eb52b8f42110713caa3892572305cf3.tar.gz
semanticscuttle-74fb49098eb52b8f42110713caa3892572305cf3.tar.bz2
Bug fix: correct problem with mutual logins for several installations on the same host
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@114 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'constants.inc.php')
-rw-r--r--constants.inc.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/constants.inc.php b/constants.inc.php
new file mode 100644
index 0000000..e64db43
--- /dev/null
+++ b/constants.inc.php
@@ -0,0 +1,14 @@
+<?php
+
+// Error codes
+define('GENERAL_MESSAGE', 200);
+define('GENERAL_ERROR', 202);
+define('CRITICAL_MESSAGE', 203);
+define('CRITICAL_ERROR', 204);
+
+// Miscellanous
+
+# INSTALLATION_ID is based on directory path and used as prefix (in session and cookie) to prevent mutual login for different installations on the same host server
+define('INSTALLATION_ID', md5(dirname(realpath('.'))));
+
+?>