Changeset 1818 for trunk/wp-admin/link-manager.php
- Timestamp:
- 10/19/2004 03:03:06 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link-manager.php
r1768 r1818 3 3 // Copyright (C) 2002, 2003 Mike Little -- mike@zed1.com 4 4 5 require_once(' ../wp-config.php');5 require_once('admin.php'); 6 6 7 7 $title = __('Manage Links'); … … 38 38 } 39 39 40 function add_magic_quotes($array) { 41 foreach ($array as $k => $v) { 42 if (is_array($v)) { 43 $array[$k] = add_magic_quotes($v); 44 } else { 45 $array[$k] = addslashes($v); 46 } 47 } 48 return $array; 49 } 50 if (!get_magic_quotes_gpc()) { 51 $_GET = add_magic_quotes($_GET); 52 $_POST = add_magic_quotes($_POST); 53 $_COOKIE = add_magic_quotes($_COOKIE); 54 } 55 56 $wpvarstoreset = array('action','standalone','cat_id', 'linkurl', 'name', 'image', 40 $wpvarstoreset = array('action','cat_id', 'linkurl', 'name', 'image', 57 41 'description', 'visible', 'target', 'category', 'link_id', 58 42 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel', … … 84 68 case 'assign': 85 69 { 86 $standalone = 1;87 include_once('admin-header.php');88 89 70 check_admin_referer(); 90 71 … … 117 98 case 'visibility': 118 99 { 119 $standalone = 1;120 include_once('admin-header.php');121 122 100 check_admin_referer(); 123 101 … … 157 135 case 'move': 158 136 { 159 $standalone = 1;160 include_once('admin-header.php');161 162 137 check_admin_referer(); 163 138 … … 181 156 case 'Add': 182 157 { 183 $standalone = 1;184 include_once('admin-header.php');185 186 158 check_admin_referer(); 187 159 … … 230 202 } 231 203 $links_show_cat_id = $cat_id; 232 233 $standalone = 1;234 include_once('admin-header.php');235 204 236 205 check_admin_referer(); … … 277 246 case 'Delete': 278 247 { 279 $standalone = 1;280 include_once('admin-header.php');281 282 248 check_admin_referer(); 283 249 … … 304 270 case 'linkedit': 305 271 { 306 $standalone=0;307 272 $xfn = true; 308 273 include_once ('admin-header.php'); … … 570 535 setcookie('links_show_cat_id_' . COOKIEHASH, $links_show_cat_id, time()+600); 571 536 setcookie('links_show_order_' . COOKIEHASH, $links_show_order, time()+600); 572 $standalone=0;573 537 include_once ("./admin-header.php"); 574 538 if ($user_level < 5) {
Note: See TracChangeset
for help on using the changeset viewer.