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 /* This code is protected. Do not reverse engineer. */$OOO000000=urldecode('%66%67%3..

Decoded Output download


require_once('config.cls.php');
class Database extends Config {
function connect() 	{
$ConArr = $this->getCon();
$con =  mysqli_connect($ConArr['db_hst'],$ConArr['db_usr'],$ConArr['db_pwd'],$ConArr['db_nam']) or mysqli_error($con);
return $con;
}
function escape($input) {
return addslashes($input);
}
function query($sql,$output='recordset') {
$con = $this->connect();
$rec = mysqli_query($con,$sql);
if (!$rec) {
$this->close($con);
return false;
}
if($output == 'recordset') {
return $rec;
}else if( $output == 'insert_id') {
$id =  mysqli_insert_id($con);
$this->close($con);
return $id;
}else {
$affected = mysqli_affected_rows($con);
$this->close($con);
return $affected;
}
}
function fetch_array($sql) {
$con = $this->connect();
$rec = mysqli_query($con,$sql);
if (!$rec ||$this->num_rows($rec) == 0) {
$this->close($con);
return false;
}
$ResArr = array();
while ($row = mysqli_fetch_array($rec)) {
$ResArr[] = $row;
}
mysqli_free_result($rec);
$this->close($con);
return $ResArr;
}
function insert_rec($sql) {
return $this->query($sql,'insert_id');
}
function update_rec($sql) {
return $this->query($sql,'recordset');
}
function delete_rec($sql) {
return $this->query($sql,'affected_rows');
}
function num_rows($rec) {
if (mysqli_connect_errno()) return false;
return mysqli_num_rows($rec);
}
function num_rows_by_sql($sql) {
$rec = $this->query($sql);
if (!$rec ||mysqli_connect_errno()) return false;
return mysqli_num_rows($rec);
}
function strip($string) {
return stripslashes($string);
}
function close($con) {
if(is_resource($con)) mysqli_close($con);
}
};

Did this file decode correctly?

Original Code

<?php /* This code is protected. Do not reverse engineer. */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$GLOBALS['OOO0000O0']=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5}.$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$GLOBALS['OOO0000O0'].=$GLOBALS['OOO0000O0']{3}.$OOO000000{11}.$OOO000000{12}.$GLOBALS['OOO0000O0']{7}.$OOO000000{5};$GLOBALS['OOO000O00']=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$GLOBALS['O0O000O00']=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$GLOBALS['O0O000O00']=$O0O000O00.$OOO000000{3};$GLOBALS['O0O00OO00']=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$GLOBALS['OOO00000O']=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0x88c;eval($GLOBALS['OOO0000O0']('JE8wMDBPME8wMD0kR0xPQkFMU1snT09PMDAwTzAwJ10oJE9PTzBPME8wMCwncmInKTskR0xPQkFMU1snTzBPMDBPTzAwJ10oJE8wMDBPME8wMCwweDUzNCk7JE9PMDBPMDBPMD0kR0xPQkFMU1snT09PMDAwME8wJ10oJEdMT0JBTFNbJ09PTzAwMDAwTyddKCRHTE9CQUxTWydPME8wME9PMDAnXSgkTzAwME8wTzAwLDB4MWE4KSwnbnFDamFWaGsyQTA1bWdXeUtMbFEvdjRacHpNdFh4T0ozMTgrc2NFU2RZN0c2QmJEclBpVXVvUlROZWZ3SEZJOT0nLCdBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvJykpO2V2YWwoJE9PMDBPMDBPMCk7'));return;?>ppgTFAaFymjqymjqymjoUxkAJXEvrthV+zl3SZoFhl/PVZoHS5C2S28NsQuFymaHrQUnr582S28rsLuPyKsVm/o6SQuFymjnrmaHrAoudAaxmQuAqQVgtAuFyQUnrmjnrQixx0CLkQaFCK/PQ4ixymaHrmaFymjnSZl3sQUnrmaHrQUnr5CLyQUnrQUnrmjnY5CxbX/g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eXTV6MvF+tRebz4guZRviXEeD0CsY2kAcxkvit8qEp4PUzQ6gCSAcxkvit8qBOZgPthcJtSvBZTADxTmdAkAcpiswjKYFjKYEx4e+xhcDt8qUxkAYXC3sXTLiM4eS0lqwjKYizZLoXEN3XTLiMZqUthVUMhvU0CLUxkAYtEXYWru0JKu0zSvbpTLYtRN3pRPDXR/dAhgDt8s3Oru0M4pdMZgJXEvUtTvipR/dAhgDt8sY2hoeXTV6MvF+thFUzl3spRFb0Q6gCSugCSuwrUj[hSKf|uJ~}_IJA[}x

Function Calls

fopen 1
fread 3
strtr 2
fclose 1
urldecode 1
str_replace 1
base64_decode 3

Variables

$O000O0O00 True
$O0O000O00 fgets
$O0O00OO00 fread
$OO00O0000 2188
$OO00O00O0 require_once('config.cls.php'); class Database extends Co..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 90755f4ddb3787062b9cc0a8a57468d6
Eval Count 3
Decode Time 148 ms