]> andersk Git - sql-web.git/commitdiff
login refreshes databases
authorJoe Presbrey <presbrey@mit.edu>
Mon, 13 Feb 2006 00:36:02 +0000 (00:36 +0000)
committerJoe Presbrey <presbrey@mit.edu>
Mon, 13 Feb 2006 00:36:02 +0000 (00:36 +0000)
HTTPS ensures scripts-cert vs. scripts (add MIT-MODE to toggle these overrides)

git-svn-id: svn://presbrey.mit.edu/sql/mitsql@93 a142d4bd-2cfb-0310-9673-cb33a7e74f58

lib/security.lib.php
login.php

index 5630ebb41a8c9d8e7024be47e2b91236399e2570..0fc8a91365cbd4f7386fb3fa0516fba65a565922 100644 (file)
@@ -296,14 +296,16 @@ function redirectStart() {
        redirectFull(BASE_URL,null);
 }
 function redirectFull($target,$secure) {
-       redirect2((((isSSL()&&is_null($secure))||$secure==true)?'https://':'http://').$_SERVER['SERVER_NAME'].$target);
+       //redirect2((((isSSL()&&is_null($secure))||$secure==true)?'https://':'http://').$_SERVER['SERVER_NAME'].$target);
+       redirect2((((isSSL()&&is_null($secure))||$secure==true)?'https://scripts-cert.mit.edu':'http://scripts.mit.edu').$target);
 }
 function redirect2($target) {
        header('Location: '.$target);
        exit;
 }
 function flipSSL() {
-       return (isSSL()?'http://':'https://').$_SERVER['SERVER_NAME'].$_SERVER['REDIRECT_URL'];
+       //return (isSSL()?'http://':'https://').$_SERVER['SERVER_NAME'].$_SERVER['REDIRECT_URL'];
+       return (isSSL()?'http://scripts.mit.edu':'https://scripts-cert.mit.edu').$_SERVER['REDIRECT_URL'];
 }
 
 ## USER SCRIPTS
index 98a59a5d995b73383c1903444782243b37fb10c6..bacfdb4a349d3730e3814dc618e0286725dafc7f 100644 (file)
--- a/login.php
+++ b/login.php
@@ -27,7 +27,7 @@ if (isPost() && empty($err)) {
 
        if (empty($err)) {
                sess('UserId', $Login->getUserId());
-               redirect('main');
+               redirect('main?refresh');
        }
 
 }
This page took 0.035039 seconds and 5 git commands to generate.