Browse Source

Merge branch 'master' of https://github.com/ctrlcctrlv/Tinyboard

pull/40/head
ctrlcctrlv 11 years ago
parent
commit
515e3f99f0
  1. 3
      inc/config.php
  2. 2
      inc/mod/auth.php

3
inc/config.php

@ -154,6 +154,9 @@
// Make this something long and random for security.
$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).
$config['secure_trip_salt'] = ')(*&^%$#@!98765432190zyxwvutsrqponmlkjihgfedcba';

2
inc/mod/auth.php

@ -72,7 +72,7 @@ function setCookies() {
$mod['hash'][0] . // password
':' .
$mod['hash'][1], // salt
time() + $config['cookies']['expire'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, false, true);
time() + $config['cookies']['expire'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, false, $config['cookies']['httponly']);
}
function destroyCookies() {

Loading…
Cancel
Save