-
+ D6B076F10EB62B96F345CCC65F709136ABA1E80B884DF5D95AB9A6A302CC4F82B4A8E778461A066A70A93D67E733DB326A75985C19AA338A692068854E83F04Bmp-wp/wp-admin/upgrade.php(0 . 0)(1 . 95)
58467 <?php
58468 /**
58469 * Upgrade WordPress Page.
58470 *
58471 * @package WordPress
58472 * @subpackage Administration
58473 */
58474
58475 /**
58476 * We are upgrading WordPress.
58477 *
58478 * @since unknown
58479 * @var bool
58480 */
58481 define('WP_INSTALLING', true);
58482
58483 /** Load WordPress Bootstrap */
58484 require('../wp-load.php');
58485
58486 timer_start();
58487 require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
58488
58489 if ( isset($_GET['step']) )
58490 $step = $_GET['step'];
58491 else
58492 $step = 0;
58493
58494 // Do it. No output.
58495 if ( 'upgrade_db' === $step ) {
58496 wp_upgrade();
58497 die('0');
58498 }
58499
58500 $step = (int) $step;
58501
58502 @header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
58503 ?>
58504 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
58505 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
58506 <head>
58507 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
58508 <title><?php _e('WordPress › Upgrade'); ?></title>
58509 <?php wp_admin_css( 'install', true ); ?>
58510 </head>
58511 <body>
58512 <h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>
58513
58514 <?php if ( get_option('db_version') == $wp_db_version || !is_blog_installed()) : ?>
58515
58516 <h2><?php _e('No Upgrade Required'); ?></h2>
58517 <p><?php _e('Your WordPress database is already up-to-date!'); ?></p>
58518 <p class="step"><a class="button" href="<?php echo get_option('home'); ?>/"><?php _e('Continue'); ?></a></p>
58519
58520 <?php else :
58521 switch($step) :
58522 case 0:
58523 $goback = stripslashes(wp_get_referer());
58524 $goback = clean_url($goback, null, 'url');
58525 $goback = urlencode($goback);
58526 ?>
58527 <h2><?php _e('Database Upgrade Required'); ?></h2>
58528 <p><?php _e('Your WordPress database is out-of-date, and must be upgraded before you can continue.'); ?></p>
58529 <p><?php _e('The upgrade process may take a while, so please be patient.'); ?></p>
58530 <p class="step"><a class="button" href="upgrade.php?step=1&backto=<?php echo $goback; ?>"><?php _e('Upgrade WordPress'); ?></a></p>
58531 <?php
58532 break;
58533 case 1:
58534 wp_upgrade();
58535
58536 if ( empty( $_GET['backto'] ) )
58537 $backto = __get_option('home') . '/';
58538 else {
58539 $backto = stripslashes(urldecode($_GET['backto']));
58540 $backto = clean_url($backto, null, 'url');
58541 }
58542 ?>
58543 <h2><?php _e('Upgrade Complete'); ?></h2>
58544 <p><?php _e('Your WordPress database has been successfully upgraded!'); ?></p>
58545 <p class="step"><a class="button" href="<?php echo $backto; ?>"><?php _e('Continue'); ?></a></p>
58546
58547 <!--
58548 <pre>
58549 <?php printf(__('%s queries'), $wpdb->num_queries); ?>
58550
58551 <?php printf(__('%s seconds'), timer_stop(0)); ?>
58552 </pre>
58553 -->
58554
58555 <?php
58556 break;
58557 endswitch;
58558 endif;
58559 ?>
58560 </body>
58561 </html>