mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Changed to superglobals, and eliminated $use_cache (since we always do).
git-svn-id: https://develop.svn.wordpress.org/trunk@1108 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+7
-7
@@ -3,12 +3,12 @@ require(dirname(__FILE__) . '/wp-config.php');
|
||||
|
||||
// trackback is done by a POST
|
||||
$request_array = 'HTTP_POST_VARS';
|
||||
$tb_id = explode('/', $HTTP_SERVER_VARS['REQUEST_URI']);
|
||||
$tb_id = explode('/', $_SERVER['REQUEST_URI']);
|
||||
$tb_id = intval($tb_id[count($tb_id)-1]);
|
||||
$tb_url = $HTTP_POST_VARS['url'];
|
||||
$title = $HTTP_POST_VARS['title'];
|
||||
$excerpt = $HTTP_POST_VARS['excerpt'];
|
||||
$blog_name = $HTTP_POST_VARS['blog_name'];
|
||||
$tb_url = $_POST['url'];
|
||||
$title = $_POST['title'];
|
||||
$excerpt = $_POST['excerpt'];
|
||||
$blog_name = $_POST['blog_name'];
|
||||
|
||||
require('wp-blog-header.php');
|
||||
|
||||
@@ -21,7 +21,7 @@ if (empty($title) && empty($tb_url) && empty($blog_name)) {
|
||||
header('Location: ' . get_permalink($tb_id));
|
||||
}
|
||||
|
||||
if ((strlen(''.$tb_id)) && (empty($HTTP_GET_VARS['__mode'])) && (strlen(''.$tb_url))) {
|
||||
if ((strlen(''.$tb_id)) && (empty($_GET['__mode'])) && (strlen(''.$tb_url))) {
|
||||
|
||||
@header('Content-Type: text/xml');
|
||||
|
||||
@@ -49,7 +49,7 @@ if ((strlen(''.$tb_id)) && (empty($HTTP_GET_VARS['__mode'])) && (strlen(''.$tb_u
|
||||
$original_comment = $comment;
|
||||
$comment_post_ID = $tb_id;
|
||||
|
||||
$user_ip = $HTTP_SERVER_VARS['REMOTE_ADDR'];
|
||||
$user_ip = $_SERVER['REMOTE_ADDR'];
|
||||
$user_domain = gethostbyaddr($user_ip);
|
||||
$time_difference = get_settings('time_difference');
|
||||
$now = current_time('mysql');
|
||||
|
||||
Reference in New Issue
Block a user