X-Git-Url: http://andersk.mit.edu/gitweb/sql-web.git/blobdiff_plain/d0e2c57aff7a85a6843cc3665c573e4a64cdc186..51722d40e2a84a6697f8f081afb5f6142f552100:/lib/security.lib.php diff --git a/lib/security.lib.php b/lib/security.lib.php index 5630ebb..0fc8a91 100644 --- a/lib/security.lib.php +++ b/lib/security.lib.php @@ -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