Fix some layout problems, and caching issues.

This commit is contained in:
tim
2015-11-22 01:43:29 +02:00
parent 925a8572d0
commit 3b8f5e6599
13 changed files with 58 additions and 54 deletions
+7 -3
View File
@@ -1,11 +1,15 @@
<?
//include_once('../session.lib.php');
header( 'Cache-Control: no-store, no-cache, must-revalidate' );
header( 'Cache-Control: post-check=0, pre-check=0', false );
header( 'Pragma: no-cache' );
include_once('../session.lib.php');
if ( ! isset($_SERVER['HTTPS'])) {
header('Location: https://' . $_SERVER["SERVER_NAME"] . $_SERVER['REQUEST_URI']);
}
require_once("../session.lib.php");
if (isset($_SESSION['editor'])) {
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time()-42000, '/');
setcookie(session_name(), '', strtotime('-1 day'), '/');
}
session_destroy();
}
@@ -21,7 +25,7 @@ if (isset($_SESSION['referrer'])) {
header("Location: $url");
return;
} else {
header("Location: http://xxx.org.za/");
header("Location: https://xxx.org.za/");
return;
}
?>