Fix some layout problems, and caching issues.
This commit is contained in:
+7
-3
@@ -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;
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user