Better setting name
This commit is contained in:
parent
47dec49465
commit
9773416553
@ -154,6 +154,9 @@
|
|||||||
// Make this something long and random for security.
|
// Make this something long and random for security.
|
||||||
$config['cookies']['salt'] = 'abcdefghijklmnopqrstuvwxyz09123456789!@#$%^&*()';
|
$config['cookies']['salt'] = 'abcdefghijklmnopqrstuvwxyz09123456789!@#$%^&*()';
|
||||||
|
|
||||||
|
// Whether or not you can access the mod cookie in JavaScript. Most users should not need to change this.
|
||||||
|
$config['cookies']['httponly'] = true;
|
||||||
|
|
||||||
// Used to salt secure tripcodes ("##trip") and poster IDs (if enabled).
|
// Used to salt secure tripcodes ("##trip") and poster IDs (if enabled).
|
||||||
$config['secure_trip_salt'] = ')(*&^%$#@!98765432190zyxwvutsrqponmlkjihgfedcba';
|
$config['secure_trip_salt'] = ')(*&^%$#@!98765432190zyxwvutsrqponmlkjihgfedcba';
|
||||||
|
|
||||||
@ -1070,9 +1073,6 @@
|
|||||||
// Replace ?/config with a simple text editor for editing inc/instance-config.php.
|
// Replace ?/config with a simple text editor for editing inc/instance-config.php.
|
||||||
$config['mod']['config_editor_php'] = false;
|
$config['mod']['config_editor_php'] = false;
|
||||||
|
|
||||||
// Whether or not you can access the mod cookie in JavaScript. Most users should not need to change this.
|
|
||||||
$config['mod']['cookie_httponly'] = true;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ====================
|
* ====================
|
||||||
* Mod permissions
|
* Mod permissions
|
||||||
|
@ -72,7 +72,7 @@ function setCookies() {
|
|||||||
$mod['hash'][0] . // password
|
$mod['hash'][0] . // password
|
||||||
':' .
|
':' .
|
||||||
$mod['hash'][1], // salt
|
$mod['hash'][1], // salt
|
||||||
time() + $config['cookies']['expire'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, false, $config['mod']['cookie_httponly']);
|
time() + $config['cookies']['expire'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, false, $config['cookies']['httponly']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function destroyCookies() {
|
function destroyCookies() {
|
||||||
|
Loading…
Reference in New Issue
Block a user