mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-26 08:20:58 +01:00
Merge ../test
This commit is contained in:
commit
d677ff69f3
@ -69,13 +69,13 @@ 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, $_SERVER['HTTPS'], $config['cookies']['httponly']);
|
time() + $config['cookies']['expire'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'], $config['cookies']['httponly']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function destroyCookies() {
|
function destroyCookies() {
|
||||||
global $config;
|
global $config;
|
||||||
// Delete the cookies
|
// Delete the cookies
|
||||||
setcookie($config['cookies']['mod'], 'deleted', time() - $config['cookies']['expire'], $config['cookies']['jail']?$config['cookies']['path'] : '/', null, $_SERVER['HTTPS'], true);
|
setcookie($config['cookies']['mod'], 'deleted', time() - $config['cookies']['expire'], $config['cookies']['jail']?$config['cookies']['path'] : '/', null, isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function modLog($action, $_board=null) {
|
function modLog($action, $_board=null) {
|
||||||
|
@ -160,7 +160,7 @@ function mod_dashboard() {
|
|||||||
$latest = false;
|
$latest = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
setcookie('update', serialize($latest), time() + $config['check_updates_time'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']), true);
|
setcookie('update', serialize($latest), time() + $config['check_updates_time'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($latest)
|
if ($latest)
|
||||||
|
Loading…
Reference in New Issue
Block a user