web/wp-admin/install.php
changeset 204 09a1c134465b
parent 194 32102edaa81b
equal deleted inserted replaced
203:f507feede89a 204:09a1c134465b
    13 <html xmlns="http://www.w3.org/1999/xhtml">
    13 <html xmlns="http://www.w3.org/1999/xhtml">
    14 <head>
    14 <head>
    15 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    15 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    16 	<title>Error: PHP is not running</title>
    16 	<title>Error: PHP is not running</title>
    17 </head>
    17 </head>
    18 <body>
    18 <body class="wp-core-ui">
    19 	<h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png?ver=20120216" /></h1>
    19 	<h1 id="logo"><a href="http://wordpress.org/">WordPress</a></h1>
    20 	<h2>Error: PHP is not running</h2>
    20 	<h2>Error: PHP is not running</h2>
    21 	<p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p>
    21 	<p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p>
    22 </body>
    22 </body>
    23 </html>
    23 </html>
    24 <?php
    24 <?php
    56 <!DOCTYPE html>
    56 <!DOCTYPE html>
    57 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    57 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    58 <head>
    58 <head>
    59 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    59 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    60 	<title><?php _e( 'WordPress &rsaquo; Installation' ); ?></title>
    60 	<title><?php _e( 'WordPress &rsaquo; Installation' ); ?></title>
    61 	<?php wp_admin_css( 'install', true ); ?>
    61 	<?php
       
    62 	wp_admin_css( 'install', true );
       
    63 	?>
    62 </head>
    64 </head>
    63 <body<?php if ( is_rtl() ) echo ' class="rtl"'; ?>>
    65 <body class="wp-core-ui<?php if ( is_rtl() ) echo ' rtl'; ?>">
    64 <h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png?ver=20120216" /></h1>
    66 <h1 id="logo"><a href="<?php esc_attr_e( 'http://wordpress.org/' ); ?>"><?php _e( 'WordPress' ); ?></a></h1>
    65 
    67 
    66 <?php
    68 <?php
    67 } // end display_header()
    69 } // end display_header()
    68 
    70 
    69 /**
    71 /**
   132 		<tr>
   134 		<tr>
   133 			<th scope="row"><label for="blog_public"><?php _e( 'Privacy' ); ?></label></th>
   135 			<th scope="row"><label for="blog_public"><?php _e( 'Privacy' ); ?></label></th>
   134 			<td colspan="2"><label><input type="checkbox" name="blog_public" value="1" <?php checked( $blog_public ); ?> /> <?php _e( 'Allow search engines to index this site.' ); ?></label></td>
   136 			<td colspan="2"><label><input type="checkbox" name="blog_public" value="1" <?php checked( $blog_public ); ?> /> <?php _e( 'Allow search engines to index this site.' ); ?></label></td>
   135 		</tr>
   137 		</tr>
   136 	</table>
   138 	</table>
   137 	<p class="step"><input type="submit" name="Submit" value="<?php esc_attr_e( 'Install WordPress' ); ?>" class="button" /></p>
   139 	<p class="step"><input type="submit" name="Submit" value="<?php esc_attr_e( 'Install WordPress' ); ?>" class="button button-large" /></p>
   138 </form>
   140 </form>
   139 <?php
   141 <?php
   140 } // end display_setup_form()
   142 } // end display_setup_form()
   141 
   143 
   142 // Let's check to make sure WP isn't already installed.
   144 // Let's check to make sure WP isn't already installed.
   143 if ( is_blog_installed() ) {
   145 if ( is_blog_installed() ) {
   144 	display_header();
   146 	display_header();
   145 	die( '<h1>' . __( 'Already Installed' ) . '</h1><p>' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '</p><p class="step"><a href="../wp-login.php" class="button">' . __('Log In') . '</a></p></body></html>' );
   147 	die( '<h1>' . __( 'Already Installed' ) . '</h1><p>' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '</p><p class="step"><a href="../wp-login.php" class="button button-large">' . __( 'Log In' ) . '</a></p></body></html>' );
   146 }
   148 }
   147 
   149 
   148 $php_version    = phpversion();
   150 $php_version    = phpversion();
   149 $mysql_version  = $wpdb->db_version();
   151 $mysql_version  = $wpdb->db_version();
   150 $php_compat     = version_compare( $php_version, $required_php_version, '>=' );
   152 $php_compat     = version_compare( $php_version, $required_php_version, '>=' );
   239 		echo "<p>$password_message</p>"; ?>
   241 		echo "<p>$password_message</p>"; ?>
   240 		</td>
   242 		</td>
   241 	</tr>
   243 	</tr>
   242 </table>
   244 </table>
   243 
   245 
   244 <p class="step"><a href="../wp-login.php" class="button"><?php _e( 'Log In' ); ?></a></p>
   246 <p class="step"><a href="../wp-login.php" class="button button-large"><?php _e( 'Log In' ); ?></a></p>
   245 
   247 
   246 <?php
   248 <?php
   247 		}
   249 		}
   248 		break;
   250 		break;
   249 }
   251 }