Changeset 1058 for trunk/wp-admin/options.php
- Timestamp:
- 04/11/2004 08:15:10 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/options.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options.php
r978 r1058 108 108 $message .= $dB_errors . '<br />' . $validation_message; 109 109 } 110 header('Location: ' . $_SERVER['HTTP_REFERER']); 110 111 $goback = str_replace('?updated=true', '', $_SERVER['HTTP_REFERER']) . '?updated=true'; 112 header('Location: ' . $goback); 111 113 break; 112 114 … … 114 116 $standalone = 0; 115 117 include_once("./admin-header.php"); 116 if ($user_level <= 3) {118 if ($user_level <= 6) { 117 119 die("You have do not have sufficient permissions to edit the options for this blog."); 118 120 } … … 143 145 144 146 } else { //there was a group selected. 147 include('options-head.php'); 148 ?> 145 149 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 <?php153 //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 group164 ?>165 <li class="last"><a href="options-permalink.php">Permalinks</a></li>166 </ul>167 <br clear="all" />168 150 <div class="wrap"> 169 151 <h2><?php echo $current_desc; ?></h2> … … 195 177 <div class="wrap"> 196 178 <?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 } 179 if ($current_long_desc != '') { 180 echo $current_long_desc; 181 } 204 182 ?> 205 183 </div> … … 209 187 } // end switch 210 188 211 include("admin-footer.php") ?> 189 include('admin-footer.php'); 190 ?>
Note: See TracChangeset
for help on using the changeset viewer.