From 1d46dbbe18d16e0cae54769fa81febaa466b78b4 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 26 Oct 2009 11:39:53 +0000 Subject: [PATCH] this setting is used before the database is connected to... --- core/util.inc.php | 2 +- index.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/util.inc.php b/core/util.inc.php index 212a194d..0dacde1d 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -325,7 +325,7 @@ function get_session_ip($config) { */ function get_prefixed_cookie($name) { global $config; - $full_name = $config->get_string('cookie_prefix','shm')."_".$name; + $full_name = COOKIE_PREFIX."_".$name; if(isset($_COOKIE[$full_name])) { return $_COOKIE[$full_name]; } diff --git a/index.php b/index.php index c13cb243..c103af8d 100644 --- a/index.php +++ b/index.php @@ -57,6 +57,7 @@ define("CACHE_MEMCACHE", false); define("CACHE_DIR", false); define("SCORE_VERSION", 's2hack'); define("VERSION", 'trunk'); +define("COOKIE_PREFIX", 'shm'); if(!file_exists("config.php")) { header("Location: install.php");