Merge 4.5
Conflicts: js/expand-too-long.js
This commit is contained in:
commit
c2cbbe7e22
@ -69,13 +69,13 @@ function setCookies() {
|
||||
$mod['hash'][0] . // password
|
||||
':' .
|
||||
$mod['hash'][1], // salt
|
||||
time() + $config['cookies']['expire'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, false, $config['cookies']['httponly']);
|
||||
time() + $config['cookies']['expire'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, $_SERVER['HTTPS'], $config['cookies']['httponly']);
|
||||
}
|
||||
|
||||
function destroyCookies() {
|
||||
global $config;
|
||||
// Delete the cookies
|
||||
setcookie($config['cookies']['mod'], 'deleted', time() - $config['cookies']['expire'], $config['cookies']['jail']?$config['cookies']['path'] : '/', null, false, true);
|
||||
setcookie($config['cookies']['mod'], 'deleted', time() - $config['cookies']['expire'], $config['cookies']['jail']?$config['cookies']['path'] : '/', null, $_SERVER['HTTPS'], true);
|
||||
}
|
||||
|
||||
function modLog($action, $_board=null) {
|
||||
|
@ -150,7 +150,7 @@ function mod_dashboard() {
|
||||
$latest = false;
|
||||
}
|
||||
|
||||
setcookie('update', serialize($latest), time() + $config['check_updates_time'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, false, true);
|
||||
setcookie('update', serialize($latest), time() + $config['check_updates_time'], $config['cookies']['jail'] ? $config['cookies']['path'] : '/', null, $_SERVER['HTTPS'], true);
|
||||
}
|
||||
|
||||
if ($latest)
|
||||
|
@ -23,7 +23,7 @@ $(function() {
|
||||
url: url,
|
||||
context: document.body,
|
||||
success: function(data) {
|
||||
var content = $(data).find('#'+url.split('#')[1]).next().next().html();
|
||||
var content = $(data).find('#'+url.split('#')[1]).parent().find(".body").html();
|
||||
|
||||
body.html(content);
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>{{ settings.title }}</title>
|
||||
<link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}"/>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user