More options work. Bug fixes for advanced_edit not being boolean type, clean up of options code and update feedback (still needs work there), first bit of miscellaneous screen.

git-svn-id: https://develop.svn.wordpress.org/trunk@1058 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-04-11 08:15:10 +00:00
parent 1f13ef66c0
commit 25ebd64d7d
11 changed files with 143 additions and 164 deletions

View File

@@ -107,13 +107,15 @@ $nonbools = array('default_ping_status', 'default_comment_status');
}
$message .= $dB_errors . '<br />' . $validation_message;
}
header('Location: ' . $_SERVER['HTTP_REFERER']);
$goback = str_replace('?updated=true', '', $_SERVER['HTTP_REFERER']) . '?updated=true';
header('Location: ' . $goback);
break;
default:
$standalone = 0;
include_once("./admin-header.php");
if ($user_level <= 3) {
if ($user_level <= 6) {
die("You have do not have sufficient permissions to edit the options for this blog.");
}
?>
@@ -142,29 +144,9 @@ if ($non_was_selected) { // no group pre-selected, display opening page
<?php
} else { //there was a group selected.
include('options-head.php');
?>
?>
<ul id="adminmenu2">
<li><a href="options-general.php">General</a></li>
<li><a href="options-writing.php">Writing</a></li>
<li><a href="options-reading.php">Reading</a></li>
<li><a href="options-discussion.php">Discussion</a></li>
<?php
//Iterate through the available option groups.
$option_groups = $wpdb->get_results("SELECT group_id, group_name, group_desc, group_longdesc FROM $tableoptiongroups ORDER BY group_id");
foreach ($option_groups as $option_group) {
if ($option_group->group_id == $option_group_id) {
$current_desc=$option_group->group_desc;
$current_long_desc = $option_group->group_longdesc;
echo(" <li><a class=\"current\" href=\"$this_file?option_group_id={$option_group->group_id}\" title=\"{$option_group->group_desc}\">{$option_group->group_name}</a></li>\n");
} else {
echo(" <li><a href=\"$this_file?option_group_id={$option_group->group_id}\" title=\"{$option_group->group_desc}\">{$option_group->group_name}</a></li>\n");
}
} // end for each group
?>
<li class="last"><a href="options-permalink.php">Permalinks</a></li>
</ul>
<br clear="all" />
<div class="wrap">
<h2><?php echo $current_desc; ?></h2>
<form name="form" action="<?php echo $this_file; ?>" method="post">
@@ -194,13 +176,9 @@ if ($non_was_selected) { // no group pre-selected, display opening page
<div class="wrap">
<?php
if ($current_long_desc != '') {
echo($current_long_desc);
} else {
?>
<p> No help for this group of options.</p>
<?php
}
if ($current_long_desc != '') {
echo $current_long_desc;
}
?>
</div>
<?php
@@ -208,4 +186,5 @@ if ($non_was_selected) { // no group pre-selected, display opening page
break;
} // end switch
include("admin-footer.php") ?>
include('admin-footer.php');
?>