Changeset 1818 for trunk/wp-admin/categories.php
- Timestamp:
- 10/19/2004 03:03:06 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r1744 r1818 1 1 <?php 2 require_once(' ../wp-includes/wp-l10n.php');2 require_once('admin.php'); 3 3 4 4 $title = __('Categories'); 5 5 $parent_file = 'edit.php'; 6 6 7 function add_magic_quotes($array) { 8 foreach ($array as $k => $v) { 9 if (is_array($v)) { 10 $array[$k] = add_magic_quotes($v); 11 } else { 12 $array[$k] = addslashes($v); 13 } 14 } 15 return $array; 16 } 17 18 if (!get_magic_quotes_gpc()) { 19 $_GET = add_magic_quotes($_GET); 20 $_POST = add_magic_quotes($_POST); 21 $_COOKIE = add_magic_quotes($_COOKIE); 22 } 23 24 $wpvarstoreset = array('action','standalone','cat'); 7 $wpvarstoreset = array('action','cat'); 25 8 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 26 9 $wpvar = $wpvarstoreset[$i]; … … 42 25 case 'addcat': 43 26 44 $standalone = 1;45 require_once('admin-header.php');46 47 27 if ($user_level < 3) 48 28 die (__('Cheatin’ uh?')); … … 61 41 62 42 case 'Delete': 63 64 $standalone = 1;65 require_once('admin-header.php');66 43 67 44 check_admin_referer(); … … 120 97 case 'editedcat': 121 98 122 $standalone = 1;123 require_once('admin-header.php');124 125 99 if ($user_level < 3) 126 100 die (__('Cheatin’ uh?')); … … 139 113 default: 140 114 141 $standalone = 0;142 115 require_once ('admin-header.php'); 143 116 if ($user_level < 3) {
Note: See TracChangeset
for help on using the changeset viewer.