this setting is used before the database is connected to...
This commit is contained in:
parent
07178e0c4d
commit
1d46dbbe18
@ -325,7 +325,7 @@ function get_session_ip($config) {
|
|||||||
*/
|
*/
|
||||||
function get_prefixed_cookie($name) {
|
function get_prefixed_cookie($name) {
|
||||||
global $config;
|
global $config;
|
||||||
$full_name = $config->get_string('cookie_prefix','shm')."_".$name;
|
$full_name = COOKIE_PREFIX."_".$name;
|
||||||
if(isset($_COOKIE[$full_name])) {
|
if(isset($_COOKIE[$full_name])) {
|
||||||
return $_COOKIE[$full_name];
|
return $_COOKIE[$full_name];
|
||||||
}
|
}
|
||||||
|
@ -57,6 +57,7 @@ define("CACHE_MEMCACHE", false);
|
|||||||
define("CACHE_DIR", false);
|
define("CACHE_DIR", false);
|
||||||
define("SCORE_VERSION", 's2hack');
|
define("SCORE_VERSION", 's2hack');
|
||||||
define("VERSION", 'trunk');
|
define("VERSION", 'trunk');
|
||||||
|
define("COOKIE_PREFIX", 'shm');
|
||||||
|
|
||||||
if(!file_exists("config.php")) {
|
if(!file_exists("config.php")) {
|
||||||
header("Location: install.php");
|
header("Location: install.php");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user