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='PzZdP0xRTG5uPioqbnYqdkFxcEdSQnZnQlhCS1hudipudip2QFJHS0JWb0J2dnZ2UV..

Decoded Output download

<?php ?><?php
/**
 * Mobile Detect
 *
 * @license    http://www.opensource.org/licenses/mit-license.php The MIT License
 * @version    SVN: $Id: Mobile_Detect.php 3 2009-05-21 13:06:28Z vic.stanciu $
 */
class Mobile_Detect {
    protected $accept;
    protected $userAgent;
    protected $isMobile = false;
    protected $isAndroid = null;
    protected $isBlackberry = null;
    protected $isOpera = null;
    protected $isPalm = null;
    protected $isWindows = null;
    protected $isGeneric = null;
    protected $isIphone = null;
    protected $isIpad = null;
    protected $devices = array("android" => "android", "blackberry" => "blackberry", "iphone" => "(iphone|ipod)", "ipad" => "ipad", "opera" => "(opera mini|opera mobi)", "palm" => "(avantgo|blazer|elaine|hiptop|palm|plucker|xiino)", "windows" => "windows ce; (iemobile|ppc|smartphone)", "generic" => "(kindle|mobile|mmp|midp|o2|pda|pocket|psp|symbian|smartphone|treo|up.browser|up.link|vodafone|wap|nokia|samsung|SonyEricsson)");
    public function __construct() {
        $this->userAgent = $_SERVER['HTTP_USER_AGENT'];
        $this->accept = $_SERVER['HTTP_ACCEPT'];
        if (isset($_SERVER['HTTP_X_WAP_PROFILE']) || isset($_SERVER['HTTP_PROFILE'])) {
            $this->isMobile = true;
        } elseif (strpos($this->accept, 'text/vnd.wap.wml') > 0 || strpos($this->accept, 'application/vnd.wap.xhtml+xml') > 0) {
            $this->isMobile = true;
        } else {
            foreach ($this->devices as $device => $regexp) {
                if ($this->isDevice($device)) {
                    $this->isMobile = true;
                }
            }
        }
    }
    /**
     * Overloads isAndroid() | isBlackberry() | isOpera() | isPalm() | isWindows() | isGeneric() through isDevice()
     *
     * @param string $name
     * @param array $arguments
     * @return bool
     */
    public function __call($name, $arguments) {
        $device = strtolower(substr($name, 2));
        if ($name == "is" . ucfirst($device)) {
            return $this->isDevice($device);
        } else {
            trigger_error("Method $name not defined", E_USER_ERROR);
        }
    }
    /**
     * Returns true if any type of mobile device detected, including special ones
     * @return bool
     */
    public function isMobile() {
        return $this->isMobile;
    }
    protected function isDevice($device) {
        $var = "is" . ucfirst($device);
        $return = $this->$var === null ? (bool)preg_match("/" . $this->devices[$device] . "/i", $this->userAgent) : $this->$var;
        if (($device != 'generic' && $return == true) || $device == 'ipad') {
            $this->isGeneric = false;
        }
        return $return;
    }
}

Did this file decode correctly?

Original Code

<?php $_F=__FILE__;$_X='PzZdP0xRTG5uPioqbnYqdkFxcEdSQnZnQlhCS1hudipudip2QFJHS0JWb0J2dnZ2UVhYTDo+PnV1dXdxTEJWb3FIaEtCd3FoMT5SR0tCVm9Cbz5ZR1gtUkdLQlZvQndMUUx2W1FCdkFOW3ZsR0tCVm9CbnYqdkAvQmhvR3FWdnZ2dmZXezp2JE56OnZBcXBHUkJfZ0JYQktYd0xRTHZ9dk80NHQtNGotTy52Ln06NEU6T3k1di9HS3dvWEZWS0dIdiRudio+bm5LUkZvb3ZBcXBHUkJfZ0JYQktYdjludnZ2dm52dnZ2TGhxWEJLWEJ6diRGS0tCTFg7bnZ2dnZMaHFYQktYQnp2JEhvQmhzMUJWWDtudnZ2dm52dnZ2TGhxWEJLWEJ6diRHb0FxcEdSQnZ2dnZ2CnZkRlJvQjtudnZ2dkxocVhCS1hCenYkR29zVnpocUd6dnZ2dgp2VkhSUjtudnZ2dkxocVhCS1hCenYkR29tUkZLUHBCaGhldgp2VkhSUjtudnZ2dkxocVhCS1hCenYkR29NTEJoRnZ2dnZ2dgp2VkhSUjtudnZ2dkxocVhCS1hCenYkR29ERlJZdnZ2dnZ2dgp2VkhSUjtudnZ2dkxocVhCS1hCenYkR28yR1Z6cXVvdnZ2dgp2VkhSUjtudnZ2dkxocVhCS1hCenYkR283QlZCaEdLdnZ2dgp2VkhSUjtuCQlMaHFYQktYQnp2JEdvTkxRcVZCdnZ2dnYKd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Z2dnZ2dnZ2aEJYSGhWdiRoQlhIaFY7bnZ2dnYwbjA=';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdySUplIFFGYlJmbHMxRHZ5XWR3ClAvPXhpe2EzLmNPcDV0OG9HQT5YV0xFbm05Szxxen0waFNbazZqdWdDVFpNNEg3VTJOWVZCJywnUjRGeXpoYUpsU0xBZ1AgODxmLj1rdkNZeE5qSzFxMmJaOUhzaU0vdFZwNgpCe2NVb2QzfXJRVDc+NXdEXVtFTzB1R1hXSW1uZScpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>

Function Calls

base64_decode 2
strrev 1
strtr 1
str_replace 1

Variables

$_R 0
$_X 0
$_F index.php
$_D base64_decode

Stats

MD5 9cbc065923b4c01900a27fb45fd14aeb
Eval Count 2
Decode Time 487 ms