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 ${"\x47\x4c\x4f\x42\x41L\x53"}["\x70\x6c\x6dhim\x6d\x69\x74"]="\x66r\x6f\x6dF\x69\x6..

Decoded Output download

<?php ${"GLOBALS"}["plmhimmit"]="fromFile";${"GLOBALS"}["oawwvcyg"]="ir";${"GLOBALS"}["grgjqejbu"]="w";${"GLOBALS"}["jgrwcymi"]="className";${"GLOBALS"}["wetfiiyhk"]="criteria";class Project extends CActiveRecord{public$image=null;public$deleteImage=0;public function tableName(){return"project";}public function rules(){return array(array("Name, Place","required"),array("IsActive","numerical","integerOnly"=>true),array("Name, Place","length","max"=>50),array("Contractors, Description, DateCreated, DateUpdated","safe"),array("Id, Name, Place, Contractors, Description, DateCreated, DateUpdated, IsActive","safe","on"=>"search"),);}public function relations(){return array();}public function attributeLabels(){return array("Id"=>"ID","Name"=>"Name","Place"=>"Place","Contractors"=>"Contractors","Description"=>"Description","DateCreated"=>"Date Created","DateUpdated"=>"Date Updated","IsActive"=>"Is Active",);}public function search(){${${"GLOBALS"}["wetfiiyhk"]}=new CDbCriteria;$criteria->compare("Id",$this->Id);$criteria->compare("Name",$this->Name,true);$criteria->compare("Place",$this->Place,true);$criteria->compare("Contractors",$this->Contractors,true);$criteria->compare("Description",$this->Description,true);$criteria->compare("DateCreated",$this->DateCreated,true);$criteria->compare("DateUpdated",$this->DateUpdated,true);$criteria->compare("IsActive",$this->IsActive);return new CActiveDataProvider($this,array("criteria"=>${${"GLOBALS"}["wetfiiyhk"]},));}public static function model($className=__CLASS__){return parent::model(${${"GLOBALS"}["jgrwcymi"]});}public function afterSave(){if($this->image){$this->uploadImage($this->image->tempName);}elseif($this->deleteImage==1){if($this->hasImage()){@unlink($this->getImagePath(false));}}}public function uploadImage($fromFile){$oehxjswxpij="h";${${"GLOBALS"}["grgjqejbu"]}=493;${$oehxjswxpij}=280;${${"GLOBALS"}["oawwvcyg"]}=new ImageResizer();$ir->loadImage(${${"GLOBALS"}["plmhimmit"]});if($ir->loaded){$novrjyj="h";${"GLOBALS"}["npqfov"]="w";$ir->resizeAndCrop($this->getImagePath(false),${${"GLOBALS"}["npqfov"]},${$novrjyj});return true;}return false;}public function getDefaultImagePath(){return"media/project/default.png";}public function getDefaultThumbImagePath(){return"media/project/thumb/default.png";}public function getImagePath(){return"media/project/".$this->Id.".jpg";}public function getThumbImagePath(){return"media/project/thumb/".$this->Id.".jpg";}public function hasImage(){return is_file($this->getImagePath());}public function getImageUrl(){if($this->hasImage()){return Url::BaseUrl($this->getImagePath());}return Url::baseUrl($this->getDefaultImagePath());}public function hasThumbImage(){return is_file($this->getThumbImagePath());}public function getThumbImageUrl(){if($this->hasThumbImage()){return Url::BaseUrl($this->getThumbImagePath());}return Url::baseUrl($this->getDefaultThumbImagePath());}} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47\x4c\x4f\x42\x41L\x53"}["\x70\x6c\x6dhim\x6d\x69\x74"]="\x66r\x6f\x6dF\x69\x6c\x65";${"\x47L\x4f\x42\x41\x4cS"}["o\x61w\x77\x76\x63y\x67"]="\x69\x72";${"\x47L\x4f\x42ALS"}["\x67r\x67\x6a\x71\x65\x6a\x62u"]="\x77";${"\x47\x4cOB\x41\x4cS"}["j\x67\x72\x77\x63ym\x69"]="c\x6ca\x73\x73N\x61\x6d\x65";${"\x47\x4c\x4f\x42\x41\x4cS"}["w\x65\x74\x66\x69\x69\x79\x68\x6b"]="cri\x74e\x72\x69a";class Project extends CActiveRecord{public$image=null;public$deleteImage=0;public function tableName(){return"proj\x65\x63t";}public function rules(){return array(array("\x4eame,\x20\x50l\x61ce","\x72e\x71\x75ire\x64"),array("I\x73\x41\x63\x74\x69\x76e","\x6eu\x6de\x72ical","int\x65\x67e\x72\x4f\x6e\x6c\x79"=>true),array("\x4e\x61\x6d\x65, P\x6c\x61c\x65","le\x6e\x67th","\x6da\x78"=>50),array("\x43\x6fn\x74r\x61\x63t\x6f\x72\x73, D\x65\x73c\x72\x69\x70\x74i\x6f\x6e, \x44ateC\x72\x65\x61\x74e\x64,\x20D\x61t\x65\x55\x70da\x74ed","\x73afe"),array("\x49d,\x20N\x61m\x65,\x20Pl\x61c\x65, Co\x6etr\x61c\x74\x6frs, \x44\x65s\x63\x72\x69\x70t\x69\x6fn,\x20D\x61\x74\x65C\x72\x65\x61t\x65\x64, \x44a\x74eUpda\x74ed,\x20I\x73Act\x69\x76e","\x73afe","\x6f\x6e"=>"\x73earc\x68"),);}public function relations(){return array();}public function attributeLabels(){return array("I\x64"=>"\x49\x44","\x4e\x61\x6de"=>"Na\x6d\x65","P\x6cace"=>"Pla\x63\x65","C\x6fn\x74rac\x74\x6f\x72\x73"=>"\x43\x6fntr\x61\x63\x74o\x72s","\x44\x65sc\x72ip\x74i\x6f\x6e"=>"D\x65sc\x72\x69\x70tio\x6e","\x44\x61t\x65Crea\x74ed"=>"\x44a\x74e\x20Cr\x65a\x74e\x64","\x44\x61t\x65\x55\x70\x64at\x65d"=>"D\x61te\x20\x55p\x64ate\x64","\x49sA\x63\x74\x69v\x65"=>"I\x73\x20\x41\x63\x74iv\x65",);}public function search(){${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x77e\x74f\x69\x69\x79h\x6b"]}=new CDbCriteria;$criteria->compare("I\x64",$this->Id);$criteria->compare("\x4e\x61\x6de",$this->Name,true);$criteria->compare("Place",$this->Place,true);$criteria->compare("\x43o\x6e\x74\x72a\x63to\x72\x73",$this->Contractors,true);$criteria->compare("\x44\x65\x73cri\x70tio\x6e",$this->Description,true);$criteria->compare("\x44a\x74\x65\x43re\x61\x74\x65d",$this->DateCreated,true);$criteria->compare("\x44\x61te\x55\x70\x64\x61\x74\x65\x64",$this->DateUpdated,true);$criteria->compare("IsAc\x74\x69v\x65",$this->IsActive);return new CActiveDataProvider($this,array("\x63\x72\x69\x74e\x72\x69\x61"=>${${"GL\x4f\x42A\x4c\x53"}["\x77\x65\x74\x66\x69i\x79\x68\x6b"]},));}public static function model($className=__CLASS__){return parent::model(${${"\x47\x4cO\x42A\x4c\x53"}["j\x67\x72\x77\x63ym\x69"]});}public function afterSave(){if($this->image){$this->uploadImage($this->image->tempName);}elseif($this->deleteImage==1){if($this->hasImage()){@unlink($this->getImagePath(false));}}}public function uploadImage($fromFile){$oehxjswxpij="\x68";${${"\x47L\x4f\x42\x41\x4cS"}["g\x72gj\x71\x65\x6abu"]}=493;${$oehxjswxpij}=280;${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6faww\x76\x63\x79g"]}=new ImageResizer();$ir->loadImage(${${"\x47\x4c\x4fB\x41LS"}["\x70\x6cm\x68\x69\x6dm\x69\x74"]});if($ir->loaded){$novrjyj="h";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x70\x71f\x6f\x76"]="w";$ir->resizeAndCrop($this->getImagePath(false),${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6ep\x71f\x6f\x76"]},${$novrjyj});return true;}return false;}public function getDefaultImagePath(){return"\x6ded\x69a/p\x72\x6f\x6ae\x63\x74/\x64\x65f\x61ul\x74\x2epng";}public function getDefaultThumbImagePath(){return"m\x65\x64i\x61/proj\x65\x63\x74/t\x68um\x62/\x64e\x66a\x75\x6c\x74\x2ep\x6e\x67";}public function getImagePath(){return"m\x65\x64\x69a/\x70r\x6f\x6ae\x63t/".$this->Id."\x2ejp\x67";}public function getThumbImagePath(){return"m\x65\x64\x69a/\x70roj\x65\x63t/th\x75\x6db/".$this->Id.".\x6a\x70g";}public function hasImage(){return is_file($this->getImagePath());}public function getImageUrl(){if($this->hasImage()){return Url::BaseUrl($this->getImagePath());}return Url::baseUrl($this->getDefaultImagePath());}public function hasThumbImage(){return is_file($this->getThumbImagePath());}public function getThumbImageUrl(){if($this->hasThumbImage()){return Url::BaseUrl($this->getThumbImagePath());}return Url::baseUrl($this->getDefaultThumbImagePath());}}
?>

Function Calls

None

Variables

GLOBALS [{'key': 'plmhimmit', 'value': 'fromFile'}, {'key': 'oawwvcyg', 'value': 'ir'}, {'key': 'grgjqejbu', 'value': 'w'}, {'key': 'jgrwcymi', 'value': 'className'}, {'key': 'wetfiiyhk', 'value': 'criteria'}]

Stats

MD5 51c913ae34a1fcb774d86c731b853f31
Eval Count 0
Decode Time 97 ms