Bug fixes, sidebar.php from Phil Ringnalda.

git-svn-id: https://develop.svn.wordpress.org/trunk@877 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-02-16 23:23:25 +00:00
parent 4a8a38f300
commit 6d0ba6369d
2 changed files with 2 additions and 5 deletions

View File

@ -119,6 +119,7 @@ switch($step) {
// We'll fail here if the values are no good. // We'll fail here if the values are no good.
require_once('../wp-includes/wp-db.php'); require_once('../wp-includes/wp-db.php');
$handle = fopen('../wp-config.php', 'w');
foreach ($configFile as $line_num => $line) { foreach ($configFile as $line_num => $line) {
switch (substr($line,0,16)) { switch (substr($line,0,16)) {

View File

@ -1,8 +1,4 @@
<?php <?php
function selected($selected, $current) {
if ($selected == $current) echo ' selected="selected"';
}
$mode = 'sidebar'; $mode = 'sidebar';
$standalone = 1; $standalone = 1;
@ -34,7 +30,7 @@ if ('b' == $HTTP_GET_VARS['a']) {
?><html> ?><html>
<head> <head>
<title>WordPress > Sidebar</title> <title>WordPress &rsaquo; Sidebar</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $admin_area_charset ?>" /> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $admin_area_charset ?>" />
<link rel="stylesheet" href="wp-admin.css" type="text/css" /> <link rel="stylesheet" href="wp-admin.css" type="text/css" />
<link rel="shortcut icon" href="../wp-images/wp-favicon.png" /> <link rel="shortcut icon" href="../wp-images/wp-favicon.png" />