Changeset 1108 for trunk/wp-trackback.php
- Timestamp:
- 04/20/2004 10:56:47 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-trackback.php
r1012 r1108 4 4 // trackback is done by a POST 5 5 $request_array = 'HTTP_POST_VARS'; 6 $tb_id = explode('/', $ HTTP_SERVER_VARS['REQUEST_URI']);6 $tb_id = explode('/', $_SERVER['REQUEST_URI']); 7 7 $tb_id = intval($tb_id[count($tb_id)-1]); 8 $tb_url = $ HTTP_POST_VARS['url'];9 $title = $ HTTP_POST_VARS['title'];10 $excerpt = $ HTTP_POST_VARS['excerpt'];11 $blog_name = $ HTTP_POST_VARS['blog_name'];8 $tb_url = $_POST['url']; 9 $title = $_POST['title']; 10 $excerpt = $_POST['excerpt']; 11 $blog_name = $_POST['blog_name']; 12 12 13 13 require('wp-blog-header.php'); … … 22 22 } 23 23 24 if ((strlen(''.$tb_id)) && (empty($ HTTP_GET_VARS['__mode'])) && (strlen(''.$tb_url))) {24 if ((strlen(''.$tb_id)) && (empty($_GET['__mode'])) && (strlen(''.$tb_url))) { 25 25 26 26 @header('Content-Type: text/xml'); … … 50 50 $comment_post_ID = $tb_id; 51 51 52 $user_ip = $ HTTP_SERVER_VARS['REMOTE_ADDR'];52 $user_ip = $_SERVER['REMOTE_ADDR']; 53 53 $user_domain = gethostbyaddr($user_ip); 54 54 $time_difference = get_settings('time_difference');
Note: See TracChangeset
for help on using the changeset viewer.