<?php
$_wp_installing = 1;
if (!file_exists('../wp-config.php')) 
	die(header("Location: ../index.php"));
require('../wp-config.php');
timer_start();
require('upgrade-functions.php');

$step = $_GET['step'];
if (!$step) $step = 0;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<title>WordPress &rsaquo; Upgrade WordPress</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $guide_charset; ?>" />
	<style media="screen" type="text/css">
    <!--
	body {
		background-color: white;
		color: black;
		font-family: Osaka, Verdana, sans-serif;
		margin-left: 15%;
		margin-right: 15%;
	}
	#logo {
		margin: 0;
		padding: 0;
		background-image: url(../wp-images/wordpress.gif);
		background-repeat: no-repeat;
		height: 60px;
		border-bottom: 1px solid #dcdcdc;
	}
	#logo a {
		display: block;
		height: 60px;
	}
	#logo a span {
		display: none;
	}
	p, li {
		line-height: 140%;
	}
    -->
	</style>
</head>
<body> 
<h1 id="logo"><a href="http://wordpress.xwd.jp/"><span>WordPress Japan</span></a></h1>
<?php
switch($step) {

	case 0:
?> 
<?php echo _LANG_UPG_STEP_INFO2; ?>
<?php
	break;
	
	case 1:
	upgrade_all();
?> 
<h2>Step 1</h2> 
<?php echo _LANG_UPG_STEP_INFO3; ?>

<!--
<pre>
<?php echo $wpdb->num_queries; ?> queries

<?php timer_stop(1); ?> seconds
</pre>
-->

<?php
	break;
}
?> 
</body>
</html>
