Changeset 1108
- Timestamp:
- 04/20/04 22:56:47 (4 years ago)
- Files:
-
- trunk/wp-admin/admin-header.php (modified) (2 diffs)
- trunk/wp-admin/categories.php (modified) (7 diffs)
- trunk/wp-admin/edit-form-advanced.php (modified) (1 diff)
- trunk/wp-admin/edit-form-comment.php (modified) (1 diff)
- trunk/wp-admin/edit-form.php (modified) (1 diff)
- trunk/wp-admin/import-b2.php (modified) (1 diff)
- trunk/wp-admin/import-blogger.php (modified) (1 diff)
- trunk/wp-admin/import-greymatter.php (modified) (1 diff)
- trunk/wp-admin/import-mt.php (modified) (1 diff)
- trunk/wp-admin/import-textpattern.php (modified) (1 diff)
- trunk/wp-admin/install-config.php (modified) (2 diffs)
- trunk/wp-admin/install.php (modified) (1 diff)
- trunk/wp-admin/link-add.php (modified) (2 diffs)
- trunk/wp-admin/link-import.php (modified) (2 diffs)
- trunk/wp-admin/link-manager.php (modified) (7 diffs)
- trunk/wp-admin/moderation.php (modified) (3 diffs)
- trunk/wp-admin/options-discussion.php (modified) (2 diffs)
- trunk/wp-admin/options-general.php (modified) (2 diffs)
- trunk/wp-admin/options-misc.php (modified) (2 diffs)
- trunk/wp-admin/options-permalink.php (modified) (3 diffs)
- trunk/wp-admin/options-reading.php (modified) (2 diffs)
- trunk/wp-admin/options-writing.php (modified) (2 diffs)
- trunk/wp-admin/options.php (modified) (2 diffs)
- trunk/wp-admin/post.php (modified) (24 diffs)
- trunk/wp-admin/profile.php (modified) (6 diffs)
- trunk/wp-admin/sidebar.php (modified) (1 diff)
- trunk/wp-admin/templates.php (modified) (3 diffs)
- trunk/wp-admin/upgrade.php (modified) (1 diff)
- trunk/wp-admin/upload.php (modified) (4 diffs)
- trunk/wp-admin/users.php (modified) (4 diffs)
- trunk/wp-blog-header.php (modified) (3 diffs)
- trunk/wp-comments-popup.php (modified) (1 diff)
- trunk/wp-comments-post.php (modified) (2 diffs)
- trunk/wp-comments-reply.php (modified) (2 diffs)
- trunk/wp-comments.php (modified) (2 diffs)
- trunk/wp-commentsrss2.php (modified) (1 diff)
- trunk/wp-content/plugins/hello.php (modified) (1 diff)
- trunk/wp-includes/functions.php (modified) (14 diffs)
- trunk/wp-includes/template-functions-category.php (modified) (1 diff)
- trunk/wp-includes/template-functions-comment.php (modified) (2 diffs)
- trunk/wp-includes/template-functions-general.php (modified) (2 diffs)
- trunk/wp-includes/template-functions-post.php (modified) (4 diffs)
- trunk/wp-includes/vars.php (modified) (2 diffs)
- trunk/wp-links-opml.php (modified) (1 diff)
- trunk/wp-login.php (modified) (8 diffs)
- trunk/wp-mail.php (modified) (1 diff)
- trunk/wp-pass.php (modified) (1 diff)
- trunk/wp-register.php (modified) (4 diffs)
- trunk/wp-trackback.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/admin-header.php
r1106 r1108 11 11 } 12 12 13 if (!isset($use_cache)) $use_cache=1;14 13 if (!isset($blogID)) $blog_ID=1; 15 14 if (!isset($debug)) $debug=0; … … 38 37 $wpvar = $wpvarstoreset[$i]; 39 38 if (!isset($$wpvar)) { 40 if (empty($ HTTP_POST_VARS["$wpvar"])) {41 if (empty($ HTTP_GET_VARS["$wpvar"])) {39 if (empty($_POST["$wpvar"])) { 40 if (empty($_GET["$wpvar"])) { 42 41 $$wpvar = ''; 43 42 } else { 44 $$wpvar = $ HTTP_GET_VARS["$wpvar"];43 $$wpvar = $_GET["$wpvar"]; 45 44 } 46 45 } else { 47 $$wpvar = $ HTTP_POST_VARS["$wpvar"];46 $$wpvar = $_POST["$wpvar"]; 48 47 } 49 48 } trunk/wp-admin/categories.php
r1076 r1108 15 15 16 16 if (!get_magic_quotes_gpc()) { 17 $ HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);18 $ HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);19 $ HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);17 $_GET = add_magic_quotes($_GET); 18 $_POST = add_magic_quotes($_POST); 19 $_COOKIE = add_magic_quotes($_COOKIE); 20 20 } 21 21 … … 24 24 $wpvar = $wpvarstoreset[$i]; 25 25 if (!isset($$wpvar)) { 26 if (empty($ HTTP_POST_VARS["$wpvar"])) {27 if (empty($ HTTP_GET_VARS["$wpvar"])) {26 if (empty($_POST["$wpvar"])) { 27 if (empty($_GET["$wpvar"])) { 28 28 $$wpvar = ''; 29 29 } else { 30 $$wpvar = $ HTTP_GET_VARS["$wpvar"];30 $$wpvar = $_GET["$wpvar"]; 31 31 } 32 32 } else { 33 $$wpvar = $ HTTP_POST_VARS["$wpvar"];33 $$wpvar = $_POST["$wpvar"]; 34 34 } 35 35 } … … 46 46 die ('Cheatin’ uh?'); 47 47 48 $cat_name= addslashes(stripslashes(stripslashes($ HTTP_POST_VARS['cat_name'])));48 $cat_name= addslashes(stripslashes(stripslashes($_POST['cat_name']))); 49 49 $category_nicename = sanitize_title($cat_name); 50 $category_description = addslashes(stripslashes(stripslashes($ HTTP_POST_VARS['category_description'])));51 $cat = intval($ HTTP_POST_VARS['cat']);50 $category_description = addslashes(stripslashes(stripslashes($_POST['category_description']))); 51 $cat = intval($_POST['cat']); 52 52 53 53 $wpdb->query("INSERT INTO $tablecategories (cat_ID, cat_name, category_nicename, category_description, category_parent) VALUES ('0', '$cat_name', '$category_nicename', '$category_description', '$cat')"); … … 62 62 require_once('admin-header.php'); 63 63 64 $cat_ID = intval($ HTTP_GET_VARS["cat_ID"]);64 $cat_ID = intval($_GET["cat_ID"]); 65 65 $cat_name = get_catname($cat_ID); 66 66 $cat_name = addslashes($cat_name); … … 85 85 86 86 require_once ('admin-header.php'); 87 $category = $wpdb->get_row("SELECT * FROM $tablecategories WHERE cat_ID = " . $ HTTP_GET_VARS['cat_ID']);87 $category = $wpdb->get_row("SELECT * FROM $tablecategories WHERE cat_ID = " . $_GET['cat_ID']); 88 88 $cat_name = stripslashes($category->cat_name); 89 89 ?> … … 93 93 <form name="editcat" action="categories.php" method="post"> 94 94 <input type="hidden" name="action" value="editedcat" /> 95 <input type="hidden" name="cat_ID" value="<?php echo $ HTTP_GET_VARS['cat_ID'] ?>" />95 <input type="hidden" name="cat_ID" value="<?php echo $_GET['cat_ID'] ?>" /> 96 96 <p>Category name:<br /> 97 97 <input type="text" name="cat_name" value="<?php echo $cat_name; ?>" /></p> … … 120 120 die ('Cheatin’ uh?'); 121 121 122 $cat_name = addslashes(stripslashes(stripslashes($ HTTP_POST_VARS['cat_name'])));123 $cat_ID = addslashes($ HTTP_POST_VARS['cat_ID']);122 $cat_name = addslashes(stripslashes(stripslashes($_POST['cat_name']))); 123 $cat_ID = addslashes($_POST['cat_ID']); 124 124 $category_nicename = sanitize_title($cat_name); 125 $category_description = $ HTTP_POST_VARS['category_description'];125 $category_description = $_POST['category_description']; 126 126 127 127 $wpdb->query("UPDATE $tablecategories SET cat_name = '$cat_name', category_nicename = '$category_nicename', category_description = '$category_description', category_parent = $cat WHERE cat_ID = $cat_ID"); trunk/wp-admin/edit-form-advanced.php
r1038 r1108 167 167 } 168 168 ?> 169 <input name="referredby" type="hidden" id="referredby" value="<?php echo $ HTTP_SERVER_VARS['HTTP_REFERER']; ?>" />169 <input name="referredby" type="hidden" id="referredby" value="<?php echo $_SERVER['HTTP_REFERER']; ?>" /> 170 170 </p> 171 171 <?php trunk/wp-admin/edit-form-comment.php
r1100 r1108 72 72 73 73 <p class="submit"><input type="submit" name="submit" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" /> 74 <input name="referredby" type="hidden" id="referredby" value="<?php echo $ HTTP_SERVER_VARS['HTTP_REFERER']; ?>" />74 <input name="referredby" type="hidden" id="referredby" value="<?php echo $_SERVER['HTTP_REFERER']; ?>" /> 75 75 </p> 76 76 trunk/wp-admin/edit-form.php
r1106 r1108 110 110 echo '<input name="advanced" type="submit" id="advancededit" tabindex="7" value="' . __('Advanced Editing »') . '" />'; 111 111 } ?> 112 <input name="referredby" type="hidden" id="referredby" value="<?php echo $ HTTP_SERVER_VARS['HTTP_REFERER']; ?>" />112 <input name="referredby" type="hidden" id="referredby" value="<?php echo $_SERVER['HTTP_REFERER']; ?>" /> 113 113 </p> 114 114 trunk/wp-admin/import-b2.php
r763 r1108 3 3 require_once('../wp-config.php'); 4 4 require('upgrade-functions.php'); 5 $step = $ HTTP_GET_VARS['step'];5 $step = $_GET['step']; 6 6 if (!$step) $step = 0; 7 7 ?> trunk/wp-admin/import-blogger.php
r784 r1108 5 5 $wpvar = $wpvarstoreset[$i]; 6 6 if (!isset($$wpvar)) { 7 if (empty($ HTTP_POST_VARS["$wpvar"])) {8 if (empty($ HTTP_GET_VARS["$wpvar"])) {7 if (empty($_POST["$wpvar"])) { 8 if (empty($_GET["$wpvar"])) { 9 9 $$wpvar = ''; 10 10 } else { 11 $$wpvar = $ HTTP_GET_VARS["$wpvar"];11 $$wpvar = $_GET["$wpvar"]; 12 12 } 13 13 } else { 14 $$wpvar = $ HTTP_POST_VARS["$wpvar"];14 $$wpvar = $_POST["$wpvar"]; 15 15 } 16 16 } trunk/wp-admin/import-greymatter.php
r957 r1108 13 13 $wpvar = $wpvarstoreset[$i]; 14 14 if (!isset($$wpvar)) { 15 if (empty($ HTTP_POST_VARS["$wpvar"])) {16 if (empty($ HTTP_GET_VARS["$wpvar"])) {15 if (empty($_POST["$wpvar"])) { 16 if (empty($_GET["$wpvar"])) { 17 17 $$wpvar = ''; 18 18 } else { 19 $$wpvar = $ HTTP_GET_VARS["$wpvar"];19 $$wpvar = $_GET["$wpvar"]; 20 20 } 21 21 } else { 22 $$wpvar = $ HTTP_POST_VARS["$wpvar"];22 $$wpvar = $_POST["$wpvar"]; 23 23 } 24 24 } trunk/wp-admin/import-mt.php
r1059 r1108 6 6 require('../wp-config.php'); 7 7 8 $step = $ HTTP_GET_VARS['step'];8 $step = $_GET['step']; 9 9 if (!$step) $step = 0; 10 10 ?> trunk/wp-admin/import-textpattern.php
r813 r1108 12 12 require('upgrade-functions.php'); 13 13 14 $step = $ HTTP_GET_VARS['step'];14 $step = $_GET['step']; 15 15 if (!$step) $step = 0; 16 16 ?> trunk/wp-admin/install-config.php
r964 r1108 11 11 if (!is_writable('../')) die("Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually."); 12 12 13 $step = $ HTTP_GET_VARS['step'];13 $step = $_GET['step']; 14 14 if (!$step) $step = 0; 15 15 ?> … … 105 105 106 106 case 2: 107 $dbname = $ HTTP_POST_VARS['dbname'];108 $uname = $ HTTP_POST_VARS['uname'];109 $passwrd = $ HTTP_POST_VARS['pwd'];110 $dbhost = $ HTTP_POST_VARS['dbhost'];111 $prefix = $ HTTP_POST_VARS['prefix'];107 $dbname = $_POST['dbname']; 108 $uname = $_POST['uname']; 109 $passwrd = $_POST['pwd']; 110 $dbhost = $_POST['dbhost']; 111 $prefix = $_POST['prefix']; 112 112 if (empty($prefix)) $prefix = 'wp_'; 113 113 trunk/wp-admin/install.php
r1100 r1108 5 5 require('upgrade-functions.php'); 6 6 7 $step = $ HTTP_GET_VARS['step'];7 $step = $_GET['step']; 8 8 if (!$step) $step = 0; 9 9 ?> trunk/wp-admin/link-add.php
r1100 r1108 33 33 } 34 34 if (!get_magic_quotes_gpc()) { 35 $ HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);36 $ HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);37 $ HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);35 $_GET = add_magic_quotes($_GET); 36 $_POST = add_magic_quotes($_POST); 37 $_COOKIE = add_magic_quotes($_COOKIE); 38 38 } 39 39 … … 45 45 $wpvar = $wpvarstoreset[$i]; 46 46 if (!isset($$wpvar)) { 47 if (empty($ HTTP_POST_VARS["$wpvar"])) {48 if (empty($ HTTP_GET_VARS["$wpvar"])) {47 if (empty($_POST["$wpvar"])) { 48 if (empty($_GET["$wpvar"])) { 49 49 $$wpvar = ''; 50 50 } else { 51 $$wpvar = $ HTTP_GET_VARS["$wpvar"];51 $$wpvar = $_GET["$wpvar"]; 52 52 } 53 53 } else { 54 $$wpvar = $ HTTP_POST_VARS["$wpvar"];54 $$wpvar = $_POST["$wpvar"]; 55 55 } 56 56 } 57 57 } 58 $link_url = stripslashes($ HTTP_GET_VARS['linkurl']);59 $link_name = htmlentities(stripslashes(urldecode($ HTTP_GET_VARS['name'])));58 $link_url = stripslashes($_GET['linkurl']); 59 $link_name = htmlentities(stripslashes(urldecode($_GET['name']))); 60 60 61 61 require('admin-header.php'); trunk/wp-admin/link-import.php
r1107 r1108 9 9 $this_file = 'link-import.php'; 10 10 11 $step = $ HTTP_POST_VARS['step'];11 $step = $_POST['step']; 12 12 if (!$step) $step = 0; 13 13 ?> … … 89 89 <h2>Importing...</h2> 90 90 <?php 91 $cat_id = $ HTTP_POST_VARS['cat_id'];91 $cat_id = $_POST['cat_id']; 92 92 if (($cat_id == '') || ($cat_id == 0)) { 93 93 $cat_id = 1; 94 94 } 95 95 96 $opml_url = $ HTTP_POST_VARS['opml_url'];96 $opml_url = $_POST['opml_url']; 97 97 if (isset($opml_url) && $opml_url != '') { 98 98 $blogrolling = true; trunk/wp-admin/link-manager.php
r1100 r1108 48 48 } 49 49 if (!get_magic_quotes_gpc()) { 50 $ HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);51 $ HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);52 $ HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);50 $_GET = add_magic_quotes($_GET); 51 $_POST = add_magic_quotes($_POST); 52 $_COOKIE = add_magic_quotes($_COOKIE); 53 53 } 54 54 … … 61 61 $wpvar = $wpvarstoreset[$i]; 62 62 if (!isset($$wpvar)) { 63 if (empty($ HTTP_POST_VARS["$wpvar"])) {64 if (empty($ HTTP_GET_VARS["$wpvar"])) {63 if (empty($_POST["$wpvar"])) { 64 if (empty($_GET["$wpvar"])) { 65 65 $$wpvar = ''; 66 66 } else { 67 $$wpvar = $ HTTP_GET_VARS["$wpvar"];67 $$wpvar = $_GET["$wpvar"]; 68 68 } 69 69 } else { 70 $$wpvar = $ HTTP_POST_VARS["$wpvar"];70 $$wpvar = $_POST["$wpvar"]; 71 71 } 72 72 } 73 73 } 74 74 75 $links_show_cat_id = $ HTTP_COOKIE_VARS['links_show_cat_id_' . $cookiehash];76 $links_show_order = $ HTTP_COOKIE_VARS['links_show_order_' . $cookiehash];75 $links_show_cat_id = $_COOKIE['links_show_cat_id_' . $cookiehash]; 76 $links_show_order = $_COOKIE['links_show_order_' . $cookiehash]; 77 77 78 78 if (!empty($action2)) { … … 176 176 include_once('admin-header.php'); 177 177 178 $link_url = $ HTTP_POST_VARS['linkurl'];179 $link_name = $ HTTP_POST_VARS['name'];180 $link_image = $ HTTP_POST_VARS['image'];181 $link_target = $ HTTP_POST_VARS['target'];182 $link_category = $ HTTP_POST_VARS['category'];183 $link_description = $ HTTP_POST_VARS['description'];184 $link_visible = $ HTTP_POST_VARS['visible'];185 $link_rating = $ HTTP_POST_VARS['rating'];186 $link_rel = $ HTTP_POST_VARS['rel'];187 $link_notes = $ HTTP_POST_VARS['notes'];188 $link_rss_uri = $ HTTP_POST_VARS['rss_uri'];178 $link_url = $_POST['linkurl']; 179 $link_name = $_POST['name']; 180 $link_image = $_POST['image']; 181 $link_target = $_POST['target']; 182 $link_category = $_POST['category']; 183 $link_description = $_POST['description']; 184 $link_visible = $_POST['visible']; 185 $link_rating = $_POST['rating']; 186 $link_rel = $_POST['rel']; 187 $link_notes = $_POST['notes']; 188 $link_rss_uri = $_POST['rss_uri']; 189 189 $auto_toggle = get_autotoggle($link_category); 190 190 … … 203 203 . addslashes($link_description) . "', '$link_visible', $user_ID, $link_rating, '" . addslashes($link_rel) . "', '" . addslashes($link_notes) . "', '$link_rss_uri')"); 204 204 205 header('Location: ' . $ HTTP_SERVER_VARS['HTTP_REFERER']);205 header('Location: ' . $_SERVER['HTTP_REFERER']); 206 206 break; 207 207 } // end Add … … 223 223 include_once('admin-header.php'); 224 224 225 $link_id = $ HTTP_POST_VARS['link_id'];226 $link_url = $ HTTP_POST_VARS['linkurl'];227 $link_name = $ HTTP_POST_VARS['name'];228 $link_image = $ HTTP_POST_VARS['image'];229 $link_target = $ HTTP_POST_VARS['target'];230 $link_category = $ HTTP_POST_VARS['category'];231 $link_description = $ HTTP_POST_VARS['description'];232 $link_visible = $ HTTP_POST_VARS['visible'];233 $link_rating = $ HTTP_POST_VARS['rating'];234 $link_rel = $ HTTP_POST_VARS['rel'];235 $link_notes = $ HTTP_POST_VARS['notes'];236 $link_rss_uri = $ HTTP_POST_VARS['rss_uri'];225 $link_id = $_POST['link_id']; 226 $link_url = $_POST['linkurl']; 227 $link_name = $_POST['name']; 228 $link_image = $_POST['image']; 229 $link_target = $_POST['target']; 230 $link_category = $_POST['category']; 231 $link_description = $_POST['description']; 232 $link_visible = $_POST['visible']; 233 $link_rating = $_POST['rating']; 234 $link_rel = $_POST['rel']; 235 $link_notes = $_POST['notes']; 236 $link_rss_uri = $_POST['rss_uri']; 237 237 $auto_toggle = get_autotoggle($link_category); 238 238 … … 266 266 include_once('admin-header.php'); 267 267 268 $link_id = $ HTTP_GET_VARS["link_id"];268 $link_id = $_GET["link_id"]; 269 269 270 270 if ($user_level < get_settings('links_minadminlevel')) … … 526 526 case "popup": 527 527 { 528 $link_url = stripslashes($ HTTP_GET_VARS["linkurl"]);529 $link_name = stripslashes($ HTTP_GET_VARS["name"]);528 $link_url = stripslashes($_GET["linkurl"]); 529 $link_name = stripslashes($_GET["name"]); 530 530 //break; fall through 531 531 } trunk/wp-admin/moderation.php
r1075 r1108 16 16 17 17 if (!get_magic_quotes_gpc()) { 18 $ HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);19 $ HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);20 $ HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);18 $_GET = add_magic_quotes($_GET); 19 $_POST = add_magic_quotes($_POST); 20 $_COOKIE = add_magic_quotes($_COOKIE); 21 21 } 22 22 … … 25 25 $wpvar = $wpvarstoreset[$i]; 26 26 if (!isset($$wpvar)) { 27 if (empty($ HTTP_POST_VARS["$wpvar"])) {28 if (empty($ HTTP_GET_VARS["$wpvar"])) {27 if (empty($_POST["$wpvar"])) { 28 if (empty($_GET["$wpvar"])) { 29 29 $$wpvar = ''; 30 30 } else { 31 $$wpvar = $ HTTP_GET_VARS["$wpvar"];31 $$wpvar = $_GET["$wpvar"]; 32 32 } 33 33 } else { 34 $$wpvar = $ HTTP_POST_VARS["$wpvar"];34 $$wpvar = $_POST["$wpvar"]; 35 35 } 36 36 } … … 38 38 39 39 $comment = array(); 40 if (isset($ HTTP_POST_VARS["comment"])) {41 foreach ($ HTTP_POST_VARS["comment"] as $k => $v) {40 if (isset($_POST["comment"])) { 41 foreach ($_POST["comment"] as $k => $v) { 42 42 $comment[intval($k)] = $v; 43 43 } trunk/wp-admin/options-discussion.php
r1100 r1108 15 15 16 16 if (!get_magic_quotes_gpc()) { 17 $ HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);18 $ HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);19 $ HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);17 $_GET = add_magic_quotes($_GET); 18 $_POST = add_magic_quotes($_POST); 19 $_COOKIE = add_magic_quotes($_COOKIE); 20 20 } 21 21 … … 24 24 $wpvar = $wpvarstoreset[$i]; 25 25 if (!isset($$wpvar)) { 26 if (empty($ HTTP_POST_VARS["$wpvar"])) {27 if (empty($ HTTP_GET_VARS["$wpvar"])) {26 if (empty($_POST["$wpvar"])) { 27 if (empty($_GET["$wpvar"])) { 28 28 $$wpvar = ''; 29 29 } else { 30 $$wpvar = $ HTTP_GET_VARS["$wpvar"];30 $$wpvar = $_GET["$wpvar"]; 31 31 } 32 32 } else { 33 $$wpvar = $ HTTP_POST_VARS["$wpvar"];33 $$wpvar = $_POST["$wpvar"]; 34 34 } 35 35 } trunk/wp-admin/options-general.php
r1074 r1108 14 14 15 15 if (!get_magic_quotes_gpc()) { 16 $ HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);17 $ HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);18 $ HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);16 $_GET = add_magic_quotes($_GET); 17 $_POST = add_magic_quotes($_POST); 18 $_COOKIE = add_magic_quotes($_COOKIE); 19 19 } 20 20 … … 23 23 $wpvar = $wpvarstoreset[$i]; 24 24 if (!isset($$wpvar)) { 25 if (empty($ HTTP_POST_VARS["$wpvar"])) {26 if (empty($ HTTP_GET_VARS["$wpvar"])) {25 if (empty($_POST["$wpvar"])) { 26 if (empty($_GET["$wpvar"])) { 27 27 $$wpvar = ''; 28 28 } else { 29 $$wpvar = $ HTTP_GET_VARS["$wpvar"];29 $$wpvar = $_GET["$wpvar"]; 30 30 } 31 31 } else { 32 $$wpvar = $ HTTP_POST_VARS["$wpvar"];32 $$wpvar = $_POST["$wpvar"]; 33 33 } 34 34 } trunk/wp-admin/options-misc.php
r1100 r1108 15 15 16 16 if (!get_magic_quotes_gpc()) { 17 $ HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);18 $ HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);19 $ HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);17 $_GET = add_magic_quotes($_GET); 18 $_POST = add_magic_quotes($_POST); 19 $_COOKIE = add_magic_quotes($_COOKIE); 20 20 } 21 21 … … 24 24 $wpvar = $wpvarstoreset[$i]; 25 25 if (!isset($$wpvar)) { 26 if (empty($ HTTP_POST_VARS["$wpvar"])) {27 if (empty($ HTTP_GET_VARS["$wpvar"])) {26 if (empty($_POST["$wpvar"])) { 27 if (empty($_GET["$wpvar"])) { 28 28 $$wpvar = ''; 29 29 } else { 30 $$wpvar = $ HTTP_GET_VARS["$wpvar"];30 $$wpvar = $_GET["$wpvar"]; 31 31 } 32 32 } else { 33 $$wpvar = $ HTTP_POST_VARS["$wpvar"];33 $$wpvar = $_POST["$wpvar"]; 34 34 } 35 35 } trunk/wp-admin/options-permalink.php
r1100 r1108 15 15 16 16 if (!get_magic_quotes_gpc()) { 17 $ HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);18 $ HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);19 $ HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);17 $_GET = add_magic_quotes($_GET); 18 $_POST = add_magic_quotes($_POST); 19 $_COOKIE = add_magic_quotes($_COOKIE); 20 20 } 21 21 … … 24 24 $wpvar = $wpvarstoreset[$i]; 25 25 if (!isset($$wpvar)) { 26 if (empty($ HTTP_POST_VARS["$wpvar"])) {27 if (empty($ HTTP_GET_VARS["$wpvar"])) {26 if (empty($_POST["$wpvar"])) { 27 if (empty($_GET["$wpvar"])) { 28 28 $$wpvar = ''; 29 29 } else { 30 $$wpvar = $ HTTP_GET_VARS["$wpvar"];30 $$wpvar = $_GET["$wpvar"]; 31 31 } 32 32 } else { 33 $$wpvar = $ HTTP_POST_VARS["$wpvar"];33 $$wpvar = $_POST["$wpvar"]; 34 34 } 35 35 } … … 38 38 require_once('optionhandler.php'); 39 39 40 if ($ HTTP_POST_VARS['Submit'] == 'Update') {41 update_option('permalink_structure', $ HTTP_POST_VARS['permalink_structure']);42 $permalink_structure = $ HTTP_POST_VARS['permalink_structure'];40 if ($_POST['Submit'] == 'Update') { 41 update_option('permalink_structure', $_POST['permalink_structure']); 42 $permalink_structure = $_POST['permalink_structure']; 43 43 } else { 44 44 $permalink_structure = get_settings('permalink_structure'); trunk/wp-admin/options-reading.php
r1100 r1108 15 15 16 16 if (!get_magic_quotes_gpc()) { 17 $ HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);18 $ HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);19 $ HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);17 $_GET = add_magic_quotes($_GET); 18 $_POST = add_magic_quotes($_POST); 19 $_COOKIE = add_magic_quotes($_COOKIE); 20 20 } 21 21 … … 24 24 $wpvar = $wpvarstoreset[$i]; 25 25 if (!isset($$wpvar)) { 26 if (empty($ HTTP_POST_VARS["$wpvar"])) {27 if (empty($ HTTP_GET_VARS["$wpvar"])) {26 if (empty($_POST["$wpvar"])) { 27 if (empty($_GET["$wpvar"])) { 28 28 $$wpvar = ''; 29 29 } else { 30 $$wpvar = $ HTTP_GET_VARS["$wpvar"];30 $$wpvar = $_GET["$wpvar"]; 31 31 } 32 32 } else { 33 $$wpvar = $ HTTP_POST_VARS["$wpvar"];33 $$wpvar = $_POST["$wpvar"]; 34 34 } 35 35 } trunk/wp-admin/options-writing.php
r1100 r1108 15 15 16 16 if (!get_magic_quotes_gpc()) { 17 $ HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);18 $ HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);19 $ HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);17 $_GET = add_magic_quotes($_GET); 18 $_POST = add_magic_quotes($_POST); 19 $_COOKIE = add_magic_quotes($_COOKIE); 20 20 } 21 21 … … 24 24 $wpvar = $wpvarstoreset[$i]; 25 25 if (!isset($$wpvar)) { 26 if (empty($ HTTP_POST_VARS["$wpvar"])) {27 if (empty($ HTTP_GET_VARS["$wpvar"])) {26 if (empty($_POST["$wpvar"])) { 27 if (empty($_GET["$wpvar"])) { 28 28 $$wpvar = ''; 29 29 } else { 30 $$wpvar = $ HTTP_GET_VARS["$wpvar"];30 $$wpvar = $_GET["$wpvar"]; 31 31 } 32 32 } else { 33 $$wpvar = $ HTTP_POST_VARS["$wpvar"];33 $$wpvar = $_POST["$wpvar"]; 34 34 } 35 35 } trunk/wp-admin/options.php
r1100 r1108 16 16 17 17 if (!get_magic_quotes_gpc()) { 18 $ HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);19 $ HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);20 $ HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);18 $_GET = add_magic_quotes($_GET); 19 $_POST = add_magic_quotes($_POST); 20 $_COOKIE = add_magic_quotes($_COOKIE); 21 21 } 22 22 … … 25 25 $wpvar = $wpvarstoreset[$i]; 26 26 if (!isset($$wpvar)) { 27 if (empty($ HTTP_POST_VARS["$wpvar"])) {28 if (empty($ HTTP_GET_VARS["$wpvar"])) {27 if (empty($_POST["$wpvar"])) { 28 if (empty($_GET["$wpvar"])) { 29 29 $$wpvar = ''; 30 30 } else { 31 $$wpvar = $ HTTP_GET_VARS["$wpvar"];31 $$wpvar = $_GET["$wpvar"]; 32 32 } 33 33 } else { 34 $$wpvar = $ HTTP_POST_VARS["$wpvar"];34 $$wpvar = $_POST["$wpvar"]; 35 35 } 36 36 } trunk/wp-admin/post.php
r1106 r1108 16 16 17 17 if (!get_magic_quotes_gpc()) { 18 $ HTTP_GET_VARS = add_magic_quotes($HTTP_GET_VARS);19 $ HTTP_POST_VARS = add_magic_quotes($HTTP_POST_VARS);20 $ HTTP_COOKIE_VARS = add_magic_quotes($HTTP_COOKIE_VARS);18 $_GET = add_magic_quotes($_GET); 19 $_POST = add_magic_quotes($_POST); 20 $_COOKIE = add_magic_quotes($_COOKIE); 21 21 } 22 22 … … 26 26 $wpvar = $wpvarstoreset[$i]; 27 27 if (!isset($$wpvar)) { 28 if (empty($ HTTP_POST_VARS["$wpvar"])) {29 if (empty($ HTTP_GET_VARS["$wpvar"])) {28 if (empty($_POST["$wpvar"])) { 29 if (empty($_GET["$wpvar"])) { 30 30 $$wpvar = ''; 31 31 } else { 32 $$wpvar = $ HTTP_GET_VARS["$wpvar"];32 $$wpvar = $_GET["$wpvar"]; 33 33 } 34 34 } else { 35 $$wpvar = $ HTTP_POST_VARS["$wpvar"];35 $$wpvar = $_POST["$wpvar"]; 36 36 } 37 37 } … … 59 59 require_once('admin-header.php'); 60 60 61 $post_pingback = intval($ HTTP_POST_VARS['post_pingback']);62 $content = balanceTags($ HTTP_POST_VARS['content']);61 $post_pingback = intval($_POST['post_pingback']); 62 $content = balanceTags($_POST['content']); 63 63 $content = format_to_post($content); 64 $excerpt = balanceTags($ HTTP_POST_VARS['excerpt']);64 $excerpt = balanceTags($_POST['excerpt']); 65 65 $excerpt = format_to_post($excerpt); 66 $post_title = addslashes($ HTTP_POST_VARS['post_title']);67 $post_categories = $ HTTP_POST_VARS['post_category'];66 $post_title = addslashes($_POST['post_title']); 67 $post_categories = $_POST['post_category']; 68 68 if(get_settings('use_geo_positions')) { 69 $latstr = $ HTTP_POST_VARS['post_latf'];70 $lonstr = $ HTTP_POST_VARS['post_lonf'];69 $latstr = $_POST['post_latf']; 70 $lonstr = $_POST['post_lonf']; 71 71 if((strlen($latstr) > 2) && (strlen($lonstr) > 2 ) ) { 72 $post_latf = floatval($ HTTP_POST_VARS['post_latf']);73 $post_lonf = floatval($ HTTP_POST_VARS['post_lonf']);72 $post_latf = floatval($_POST['post_latf']); 73 $post_lonf = floatval($_POST['post_lonf']); 74 74 } 75 75 } 76 $post_status = $ HTTP_POST_VARS['post_status'];76 $post_status = $_POST['post_status']; 77 77 if (empty($post_status)) $post_status = get_settings('default_post_status'); 78 $comment_status = $ HTTP_POST_VARS['comment_status'];78 $comment_status = $_POST['comment_status']; 79 79 if (empty($comment_status)) $comment_status = get_settings('default_comment_status'); 80 $ping_status = $ HTTP_POST_VARS['ping_status'];80 $ping_status = $_POST['ping_status']; 81 81 if (empty($ping_status)) $ping_status = get_settings('default_ping_status'); 82 $post_password = addslashes(stripslashes($ HTTP_POST_VARS['post_password']));82 $post_password = addslashes(stripslashes($_POST['post_password'])); 83 83 $post_name = sanitize_title($post_title); 84 $trackback = $ HTTP_POST_VARS['trackback_url'];84 $trackback = $_POST['trackback_url']; 85 85 // Format trackbacks 86 86 $trackback = preg_replace('|\s+|', '\n', $trackback); … … 89 89 die (__('Cheatin’ uh?')); 90 90 91 if (($user_level > 4) && (!empty($ HTTP_POST_VARS['edit_date']))) {92 $aa = $ HTTP_POST_VARS['aa'];93 $mm = $ HTTP_POST_VARS['mm'];94 $jj = $ HTTP_POST_VARS['jj'];95 $hh = $ HTTP_POST_VARS['hh'];96 $mn = $ HTTP_POST_VARS['mn'];97 $ss = $ HTTP_POST_VARS['ss'];91 if (($user_level > 4) && (!empty($_POST['edit_date']))) { 92 $aa = $_POST['aa']; 93 $mm = $_POST['mm']; 94 $jj = $_POST['jj']; 95 $hh = $_POST['hh']; 96 $mn = $_POST['mn']; 97 $ss = $_POST['ss']; 98 98 $jj = ($jj > 31) ? 31 : $jj; 99 99 $hh = ($hh > 23) ? $hh - 24 : $hh; … … 107 107 } 108 108 109 if (!empty($ HTTP_POST_VARS['mode'])) {110 switch($ HTTP_POST_VARS['mode']) {109 if (!empty($_POST['mode'])) { 110 switch($_POST['mode']) { 111 111 case 'bookmarklet': 112 112 $location = 'bookmarklet.php?a=b'; … … 124 124 125 125 // What to do based on which button they pressed 126 if ('' != $ H
