summaryrefslogtreecommitdiffstats
path: root/wp-login.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-11-14 18:04:31 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-11-14 18:04:31 +0000
commit3c97d4f82432ee83162985bf235dc9415162e676 (patch)
tree8a7ab1e37125084dbb67d9a17c7e82a83a83d814 /wp-login.php
parent2c83a835b747cfae1beb9fb097e91fb1fc7745ba (diff)
downloadwordpress-mu-3c97d4f82432ee83162985bf235dc9415162e676.tar.gz
wordpress-mu-3c97d4f82432ee83162985bf235dc9415162e676.tar.xz
wordpress-mu-3c97d4f82432ee83162985bf235dc9415162e676.zip
Allow login via a secure login form
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1144 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-login.php')
-rw-r--r--wp-login.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-login.php b/wp-login.php
index 9eacdb0..87f13df 100644
--- a/wp-login.php
+++ b/wp-login.php
@@ -11,11 +11,11 @@ nocache_headers();
header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
+$schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
if ( defined('RELOCATE') ) { // Move flag is set
if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) )
$_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] );
- $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_option('siteurl') )
update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) );
}
@@ -270,7 +270,7 @@ default:
login_header(__('Login'));
?>
-<form name="loginform" id="loginform" action="http://<?php echo $current_blog->domain . $current_blog->path ?>wp-login.php" method="post">
+<form name="loginform" id="loginform" action="<?php echo $schema . $current_blog->domain . $current_blog->path ?>wp-login.php" method="post">
<?php if ( !in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?>
<p>
<label><?php _e('Username:') ?><br />