Changeset 1818 for trunk/wp-admin/options.php
- Timestamp:
- 10/19/2004 03:03:06 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options.php
r1751 r1818 1 1 <?php 2 require_once(' ../wp-includes/wp-l10n.php');2 require_once('admin.php'); 3 3 4 4 $title = __('Options'); … … 6 6 $parent_file = 'options-general.php'; 7 7 8 function add_magic_quotes($array) { 9 foreach ($array as $k => $v) { 10 if (is_array($v)) { 11 $array[$k] = add_magic_quotes($v); 12 } else { 13 $array[$k] = addslashes($v); 14 } 15 } 16 return $array; 17 } 18 19 if (!get_magic_quotes_gpc()) { 20 $_GET = add_magic_quotes($_GET); 21 $_POST = add_magic_quotes($_POST); 22 $_COOKIE = add_magic_quotes($_COOKIE); 23 } 24 25 $wpvarstoreset = array('action','standalone'); 8 $wpvarstoreset = array('action'); 26 9 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 27 10 $wpvar = $wpvarstoreset[$i]; … … 42 25 43 26 case 'update': 44 $standalone = 1;45 include_once('./admin-header.php');46 27 $any_changed = 0; 47 28 … … 92 73 93 74 default: 94 $standalone = 0; 95 include_once('./admin-header.php'); 96 if ($user_level <= 6) { 97 die(__("You have do not have sufficient permissions to edit the options for this blog.")); 98 } 99 ?> 100 101 <?php include('options-head.php'); ?> 75 include('admin-header.php'); ?> 102 76 103 77 <div class="wrap">
Note: See TracChangeset
for help on using the changeset viewer.