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 $_F=__FILE__;$_X='P2lCP1ouWg1WaCoNVnVicHdJcz4vV2Vubj4vT1pxenN4Lj0+a2EwWz48cT5HZXM+Z3..

Decoded Output download

$_X=base64_decode($_X);$_X=strtr($_X,'SgPO9YZWFKmqyfxcjLJRzuM5vNts1b.{B4nC]i/2Dl0EheA
[d8=Qp>VXo H}6GIw7ka3TrU<','=R9odmplAEPyk8gv[53xrMezqZHi7YhW<DsG{>CcX}1N/afj6]JtuS 
.BUnwVKLQO20ITF4b');$_R=str_replace('__FILE__',"'".$_F."'",$_X);eval($_R);$_R=0;$_X=0;?><?php
/*
MYSQLi Class Copyright 2016 by Kai Ripp - All-Scripts.de
version 1.1.7
*/
class DB {

	protected static $cfg;
	protected static $con;
	protected static $count;

	public static function init ($host, $dbuser, $dbpass, $dbname) {
		$cfg = json_decode(json_encode([
			'dbhost' => $host,
			'dbuser' => $dbuser,
			'dbpass' => $dbpass,
			'dbname' => $dbname,
			'dbprefix' => '',
			'debug' => 1
		]));
		self::Connect($cfg);
	}	

	public static function Connect ($cfg) {
		self::$cfg = $cfg;
		self::$con = @mysqli_connect(self::$cfg->dbhost, self::$cfg->dbuser, self::$cfg->dbpass, self::$cfg->dbname);
		if (!self::$con) {
			echo 'DB connect error!<br/>';
			exit;
		}
	}

	public static function FreeQuery ($query) {
		self::$count++;
		$result = mysqli_query(self::$con, $query);
		if (!$result && self::$cfg->debug == 1) {
			echo mysqli_error(self::$con) . '<br/>';
		}
		return $result;
	}

	public static function Select ($values, $table, $where = '') {
		$selects = '';
		if (is_countable($values)) {
			foreach ($values AS $value) {
				$selects .= $value . ", ";
			}
		}
		return self::FreeQuery("SELECT " . substr($selects, 0, strlen($selects)-2) . " FROM `" . self::$cfg->dbprefix . $table. "` " . $where);
	}

	public static function Insert ($table, $values) {
		$fields = '';
		$datas = '';
		if (is_countable($values)) {
			foreach ($values AS $key => $value) {
				$fields .= "`" . $key . "`, ";
				$datas .= "'". mysqli_real_escape_string(self::$con, $value) . "', ";
			}
		}
		return self::FreeQuery("INSERT INTO `" . self::$cfg->dbprefix . $table . "` (" . substr($fields, 0, strlen($fields) - 2) . ") VALUES (" . substr($datas, 0, strlen($datas)-2) . ")");
	}

	public static function Update ($table, $values, $where = '') {
		$query = '';
		if (is_countable($values)) {
			foreach ($values AS $key => $value) {
				$query .= $key . " = '" . mysqli_real_escape_string(self::$con, $value) . "', ";
			}
		}
		return self::FreeQuery("UPDATE `" . self::$cfg->dbprefix . $table . "` SET " . substr($query, 0, strlen($query) - 2) . " " . $where);
	}

	public static function UpdateCount ($table, $values, $where = '') {
		$query = '';
		if (is_countable($values)) {
			foreach ($values AS $key => $value) {
				$query .= $key . " = " . mysqli_real_escape_string(self::$con, $value) . ", ";
			}
		}
		return self::FreeQuery("UPDATE `" . self::$cfg->dbprefix . $table . "` SET " . substr($query, 0, strlen($query) - 2) . " " . $where);
	}

	public static function Delete ($table, $where = null) {
		if (null === $where) {
			$query = "TRUNCATE TABLE " . self::$cfg->dbprefix . $table;
		} 
		else {
			$query = "DELETE FROM " . self::$cfg->dbprefix . $table . " " . $where;
		}
		return self::FreeQuery($query);
	}

	public static function NumRows ($query) {
		return @mysqli_num_rows($query);
	}

	public static function NumRowsSelect ($values, $table, $where = '') {
		$query = self::Select($values, $table, $where);
		return @mysqli_num_rows($query);
	}

	public static function FetchAssoc ($query) {
		return mysqli_fetch_assoc($query);
	}

	public static function FetchAssocSelect ($values, $table, $where = '') {
		$query = self::Select($values, $table, $where);
		return mysqli_fetch_assoc($query);
	}

	public static function getQuerys () {
		return self::$count;
	}

	public static function getError () {
		return mysqli_error(self::$con);
	}

	public static function getInsertID () {
		return mysqli_insert_id(self::$con);
	}

	public static function AffectedRows() {
		return mysqli_affected_rows(self::$con);
	}

	public static function Close () {
		mysqli_close(self::$con);
	}
}

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='P2lCP1ouWg1WaC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fUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>

Function Calls

strtr 1
strrev 1
str_replace 1
base64_decode 2

Variables

$_D base64_decode
$_F index.php
$_R ?><?php /* MYSQLi Class Copyright 2016 by Kai Ripp - All-S..
$_X ?><?php /* MYSQLi Class Copyright 2016 by Kai Ripp - All-S..

Stats

MD5 dda243fc51152d6066a0542c541327ab
Eval Count 2
Decode Time 52 ms