403Webshell
Server IP : 89.108.64.180  /  Your IP : 216.73.217.95
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-root ( 1010)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/joysochi.ru/wp-content/plugins/stockholm-core/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/joysochi.ru/wp-content/plugins/stockholm-core/modules//ajax_mail.php
<?php
require_once 'recaptchalib.php';
if ( file_exists( '../../../../wp-blog-header.php' ) ) {
	require( '../../../../wp-blog-header.php' );
} else {
	require( '../../../../../wp-blog-header.php' );
}

$stockholm_options = stockholm_qode_return_global_options();

$publickey  = $stockholm_options['recaptcha_public_key'];
$privatekey = $stockholm_options['recaptcha_private_key'];

if ( $publickey == "" ) {
	$publickey = "6Ld5VOASAAAAABUGCt9ZaNuw3IF-BjUFLujP6C8L";
}
if ( $privatekey == "" ) {
	$privatekey = "6Ld5VOASAAAAAKQdKVcxZ321VM6lkhBsoT6lXe9Z";
}

$use_captcha = $stockholm_options['use_recaptcha'];
$resp        = $use_captcha !== 'no' ? recaptcha_check_answer( $privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"] ) : false;

if ( isset( $_POST ) && ! empty( $_POST ) && ( ( $resp && $resp->is_valid ) || $use_captcha == "no" ) ) {?>success<?php
	$email_to   = isset( $stockholm_options['receive_mail'] ) && ! empty( $stockholm_options['receive_mail'] ) ? sanitize_email( $stockholm_options['receive_mail'] ) : sanitize_email( get_option( 'admin_email' ) );
	$email_from = isset( $stockholm_options['email_from'] ) && ! empty( $stockholm_options['email_from'] ) ? sanitize_email( $stockholm_options['email_from'] ) : $email_to;
	$subject    = sanitize_text_field( $stockholm_options['email_subject'] );
	$name       = sanitize_text_field( $_POST["fname"] );
	$lastname   = sanitize_text_field( $_POST["lname"] );
	$website    = esc_url( $_POST["website"] );
	
	$text = "Name: " . $name . " " . $lastname . "\n";
	$text .= "Email: " . sanitize_email( $_POST["email"] ) . "\n";
	if ( ! empty( $website ) ) {
		$text .= "WebSite: " . $website . "\n";
	}
	$text .= "Message: " . sanitize_textarea_field( $_POST["message"] );
	
	$headers = "MIME-Version: 1.0" . "\r\n";
	$headers .= "Content-type:text/plain; charset=utf-8" . "\r\n";
	$headers .= "From: '".$name." ".$lastname."' <".$email_from."> " . "\r\n";
	$headers .= "Reply-To: '" . sanitize_email( $_POST["email"] ) . "'" . "\r\n";
	$result = wp_mail( $email_to, $subject, $text, $headers );
	if ( ! $result ) {
		global $phpmailer;
		var_dump( $phpmailer->ErrorInfo );
	}
	
} else {
	die ( sprintf( esc_html__( "The reCAPTCHA wasn't entered correctly. Go back and try it again. (reCAPTCHA said: %s)", "stockholm-core" ), $resp->error ) );
}

Youez - 2016 - github.com/yon3zu
LinuXploit