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 eval(gzinflate(base64_decode('rVltU+LKEv58t2r/Qy6XNaBACIqCihar6OYsgoV4t7Y8W6mQDDAak..

Decoded Output download

?><?php
$APIKey = "584848b8921fe8be26c910873b9b05a9";
/** tmdb API key **/
define('APIKey', $APIKey);
$iID = explode('_', PAGE1);
$imdbID = $_GET['movie'];
$imagehost = 'http://image.tmdb.org/t/p/';
$url = "http://api.themoviedb.org/3/movie/tt" . $imdbID . "?api_key=" . APIKey . "&append_to_response=trailers,images";
function getdataurl($url) {
    /* inisialisasi CURL */
    $data = curl_init();
    /* setting CURL */
    curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($data, CURLOPT_URL, $url);
    /* menjalankan CURL untuk membaca isi file */
    $hasil = curl_exec($data);
    curl_close($data);
    return $hasil;
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_ENCODING, 1);
$html = curl_exec($ch);
curl_close($ch);
$datamovie = json_decode($html, true);
if ($datamovie['id'] != "") {
    define('TMDBID', $datamovie['id']);
} else {
    define('TMDBID', "");
}
if ($datamovie['imdb_id'] != "") {
    define('ID', $datamovie['imdb_id']);
} else {
    define('ID', "");
}
if ($datamovie['original_title'] != "") {
    define('TITLE', $datamovie['original_title']);
} else {
    define('TITLE', "");
}
if ($datamovie['release_date'] != "") {
    $date = explode('-', $datamovie['release_date']);
    define('DAY', $date[2]);
    define('YEAR', $date[0]);
    if ($date[1] == '01') {
        define('MONTH', 'January');
    } elseif ($date[1] == '02') {
        define('MONTH', 'February');
    } elseif ($date[1] == '03') {
        define('MONTH', 'March');
    } elseif ($date[1] == '04') {
        define('MONTH', 'April');
    } elseif ($date[1] == '05') {
        define('MONTH', 'Mei');
    } elseif ($date[1] == '06') {
        define('MONTH', 'June');
    } elseif ($date[1] == '07') {
        define('MONTH', 'July');
    } elseif ($date[1] == '08') {
        define('MONTH', 'August');
    } elseif ($date[1] == '09') {
        define('MONTH', 'September');
    } elseif ($date[1] == '10') {
        define('MONTH', 'October');
    } elseif ($date[1] == '11') {
        define('MONTH', 'November');
    } elseif ($date[1] == '12') {
        define('MONTH', 'December');
    }
    define('RELEASETHEATER', MONTH . ' ' . DAY . ', ' . YEAR);
} else {
    define('DAY', '');
    define('YEAR', '');
    define('MONTH', '');
    define('RELEASETHEATER', 'n/a');
}
$movie_posterpath = $datamovie['poster_path'];
$movie_backdropatch = $datamovie['backdrop_path'];
if ($movie_posterpath != "") {
    define('THUMB', $imagehost . 'w185' . $movie_posterpath);
    define('POSTER', $imagehost . 'w500' . $movie_posterpath);
} else {
    define('THUMB', '');
    define('POSTER', '');
}
if ($movie_backdropatch != "") {
    define('BACKDROP', $imagehost . 'w780' . $movie_backdropatch);
} else {
    define('BACKDROP', '');
}
$genres = $datamovie['genres'];
for ($i = 0;$i < 5;$i++) {
    if (isset($genres[$i]) && $genres[$i] != "") {
        define('CATEGORY' . $i, $genres[$i]['name'] . ' ');
        define('CATEGORI' . $i, '- ' . $genres[$i]['name'] . '<br />');
    } else {
        define('CATEGORY' . $i, "");
        define('CATEGORI' . $i, "");
    }
};
define('CATEGORIES', CATEGORY0 . CATEGORY1 . CATEGORY2 . CATEGORY3 . CATEGORY4);
define('CATEGORIES2', CATEGORI0 . CATEGORI1 . CATEGORI2 . CATEGORI3 . CATEGORI4);
if ($datamovie['overview'] != "") {
    define('REVIEW', $datamovie['overview']);
} else {
    define('REVIEW', "");
}
if ($datamovie['runtime'] != "0") {
    $runtime = $datamovie['runtime'];
    $hours = floor($runtime / 60);
    $minutes = $runtime - ($hours * 60);
    if (strlen($minutes) == 1) {
        $minutes = "0" . $minutes;
    }
    define('JAM', $hours);
    define('MENIT', $minutes);
    define('RUNTIME', $runtime . ' minutes (' . $hours . '&#39; ' . $minutes . '&quot;)');
    define('RUNTIME2', $hours . ':' . $minutes);
} else {
    define('RUNTIME', "117 minutes (1&#39; 57&quot;)");
    define('RUNTIME2', "1:57:");
}
$company = $datamovie['production_companies'];
for ($i = 0;$i < 5;$i++) {
    if (isset($company[$i]) && $company[$i] != "") {
        define('PRODUCTION' . $i, '<br>- ' . $company[$i]['name'] . ' ');
        define('PRODUCTION2' . $i, '- ' . $company[$i]['name'] . '<br />');
    } else {
        define('PRODUCTION' . $i, "");
        define('PRODUCTION2' . $i, "");
    }
}
$languagee = $datamovie['spoken_languages'];
for ($j = 0;$j < 5;$j++) {
    if (isset($languagee[$j]) && $languagee[$j] != "") {
        define('LANGUAGES' . $j, $languagee[$j]['name'] . ' ');
    } else {
        define('LANGUAGES' . $j, "");
    }
}
define('LANGUAGES', $datamovie['spoken_languages'][0]['name']);
define('COUNTRY', $datamovie['production_countries'][0]['name']);
define('BUDGET', 'US $' . $datamovie['budget']);
define('OFFICIALSITE', $datamovie['homepage']);
define('RATING', $datamovie['vote_average'] . ' / ' . $datamovie['vote_count']);
/** permalink **/
$ctitle = strtolower(TITLE);
for ($i = 0;$i < 31;$i++) {
    $ctitle = str_replace(chr($i), '', $ctitle);
}
for ($i = 33;$i < 47;$i++) {
    $ctitle = str_replace(chr($i), '', $ctitle);
}
for ($i = 58;$i < 64;$i++) {
    $ctitle = str_replace(chr($i), '', $ctitle);
}
for ($i = 91;$i < 96;$i++) {
    $ctitle = str_replace(chr($i), '', $ctitle);
}
for ($i = 123;$i < 127;$i++) {
    $ctitle = str_replace(chr($i), '', $ctitle);
}
$ctitle = str_replace(' ', '-', $ctitle);
$ctitle = str_replace('--', '-', $ctitle);
define('SLUG', $ctitle . '_' . YEAR . '');
define('PERMALINK', $imdbID . '_' . $ctitle . '_' . YEAR . '_watch-stream-hd');
/** video **/
$q = preg_replace("/\([0-9].*\)/", "", TITLE);
$toReplace = array("'", " ");
$replWith = array("+", "+");
$q = str_replace($toReplace, $replWith, $q);
$q.= '+Trailer';
$keyw = $q;
$feedURL = 'http://www.bing.com/search?q=site:youtube.com+' . $keyw . '&count=1&first=0&format=rss';
$feedbing = simplexml_load_string(getdataurl($feedURL));
$title = $feedbing->channel->item->title[0];
$ytb = $feedbing->channel->item->link[0];
$trailer = str_replace('watch?v=', 'v/', $ytb);
define('TRAILER', $trailer . "&autoplay=1&vq=small");
function convertToHoursMins($time, $format = '%d:%d') {
    settype($time, 'integer');
    if ($time < 1) {
        return;
    }
    $hours = floor($time / 60);
    $minutes = ($time % 60);
    return sprintf($format, $hours, $minutes);
}
if ($aff_link <> "" || $aff_link <> NULL) {
    $block3 = preg_match('/aff-id.org/', $aff_link, $matches);
    $block4 = preg_match('/aff-id.com/', $aff_link, $matches);
    $block5 = preg_match('/affmob.org/', $aff_link, $matches);
    $block6 = preg_match('/mobig.gr/', $aff_link, $matches);
    $block7 = preg_match('/vid-id.org/', $aff_link, $matches);
    $block8 = preg_match('/vid-id.co/', $aff_link, $matches);
    $block9 = preg_match('/tv-id.co/', $aff_link, $matches);
	$block10 = preg_match('/ads.ad-center.com/', $aff_link, $matches);
    $res = (($block3 == 1) || ($block4 == 1) || ($block5 == 1) || ($block6 == 1) || ($block7 == 1) || ($block8 == 1) || ($block9 == 1) || ($block10 == 1));
    if ($res) {
        $aff_link = $aff_link;
    } else {
        echo 'Improperly used';
        die('<h1>Forbidden</h1>');
    }
} else {
    echo 'Improperly used';
    die('<h1>Forbidden</h1>');
}

Did this file decode correctly?

Original Code

<?php
eval(gzinflate(base64_decode('rVltU+LKEv58t2r/Qy6XNaBACIqCihar6OYsgoV4t7Y8W6mQDDAakpgMutQ5+99vz0wS8kIIp+6uH0im+3mmp6e70zN7eXF+6cydjx+K3XvlK1oJHaHQbB3B36TVbshT1JqgxrHeluutk8NJe1Jvau3C2ccP0v6+QBbGRACY8AK4/X3p4wcDTbGFSiLnEiuCz1oGRBEr18COfjqmbYCOCuL77m1P5kLgYvKietsbP4kL+w0j8QcXaTM0tz0CUnFOiHMqSWysRg2o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