Add new variable to make serendipity be deaf, mute and blind. Have fun, absynth :)
This commit is contained in:
@ -804,16 +804,16 @@ function serendipity_getSessionLanguage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($serendipity['COOKIE']['serendipityLanguage'])) {
|
if (isset($serendipity['COOKIE']['serendipityLanguage'])) {
|
||||||
serendipity_header('X-Serendipity-InterfaceLangSource: Cookie');
|
if ($serendipity['expose_s9y']) serendipity_header('X-Serendipity-InterfaceLangSource: Cookie');
|
||||||
$lang = $serendipity['COOKIE']['serendipityLanguage'];
|
$lang = $serendipity['COOKIE']['serendipityLanguage'];
|
||||||
} elseif (!empty($serendipity['languages'][$serendipity['GET']['lang_selected']])) {
|
} elseif (!empty($serendipity['languages'][$serendipity['GET']['lang_selected']])) {
|
||||||
serendipity_header('X-Serendipity-InterfaceLangSource: GET');
|
if ($serendipity['expose_s9y']) serendipity_header('X-Serendipity-InterfaceLangSource: GET');
|
||||||
$lang = $serendipity['GET']['lang_selected'];
|
$lang = $serendipity['GET']['lang_selected'];
|
||||||
} elseif (serendipity_db_bool($serendipity['lang_content_negotiation'])) {
|
} elseif (serendipity_db_bool($serendipity['lang_content_negotiation'])) {
|
||||||
serendipity_header('X-Serendipity-InterfaceLangSource: Content-Negotiation');
|
if ($serendipity['expose_s9y']) serendipity_header('X-Serendipity-InterfaceLangSource: Content-Negotiation');
|
||||||
$lang = serendipity_detectLang();
|
$lang = serendipity_detectLang();
|
||||||
} elseif ($_SESSION['serendipityAuthedUser']) {
|
} elseif ($_SESSION['serendipityAuthedUser']) {
|
||||||
serendipity_header('X-Serendipity-InterfaceLangSource: Database');
|
if ($serendipity['expose_s9y']) serendipity_header('X-Serendipity-InterfaceLangSource: Database');
|
||||||
$lang = $serendipity['lang'];
|
$lang = $serendipity['lang'];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -821,7 +821,7 @@ function serendipity_getSessionLanguage() {
|
|||||||
$lang = $serendipity['lang'];
|
$lang = $serendipity['lang'];
|
||||||
}
|
}
|
||||||
|
|
||||||
serendipity_header('X-Serendipity-InterfaceLang: ' . $lang);
|
if ($serendipity['expose_s9y']) serendipity_header('X-Serendipity-InterfaceLang: ' . $lang);
|
||||||
|
|
||||||
if ($lang != $serendipity['lang']) {
|
if ($lang != $serendipity['lang']) {
|
||||||
$serendipity['content_lang'] = $lang;
|
$serendipity['content_lang'] = $lang;
|
||||||
|
@ -17,7 +17,10 @@ if ($global_debug) {
|
|||||||
// We need to set this to return a 200 since we use .htaccess ErrorDocument
|
// We need to set this to return a 200 since we use .htaccess ErrorDocument
|
||||||
// rules to handle archives.
|
// rules to handle archives.
|
||||||
header('HTTP/1.0 200');
|
header('HTTP/1.0 200');
|
||||||
header('X-Blog: Serendipity'); // Used for installer detection
|
|
||||||
|
if ($serendipity['expose_s9y']) {
|
||||||
|
header('X-Blog: Serendipity'); // Used for installer detection
|
||||||
|
}
|
||||||
|
|
||||||
// Session are needed to also remember an autologin user on the frontend
|
// Session are needed to also remember an autologin user on the frontend
|
||||||
ob_start();
|
ob_start();
|
||||||
@ -30,7 +33,7 @@ if ($serendipity['CacheControl']) {
|
|||||||
header('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
|
header('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
|
||||||
}
|
}
|
||||||
header('Expires: 0');
|
header('Expires: 0');
|
||||||
header('Pragma: no-cache');
|
header('Pragma: no-cache');
|
||||||
}
|
}
|
||||||
$track_referer = true;
|
$track_referer = true;
|
||||||
$uri = $_SERVER['REQUEST_URI'];
|
$uri = $_SERVER['REQUEST_URI'];
|
||||||
@ -505,7 +508,7 @@ if (preg_match(PAT_ARCHIVES, $uri, $matches) || isset($serendipity['GET']['range
|
|||||||
if ($date < 1) {
|
if ($date < 1) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($m[1] == 'f' || $m[1] == 'from') {
|
if ($m[1] == 'f' || $m[1] == 'from') {
|
||||||
$serendipity['GET']['commentStartTime'] = $date;
|
$serendipity['GET']['commentStartTime'] = $date;
|
||||||
$timedesc['start'] = serendipity_strftime(DATE_FORMAT_SHORT, $date);
|
$timedesc['start'] = serendipity_strftime(DATE_FORMAT_SHORT, $date);
|
||||||
|
@ -91,6 +91,10 @@ if (!isset($serendipity['CacheControl'])) {
|
|||||||
$serendipity['CacheControl'] = false;
|
$serendipity['CacheControl'] = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($serendipity['expose_s9y'])) {
|
||||||
|
$serendipity['expose_s9y'] = true;
|
||||||
|
}
|
||||||
|
|
||||||
// Should IFRAMEs be used for previewing entries and sending trackbacks?
|
// Should IFRAMEs be used for previewing entries and sending trackbacks?
|
||||||
$serendipity['use_iframe'] = true;
|
$serendipity['use_iframe'] = true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user