Make WordPress Core

Ticket #2544: 2544.diff

File 2544.diff, 1.3 KB (added by davidhouse, 19 years ago)
  • wp-admin/setup-config.php

     
    1313$step = 0;
    1414if(isset($_GET['step'])) $step = $_GET['step'];
    1515header( 'Content-Type: text/html; charset=utf-8' );
    16 ?>
     16
     17function setup_header() { ?>
    1718<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    1819<html xmlns="http://www.w3.org/1999/xhtml">
    1920<head>
     
    5051<body>
    5152<h1 id="logo"><a href="http://wordpress.org/"><span>WordPress</span></a></h1>
    5253<?php
     54}
    5355
    5456switch($step) {
    5557        case 0:
     58        setup_header();
    5659?>
     60
    5761<p>Welcome to WordPress. Before getting started, we need some information on the database. You will need to know the following items before proceeding.</p>
    5862<ol>
    5963  <li>Database name</li>
     
    6872        break;
    6973
    7074        case 1:
     75        setup_header();
    7176        ?>
    7277</p>
    7378<form method="post" action="setup-config.php?step=2">
     
    145150    }
    146151    fclose($handle);
    147152        chmod('../wp-config.php', 0666);
     153        setup_header();
    148154?>
    149155<p>All right sparky! You've made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to <a href="install.php">run the install!</a></p>
    150156<?php