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 /* ENCODE-By OBF.ThanhDieu.Com Website: http://obf.thanhdieu.com/ */ eval(gzinf..

Decoded Output download

}
function CheckDateRela($dateString) {
    $date = DateTime::createFromFormat('d-m-Y', $dateString);
    return $date && $date->format('d-m-Y') === $dateString;
}
function CheckName($name) {
    $length = mb_strlen($name, 'UTF-8');
    return ($length >= 1 && $length <= 12);
}
function CheckNameCmt($name) {
    $length = mb_strlen($name, 'UTF-8');
    return ($length >= 4 && $length <= 25);
}
function CheckNoiDung($name) {
    $length = mb_strlen($name, 'UTF-8');
    return ($length >= 1 && $length <= 350);
}
function CheckMusic($url) {
    $allowedExtensions = ['mp3','wav','flac','aac',];
    $urlInfo = pathinfo($url);
    $extension = isset($urlInfo['extension']) ? strtolower($urlInfo['extension']) : '';
    return in_array($extension, $allowedExtensions);
}
// 12 cung hong o
$zodiacs = ["Bch Dng", "Cung Kim Ngu", "Cung Song T", "Cung C Gii", "Cung S T", "Cung X N", "Cung Thin Bnh", "Cung H Cp", "Cung Nhn M", "Cung Ma Kt", "Cung Bo Bnh", "Cung Song Ng"];
$zodiacs_name = [
"Bch Dng (Aries) | 21/3 - 19/4",
"Kim Ngu (Taurus) | 20/4 - 20/5",
"Song T (Gemini) | 21/5 - 20/6",
"C Gii (Cancer) | 21/6 - 22/7",
"S T (Leo) | 23/7 - 22/8",
"X N (Virgo) | 23/8 - 22/9",
"Thin Bnh (Libra) | 23/9 - 22/10",
"H Cp (Scorpio) | 23/10 - 21/11",
"Nhn M (Sagittarius) | 22/11 - 21/12",
"Ma Kt (Capricorn) | 22/12 - 19/1",
"Bo Bnh (Aquarius) | 20/1 - 18/2",
"Song Ng (Pisces) | 19/2 - 20/3"
];
// remove def
function Confuscator($noidung) {
    $understand_dev = array(
        '/<s*script[^>]*>.*?<s*/s*scripts*>/is',
        '/<s*style[^>]*>.*?<s*/s*styles*>/is',  
        '/.*?/is',                                  
        '/php/i',                    
        '/javascript/i',              
        '/<//', 
        '/</>/', 
        '/</',  
        '/>/',
    );
    $remove_cmt = preg_replace($understand_dev, '', $noidung);
    if (empty($remove_cmt)) {
        $remove_cmt = '<i style="color: #fbff00;font-size:14px;text-shadow: 0 0 5px red;"><strong> Bnh lun ny vi phm h thng  n s sm c qun tr vin xem xt ! </strong></i>';
    }
    return $remove_cmt;
}
// Get device
function get_browser_info() {
    $user_agent = $_SERVER['HTTP_USER_AGENT'];
    $browser_name = "Google Chrome";
    $browser_icon = "chrome";

    if (strpos($user_agent, 'Firefox') !== false) {
        $browser_name = 'Firefox';
        $browser_icon = 'firefox';
    } elseif (strpos($user_agent, 'Chrome') !== false) {
        $browser_name = 'Google Chrome';
        $browser_icon = 'chrome';
    } elseif (strpos($user_agent, 'Safari') !== false) {
        $browser_name = 'Safari';
        $browser_icon = 'safari';
    } elseif (strpos($user_agent, 'Edge') !== false) {
        $browser_name = 'Microsoft Edge';
        $browser_icon = 'edge';
    } elseif (strpos($user_agent, 'MSIE') !== false || strpos($user_agent, 'Trident') !== false) {
        $browser_name = 'Internet Explorer';
        $browser_icon = 'ie';
    } elseif (strpos($user_agent, 'Opera') || strpos($user_agent, 'OPR')) {
        $browser_name = 'Opera';
        $browser_icon = 'opera';
    }
    return array('name' => $browser_name, 'icon' => $browser_icon);
}

function get_device_info() {
    $user_agent = $_SERVER['HTTP_USER_AGENT'];
    $device_name = "Unknown Device";
    $device_icon = "android";
    if (strpos($user_agent, 'Android') !== false) {
        $device_name = 'Android';
        $device_icon = 'android';
    } elseif (preg_match('/iPhone(?:s+OS)?s([0-9_]+)?s*.*s*likes*Mac OS X/', $user_agent, $matches)) {
        $device_name = 'iOS';
        $iphone_version = !empty($matches[1]) ? str_replace('_', '.', $matches[1]) : '';
        $device_name = $iphone_version ? "iPhone $iphone_version" : 'iPhone';
        $device_icon = 'apple';
    } elseif (strpos($user_agent, 'iPad') !== false) {
        $device_name = 'iPad';
        $device_icon = 'apple';
    } elseif (strpos($user_agent, 'Windows Phone') !== false) {
        $device_name = 'Windows Phone';
        $device_icon = 'win1';
    } elseif (strpos($user_agent, 'Macintosh') !== false) {
        $device_name = 'macOS';
        $device_icon = 'mac';
    } elseif (strpos($user_agent, 'Linux') !== false) {
        $device_name = 'Linux';
        $device_icon = 'linux';
    } elseif (strpos($user_agent, 'Windows') !== false) {
        if (preg_match('/Windowss(?:NTs)?(d+.d+)/', $user_agent, $windows_matches)) {
            $windows_version = $windows_matches[1];
            $device_name = "Windows $windows_version";
        } else {
            $device_name = 'Windows';
        }
        $device_icon = 'win1';
    }

    return array('name' => $device_name, 'icon' => $device_icon);
}
$browser_info = get_browser_info();
$device_info = get_device_info();

$browser_name = $browser_info['name'];
$browser_icon = 'icon-' . strtolower(str_replace(' ', '', $browser_info['icon']));

$device_name = $device_info['name'];
$device_icon = 'icon-' . strtolower(str_replace(' ', '', $device_info['icon']));
$LoveHidden = ($themerela == 0) ? 'hidden-wus-pc' : '';
$LoveHidden = ($themerela == 1) ? 'hidden-namelove' : '';
$LoveFormat = ($themerela == 0) ? 'format-luvday' : '';
$LoveHiddenName = ($mode_love == 'lich2') ? 'hidden-namelove' : '';

Did this file decode correctly?

Original Code

<?php
/*
ENCODE-By OBF.ThanhDieu.Com
Website: http://obf.thanhdieu.com/
*/
eval(gzinflate(base64_decode('tVjNbttGEL4WBvwOE1UIKccyJTluEv/ISBzHCRL/IFLSFIYrbMiVuI24ZJaU7aQxkFsPPeXQU1sgqU8tGjS92ih6cOH3UJ+ks1ySImlZVtFUAihy9puZb2d2Z5Y6mJxo97gZMJfDik3NZ7dJQB/SLtGLFt41AsF4pwRfT04AfkIZLIEENZlD5+dNQfH+jnCdO65wSKBrVtkpf6FNQ1p/QakLGvQEj6xcvqxuyvV2RrMES0tLaW1UPsiz3CAO1YscrwNuXco7gY3snKctPxD4qBDToD1q3ilf13I09FijvgTVkE70vIjPtdJ5blec4GN6vprzXJsb7tllt3u883/OeXauMtT1es9npl7sie7AL+l23T1q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lNL+lxsJiqahTXX7XQptlM8J9FCHoXbXDa8gpkMD7KI0/NcX08xwIzfYYK23X08Kl3Co1KbdH2azW3Of6KwMAQTedfaWcwBUDR7LgU1lfEZZCIwkoeZgVxAo0HaWPrGpxHhR/n3M5AL/K9anX8RhHVmCtd32wGEeqNY0BTgAg7rjXuraQ7w6hUMBTYFs/BufL73eEAFx72yuu9hUaBiJGU2LuFNjwqCLM7jubn1UCuNZqZMjGLjphHZiqC6lCZtabBUz1pH/9JEdkBKolNhrmCoKvJf60VkJS4Xj/gz7u5xuB2KCzlUXC6wAwgs+4WFC6rFTYU7P+1Z7wl+4SwkDi7JQgb5DlsVvsyZtq4ZbMt2OdWX5/0rm43Ssq9vV8o3WjtX8HZqZsqf6rJn2NHXiQmbDXgi22KGeDG0gyeWkWzZZiPDlHnSaWsXe6R6j7gUNcLI2nY1fn1IWqrWQtfajDZwGYJS7w9DHOcdLUNBzTc/UpCG1NDIkHped9wNxLbI+OkMwR/J8eeMY+P3Qc1mXAZZrRFU9hivjlv0iMl44Pr22CwcYuaWSs47AsZ0/oDx3ojum3Os0CMcd9OA8TJwrvMzmzBS8HEbbjT90rJuXZmxrpTO7rY9BWwN3XUh7Rgx2Ft5Jdw3CzmlXGmL10LeWCGlp0Jwxv3wVZUO7MGYSys+YJ3XD1KeMu0gZTPqBsX0gRH9nD1DynfoVJOIMJm2ER748i0uY3lbkQtfyM+0XfwtazCT/kckU91Ai14SshbDae2UIu+54pbil/adC+r4rjP2Up6LD/BofpdZeC5Bg3oxsKlDBe0SwNVdkYVas8PR8l7PL3umFlflkYrVtKJk30VwVlX9W3meT/WPZLnb27XIi2E+N1ScsKu4Fm1J81IZd7Jp17QR3v8B')));
?>

Function Calls

gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 065b72fb682de0ea49f2836e9eb33100
Eval Count 1
Decode Time 59 ms