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-discussion.php

    r1011 r1058  
    3535}
    3636
    37 require_once('optionhandler.php');
    38 
    39 
    4037$standalone = 0;
    4138include_once('admin-header.php');
    42 if ($user_level <= 3) {
    43     die("You have do not have sufficient permissions to edit the options for this blog.");
    44 }
     39include('options-head.php');
    4540?>
    46  <ul id="adminmenu2">
    47     <li><a href="options-general.php">General</a></li>
    48     <li><a href="options-writing.php">Writing</a></li>
    49     <li><a href="options-reading.php">Reading</a></li>
    50     <li><a class="current">Discussion</a></li>
    51     <?php
    52     //we need to iterate through the available option groups.
    53     $option_groups = $wpdb->get_results("SELECT group_id, group_name, group_desc, group_longdesc FROM $tableoptiongroups ORDER BY group_id");
    54     foreach ($option_groups as $option_group) {
    55         if ($option_group->group_id == $option_group_id) {
    56             $current_desc=$option_group->group_desc;
    57             $current_long_desc = $option_group->group_longdesc;
    58             echo("  <li><a id=\"current2\" href=\"options.php?option_group_id={$option_group->group_id}\" title=\"{$option_group->group_desc}\">{$option_group->group_name}</a></li>\n");
    59         } else {
    60             echo("  <li><a href=\"options.php?option_group_id={$option_group->group_id}\" title=\"{$option_group->group_desc}\">{$option_group->group_name}</a></li>\n");
    61         }
    62     } // end for each group
    63 ?>
    64     <li class="last"><a href="options-permalink.php">Permalinks</a></li>
    65 </ul>
    66 <br clear="all" />
     41
    6742<div class="wrap">
    6843    <h2>Discussion Options</h2>
Note: See TracChangeset for help on using the changeset viewer.