Make WordPress Core


Ignore:
Timestamp:
04/11/2004 08:15:10 AM (22 years ago)
Author:
saxmatt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options.php

    r978 r1058  
    108108        $message .= $dB_errors . '<br />' . $validation_message;
    109109    }
    110     header('Location: ' . $_SERVER['HTTP_REFERER']);   
     110
     111    $goback = str_replace('?updated=true', '', $_SERVER['HTTP_REFERER']) . '?updated=true';
     112    header('Location: ' . $goback);
    111113    break;
    112114
     
    114116    $standalone = 0;
    115117    include_once("./admin-header.php");
    116     if ($user_level <= 3) {
     118    if ($user_level <= 6) {
    117119        die("You have do not have sufficient permissions to edit the options for this blog.");
    118120    }
     
    143145
    144146} else { //there was a group selected.
     147include('options-head.php');
     148?>
    145149
    146 ?>
    147 <ul id="adminmenu2">
    148 <li><a href="options-general.php">General</a></li>
    149     <li><a href="options-writing.php">Writing</a></li>
    150     <li><a href="options-reading.php">Reading</a></li>
    151     <li><a href="options-discussion.php">Discussion</a></li>
    152 <?php
    153     //Iterate through the available option groups.
    154     $option_groups = $wpdb->get_results("SELECT group_id, group_name, group_desc, group_longdesc FROM $tableoptiongroups ORDER BY group_id");
    155     foreach ($option_groups as $option_group) {
    156         if ($option_group->group_id == $option_group_id) {
    157             $current_desc=$option_group->group_desc;
    158             $current_long_desc = $option_group->group_longdesc;
    159             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");
    160         } else {
    161             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");
    162         }
    163     } // end for each group
    164 ?>
    165   <li class="last"><a href="options-permalink.php">Permalinks</a></li>
    166 </ul>
    167 <br clear="all" />
    168150<div class="wrap">
    169151  <h2><?php echo $current_desc; ?></h2>
     
    195177<div class="wrap">
    196178<?php
    197     if ($current_long_desc != '') {
    198         echo($current_long_desc);
    199     } else {
    200 ?>
    201   <p> No help for this group of options.</p>
    202 <?php
    203     }
     179if ($current_long_desc != '') {
     180    echo $current_long_desc;
     181}
    204182?>
    205183</div>
     
    209187} // end switch
    210188
    211 include("admin-footer.php") ?>
     189include('admin-footer.php');
     190?>
Note: See TracChangeset for help on using the changeset viewer.