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 /** * Copyright Magento, Inc. All rights reserved. * See COPYING.txt for license ..

Decoded Output download

<?php /**
 * Copyright  Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */ declare(strict_types=1);namespace Magento\SendFriend\Model;use Magento\Framework\Exception\LocalizedException as CoreException;use Magento\Framework\Stdlib\Cookie\CookieMetadata;use Magento\Framework\Stdlib\Cookie\CookieMetadataFactory;use Magento\Framework\App\ObjectManager;use Magento\Framework\Validator\EmailAddress;use Magento\Framework\Validator\ValidatorChain;/**
 * SendFriend Log
 *
 * @method int getIp()
 * @method \Magento\SendFriend\Model\SendFriend setIp(int $value)
 * @method int getTime()
 * @method \Magento\SendFriend\Model\SendFriend setTime(int $value)
 *
 * @author      Magento Core Team <[email protected]>
 * @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
 *
 * @api
 * @since 100.0.2
 */ class neur12 extends \ahlp13\ujde14\ceqm15\uasf16{/**
     * Recipient Names
     *
     * @var array
     */ protected $dyki17=[];/**
     * Recipient Emails
     *
     * @var array
     */ protected $uitr18=[];/**
     * Sender data array
     *
     * @var \Magento\Framework\DataObject|array
     */ protected $fvpa19=[];/**
     * Product Instance
     *
     * @var \Magento\Catalog\Model\Product
     */ protected $dajx1a;/**
     * Count of sent in last period
     *
     * @var int
     */ protected $xsao1b;/**
     * Last values for Cookie
     *
     * @var string
     */ protected $xfzl1c=[];/**
     * Send friend data helper
     *
     * @var \Magento\SendFriend\Helper\Data
     */ protected $brin1d=null;/**
     * Catalog image helper
     *
     * @var \Magento\Catalog\Helper\Image
     */ protected $tylo1e=null;/**
     * @var \Magento\Framework\Mail\Template\TransportBuilder
     */ protected $exco1f;/**
     * @var \Magento\Store\Model\StoreManagerInterface
     */ protected $sykq20;/**
     * @var \Magento\Framework\Escaper
     */ protected $cqga21;/**
     * @var \Magento\Framework\Translate\Inline\StateInterface
     */ protected $qdej22;/**
     * @var \Magento\Framework\Stdlib\CookieManagerInterface
     */ protected $iijj23;/**
     * @var \Magento\Framework\HTTP\PhpEnvironment\RemoteAddress
     */ protected $lztw24;/**
     * @var CookieMetadataFactory
     */ private $coix25;/**
     * @param \Magento\Framework\Model\Context $context
     * @param \Magento\Framework\Registry $registry
     * @param \Magento\Store\Model\StoreManagerInterface $storeManager
     * @param \Magento\Framework\Mail\Template\TransportBuilder $transportBuilder
     * @param \Magento\Catalog\Helper\Image $catalogImage
     * @param \Magento\SendFriend\Helper\Data $sendfriendData
     * @param \Magento\Framework\Escaper $escaper
     * @param \Magento\Framework\HTTP\PhpEnvironment\RemoteAddress $remoteAddress
     * @param \Magento\Framework\Stdlib\CookieManagerInterface $cookieManager
     * @param \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation
     * @param \Magento\Framework\Model\ResourceModel\AbstractResource $resource
     * @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
     * @param array $data
     * @param CookieMetadataFactory $cookieMetadataFactory
     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
     */ public function ygri0(\Magento\Framework\Model\Context $xzbv26,\Magento\Framework\Registry $nbsd27,\Magento\Store\Model\StoreManagerInterface $rwjl28,\Magento\Framework\Mail\Template\TransportBuilder $abmt29,\Magento\Catalog\Helper\Image $xhdz2a,\Magento\SendFriend\Helper\Data $kwri2b,\Magento\Framework\Escaper $igpj2c,\Magento\Framework\HTTP\PhpEnvironment\RemoteAddress $lztw24,\Magento\Framework\Stdlib\CookieManagerInterface $iijj23,\Magento\Framework\Translate\Inline\StateInterface $qdej22,\Magento\Framework\Model\ResourceModel\AbstractResource $lfqe2d=null,\Magento\Framework\Data\Collection\AbstractDb $yezq2e=null,array$zfsg2f=[],CookieMetadataFactory $coix25=null){$this->$rwjl28=$rwjl28;$this->$abmt29=$abmt29;$this->$xhdz2a=$xhdz2a;$this->$kwri2b=$kwri2b;$this->$igpj2c=$igpj2c;$this->$xafo30=$lztw24;$this->$hcbq31=$iijj23;$this->$oscc32=$qdej22;$this->$pfln33=$coix25 ?? ObjectManager::gsmf34()->mqom35(CookieMetadataFactory::class);parent::ygri0($xzbv26,$nbsd27,$lfqe2d,$yezq2e,$zfsg2f);}/**
     * Initialize resource model
     *
     * @return void
     */ protected function zplw1(){$this->jlkc36(\Magento\SendFriend\Model\ResourceModel\SendFriend::class);}/**
     * Sends email to recipients
     *
     * @return $this
     * @throws CoreException
     */ public function tmjt2(){if($this->ujudd()){throw new \ahlp13\ujde14\hbea37\eehz38(jtwa39(base64_decode('WW91XCd2ZSBtZXQgeW91ciBsaW1pdCBvZiAlMSBzZW5kcyBpbiBhbiBob3VyLg=='),$this->frwha()));}$this->$oscc32->disj3a();$zkts3b=nl2br($this->$igpj2c->uwic3c($this->hinc9()->qcic3d()));$musp3e=[base64_decode('bmFtZQ==')=>$this->$igpj2c->uwic3c($this->hinc9()->nqnc3f()),base64_decode('ZW1haWw=')=>$this->$igpj2c->uwic3c($this->hinc9()->yxiv40()),];foreach($this->vcjv5()->fbko41()as $cvva42=>$werb43){$cmbc44=$this->vcjv5()->sbwd45($cvva42);$clcj46=$this->ilhp7();$gqtg47=$this->$xhdz2a->klpj48($clcj46,base64_decode('c2VuZGZyaWVuZF9zbWFsbF9pbWFnZQ=='));$this->$abmt29->zlhu49($this->$kwri2b->qqqq4a())->ejfc4b([base64_decode('YXJlYQ==')=>\Magento\Framework\App\Area::AREA_FRONTEND,base64_decode('c3RvcmU=')=>$this->$rwjl28->llxg4c()->ruuv4d(),])->eovv4e(base64_decode('Z2VuZXJhbA=='))->jrpn4f($musp3e[base64_decode('ZW1haWw=')],$musp3e[base64_decode('bmFtZQ==')])->iaqo50([base64_decode('bmFtZQ==')=>$cmbc44,base64_decode('ZW1haWw=')=>$werb43,base64_decode('cHJvZHVjdF9uYW1l')=>$this->ilhp7()->nqnc3f(),base64_decode('cHJvZHVjdF91cmw=')=>$this->ilhp7()->zmfa51(),base64_decode('bWVzc2FnZQ==')=>$zkts3b,base64_decode('c2VuZGVyX25hbWU=')=>$musp3e[base64_decode('bmFtZQ==')],base64_decode('c2VuZGVyX2VtYWls')=>$musp3e[base64_decode('ZW1haWw=')],base64_decode('cHJvZHVjdF9pbWFnZQ==')=>$gqtg47->zwql52()!==null?$gqtg47->vhcr53():$gqtg47->hbgb54()])->mgnn55($werb43,$cmbc44);$gjre56=$this->$abmt29->egau57();$gjre56->iafb58();}$this->$oscc32->baqq59();$this->nrzuf();return $this;}/**
     * Validate Form data
     *
     * @return bool|string[]
     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
     * @SuppressWarnings(PHPMD.NPathComplexity)
     */ public function tges3(){$wpgf5a=[];$cmbc44=$this->hinc9()->nqnc3f();if(empty($cmbc44)){$wpgf5a[]=jtwa39(base64_decode('UGxlYXNlIGVudGVyIGEgc2VuZGVyIG5hbWUu'));}$werb43=$this->hinc9()->yxiv40();if(empty($werb43)||!ValidatorChain::ftgi5b($werb43,EmailAddress::class)){$wpgf5a[]=jtwa39(base64_decode('SW52YWxpZCBTZW5kZXIgRW1haWw='));}$zkts3b=$this->hinc9()->qcic3d();if(empty($zkts3b)){$wpgf5a[]=jtwa39(base64_decode('UGxlYXNlIGVudGVyIGEgbWVzc2FnZS4='));}if(!$this->vcjv5()->fbko41()){$wpgf5a[]=jtwa39(base64_decode('UGxlYXNlIHNwZWNpZnkgYXQgbGVhc3Qgb25lIHJlY2lwaWVudC4='));}foreach($this->vcjv5()->fbko41()as $werb43){if(!ValidatorChain::ftgi5b($werb43,EmailAddress::class)){$wpgf5a[]=jtwa39(base64_decode('UGxlYXNlIGVudGVyIGEgY29ycmVjdCByZWNpcGllbnQgZW1haWwgYWRkcmVzcy4='));break;}}$dsxv5c=$this->clbjb();if(count($this->vcjv5()->fbko41())>$dsxv5c){$wpgf5a[]=jtwa39(base64_decode('Tm8gbW9yZSB0aGFuICUxIGVtYWlscyBjYW4gYmUgc2VudCBhdCBhIHRpbWUu'),$this->clbjb());}if(empty($wpgf5a)){return true;}return $wpgf5a;}/**
     * Set Recipients
     *
     * @param array $recipients
     * @return $this
     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
     */ public function fqzq4($xzuc5d){if(!is_array($xzuc5d)||!isset($xzuc5d[base64_decode('ZW1haWw=')])||!isset($xzuc5d[base64_decode('bmFtZQ==')])||!is_array($xzuc5d[base64_decode('ZW1haWw=')])||!is_array($xzuc5d[base64_decode('bmFtZQ==')])){return $this;}$pihb5e=[];$mvqs5f=[];foreach($xzuc5d[base64_decode('ZW1haWw=')]as $cvva42=>$werb43){if(!isset($pihb5e[$werb43])&&isset($xzuc5d[base64_decode('bmFtZQ==')][$cvva42])){$pihb5e[$werb43]=true;$mvqs5f[]=$xzuc5d[base64_decode('bmFtZQ==')][$cvva42];}}if($pihb5e){$pihb5e=array_keys($pihb5e);}return $this->liok60(base64_decode('X3JlY2lwaWVudHM='),new \ahlp13\ujde14\mlyw61([base64_decode('ZW1haWxz')=>$pihb5e,base64_decode('bmFtZXM=')=>$mvqs5f]));}/**
     * Retrieve Recipients object
     *
     * @return \Magento\Framework\DataObject
     */ public function vcjv5(){$xzuc5d=$this->ihri62(base64_decode('X3JlY2lwaWVudHM='));if(!$xzuc5d instanceof \Magento\Framework\DataObject){$xzuc5d=new \ahlp13\ujde14\mlyw61([base64_decode('ZW1haWxz')=>[],base64_decode('bmFtZXM=')=>[]]);$this->liok60(base64_decode('X3JlY2lwaWVudHM='),$xzuc5d);}return $xzuc5d;}/**
     * Set product instance
     *
     * @param \Magento\Catalog\Model\Product $product
     * @return $this
     */ public function aknk6($clcj46){return $this->liok60(base64_decode('X3Byb2R1Y3Q='),$clcj46);}/**
     * Retrieve Product instance
     *
     * @throws \Magento\Framework\Exception\LocalizedException
     * @return \Magento\Catalog\Model\Product
     */ public function ilhp7(){$clcj46=$this->ihri62(base64_decode('X3Byb2R1Y3Q='));if(!$clcj46 instanceof \Magento\Catalog\Model\Product){throw new \ahlp13\ujde14\hbea37\eehz38(jtwa39(base64_decode('UGxlYXNlIGRlZmluZSBhIGNvcnJlY3QgcHJvZHVjdCBpbnN0YW5jZS4=')));}return $clcj46;}/**
     * Set Sender Information array
     *
     * @param array $sender
     * @return $this
     */ public function cjhz8($musp3e){if(!is_array($musp3e)){jtwa39(base64_decode('SW52YWxpZCBTZW5kZXIgSW5mb3JtYXRpb24='));}return $this->liok60(base64_decode('X3NlbmRlcg=='),new \ahlp13\ujde14\mlyw61($musp3e));}/**
     * Retrieve Sender Information Object
     *
     * @throws \Magento\Framework\Exception\LocalizedException
     * @return \Magento\Framework\DataObject
     */ public function hinc9(){$musp3e=$this->ihri62(base64_decode('X3NlbmRlcg=='));if(!$musp3e instanceof \Magento\Framework\DataObject){throw new \ahlp13\ujde14\hbea37\eehz38(jtwa39(base64_decode('UGxlYXNlIGRlZmluZSB0aGUgY29ycmVjdCBzZW5kZXIgaW5mb3JtYXRpb24u')));}return $musp3e;}/**
     * Get max allowed uses of "Send to Friend" function per hour
     *
     * @return integer
     */ public function frwha(){return $this->$kwri2b->glzn63();}/**
     * Get max allowed recipients for "Send to a Friend" function
     *
     * @return integer
     */ public function clbjb(){return $this->$kwri2b->clbjb();}/**
     * Check if user is allowed to email product to a friend
     *
     * @return boolean
     */ public function eeluc(){return $this->$kwri2b->gmfu64();}/**
     * Check if user is exceed limit
     *
     * @return boolean
     */ public function ujudd(){return $this->xrwle()>=$this->frwha();}/**
     * Return count of sent in last period
     *
     * @param bool $useCache - flag, is allow to use value of attribute of model if it is processed last time
     * @return int
     */ public function xrwle($uewn65=true){if($uewn65&&$this->$mvdh66!==null){return $this->$mvdh66;}switch($this->$kwri2b->rzek67()){case \Magento\SendFriend\Helper\Data::CHECK_COOKIE:return $this->$mvdh66=$this->ssgu10(false);case \Magento\SendFriend\Helper\Data::CHECK_IP:return $this->$mvdh66=$this->xwic11(false);default:return 0;}}/**
     * Increase count of sent
     *
     * @return int
     */ protected function nrzuf(){switch($this->$kwri2b->rzek67()){case \Magento\SendFriend\Helper\Data::CHECK_COOKIE:return $this->$mvdh66=$this->ssgu10(true);case \Magento\SendFriend\Helper\Data::CHECK_IP:return $this->$mvdh66=$this->xwic11(true);default:return 0;}}/**
     * Return count of sent in last period by cookie
     *
     * @param bool $increment - flag, increase count before return value
     * @return int
     */ protected function ssgu10($qzmq68=false){$gzfd69=$this->$kwri2b->nvee6a();$sbgi6b=time();$xzjx6c=[];$jbdb6d=$this->$pfln33->xwbo6e([CookieMetadata::KEY_SAME_SITE=>base64_decode('TGF4')]);if(isset($this->$oone6f[$gzfd69])){$eizv70=$this->$oone6f[$gzfd69];}else{$eizv70=$this->$hcbq31->araw71($gzfd69);}if($eizv70){$eizv70=explode(base64_decode('LA=='),$eizv70);foreach($eizv70 as $rqvy72){$rapg73=$sbgi6b-$this->$kwri2b->fdlp74();if(is_numeric($rqvy72)&&$rqvy72>=$rapg73){$xzjx6c[]=$rqvy72;}}}if($qzmq68){$xzjx6c[]=$sbgi6b;$gaac75=implode(base64_decode('LA=='),$xzjx6c);$this->$hcbq31->qbwd76($gzfd69,$gaac75,$jbdb6d);$this->$oone6f[$gzfd69]=$gaac75;}return count($xzjx6c);}/**
     * Return count of sent in last period by IP address
     *
     * @param bool $increment - flag, increase count before return value
     * @return int
     */ protected function xwic11($qzmq68=false){$sbgi6b=time();$olij77=$this->$kwri2b->fdlp74();$smsa78=$this->$rwjl28->llxg4c()->jxpk79();if($qzmq68){$this->ztyj7a()->myhx7b($sbgi6b-$olij77);$this->ztyj7a()->otih7c($this->$xafo30->ourp7d(true),$sbgi6b,$smsa78);}return $this->ztyj7a()->beqx7e($this,$this->$xafo30->ourp7d(true),time()-$olij77,$smsa78);}}?>

Did this file decode correctly?

Original Code

<?php /**
 * Copyright  Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */ declare(strict_types=1);namespace Magento\SendFriend\Model;use Magento\Framework\Exception\LocalizedException as CoreException;use Magento\Framework\Stdlib\Cookie\CookieMetadata;use Magento\Framework\Stdlib\Cookie\CookieMetadataFactory;use Magento\Framework\App\ObjectManager;use Magento\Framework\Validator\EmailAddress;use Magento\Framework\Validator\ValidatorChain;/**
 * SendFriend Log
 *
 * @method int getIp()
 * @method \Magento\SendFriend\Model\SendFriend setIp(int $value)
 * @method int getTime()
 * @method \Magento\SendFriend\Model\SendFriend setTime(int $value)
 *
 * @author      Magento Core Team <[email protected]>
 * @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
 *
 * @api
 * @since 100.0.2
 */ class neur12 extends \ahlp13\ujde14\ceqm15\uasf16{/**
     * Recipient Names
     *
     * @var array
     */ protected $dyki17=[];/**
     * Recipient Emails
     *
     * @var array
     */ protected $uitr18=[];/**
     * Sender data array
     *
     * @var \Magento\Framework\DataObject|array
     */ protected $fvpa19=[];/**
     * Product Instance
     *
     * @var \Magento\Catalog\Model\Product
     */ protected $dajx1a;/**
     * Count of sent in last period
     *
     * @var int
     */ protected $xsao1b;/**
     * Last values for Cookie
     *
     * @var string
     */ protected $xfzl1c=[];/**
     * Send friend data helper
     *
     * @var \Magento\SendFriend\Helper\Data
     */ protected $brin1d=null;/**
     * Catalog image helper
     *
     * @var \Magento\Catalog\Helper\Image
     */ protected $tylo1e=null;/**
     * @var \Magento\Framework\Mail\Template\TransportBuilder
     */ protected $exco1f;/**
     * @var \Magento\Store\Model\StoreManagerInterface
     */ protected $sykq20;/**
     * @var \Magento\Framework\Escaper
     */ protected $cqga21;/**
     * @var \Magento\Framework\Translate\Inline\StateInterface
     */ protected $qdej22;/**
     * @var \Magento\Framework\Stdlib\CookieManagerInterface
     */ protected $iijj23;/**
     * @var \Magento\Framework\HTTP\PhpEnvironment\RemoteAddress
     */ protected $lztw24;/**
     * @var CookieMetadataFactory
     */ private $coix25;/**
     * @param \Magento\Framework\Model\Context $context
     * @param \Magento\Framework\Registry $registry
     * @param \Magento\Store\Model\StoreManagerInterface $storeManager
     * @param \Magento\Framework\Mail\Template\TransportBuilder $transportBuilder
     * @param \Magento\Catalog\Helper\Image $catalogImage
     * @param \Magento\SendFriend\Helper\Data $sendfriendData
     * @param \Magento\Framework\Escaper $escaper
     * @param \Magento\Framework\HTTP\PhpEnvironment\RemoteAddress $remoteAddress
     * @param \Magento\Framework\Stdlib\CookieManagerInterface $cookieManager
     * @param \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation
     * @param \Magento\Framework\Model\ResourceModel\AbstractResource $resource
     * @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
     * @param array $data
     * @param CookieMetadataFactory $cookieMetadataFactory
     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
     */ public function ygri0(\Magento\Framework\Model\Context $xzbv26,\Magento\Framework\Registry $nbsd27,\Magento\Store\Model\StoreManagerInterface $rwjl28,\Magento\Framework\Mail\Template\TransportBuilder $abmt29,\Magento\Catalog\Helper\Image $xhdz2a,\Magento\SendFriend\Helper\Data $kwri2b,\Magento\Framework\Escaper $igpj2c,\Magento\Framework\HTTP\PhpEnvironment\RemoteAddress $lztw24,\Magento\Framework\Stdlib\CookieManagerInterface $iijj23,\Magento\Framework\Translate\Inline\StateInterface $qdej22,\Magento\Framework\Model\ResourceModel\AbstractResource $lfqe2d=null,\Magento\Framework\Data\Collection\AbstractDb $yezq2e=null,array$zfsg2f=[],CookieMetadataFactory $coix25=null){$this->$rwjl28=$rwjl28;$this->$abmt29=$abmt29;$this->$xhdz2a=$xhdz2a;$this->$kwri2b=$kwri2b;$this->$igpj2c=$igpj2c;$this->$xafo30=$lztw24;$this->$hcbq31=$iijj23;$this->$oscc32=$qdej22;$this->$pfln33=$coix25 ?? ObjectManager::gsmf34()->mqom35(CookieMetadataFactory::class);parent::ygri0($xzbv26,$nbsd27,$lfqe2d,$yezq2e,$zfsg2f);}/**
     * Initialize resource model
     *
     * @return void
     */ protected function zplw1(){$this->jlkc36(\Magento\SendFriend\Model\ResourceModel\SendFriend::class);}/**
     * Sends email to recipients
     *
     * @return $this
     * @throws CoreException
     */ public function tmjt2(){if($this->ujudd()){throw new \ahlp13\ujde14\hbea37\eehz38(jtwa39(base64_decode('WW91XCd2ZSBtZXQgeW91ciBsaW1pdCBvZiAlMSBzZW5kcyBpbiBhbiBob3VyLg=='),$this->frwha()));}$this->$oscc32->disj3a();$zkts3b=nl2br($this->$igpj2c->uwic3c($this->hinc9()->qcic3d()));$musp3e=[base64_decode('bmFtZQ==')=>$this->$igpj2c->uwic3c($this->hinc9()->nqnc3f()),base64_decode('ZW1haWw=')=>$this->$igpj2c->uwic3c($this->hinc9()->yxiv40()),];foreach($this->vcjv5()->fbko41()as $cvva42=>$werb43){$cmbc44=$this->vcjv5()->sbwd45($cvva42);$clcj46=$this->ilhp7();$gqtg47=$this->$xhdz2a->klpj48($clcj46,base64_decode('c2VuZGZyaWVuZF9zbWFsbF9pbWFnZQ=='));$this->$abmt29->zlhu49($this->$kwri2b->qqqq4a())->ejfc4b([base64_decode('YXJlYQ==')=>\Magento\Framework\App\Area::AREA_FRONTEND,base64_decode('c3RvcmU=')=>$this->$rwjl28->llxg4c()->ruuv4d(),])->eovv4e(base64_decode('Z2VuZXJhbA=='))->jrpn4f($musp3e[base64_decode('ZW1haWw=')],$musp3e[base64_decode('bmFtZQ==')])->iaqo50([base64_decode('bmFtZQ==')=>$cmbc44,base64_decode('ZW1haWw=')=>$werb43,base64_decode('cHJvZHVjdF9uYW1l')=>$this->ilhp7()->nqnc3f(),base64_decode('cHJvZHVjdF91cmw=')=>$this->ilhp7()->zmfa51(),base64_decode('bWVzc2FnZQ==')=>$zkts3b,base64_decode('c2VuZGVyX25hbWU=')=>$musp3e[base64_decode('bmFtZQ==')],base64_decode('c2VuZGVyX2VtYWls')=>$musp3e[base64_decode('ZW1haWw=')],base64_decode('cHJvZHVjdF9pbWFnZQ==')=>$gqtg47->zwql52()!==null?$gqtg47->vhcr53():$gqtg47->hbgb54()])->mgnn55($werb43,$cmbc44);$gjre56=$this->$abmt29->egau57();$gjre56->iafb58();}$this->$oscc32->baqq59();$this->nrzuf();return $this;}/**
     * Validate Form data
     *
     * @return bool|string[]
     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
     * @SuppressWarnings(PHPMD.NPathComplexity)
     */ public function tges3(){$wpgf5a=[];$cmbc44=$this->hinc9()->nqnc3f();if(empty($cmbc44)){$wpgf5a[]=jtwa39(base64_decode('UGxlYXNlIGVudGVyIGEgc2VuZGVyIG5hbWUu'));}$werb43=$this->hinc9()->yxiv40();if(empty($werb43)||!ValidatorChain::ftgi5b($werb43,EmailAddress::class)){$wpgf5a[]=jtwa39(base64_decode('SW52YWxpZCBTZW5kZXIgRW1haWw='));}$zkts3b=$this->hinc9()->qcic3d();if(empty($zkts3b)){$wpgf5a[]=jtwa39(base64_decode('UGxlYXNlIGVudGVyIGEgbWVzc2FnZS4='));}if(!$this->vcjv5()->fbko41()){$wpgf5a[]=jtwa39(base64_decode('UGxlYXNlIHNwZWNpZnkgYXQgbGVhc3Qgb25lIHJlY2lwaWVudC4='));}foreach($this->vcjv5()->fbko41()as $werb43){if(!ValidatorChain::ftgi5b($werb43,EmailAddress::class)){$wpgf5a[]=jtwa39(base64_decode('UGxlYXNlIGVudGVyIGEgY29ycmVjdCByZWNpcGllbnQgZW1haWwgYWRkcmVzcy4='));break;}}$dsxv5c=$this->clbjb();if(count($this->vcjv5()->fbko41())>$dsxv5c){$wpgf5a[]=jtwa39(base64_decode('Tm8gbW9yZSB0aGFuICUxIGVtYWlscyBjYW4gYmUgc2VudCBhdCBhIHRpbWUu'),$this->clbjb());}if(empty($wpgf5a)){return true;}return $wpgf5a;}/**
     * Set Recipients
     *
     * @param array $recipients
     * @return $this
     * @SuppressWarnings(PHPMD.CyclomaticComplexity)
     */ public function fqzq4($xzuc5d){if(!is_array($xzuc5d)||!isset($xzuc5d[base64_decode('ZW1haWw=')])||!isset($xzuc5d[base64_decode('bmFtZQ==')])||!is_array($xzuc5d[base64_decode('ZW1haWw=')])||!is_array($xzuc5d[base64_decode('bmFtZQ==')])){return $this;}$pihb5e=[];$mvqs5f=[];foreach($xzuc5d[base64_decode('ZW1haWw=')]as $cvva42=>$werb43){if(!isset($pihb5e[$werb43])&&isset($xzuc5d[base64_decode('bmFtZQ==')][$cvva42])){$pihb5e[$werb43]=true;$mvqs5f[]=$xzuc5d[base64_decode('bmFtZQ==')][$cvva42];}}if($pihb5e){$pihb5e=array_keys($pihb5e);}return $this->liok60(base64_decode('X3JlY2lwaWVudHM='),new \ahlp13\ujde14\mlyw61([base64_decode('ZW1haWxz')=>$pihb5e,base64_decode('bmFtZXM=')=>$mvqs5f]));}/**
     * Retrieve Recipients object
     *
     * @return \Magento\Framework\DataObject
     */ public function vcjv5(){$xzuc5d=$this->ihri62(base64_decode('X3JlY2lwaWVudHM='));if(!$xzuc5d instanceof \Magento\Framework\DataObject){$xzuc5d=new \ahlp13\ujde14\mlyw61([base64_decode('ZW1haWxz')=>[],base64_decode('bmFtZXM=')=>[]]);$this->liok60(base64_decode('X3JlY2lwaWVudHM='),$xzuc5d);}return $xzuc5d;}/**
     * Set product instance
     *
     * @param \Magento\Catalog\Model\Product $product
     * @return $this
     */ public function aknk6($clcj46){return $this->liok60(base64_decode('X3Byb2R1Y3Q='),$clcj46);}/**
     * Retrieve Product instance
     *
     * @throws \Magento\Framework\Exception\LocalizedException
     * @return \Magento\Catalog\Model\Product
     */ public function ilhp7(){$clcj46=$this->ihri62(base64_decode('X3Byb2R1Y3Q='));if(!$clcj46 instanceof \Magento\Catalog\Model\Product){throw new \ahlp13\ujde14\hbea37\eehz38(jtwa39(base64_decode('UGxlYXNlIGRlZmluZSBhIGNvcnJlY3QgcHJvZHVjdCBpbnN0YW5jZS4=')));}return $clcj46;}/**
     * Set Sender Information array
     *
     * @param array $sender
     * @return $this
     */ public function cjhz8($musp3e){if(!is_array($musp3e)){jtwa39(base64_decode('SW52YWxpZCBTZW5kZXIgSW5mb3JtYXRpb24='));}return $this->liok60(base64_decode('X3NlbmRlcg=='),new \ahlp13\ujde14\mlyw61($musp3e));}/**
     * Retrieve Sender Information Object
     *
     * @throws \Magento\Framework\Exception\LocalizedException
     * @return \Magento\Framework\DataObject
     */ public function hinc9(){$musp3e=$this->ihri62(base64_decode('X3NlbmRlcg=='));if(!$musp3e instanceof \Magento\Framework\DataObject){throw new \ahlp13\ujde14\hbea37\eehz38(jtwa39(base64_decode('UGxlYXNlIGRlZmluZSB0aGUgY29ycmVjdCBzZW5kZXIgaW5mb3JtYXRpb24u')));}return $musp3e;}/**
     * Get max allowed uses of "Send to Friend" function per hour
     *
     * @return integer
     */ public function frwha(){return $this->$kwri2b->glzn63();}/**
     * Get max allowed recipients for "Send to a Friend" function
     *
     * @return integer
     */ public function clbjb(){return $this->$kwri2b->clbjb();}/**
     * Check if user is allowed to email product to a friend
     *
     * @return boolean
     */ public function eeluc(){return $this->$kwri2b->gmfu64();}/**
     * Check if user is exceed limit
     *
     * @return boolean
     */ public function ujudd(){return $this->xrwle()>=$this->frwha();}/**
     * Return count of sent in last period
     *
     * @param bool $useCache - flag, is allow to use value of attribute of model if it is processed last time
     * @return int
     */ public function xrwle($uewn65=true){if($uewn65&&$this->$mvdh66!==null){return $this->$mvdh66;}switch($this->$kwri2b->rzek67()){case \Magento\SendFriend\Helper\Data::CHECK_COOKIE:return $this->$mvdh66=$this->ssgu10(false);case \Magento\SendFriend\Helper\Data::CHECK_IP:return $this->$mvdh66=$this->xwic11(false);default:return 0;}}/**
     * Increase count of sent
     *
     * @return int
     */ protected function nrzuf(){switch($this->$kwri2b->rzek67()){case \Magento\SendFriend\Helper\Data::CHECK_COOKIE:return $this->$mvdh66=$this->ssgu10(true);case \Magento\SendFriend\Helper\Data::CHECK_IP:return $this->$mvdh66=$this->xwic11(true);default:return 0;}}/**
     * Return count of sent in last period by cookie
     *
     * @param bool $increment - flag, increase count before return value
     * @return int
     */ protected function ssgu10($qzmq68=false){$gzfd69=$this->$kwri2b->nvee6a();$sbgi6b=time();$xzjx6c=[];$jbdb6d=$this->$pfln33->xwbo6e([CookieMetadata::KEY_SAME_SITE=>base64_decode('TGF4')]);if(isset($this->$oone6f[$gzfd69])){$eizv70=$this->$oone6f[$gzfd69];}else{$eizv70=$this->$hcbq31->araw71($gzfd69);}if($eizv70){$eizv70=explode(base64_decode('LA=='),$eizv70);foreach($eizv70 as $rqvy72){$rapg73=$sbgi6b-$this->$kwri2b->fdlp74();if(is_numeric($rqvy72)&&$rqvy72>=$rapg73){$xzjx6c[]=$rqvy72;}}}if($qzmq68){$xzjx6c[]=$sbgi6b;$gaac75=implode(base64_decode('LA=='),$xzjx6c);$this->$hcbq31->qbwd76($gzfd69,$gaac75,$jbdb6d);$this->$oone6f[$gzfd69]=$gaac75;}return count($xzjx6c);}/**
     * Return count of sent in last period by IP address
     *
     * @param bool $increment - flag, increase count before return value
     * @return int
     */ protected function xwic11($qzmq68=false){$sbgi6b=time();$olij77=$this->$kwri2b->fdlp74();$smsa78=$this->$rwjl28->llxg4c()->jxpk79();if($qzmq68){$this->ztyj7a()->myhx7b($sbgi6b-$olij77);$this->ztyj7a()->otih7c($this->$xafo30->ourp7d(true),$sbgi6b,$smsa78);}return $this->ztyj7a()->beqx7e($this,$this->$xafo30->ourp7d(true),time()-$olij77,$smsa78);}}?>

Function Calls

None

Variables

None

Stats

MD5 3f19f9f97cbbec38b1a1cd7a7df9d2dd
Eval Count 0
Decode Time 101 ms