Changeset 1144
- Timestamp:
- 11/14/07 18:04:31 (1 year ago)
- Files:
-
- trunk/wp-admin/menu.php (modified) (4 diffs)
- trunk/wp-admin/wpmu-blogs.php (modified) (2 diffs)
- trunk/wp-login.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/menu.php
r1139 r1144 5 5 // The minimum level the user needs to access the item: between 0 and 10 6 6 // The URL of the item's file 7 8 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; 9 7 10 $menu[0] = array(__('Dashboard'), 'read', 'index.php'); 8 11 … … 161 164 if ( empty($blogs) || $blogs == false ) { // If user haven't any blog 162 165 update_usermeta( $user_ID, 'wp_1_capabilities', array('subscriber' => true)); // Add subscriber permission for first blog. 163 wp_redirect( 'http://'.$current_site->domain . $current_site->path. 'wp-admin/' );166 wp_redirect( $schema . $current_site->domain . $current_site->path. 'wp-admin/' ); 164 167 exit(); 165 168 } … … 167 170 foreach ( (array) $blogs as $blog ) { 168 171 if ( $blog->userblog_id == $newblog->blog_id ) { 169 wp_redirect( 'http://'.$newblog->domain . $newblog->path . 'wp-admin/' );172 wp_redirect( $schema . $newblog->domain . $newblog->path . 'wp-admin/' ); 170 173 exit(); 171 174 } … … 173 176 174 177 $blog = $blogs[0]; // Take the first blog... 175 wp_redirect( 'http://'.$blog->domain . $blog->path. 'wp-admin/' );178 wp_redirect( $schema . $blog->domain . $blog->path. 'wp-admin/' ); 176 179 exit(); 177 180 } trunk/wp-admin/wpmu-blogs.php
r1134 r1144 6 6 wp_enqueue_script( 'listman' ); 7 7 require_once('admin-header.php'); 8 9 8 if( is_site_admin() == false ) { 10 9 wp_die( __('<p>You do not have permission to access this page.</p>') ); … … 520 519 ?> 521 520 <td valign="top"> 522 <?php echo "<a href=' http://". $blog['domain'] . $blog['path'] . "wp-admin/' class='edit'>" . __('Backend') . "</a>"; ?>521 <?php echo "<a href='". $schema . $blog['domain'] . $blog['path'] . "wp-admin/' class='edit'>" . __('Backend') . "</a>"; ?> 523 522 </td> 524 523 <?php trunk/wp-login.php
r1125 r1144 12 12 header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset')); 13 13 14 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; 14 15 if ( defined('RELOCATE') ) { // Move flag is set 15 16 if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) ) 16 17 $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] ); 17 18 18 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';19 19 if ( dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) != get_option('siteurl') ) 20 20 update_option('siteurl', dirname($schema . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']) ); … … 271 271 ?> 272 272 273 <form name="loginform" id="loginform" action=" http://<?php echo$current_blog->domain . $current_blog->path ?>wp-login.php" method="post">273 <form name="loginform" id="loginform" action="<?php echo $schema . $current_blog->domain . $current_blog->path ?>wp-login.php" method="post"> 274 274 <?php if ( !in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?> 275 275 <p>
