2 /** This redirects to the login script **/
5 $path = substr($PHP_SELF, 0, strrpos($PHP_SELF, '/'));
7 // Check if this is a HTTPS or regular HTTP request
9 if(isset($HTTPS) && $HTTPS == 'on' ) {
13 // Get the hostname from the Host header or server config.
14 // Fallback is to omit the server name and use a relative URI,
15 // although this is not RFC 2616 compliant.
16 if(isset($HTTP_HOST) && !empty($HTTP_HOST)) {
17 $location = $proto . $HTTP_HOST . $path;
18 } else if(isset($SERVER_NAME) && !empty($SERVER_NAME)) {
19 $location = $proto . $SERVER_NAME . $path;
25 header("Location: $location/src/login.php\n\n");