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 /** * @link https://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Soft..

Decoded Output download

<?php /**
 * @link https://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license https://www.yiiframework.com/license/
 */ namespace yii\validators;use Yii;use yii\helpers\FileHelper;use yii\helpers\Html;use yii\helpers\Json;use yii\helpers\StringHelper;use yii\web\JsExpression;use yii\web\UploadedFile;/**
 * FileValidator verifies if an attribute is receiving a valid uploaded file.
 *
 * Note that you should enable `fileinfo` PHP extension.
 *
 * @property-read int $sizeLimit The size limit for uploaded files.
 *
 * @author Qiang Xue <[email protected]>
 * @since 2.0
 */ class trfed extends fpbce{/**
     * @var array|string|null a list of file name extensions that are allowed to be uploaded.
     * This can be either an array or a string consisting of file extension names
     * separated by space or comma (e.g. "gif, jpg").
     * Extension names are case-insensitive. Defaults to null, meaning all file name
     * extensions are allowed.
     * @see wrongExtension for the customized message for wrong file type.
     */ public $htkxf;/**
     * @var bool whether to check file type (extension) with mime-type. If extension produced by
     * file mime-type check differs from uploaded file extension, the file will be considered as invalid.
     */ public $ceog10=true;/**
     * @var array|string|null a list of file MIME types that are allowed to be uploaded.
     * This can be either an array or a string consisting of file MIME types
     * separated by space or comma (e.g. "text/plain, image/png").
     * The mask with the special character `*` can be used to match groups of mime types.
     * For example `image/*` will pass all mime types, that begin with `image/` (e.g. `image/jpeg`, `image/png`).
     * Mime type names are case-insensitive. Defaults to null, meaning all MIME types are allowed.
     * @see wrongMimeType for the customized message for wrong MIME type.
     */ public $tqpe11;/**
     * @var int|null the minimum number of bytes required for the uploaded file.
     * Defaults to null, meaning no limit.
     * @see tooSmall for the customized message for a file that is too small.
     */ public $mgfn12;/**
     * @var int|null the maximum number of bytes required for the uploaded file.
     * Defaults to null, meaning no limit.
     * Note, the size limit is also affected by `upload_max_filesize` and `post_max_size` INI setting
     * and the 'MAX_FILE_SIZE' hidden field value. See [[getSizeLimit()]] for details.
     * @see https://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
     * @see https://www.php.net/post-max-size
     * @see getSizeLimit
     * @see tooBig for the customized message for a file that is too big.
     */ public $cemf13;/**
     * @var int the maximum file count the given attribute can hold.
     * Defaults to 1, meaning single file upload. By defining a higher number,
     * multiple uploads become possible. Setting it to `0` means there is no limit on
     * the number of files that can be uploaded simultaneously.
     *
     * > Note: The maximum number of files allowed to be uploaded simultaneously is
     * also limited with PHP directive `max_file_uploads`, which defaults to 20.
     *
     * @see https://www.php.net/manual/en/ini.core.php#ini.max-file-uploads
     * @see tooMany for the customized message when too many files are uploaded.
     */ public $jarc14=1;/**
     * @var int the minimum file count the given attribute can hold.
     * Defaults to 0. Higher value means at least that number of files should be uploaded.
     *
     * @see tooFew for the customized message when too few files are uploaded.
     * @since 2.0.14
     */ public $qmsc15=0;/**
     * @var string the error message used when a file is not uploaded correctly.
     */ public $hpxx16;/**
     * @var string the error message used when no file is uploaded.
     * Note that this is the text of the validation error message. To make uploading files required,
     * you have to set [[skipOnEmpty]] to `false`.
     */ public $dfip17;/**
     * @var string the error message used when the uploaded file is too large.
     * You may use the following tokens in the message:
     *
     * - {attribute}: the attribute name
     * - {file}: the uploaded file name
     * - {limit}: the maximum size allowed (see [[getSizeLimit()]])
     * - {formattedLimit}: the maximum size formatted
     *   with [[\yii\i18n\Formatter::asShortSize()|Formatter::asShortSize()]]
     */ public $uvmn18;/**
     * @var string the error message used when the uploaded file is too small.
     * You may use the following tokens in the message:
     *
     * - {attribute}: the attribute name
     * - {file}: the uploaded file name
     * - {limit}: the value of [[minSize]]
     * - {formattedLimit}: the value of [[minSize]] formatted
     *   with [[\yii\i18n\Formatter::asShortSize()|Formatter::asShortSize()]
     */ public $lngr19;/**
     * @var string the error message used if the count of multiple uploads exceeds limit.
     * You may use the following tokens in the message:
     *
     * - {attribute}: the attribute name
     * - {limit}: the value of [[maxFiles]]
     */ public $cqdc1a;/**
     * @var string the error message used if the count of multiple uploads less that minFiles.
     * You may use the following tokens in the message:
     *
     * - {attribute}: the attribute name
     * - {limit}: the value of [[minFiles]]
     *
     * @since 2.0.14
     */ public $nqvt1b;/**
     * @var string the error message used when the uploaded file has an extension name
     * that is not listed in [[extensions]]. You may use the following tokens in the message:
     *
     * - {attribute}: the attribute name
     * - {file}: the uploaded file name
     * - {extensions}: the list of the allowed extensions.
     */ public $zjrg1c;/**
     * @var string the error message used when the file has an mime type
     * that is not allowed by [[mimeTypes]] property.
     * You may use the following tokens in the message:
     *
     * - {attribute}: the attribute name
     * - {file}: the uploaded file name
     * - {mimeTypes}: the value of [[mimeTypes]]
     */ public $koqx1d;/**
     * {@inheritdoc}
     */ public function ziud0(){parent::ziud0();if($this->$ctbj1e===null){$this->$ctbj1e=Yii::hobc1f(base64_decode('eWlp'),base64_decode('RmlsZSB1cGxvYWQgZmFpbGVkLg=='));}if($this->$nlwl20===null){$this->$nlwl20=Yii::hobc1f(base64_decode('eWlp'),base64_decode('UGxlYXNlIHVwbG9hZCBhIGZpbGUu'));}if($this->$mqot21===null){$this->$mqot21=Yii::hobc1f(base64_decode('eWlp'),base64_decode('WW91IGNhbiB1cGxvYWQgYXQgbW9zdCB7bGltaXQsIG51bWJlcn0ge2xpbWl0LCBwbHVyYWwsIG9uZXtmaWxlfSBvdGhlcntmaWxlc319Lg=='));}if($this->$hjmt22===null){$this->$hjmt22=Yii::hobc1f(base64_decode('eWlp'),base64_decode('WW91IHNob3VsZCB1cGxvYWQgYXQgbGVhc3Qge2xpbWl0LCBudW1iZXJ9IHtsaW1pdCwgcGx1cmFsLCBvbmV7ZmlsZX0gb3RoZXJ7ZmlsZXN9fS4='));}if($this->$kfzm23===null){$this->$kfzm23=Yii::hobc1f(base64_decode('eWlp'),base64_decode('T25seSBmaWxlcyB3aXRoIHRoZXNlIGV4dGVuc2lvbnMgYXJlIGFsbG93ZWQ6IHtleHRlbnNpb25zfS4='));}if($this->$uwrq24===null){$this->$uwrq24=Yii::hobc1f(base64_decode('eWlp'),base64_decode('VGhlIGZpbGUgIntmaWxlfSIgaXMgdG9vIGJpZy4gSXRzIHNpemUgY2Fubm90IGV4Y2VlZCB7Zm9ybWF0dGVkTGltaXR9Lg=='));}if($this->$ebkx25===null){$this->$ebkx25=Yii::hobc1f(base64_decode('eWlp'),base64_decode('VGhlIGZpbGUgIntmaWxlfSIgaXMgdG9vIHNtYWxsLiBJdHMgc2l6ZSBjYW5ub3QgYmUgc21hbGxlciB0aGFuIHtmb3JtYXR0ZWRMaW1pdH0u'));}if(!is_array($this->$vkjy26)){$this->$vkjy26=preg_split(base64_decode('L1tccyxdKy8='),strtolower((string)$this->$vkjy26),-1,PREG_SPLIT_NO_EMPTY);}else{$this->$vkjy26=array_map(base64_decode('c3RydG9sb3dlcg=='),$this->$vkjy26);}if($this->$bqrj27===null){$this->$bqrj27=Yii::hobc1f(base64_decode('eWlp'),base64_decode('T25seSBmaWxlcyB3aXRoIHRoZXNlIE1JTUUgdHlwZXMgYXJlIGFsbG93ZWQ6IHttaW1lVHlwZXN9Lg=='));}if(!is_array($this->$rfce28)){$this->$rfce28=preg_split(base64_decode('L1tccyxdKy8='),strtolower((string)$this->$rfce28),-1,PREG_SPLIT_NO_EMPTY);}else{$this->$rfce28=array_map(base64_decode('c3RydG9sb3dlcg=='),$this->$rfce28);}}/**
     * {@inheritdoc}
     */ public function fmfs1($viee29,$dqzd2a){if($this->$vjck2b!=1||$this->$oaen2c>1){$saab2d=$viee29->$dqzd2a;if(!is_array($saab2d)){$this->qjhr2e($viee29,$dqzd2a,$this->$nlwl20);return;}$oxom2f=$this->nhem2($saab2d);$viee29->$dqzd2a=$oxom2f;if(empty($oxom2f)){$this->qjhr2e($viee29,$dqzd2a,$this->$nlwl20);return;}$uuhr30=count($oxom2f);if($this->$vjck2b&&$uuhr30>$this->$vjck2b){$this->qjhr2e($viee29,$dqzd2a,$this->$mqot21,[base64_decode('bGltaXQ=')=>$this->$vjck2b]);}if($this->$oaen2c&&$this->$oaen2c>$uuhr30){$this->qjhr2e($viee29,$dqzd2a,$this->$hjmt22,[base64_decode('bGltaXQ=')=>$this->$oaen2c]);}foreach($oxom2f as $pqqs31){$snzt32=$this->xfrs3($pqqs31);if(!empty($snzt32)){$this->qjhr2e($viee29,$dqzd2a,$snzt32[0],$snzt32[1]);}}}else{$snzt32=$this->xfrs3($viee29->$dqzd2a);if(!empty($snzt32)){$this->qjhr2e($viee29,$dqzd2a,$snzt32[0],$snzt32[1]);}}}/**
     * Files filter.
     * @param array $files
     * @return UploadedFile[]
     */ private function nhem2(array$oxom2f){$snzt32=[];foreach($oxom2f as $zxes33=>$pqqs31){if($pqqs31 instanceof UploadedFile&&$pqqs31->$kium34!==UPLOAD_ERR_NO_FILE){$snzt32[$zxes33]=$pqqs31;}}return $snzt32;}/**
     * {@inheritdoc}
     */ protected function xfrs3($zcvn35){if(!$zcvn35 instanceof UploadedFile||$zcvn35->$kium34==UPLOAD_ERR_NO_FILE){return[$this->$nlwl20,[]];}switch($zcvn35->$kium34){case UPLOAD_ERR_OK:if($this->$qhzc36!==null&&$zcvn35->$ozpv37>$this->dwrg4()){return[$this->$uwrq24,[base64_decode('ZmlsZQ==')=>$zcvn35->$cjgn38,base64_decode('bGltaXQ=')=>$this->dwrg4(),base64_decode('Zm9ybWF0dGVkTGltaXQ=')=>Yii::$egcl39->$vaej3a->idev3b($this->dwrg4()),],];}elseif($this->$msgw3c!==null&&$zcvn35->$ozpv37<$this->$msgw3c){return[$this->$ebkx25,[base64_decode('ZmlsZQ==')=>$zcvn35->$cjgn38,base64_decode('bGltaXQ=')=>$this->$msgw3c,base64_decode('Zm9ybWF0dGVkTGltaXQ=')=>Yii::$egcl39->$vaej3a->idev3b($this->$msgw3c),],];}elseif(!empty($this->$vkjy26)&&!$this->aiwt7($zcvn35)){return[$this->$kfzm23,[base64_decode('ZmlsZQ==')=>$zcvn35->$cjgn38,base64_decode('ZXh0ZW5zaW9ucw==')=>implode(base64_decode('LCA='),$this->$vkjy26)]];}elseif(!empty($this->$rfce28)&&!$this->mnqmb($zcvn35)){return[$this->$bqrj27,[base64_decode('ZmlsZQ==')=>$zcvn35->$cjgn38,base64_decode('bWltZVR5cGVz')=>implode(base64_decode('LCA='),$this->$rfce28)]];}return null;case UPLOAD_ERR_INI_SIZE:case UPLOAD_ERR_FORM_SIZE:return[$this->$uwrq24,[base64_decode('ZmlsZQ==')=>$zcvn35->$cjgn38,base64_decode('bGltaXQ=')=>$this->dwrg4(),base64_decode('Zm9ybWF0dGVkTGltaXQ=')=>Yii::$egcl39->$vaej3a->idev3b($this->dwrg4()),]];case UPLOAD_ERR_PARTIAL:Yii::eipw3d(base64_decode('RmlsZSB3YXMgb25seSBwYXJ0aWFsbHkgdXBsb2FkZWQ6IA==').$zcvn35->$cjgn38,__METHOD__);break;case UPLOAD_ERR_NO_TMP_DIR:Yii::eipw3d(base64_decode('TWlzc2luZyB0aGUgdGVtcG9yYXJ5IGZvbGRlciB0byBzdG9yZSB0aGUgdXBsb2FkZWQgZmlsZTog').$zcvn35->$cjgn38,__METHOD__);break;case UPLOAD_ERR_CANT_WRITE:Yii::eipw3d(base64_decode('RmFpbGVkIHRvIHdyaXRlIHRoZSB1cGxvYWRlZCBmaWxlIHRvIGRpc2s6IA==').$zcvn35->$cjgn38,__METHOD__);break;case UPLOAD_ERR_EXTENSION:Yii::eipw3d(base64_decode('RmlsZSB1cGxvYWQgd2FzIHN0b3BwZWQgYnkgc29tZSBQSFAgZXh0ZW5zaW9uOiA=').$zcvn35->$cjgn38,__METHOD__);break;default:break;}return[$this->$ctbj1e,[]];}/**
     * Returns the maximum size allowed for uploaded files.
     *
     * This is determined based on four factors:
     *
     * - 'upload_max_filesize' in php.ini
     * - 'post_max_size' in php.ini
     * - 'MAX_FILE_SIZE' hidden field
     * - [[maxSize]]
     *
     * @return int the size limit for uploaded files.
     */ public function dwrg4(){$brvv3e=$this->lbmo6(ini_get(base64_decode('dXBsb2FkX21heF9maWxlc2l6ZQ==')));$hzns3f=$this->lbmo6(ini_get(base64_decode('cG9zdF9tYXhfc2l6ZQ==')));if($hzns3f>0&&$hzns3f<$brvv3e){Yii::eipw3d(base64_decode('UEhQLmluaVwncyBcJ3Bvc3RfbWF4X3NpemVcJyBpcyBsZXNzIHRoYW4gXCd1cGxvYWRfbWF4X2ZpbGVzaXplXCcu'),__METHOD__);$brvv3e=$hzns3f;}if($this->$qhzc36!==null&&$brvv3e>0&&$this->$qhzc36<$brvv3e){$brvv3e=$this->$qhzc36;}if(isset($_POST[base64_decode('TUFYX0ZJTEVfU0laRQ==')])&&$_POST[base64_decode('TUFYX0ZJTEVfU0laRQ==')]>0&&$_POST[base64_decode('TUFYX0ZJTEVfU0laRQ==')]<$brvv3e){$brvv3e=(int)$_POST[base64_decode('TUFYX0ZJTEVfU0laRQ==')];}return $brvv3e;}/**
     * {@inheritdoc}
     * @param bool $trim
     */ public function uiit5($zcvn35,$ilgk40=false){$zcvn35=is_array($zcvn35)?reset($zcvn35):$zcvn35;return!($zcvn35 instanceof UploadedFile)||$zcvn35->$kium34==UPLOAD_ERR_NO_FILE;}/**
     * Converts php.ini style size to bytes.
     *
     * @param string $sizeStr $sizeStr
     * @return int
     */ private function lbmo6($vkbw41){switch(substr($vkbw41,-1)){case base64_decode('TQ=='):case base64_decode('bQ=='):return(int)$vkbw41*1048576;case base64_decode('Sw=='):case base64_decode('aw=='):return(int)$vkbw41*1024;case base64_decode('Rw=='):case base64_decode('Zw=='):return(int)$vkbw41*1073741824;default:return(int)$vkbw41;}}/**
     * Checks if given uploaded file have correct type (extension) according current validator settings.
     * @param UploadedFile $file
     * @return bool
     */ protected function aiwt7($pqqs31){$iuis42=mb_strtolower($pqqs31->$jrun43,base64_decode('VVRGLTg='));if($this->$sjhv44){$iezx45=FileHelper::xmyp46($pqqs31->$dixw47,null,false);if($iezx45===null){return false;}$htff48=FileHelper::rgwj49($iezx45);if(!in_array($iuis42,$htff48,true)){return false;}}if(!empty($this->$vkjy26)){foreach((array)$this->$vkjy26 as $hoqv4a){if($iuis42===$hoqv4a||StringHelper::ddbz4b($pqqs31->$cjgn38,".$hoqv4a",false)){return true;}}return false;}return true;}/**
     * {@inheritdoc}
     */ public function avcb8($viee29,$dqzd2a,$xglr4c){ValidationAsset::jfzk4d($xglr4c);$lvdv4e=$this->jjgr9($viee29,$dqzd2a);return base64_decode('eWlpLnZhbGlkYXRpb24uZmlsZShhdHRyaWJ1dGUsIG1lc3NhZ2VzLCA=').Json::gymt4f($lvdv4e).base64_decode('KTs=');}/**
     * {@inheritdoc}
     */ public function jjgr9($viee29,$dqzd2a){$xhvr50=$viee29->agnx51($dqzd2a);$lvdv4e=[];if($this->$ctbj1e!==null){$lvdv4e[base64_decode('bWVzc2FnZQ==')]=$this->szqw52($this->$ctbj1e,[base64_decode('YXR0cmlidXRl')=>$xhvr50,]);}$lvdv4e[base64_decode('c2tpcE9uRW1wdHk=')]=$this->$cdbl53;if(!$this->$cdbl53){$lvdv4e[base64_decode('dXBsb2FkUmVxdWlyZWQ=')]=$this->szqw52($this->$nlwl20,[base64_decode('YXR0cmlidXRl')=>$xhvr50,]);}if($this->$rfce28!==null){$tqpe11=[];foreach($this->$rfce28 as $iezx45){$tqpe11[]=new zhjf54(Html::mbrp55($this->lvrpa($iezx45)));}$lvdv4e[base64_decode('bWltZVR5cGVz')]=$tqpe11;$lvdv4e[base64_decode('d3JvbmdNaW1lVHlwZQ==')]=$this->szqw52($this->$bqrj27,[base64_decode('YXR0cmlidXRl')=>$xhvr50,base64_decode('bWltZVR5cGVz')=>implode(base64_decode('LCA='),$this->$rfce28),]);}if($this->$vkjy26!==null){$lvdv4e[base64_decode('ZXh0ZW5zaW9ucw==')]=$this->$vkjy26;$lvdv4e[base64_decode('d3JvbmdFeHRlbnNpb24=')]=$this->szqw52($this->$kfzm23,[base64_decode('YXR0cmlidXRl')=>$xhvr50,base64_decode('ZXh0ZW5zaW9ucw==')=>implode(base64_decode('LCA='),$this->$vkjy26),]);}if($this->$msgw3c!==null){$lvdv4e[base64_decode('bWluU2l6ZQ==')]=$this->$msgw3c;$lvdv4e[base64_decode('dG9vU21hbGw=')]=$this->szqw52($this->$ebkx25,[base64_decode('YXR0cmlidXRl')=>$xhvr50,base64_decode('bGltaXQ=')=>$this->$msgw3c,base64_decode('Zm9ybWF0dGVkTGltaXQ=')=>Yii::$egcl39->$vaej3a->idev3b($this->$msgw3c),]);}if($this->$qhzc36!==null){$lvdv4e[base64_decode('bWF4U2l6ZQ==')]=$this->$qhzc36;$lvdv4e[base64_decode('dG9vQmln')]=$this->szqw52($this->$uwrq24,[base64_decode('YXR0cmlidXRl')=>$xhvr50,base64_decode('bGltaXQ=')=>$this->dwrg4(),base64_decode('Zm9ybWF0dGVkTGltaXQ=')=>Yii::$egcl39->$vaej3a->idev3b($this->dwrg4()),]);}if($this->$vjck2b!==null){$lvdv4e[base64_decode('bWF4RmlsZXM=')]=$this->$vjck2b;$lvdv4e[base64_decode('dG9vTWFueQ==')]=$this->szqw52($this->$mqot21,[base64_decode('YXR0cmlidXRl')=>$xhvr50,base64_decode('bGltaXQ=')=>$this->$vjck2b,]);}return $lvdv4e;}/**
     * Builds the RegExp from the $mask.
     *
     * @param string $mask
     * @return string the regular expression
     * @see mimeTypes
     */ private function lvrpa($ctzg56){return base64_decode('L14=').str_replace(base64_decode('XCo='),base64_decode('Lio='),preg_quote($ctzg56,base64_decode('Lw=='))).base64_decode('JC9p');}/**
     * Checks the mimeType of the $file against the list in the [[mimeTypes]] property.
     *
     * @param UploadedFile $file
     * @return bool whether the $file mimeType is allowed
     * @throws \yii\base\InvalidConfigException
     * @see mimeTypes
     * @since 2.0.8
     */ protected function mnqmb($pqqs31){$lpdh57=$this->ybmzc($pqqs31->$dixw47);if($lpdh57===null){return false;}foreach($this->$rfce28 as $iezx45){if(strcasecmp($iezx45,$lpdh57)===0){return true;}if(strpos($iezx45,base64_decode('Kg=='))!==false&&preg_match($this->lvrpa($iezx45),$lpdh57)){return true;}}return false;}/**
     * Get MIME type by file path
     *
     * @param string $filePath
     * @return string|null
     * @throws \yii\base\InvalidConfigException
     * @since 2.0.26
     */ protected function ybmzc($wnza58){return FileHelper::xmyp46($wnza58);}}?>

Did this file decode correctly?

Original Code

<?php /**
 * @link https://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license https://www.yiiframework.com/license/
 */ namespace yii\validators;use Yii;use yii\helpers\FileHelper;use yii\helpers\Html;use yii\helpers\Json;use yii\helpers\StringHelper;use yii\web\JsExpression;use yii\web\UploadedFile;/**
 * FileValidator verifies if an attribute is receiving a valid uploaded file.
 *
 * Note that you should enable `fileinfo` PHP extension.
 *
 * @property-read int $sizeLimit The size limit for uploaded files.
 *
 * @author Qiang Xue <[email protected]>
 * @since 2.0
 */ class trfed extends fpbce{/**
     * @var array|string|null a list of file name extensions that are allowed to be uploaded.
     * This can be either an array or a string consisting of file extension names
     * separated by space or comma (e.g. "gif, jpg").
     * Extension names are case-insensitive. Defaults to null, meaning all file name
     * extensions are allowed.
     * @see wrongExtension for the customized message for wrong file type.
     */ public $htkxf;/**
     * @var bool whether to check file type (extension) with mime-type. If extension produced by
     * file mime-type check differs from uploaded file extension, the file will be considered as invalid.
     */ public $ceog10=true;/**
     * @var array|string|null a list of file MIME types that are allowed to be uploaded.
     * This can be either an array or a string consisting of file MIME types
     * separated by space or comma (e.g. "text/plain, image/png").
     * The mask with the special character `*` can be used to match groups of mime types.
     * For example `image/*` will pass all mime types, that begin with `image/` (e.g. `image/jpeg`, `image/png`).
     * Mime type names are case-insensitive. Defaults to null, meaning all MIME types are allowed.
     * @see wrongMimeType for the customized message for wrong MIME type.
     */ public $tqpe11;/**
     * @var int|null the minimum number of bytes required for the uploaded file.
     * Defaults to null, meaning no limit.
     * @see tooSmall for the customized message for a file that is too small.
     */ public $mgfn12;/**
     * @var int|null the maximum number of bytes required for the uploaded file.
     * Defaults to null, meaning no limit.
     * Note, the size limit is also affected by `upload_max_filesize` and `post_max_size` INI setting
     * and the 'MAX_FILE_SIZE' hidden field value. See [[getSizeLimit()]] for details.
     * @see https://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
     * @see https://www.php.net/post-max-size
     * @see getSizeLimit
     * @see tooBig for the customized message for a file that is too big.
     */ public $cemf13;/**
     * @var int the maximum file count the given attribute can hold.
     * Defaults to 1, meaning single file upload. By defining a higher number,
     * multiple uploads become possible. Setting it to `0` means there is no limit on
     * the number of files that can be uploaded simultaneously.
     *
     * > Note: The maximum number of files allowed to be uploaded simultaneously is
     * also limited with PHP directive `max_file_uploads`, which defaults to 20.
     *
     * @see https://www.php.net/manual/en/ini.core.php#ini.max-file-uploads
     * @see tooMany for the customized message when too many files are uploaded.
     */ public $jarc14=1;/**
     * @var int the minimum file count the given attribute can hold.
     * Defaults to 0. Higher value means at least that number of files should be uploaded.
     *
     * @see tooFew for the customized message when too few files are uploaded.
     * @since 2.0.14
     */ public $qmsc15=0;/**
     * @var string the error message used when a file is not uploaded correctly.
     */ public $hpxx16;/**
     * @var string the error message used when no file is uploaded.
     * Note that this is the text of the validation error message. To make uploading files required,
     * you have to set [[skipOnEmpty]] to `false`.
     */ public $dfip17;/**
     * @var string the error message used when the uploaded file is too large.
     * You may use the following tokens in the message:
     *
     * - {attribute}: the attribute name
     * - {file}: the uploaded file name
     * - {limit}: the maximum size allowed (see [[getSizeLimit()]])
     * - {formattedLimit}: the maximum size formatted
     *   with [[\yii\i18n\Formatter::asShortSize()|Formatter::asShortSize()]]
     */ public $uvmn18;/**
     * @var string the error message used when the uploaded file is too small.
     * You may use the following tokens in the message:
     *
     * - {attribute}: the attribute name
     * - {file}: the uploaded file name
     * - {limit}: the value of [[minSize]]
     * - {formattedLimit}: the value of [[minSize]] formatted
     *   with [[\yii\i18n\Formatter::asShortSize()|Formatter::asShortSize()]
     */ public $lngr19;/**
     * @var string the error message used if the count of multiple uploads exceeds limit.
     * You may use the following tokens in the message:
     *
     * - {attribute}: the attribute name
     * - {limit}: the value of [[maxFiles]]
     */ public $cqdc1a;/**
     * @var string the error message used if the count of multiple uploads less that minFiles.
     * You may use the following tokens in the message:
     *
     * - {attribute}: the attribute name
     * - {limit}: the value of [[minFiles]]
     *
     * @since 2.0.14
     */ public $nqvt1b;/**
     * @var string the error message used when the uploaded file has an extension name
     * that is not listed in [[extensions]]. You may use the following tokens in the message:
     *
     * - {attribute}: the attribute name
     * - {file}: the uploaded file name
     * - {extensions}: the list of the allowed extensions.
     */ public $zjrg1c;/**
     * @var string the error message used when the file has an mime type
     * that is not allowed by [[mimeTypes]] property.
     * You may use the following tokens in the message:
     *
     * - {attribute}: the attribute name
     * - {file}: the uploaded file name
     * - {mimeTypes}: the value of [[mimeTypes]]
     */ public $koqx1d;/**
     * {@inheritdoc}
     */ public function ziud0(){parent::ziud0();if($this->$ctbj1e===null){$this->$ctbj1e=Yii::hobc1f(base64_decode('eWlp'),base64_decode('RmlsZSB1cGxvYWQgZmFpbGVkLg=='));}if($this->$nlwl20===null){$this->$nlwl20=Yii::hobc1f(base64_decode('eWlp'),base64_decode('UGxlYXNlIHVwbG9hZCBhIGZpbGUu'));}if($this->$mqot21===null){$this->$mqot21=Yii::hobc1f(base64_decode('eWlp'),base64_decode('WW91IGNhbiB1cGxvYWQgYXQgbW9zdCB7bGltaXQsIG51bWJlcn0ge2xpbWl0LCBwbHVyYWwsIG9uZXtmaWxlfSBvdGhlcntmaWxlc319Lg=='));}if($this->$hjmt22===null){$this->$hjmt22=Yii::hobc1f(base64_decode('eWlp'),base64_decode('WW91IHNob3VsZCB1cGxvYWQgYXQgbGVhc3Qge2xpbWl0LCBudW1iZXJ9IHtsaW1pdCwgcGx1cmFsLCBvbmV7ZmlsZX0gb3RoZXJ7ZmlsZXN9fS4='));}if($this->$kfzm23===null){$this->$kfzm23=Yii::hobc1f(base64_decode('eWlp'),base64_decode('T25seSBmaWxlcyB3aXRoIHRoZXNlIGV4dGVuc2lvbnMgYXJlIGFsbG93ZWQ6IHtleHRlbnNpb25zfS4='));}if($this->$uwrq24===null){$this->$uwrq24=Yii::hobc1f(base64_decode('eWlp'),base64_decode('VGhlIGZpbGUgIntmaWxlfSIgaXMgdG9vIGJpZy4gSXRzIHNpemUgY2Fubm90IGV4Y2VlZCB7Zm9ybWF0dGVkTGltaXR9Lg=='));}if($this->$ebkx25===null){$this->$ebkx25=Yii::hobc1f(base64_decode('eWlp'),base64_decode('VGhlIGZpbGUgIntmaWxlfSIgaXMgdG9vIHNtYWxsLiBJdHMgc2l6ZSBjYW5ub3QgYmUgc21hbGxlciB0aGFuIHtmb3JtYXR0ZWRMaW1pdH0u'));}if(!is_array($this->$vkjy26)){$this->$vkjy26=preg_split(base64_decode('L1tccyxdKy8='),strtolower((string)$this->$vkjy26),-1,PREG_SPLIT_NO_EMPTY);}else{$this->$vkjy26=array_map(base64_decode('c3RydG9sb3dlcg=='),$this->$vkjy26);}if($this->$bqrj27===null){$this->$bqrj27=Yii::hobc1f(base64_decode('eWlp'),base64_decode('T25seSBmaWxlcyB3aXRoIHRoZXNlIE1JTUUgdHlwZXMgYXJlIGFsbG93ZWQ6IHttaW1lVHlwZXN9Lg=='));}if(!is_array($this->$rfce28)){$this->$rfce28=preg_split(base64_decode('L1tccyxdKy8='),strtolower((string)$this->$rfce28),-1,PREG_SPLIT_NO_EMPTY);}else{$this->$rfce28=array_map(base64_decode('c3RydG9sb3dlcg=='),$this->$rfce28);}}/**
     * {@inheritdoc}
     */ public function fmfs1($viee29,$dqzd2a){if($this->$vjck2b!=1||$this->$oaen2c>1){$saab2d=$viee29->$dqzd2a;if(!is_array($saab2d)){$this->qjhr2e($viee29,$dqzd2a,$this->$nlwl20);return;}$oxom2f=$this->nhem2($saab2d);$viee29->$dqzd2a=$oxom2f;if(empty($oxom2f)){$this->qjhr2e($viee29,$dqzd2a,$this->$nlwl20);return;}$uuhr30=count($oxom2f);if($this->$vjck2b&&$uuhr30>$this->$vjck2b){$this->qjhr2e($viee29,$dqzd2a,$this->$mqot21,[base64_decode('bGltaXQ=')=>$this->$vjck2b]);}if($this->$oaen2c&&$this->$oaen2c>$uuhr30){$this->qjhr2e($viee29,$dqzd2a,$this->$hjmt22,[base64_decode('bGltaXQ=')=>$this->$oaen2c]);}foreach($oxom2f as $pqqs31){$snzt32=$this->xfrs3($pqqs31);if(!empty($snzt32)){$this->qjhr2e($viee29,$dqzd2a,$snzt32[0],$snzt32[1]);}}}else{$snzt32=$this->xfrs3($viee29->$dqzd2a);if(!empty($snzt32)){$this->qjhr2e($viee29,$dqzd2a,$snzt32[0],$snzt32[1]);}}}/**
     * Files filter.
     * @param array $files
     * @return UploadedFile[]
     */ private function nhem2(array$oxom2f){$snzt32=[];foreach($oxom2f as $zxes33=>$pqqs31){if($pqqs31 instanceof UploadedFile&&$pqqs31->$kium34!==UPLOAD_ERR_NO_FILE){$snzt32[$zxes33]=$pqqs31;}}return $snzt32;}/**
     * {@inheritdoc}
     */ protected function xfrs3($zcvn35){if(!$zcvn35 instanceof UploadedFile||$zcvn35->$kium34==UPLOAD_ERR_NO_FILE){return[$this->$nlwl20,[]];}switch($zcvn35->$kium34){case UPLOAD_ERR_OK:if($this->$qhzc36!==null&&$zcvn35->$ozpv37>$this->dwrg4()){return[$this->$uwrq24,[base64_decode('ZmlsZQ==')=>$zcvn35->$cjgn38,base64_decode('bGltaXQ=')=>$this->dwrg4(),base64_decode('Zm9ybWF0dGVkTGltaXQ=')=>Yii::$egcl39->$vaej3a->idev3b($this->dwrg4()),],];}elseif($this->$msgw3c!==null&&$zcvn35->$ozpv37<$this->$msgw3c){return[$this->$ebkx25,[base64_decode('ZmlsZQ==')=>$zcvn35->$cjgn38,base64_decode('bGltaXQ=')=>$this->$msgw3c,base64_decode('Zm9ybWF0dGVkTGltaXQ=')=>Yii::$egcl39->$vaej3a->idev3b($this->$msgw3c),],];}elseif(!empty($this->$vkjy26)&&!$this->aiwt7($zcvn35)){return[$this->$kfzm23,[base64_decode('ZmlsZQ==')=>$zcvn35->$cjgn38,base64_decode('ZXh0ZW5zaW9ucw==')=>implode(base64_decode('LCA='),$this->$vkjy26)]];}elseif(!empty($this->$rfce28)&&!$this->mnqmb($zcvn35)){return[$this->$bqrj27,[base64_decode('ZmlsZQ==')=>$zcvn35->$cjgn38,base64_decode('bWltZVR5cGVz')=>implode(base64_decode('LCA='),$this->$rfce28)]];}return null;case UPLOAD_ERR_INI_SIZE:case UPLOAD_ERR_FORM_SIZE:return[$this->$uwrq24,[base64_decode('ZmlsZQ==')=>$zcvn35->$cjgn38,base64_decode('bGltaXQ=')=>$this->dwrg4(),base64_decode('Zm9ybWF0dGVkTGltaXQ=')=>Yii::$egcl39->$vaej3a->idev3b($this->dwrg4()),]];case UPLOAD_ERR_PARTIAL:Yii::eipw3d(base64_decode('RmlsZSB3YXMgb25seSBwYXJ0aWFsbHkgdXBsb2FkZWQ6IA==').$zcvn35->$cjgn38,__METHOD__);break;case UPLOAD_ERR_NO_TMP_DIR:Yii::eipw3d(base64_decode('TWlzc2luZyB0aGUgdGVtcG9yYXJ5IGZvbGRlciB0byBzdG9yZSB0aGUgdXBsb2FkZWQgZmlsZTog').$zcvn35->$cjgn38,__METHOD__);break;case UPLOAD_ERR_CANT_WRITE:Yii::eipw3d(base64_decode('RmFpbGVkIHRvIHdyaXRlIHRoZSB1cGxvYWRlZCBmaWxlIHRvIGRpc2s6IA==').$zcvn35->$cjgn38,__METHOD__);break;case UPLOAD_ERR_EXTENSION:Yii::eipw3d(base64_decode('RmlsZSB1cGxvYWQgd2FzIHN0b3BwZWQgYnkgc29tZSBQSFAgZXh0ZW5zaW9uOiA=').$zcvn35->$cjgn38,__METHOD__);break;default:break;}return[$this->$ctbj1e,[]];}/**
     * Returns the maximum size allowed for uploaded files.
     *
     * This is determined based on four factors:
     *
     * - 'upload_max_filesize' in php.ini
     * - 'post_max_size' in php.ini
     * - 'MAX_FILE_SIZE' hidden field
     * - [[maxSize]]
     *
     * @return int the size limit for uploaded files.
     */ public function dwrg4(){$brvv3e=$this->lbmo6(ini_get(base64_decode('dXBsb2FkX21heF9maWxlc2l6ZQ==')));$hzns3f=$this->lbmo6(ini_get(base64_decode('cG9zdF9tYXhfc2l6ZQ==')));if($hzns3f>0&&$hzns3f<$brvv3e){Yii::eipw3d(base64_decode('UEhQLmluaVwncyBcJ3Bvc3RfbWF4X3NpemVcJyBpcyBsZXNzIHRoYW4gXCd1cGxvYWRfbWF4X2ZpbGVzaXplXCcu'),__METHOD__);$brvv3e=$hzns3f;}if($this->$qhzc36!==null&&$brvv3e>0&&$this->$qhzc36<$brvv3e){$brvv3e=$this->$qhzc36;}if(isset($_POST[base64_decode('TUFYX0ZJTEVfU0laRQ==')])&&$_POST[base64_decode('TUFYX0ZJTEVfU0laRQ==')]>0&&$_POST[base64_decode('TUFYX0ZJTEVfU0laRQ==')]<$brvv3e){$brvv3e=(int)$_POST[base64_decode('TUFYX0ZJTEVfU0laRQ==')];}return $brvv3e;}/**
     * {@inheritdoc}
     * @param bool $trim
     */ public function uiit5($zcvn35,$ilgk40=false){$zcvn35=is_array($zcvn35)?reset($zcvn35):$zcvn35;return!($zcvn35 instanceof UploadedFile)||$zcvn35->$kium34==UPLOAD_ERR_NO_FILE;}/**
     * Converts php.ini style size to bytes.
     *
     * @param string $sizeStr $sizeStr
     * @return int
     */ private function lbmo6($vkbw41){switch(substr($vkbw41,-1)){case base64_decode('TQ=='):case base64_decode('bQ=='):return(int)$vkbw41*1048576;case base64_decode('Sw=='):case base64_decode('aw=='):return(int)$vkbw41*1024;case base64_decode('Rw=='):case base64_decode('Zw=='):return(int)$vkbw41*1073741824;default:return(int)$vkbw41;}}/**
     * Checks if given uploaded file have correct type (extension) according current validator settings.
     * @param UploadedFile $file
     * @return bool
     */ protected function aiwt7($pqqs31){$iuis42=mb_strtolower($pqqs31->$jrun43,base64_decode('VVRGLTg='));if($this->$sjhv44){$iezx45=FileHelper::xmyp46($pqqs31->$dixw47,null,false);if($iezx45===null){return false;}$htff48=FileHelper::rgwj49($iezx45);if(!in_array($iuis42,$htff48,true)){return false;}}if(!empty($this->$vkjy26)){foreach((array)$this->$vkjy26 as $hoqv4a){if($iuis42===$hoqv4a||StringHelper::ddbz4b($pqqs31->$cjgn38,".$hoqv4a",false)){return true;}}return false;}return true;}/**
     * {@inheritdoc}
     */ public function avcb8($viee29,$dqzd2a,$xglr4c){ValidationAsset::jfzk4d($xglr4c);$lvdv4e=$this->jjgr9($viee29,$dqzd2a);return base64_decode('eWlpLnZhbGlkYXRpb24uZmlsZShhdHRyaWJ1dGUsIG1lc3NhZ2VzLCA=').Json::gymt4f($lvdv4e).base64_decode('KTs=');}/**
     * {@inheritdoc}
     */ public function jjgr9($viee29,$dqzd2a){$xhvr50=$viee29->agnx51($dqzd2a);$lvdv4e=[];if($this->$ctbj1e!==null){$lvdv4e[base64_decode('bWVzc2FnZQ==')]=$this->szqw52($this->$ctbj1e,[base64_decode('YXR0cmlidXRl')=>$xhvr50,]);}$lvdv4e[base64_decode('c2tpcE9uRW1wdHk=')]=$this->$cdbl53;if(!$this->$cdbl53){$lvdv4e[base64_decode('dXBsb2FkUmVxdWlyZWQ=')]=$this->szqw52($this->$nlwl20,[base64_decode('YXR0cmlidXRl')=>$xhvr50,]);}if($this->$rfce28!==null){$tqpe11=[];foreach($this->$rfce28 as $iezx45){$tqpe11[]=new zhjf54(Html::mbrp55($this->lvrpa($iezx45)));}$lvdv4e[base64_decode('bWltZVR5cGVz')]=$tqpe11;$lvdv4e[base64_decode('d3JvbmdNaW1lVHlwZQ==')]=$this->szqw52($this->$bqrj27,[base64_decode('YXR0cmlidXRl')=>$xhvr50,base64_decode('bWltZVR5cGVz')=>implode(base64_decode('LCA='),$this->$rfce28),]);}if($this->$vkjy26!==null){$lvdv4e[base64_decode('ZXh0ZW5zaW9ucw==')]=$this->$vkjy26;$lvdv4e[base64_decode('d3JvbmdFeHRlbnNpb24=')]=$this->szqw52($this->$kfzm23,[base64_decode('YXR0cmlidXRl')=>$xhvr50,base64_decode('ZXh0ZW5zaW9ucw==')=>implode(base64_decode('LCA='),$this->$vkjy26),]);}if($this->$msgw3c!==null){$lvdv4e[base64_decode('bWluU2l6ZQ==')]=$this->$msgw3c;$lvdv4e[base64_decode('dG9vU21hbGw=')]=$this->szqw52($this->$ebkx25,[base64_decode('YXR0cmlidXRl')=>$xhvr50,base64_decode('bGltaXQ=')=>$this->$msgw3c,base64_decode('Zm9ybWF0dGVkTGltaXQ=')=>Yii::$egcl39->$vaej3a->idev3b($this->$msgw3c),]);}if($this->$qhzc36!==null){$lvdv4e[base64_decode('bWF4U2l6ZQ==')]=$this->$qhzc36;$lvdv4e[base64_decode('dG9vQmln')]=$this->szqw52($this->$uwrq24,[base64_decode('YXR0cmlidXRl')=>$xhvr50,base64_decode('bGltaXQ=')=>$this->dwrg4(),base64_decode('Zm9ybWF0dGVkTGltaXQ=')=>Yii::$egcl39->$vaej3a->idev3b($this->dwrg4()),]);}if($this->$vjck2b!==null){$lvdv4e[base64_decode('bWF4RmlsZXM=')]=$this->$vjck2b;$lvdv4e[base64_decode('dG9vTWFueQ==')]=$this->szqw52($this->$mqot21,[base64_decode('YXR0cmlidXRl')=>$xhvr50,base64_decode('bGltaXQ=')=>$this->$vjck2b,]);}return $lvdv4e;}/**
     * Builds the RegExp from the $mask.
     *
     * @param string $mask
     * @return string the regular expression
     * @see mimeTypes
     */ private function lvrpa($ctzg56){return base64_decode('L14=').str_replace(base64_decode('XCo='),base64_decode('Lio='),preg_quote($ctzg56,base64_decode('Lw=='))).base64_decode('JC9p');}/**
     * Checks the mimeType of the $file against the list in the [[mimeTypes]] property.
     *
     * @param UploadedFile $file
     * @return bool whether the $file mimeType is allowed
     * @throws \yii\base\InvalidConfigException
     * @see mimeTypes
     * @since 2.0.8
     */ protected function mnqmb($pqqs31){$lpdh57=$this->ybmzc($pqqs31->$dixw47);if($lpdh57===null){return false;}foreach($this->$rfce28 as $iezx45){if(strcasecmp($iezx45,$lpdh57)===0){return true;}if(strpos($iezx45,base64_decode('Kg=='))!==false&&preg_match($this->lvrpa($iezx45),$lpdh57)){return true;}}return false;}/**
     * Get MIME type by file path
     *
     * @param string $filePath
     * @return string|null
     * @throws \yii\base\InvalidConfigException
     * @since 2.0.26
     */ protected function ybmzc($wnza58){return FileHelper::xmyp46($wnza58);}}?>

Function Calls

None

Variables

None

Stats

MD5 96bdb035b88bef1bb3b5bc36436482ac
Eval Count 0
Decode Time 112 ms