Skip to content

Commit

Permalink
Modified to use returnglobal() function and sendcacheheaders() function
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@573 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jul 23, 2003
1 parent b379718 commit 9da61cf
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions admin/admin.php
Expand Up @@ -33,24 +33,19 @@
# Suite 330, Boston, MA 02111-1307, USA. #
#############################################################
*/
$sid = $_GET['sid']; if (!$sid) {$sid=$_POST['sid'];}
$gid = $_GET['gid']; if (!$gid) {$gid=$_POST['gid'];}
$qid = $_GET['qid']; if (!$qid) {$qid=$_POST['qid'];}
$code = $_GET['code']; if (!$code) {$code=$_POST['code'];}
$action = $_GET['action']; if (!$action) {$action=$_POST['action'];}
$ok = $_GET['ok']; if (!$ok) {$ok = $_POST['ok'];}
$user = $_GET['user']; if (!$user) {$user = $_POST['user'];}
$pass = $_GET['pass']; if (!$pass) {$pass = $_POST['pass'];}

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
//Send ("Expires: " & Format$(Date - 30, "ddd, d mmm yyyy") & " " & Format$(Time, "hh:mm:ss") & " GMT ")

include("config.php");

if (!isset($sid)) {$sid=returnglobal('sid');}
if (!isset($gid)) {$gid=returnglobal('gid');}
if (!isset($qid)) {$qid=returnglobal('qid');}
if (!isset($code)) {$code=returnglobal('code');}
if (!isset($action)) {$action=returnglobal('action');}
if (!isset($ok)) {$ok=returnglobal('ok');}
if (!isset($user)) {$user=returnglobal('user');}
if (!isset($pass)) {$pass=returnglobal('pass');}

sendcacheheaders();

echo $htmlheader;

echo "<script type='text/javascript'>\n";
Expand Down

0 comments on commit 9da61cf

Please sign in to comment.