this setting is used before the database is connected to...
This commit is contained in:
parent
07178e0c4d
commit
1d46dbbe18
2 changed files with 2 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
|
Reference in a new issue