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\x41LS"}["r\x6bg\x74\x6d\x73\x70"]="\x63\x72\x69\x74\x65\x72\x69\..
Decoded Output download
<?php ${"GLOBALS"}["rkgtmsp"]="criteria";class CategoryResource extends CActiveRecord{public function tableName(){return"category_resource";}public function rules(){return array(array("CategoryId, ResourceId","required"),array("CategoryId, ResourceId","numerical","integerOnly"=>true),array("CategoryId, ResourceId","safe","on"=>"search"),);}public function relations(){return array();}public function attributeLabels(){return array("CategoryId"=>"Category","ResourceId"=>"Resource",);}public function search(){${${"GLOBALS"}["rkgtmsp"]}=new CDbCriteria;$criteria->compare("CategoryId",$this->CategoryId);$criteria->compare("ResourceId",$this->ResourceId);return new CActiveDataProvider($this,array("criteria"=>${${"GLOBALS"}["rkgtmsp"]},));}public static function model($className=__CLASS__){${"GLOBALS"}["bghpok"]="className";return parent::model(${${"GLOBALS"}["bghpok"]});}}
?>
Did this file decode correctly?
Original Code
<?php ${"\x47\x4c\x4f\x42\x41LS"}["r\x6bg\x74\x6d\x73\x70"]="\x63\x72\x69\x74\x65\x72\x69\x61";class CategoryResource extends CActiveRecord{public function tableName(){return"\x63a\x74e\x67\x6f\x72\x79\x5f\x72es\x6f\x75\x72c\x65";}public function rules(){return array(array("\x43ate\x67oryI\x64, \x52\x65\x73o\x75rce\x49\x64","requ\x69\x72\x65d"),array("\x43\x61teg\x6f\x72y\x49d,\x20R\x65\x73\x6fu\x72ceI\x64","\x6e\x75m\x65r\x69c\x61\x6c","\x69\x6et\x65\x67\x65\x72On\x6cy"=>true),array("\x43\x61te\x67oryId,\x20\x52es\x6f\x75\x72c\x65\x49d","\x73\x61\x66\x65","\x6f\x6e"=>"\x73earch"),);}public function relations(){return array();}public function attributeLabels(){return array("\x43\x61\x74eg\x6fr\x79I\x64"=>"\x43\x61te\x67or\x79","\x52\x65\x73\x6f\x75\x72\x63\x65\x49d"=>"\x52e\x73our\x63e",);}public function search(){${${"G\x4cO\x42\x41\x4c\x53"}["r\x6b\x67\x74\x6ds\x70"]}=new CDbCriteria;$criteria->compare("C\x61t\x65g\x6f\x72\x79\x49d",$this->CategoryId);$criteria->compare("Res\x6f\x75rceId",$this->ResourceId);return new CActiveDataProvider($this,array("cr\x69t\x65\x72\x69a"=>${${"\x47\x4cO\x42\x41\x4c\x53"}["\x72\x6b\x67\x74\x6d\x73\x70"]},));}public static function model($className=__CLASS__){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x62g\x68p\x6f\x6b"]="\x63\x6ca\x73s\x4e\x61\x6d\x65";return parent::model(${${"\x47\x4c\x4fB\x41\x4cS"}["\x62\x67h\x70\x6fk"]});}}
?>
Function Calls
| None |
Stats
| MD5 | 23ad280dd1a8ca07fece3bfd1cef091a |
| Eval Count | 0 |
| Decode Time | 98 ms |