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 $GLOBALS["c7e178c3d98c9c456bd7134111b6b0"] = "strip_tags"; $GLOBALS["e5928f6b2bb28..

Decoded Output download

<?php 
$GLOBALS["c7e178c3d98c9c456bd7134111b6b0"] = "strip_tags"; 
$GLOBALS["e5928f6b2bb28eb4fc8adb8867e6015"] = "in_array"; 
$GLOBALS["e2942a04780e223b215eb8b663cf5353"] = "count"; 
$GLOBALS["daf5424fddf6d1c3270018021b5e7b5b"] = "array_search"; 
$GLOBALS["f821b5159d85278da0badf5d32ffe210"] = "explode"; 
$GLOBALS["e9bf054adccf85586e047354305a5"] = "json_encode"; 
$GLOBALS["bf13a9d0832fdbbda6b85e1209be0"] = "json_decode"; 
$GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"] = "is_array"; 
$GLOBALS["fb85fb78b0a17d6afd24d378ab0f0d70"] = "ltrim"; 
$GLOBALS["a28b9ce9a4ccf84a60efced5c33f5e"] = "rtrim"; 
$GLOBALS["b7d16c1118328a268a38340757f84e31"] = "preg_match_all"; 
$GLOBALS["c3b75986a18638d635a5d5d67e5364d"] = "str_replace"; 
$GLOBALS["f166dfa5baf03fb0cef5b6bcc5514dd1"] = "curl_close"; 
$GLOBALS["c719efb0fbd104327ced0c8405304153"] = "curl_error"; 
$GLOBALS["c6f7396f1d1ee5c24b894546a94cffa"] = "curl_getinfo"; 
$GLOBALS["b0d167d9bdb4bcf490e91779bef"] = "curl_exec"; 
$GLOBALS["dff242dc58dfc1f530eee0cd2764"] = "curl_setopt"; 
$GLOBALS["a66b32feb52f0d8087934c742a21359"] = "curl_init"; 
$GLOBALS["ab1125e443bd6769e77e7de0da7befd1"] = "fclose"; 
$GLOBALS["eb83bca864c64ee1e669dfab01c95"] = "basename"; 
if (file_exists(get_template_directory() . '/imdb/imdb.php')) { 
    $im_args = array("im_name" => "\xd9\x86\xd8\xa7\xd9\x85 \xd9\x81\xdb\x8c\xd9\x84\xd9\x85", "im_url" => "\xd9\x84\xdb\x8c\xd9\x86\xda\xa9 IMDB", "im_image" => "\xd8\xa2\xd8\xaf\xd8\xb1\xd8\xb3 \xd8\xb9\xda\xa9\xd8\xb3", "im_genre" => "\xda\x98\xd8\xa7\xd9\x86\xd8\xb1 \xd9\x81\xdb\x8c\xd9\x84\xd9\x85", "im_country" => "\xd9\x85\xd8\xad\xd8\xb5\xd9\x88\xd9\x84 \xda\xa9\xd8\xb4\xd9\x88\xd8\xb1", "im_actors" => "\xd8\xa8\xd8\xa7\xd8\xb2\xdb\x8c\xda\xaf\xd8\xb1\xd8\xa7\xd9\x86", "im_director" => "\xda\xa9\xd8\xa7\xd8\xb1\xda\xaf\xd8\xb1\xd8\xaf\xd8\xa7\xd9\x86", "im_creator" => "\xd8\xb3\xd8\xa7\xd8\xb2\xd9\x86\xd8\xaf\xda\xaf\xd8\xa7\xd9\x86", "im_description" => "\xd8\xaa\xd9\x88\xd8\xb6\xdb\x8c\xd8\xad\xd8\xa7\xd8\xaa", "im_date" => "\xd8\xaa\xd8\xa7\xd8\xb1\xdb\x8c\xd8\xae \xd8\xa7\xd9\x86\xd8\xaa\xd8\xb4\xd8\xa7\xd8\xb1", "im_rate" => "\xd8\xa7\xd9\x85\xd8\xaa\xdb\x8c\xd8\xa7\xd8\xb2", "im_rate_count" => "\xd8\xaa\xd8\xb9\xd8\xaf\xd8\xa7\xd8\xaf \xd8\xa7\xd8\xb1\xd8\xa7", "im_best_rate" => "\xd8\xa8\xd8\xa7\xd9\x84\xd8\xa7\xd8\xaa\xd8\xb1\xdb\x8c\xd9\x86 \xd8\xa7\xd9\x85\xd8\xaa\xdb\x8c\xd8\xa7\xd8\xb2", "im_worst_rate" => "\xda\xa9\xd9\x85\xd8\xaa\xd8\xb1\xdb\x8c\xd9\x86 \xd8\xa7\xd9\x85\xd8\xaa\xdb\x8c\xd8\xa7\xd8\xb2", "im_duration" => "\xd8\xb2\xd9\x85\xd8\xa7\xd9\x86 \xd9\x81\xdb\x8c\xd9\x84\xd9\x85", "im_content_rating" => "\xd8\xb1\xd8\xaf\xd9\x87 \xd8\xa8\xd9\x86\xd8\xaf\xdb\x8c \xd8\xb3\xd9\x86\xdb\x8c", "im_writers" => "\xd9\x86\xd9\x88\xdb\x8c\xd8\xb3\xd9\x86\xd8\xaf\xda\xaf\xd8\xa7\xd9\x86", "im_languages" => "\xd8\xb2\xd8\xa8\xd8\xa7\xd9\x86", "im_budget" => "\xd9\x87\xd8\xb2\xdb\x8c\xd9\x86\xd9\x87 \xdb\x8c \xd8\xb3\xd8\xa7\xd8\xae\xd8\xaa", "im_world_sell" => "\xd9\x81\xd8\xb1\xd9\x88\xd8\xb4 \xd8\xac\xd9\x87\xd8\xa7\xd9\x86\xdb\x8c", "im_production" => "\xd8\xaa\xd9\x87\xdb\x8c\xd9\x87 \xda\xa9\xd9\x86\xd9\x86\xd8\xaf\xda\xaf\xd8\xa7\xd9\x86"); 
    function im_load($url) { 
        $ch = $GLOBALS["a66b32feb52f0d8087934c742a21359"](); 
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_URL, $url); 
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_RETURNTRANSFER, 1); 
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_HTTPHEADER, array("User-Agent:Mozilla/5.01 (Windows NT 6.2; Win64; x64; rv:59.0) Gecko/2011 Firefox/59.01")); 
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_CONNECTTIMEOUT, 30); 
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_TIMEOUT, 30); 
        $data = $GLOBALS["b0d167d9bdb4bcf490e91779bef"]($ch); 
        $httpcode = $GLOBALS["c6f7396f1d1ee5c24b894546a94cffa"]($ch, CURLINFO_HTTP_CODE); 
        if ($GLOBALS["c719efb0fbd104327ced0c8405304153"]($ch)) { 
            die($GLOBALS["c719efb0fbd104327ced0c8405304153"]($ch)); 
        } 
        $GLOBALS["f166dfa5baf03fb0cef5b6bcc5514dd1"]($ch); 
        return $data; 
    } 
    function im_download($file_source, $file_target) { 
        $fp = fopen($file_target, "w+"); 
        $ch = $GLOBALS["a66b32feb52f0d8087934c742a21359"]($GLOBALS["c3b75986a18638d635a5d5d67e5364d"](" ", "%20", $file_source)); 
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_TIMEOUT, 50); 
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_FILE, $fp); 
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_FOLLOWLOCATION, true); 
        $GLOBALS["b0d167d9bdb4bcf490e91779bef"]($ch); 
        $GLOBALS["f166dfa5baf03fb0cef5b6bcc5514dd1"]($ch); 
        $GLOBALS["ab1125e443bd6769e77e7de0da7befd1"]($fp); 
        return true; 
    } 
    function im_parse($imdb_id) { 
        $genres = array("comedy" => "\xda\xa9\xd9\x85\xd8\xaf\xdb\x8c", "drama" => "\xd8\xaf\xd8\xb1\xd8\xa7\xd9\x85", "short" => "\xda\xa9\xd9\x88\xd8\xaa\xd8\xa7\xd9\x87", "family" => "\xd8\xae\xd8\xa7\xd9\x86\xd9\x88\xd8\xa7\xd8\xaf\xda\xaf\xdb\x8c", "romance" => "\xd8\xb1\xd9\x85\xd8\xa7\xd9\x86\xd8\xaa\xdb\x8c\xda\xa9", "talk-show" => "\xd8\xb4\xd9\x88\xdb\x8c \xd8\xaa\xd9\x84\xd9\x88\xdb\x8c\xd8\xb2\xdb\x8c\xd9\x88\xd9\x86\xdb\x8c", "animation" => "\xd8\xa7\xd9\x86\xdb\x8c\xd9\x85\xdb\x8c\xd8\xb4\xd9\x86", "music" => "\xd9\x85\xd9\x88\xd8\xb2\xdb\x8c\xda\xa9", "fantasy" => "\xd9\x81\xd8\xa7\xd9\x86\xd8\xaa\xd8\xb2\xdb\x8c", "adventure" => "\xd9\x85\xd8\xa7\xd8\xac\xd8\xb1\xd8\xa7\xd8\xac\xd9\x88\xdb\x8c\xdb\x8c", "action" => "\xd8\xa7\xda\xa9\xd8\xb4\xd9\x86", "sci-fi" => "\xd8\xb9\xd9\x84\xd9\x85\xdb\x8c \xd8\xaa\xd8\xae\xdb\x8c\xd9\x84\xdb\x8c", "crime" => "\xd8\xac\xd9\x86\xd8\xa7\xdb\x8c\xdb\x8c", "news" => "\xd8\xae\xd8\xa8\xd8\xb1\xdb\x8c", "game-show" => "\xd8\xb4\xd9\x88\xdb\x8c \xd8\xa8\xd8\xa7\xd8\xb2\xdb\x8c", "mystery" => "\xd8\xb1\xd8\xa7\xd8\xb2 \xd8\xa2\xd9\x84\xd9\x88\xd8\xaf", "musical" => "\xd9\x85\xd9\x88\xd8\xb2\xdb\x8c\xda\xa9\xd8\xa7\xd9\x84", "horror" => "\xd8\xaa\xd8\xb1\xd8\xb3\xd9\x86\xd8\xa7\xda\xa9", "thriller" => "\xd9\x87\xdb\x8c\xd8\xac\xd8\xa7\xd9\x86 \xd8\xa7\xd9\x86\xda\xaf\xdb\x8c\xd8\xb2", "reality-tv" => "\xd8\xaa\xd9\x84\xd9\x88\xdb\x8c\xd8\xb2\xdb\x8c\xd9\x88\xd9\x86\xdb\x8c", "documentary" => "\xd9\x85\xd8\xb3\xd8\xaa\xd9\x86\xd8\xaf", "sport" => "\xd9\x88\xd8\xb1\xd8\xb2\xd8\xb4\xdb\x8c", "history" => "\xd8\xaa\xd8\xa7\xd8\xb1\xdb\x8c\xd8\xae\xdb\x8c", "western" => "\xd9\x88\xd8\xb3\xd8\xaa\xd8\xb1\xd9\x86", "biography" => "\xd8\xa8\xdb\x8c\xd9\x88\xda\xaf\xd8\xb1\xd8\xa7\xd9\x81\xdb\x8c", "war" => "\xd8\xac\xd9\x86\xda\xaf\xdb\x8c", "adult" => "\xd8\xa8\xd8\xb2\xd8\xb1\xda\xaf\xd8\xb3\xd8\xa7\xd9\x84", "film-noir" => "film-noir"); 
        $data = im_load("https://www.imdb.com/title/" . $imdb_id . "/"); 
        $GLOBALS["b7d16c1118328a268a38340757f84e31"]("#<script type=\"application\/ld\+json\">(.*?)<\/script>#s", $data, $json); 
        $GLOBALS["b7d16c1118328a268a38340757f84e31"]("/<a href=\"\/search\/title[?]country_of_origin=([a-z]+)&ref_=tt_dt_dt\"\n>([A-za-z0-9 ]+)<\/a>/", $data, $countries); 
        preg_match("#<div class=\"credit_summary_item\">(\s+)<h4 class=\"inline\">Writers:<\/h4>(.*)<\/div>#Us", $data, $writers); 
        preg_match("#<div class=\"txt-block\">(\s+)<h4 class=\"inline\">Language:<\/h4>(.*)<\/div>#Us", $data, $lang); 
        preg_match("#<div class=\"txt-block\">(\s+)<h4 class=\"inline\">Budget:<\/h4>[\$]([0-9,]+)(\s+)#Us", $data, $budge); 
        preg_match("#<div class=\"txt-block\">(\s+)<h4 class=\"inline\">Cumulative Worldwide Gross:<\/h4> [\$]([0-9,]+)(\s)#Us", $data, $worlsell); 
        preg_match("#<div class=\"txt-block\">(\s+)<h4 class=\"inline\">Production Co:<\/h4>(.*)<\/div>#Us", $data, $company); 
        $writer = array(); 
        $langs = array(); 
        $budget = ""; 
        $worldsell = ""; 
        $production = array(); 
        if (isset($writers[2])) { 
            preg_match_all("#<a href=\"(.*)\"(\s+)>(.*)<\/a>#Us", $writers[2], $writers); 
            if (isset($writers[3])) { 
                foreach ($writers[3] as $wri) { 
                    if (!preg_match("#more credits#", $wri)) { 
                        $writer[] = $GLOBALS["a28b9ce9a4ccf84a60efced5c33f5e"]($GLOBALS["fb85fb78b0a17d6afd24d378ab0f0d70"]($wri)); 
                    } 
                } 
            } 
        } 
        if (isset($lang[2])) { 
            preg_match_all("#<a href=\"(.*)\"(\s+)>(.*)<\/a>#Us", $lang[2], $lang); 
            if (isset($lang[3])) { 
                foreach ($lang[3] as $wri) { 
                    $langs[] = $GLOBALS["a28b9ce9a4ccf84a60efced5c33f5e"]($GLOBALS["fb85fb78b0a17d6afd24d378ab0f0d70"]($wri)); 
                } 
            } 
        } 
        if (isset($budge[2])) { 
            $budget = "$" . $GLOBALS["fb85fb78b0a17d6afd24d378ab0f0d70"]($GLOBALS["a28b9ce9a4ccf84a60efced5c33f5e"]($budge[2])); 
        } 
        if (isset($worlsell[2])) { 
            $worldsell = "$" . $GLOBALS["fb85fb78b0a17d6afd24d378ab0f0d70"]($GLOBALS["a28b9ce9a4ccf84a60efced5c33f5e"]($worlsell[2])); 
        } 
        if (isset($company[2])) { 
            preg_match_all("#<a href=\"(.*)\"(\s+)>(.*)<\/a>#Us", $company[2], $company); 
            if (isset($company[3]) && $GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"]($company[3]) && !empty($company[3])) { 
                foreach ($company[3] as $wri) { 
                    if (!preg_match("#See more#", $wri)) { 
                        $production[] = $GLOBALS["a28b9ce9a4ccf84a60efced5c33f5e"]($GLOBALS["fb85fb78b0a17d6afd24d378ab0f0d70"]($wri)); 
                    } 
                } 
            } 
        } 
        $countries = $countries[2]; 
        if (empty($json[1][0])) return false; 
        $json = $GLOBALS["bf13a9d0832fdbbda6b85e1209be0"]($json[1][0]); 
        $genre = array(); 
        if ($GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"]($json->genre)) { 
            foreach ($json->genre as $gen) { 
                $genre[] = $genres[strtolower($gen) ]; 
            } 
        } else { 
            $genre[] = $genres[strtolower($json->genre) ]; 
        } 
        $actors = array(); 
        if ($GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"]($json->actor)) { 
            foreach ($json->actor as $ac) { 
                if (isset($ac->name)) $actors[] = $ac->name; 
            } 
        } else { 
            $actors[] = $json->actor->name; 
        } 
        $directors = array(); 
        if (isset($json->director) && $GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"]($json->director)) { 
            foreach ($json->director as $direc) { 
                if (isset($direc->name)) $directors[] = $direc->name; 
            } 
        } else if (isset($json->director)) { 
            $directors[] = $json->director->name; 
        } 
        $creators = array(); 
        if (isset($json->creator) && $GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"]($json->creator)) { 
            foreach ($json->creator as $cre) { 
                if (isset($cre->name)) $creators[] = $cre->name; 
            } 
        } else if (isset($json->creator)) { 
            $creators[] = $json->creator->name; 
        } 
        if (isset($json->duration)) { 
            preg_match("#PT([0-9]+)H([0-9]+)M#", $json->duration, $time); 
        } else { 
            $time = array("", "0", "0"); 
        } 
        $datas = array("name" => $json->name, "url" => "https://www.imdb.com" . $json->url, "image" => ($GLOBALS["c3b75986a18638d635a5d5d67e5364d"](".jpg", "SY1000_SX675_AL_.jpg", $json->image)), "genre" => implode(",", $genre), "country" => implode(",", $countries), "actors" => implode(",", $actors), "director" => implode(",", $directors), "creator" => implode(",", $creators), "description" => $json->description, "date" => $json->datePublished, "rate" => $json->aggregateRating->ratingValue, "rate_count" => $json->aggregateRating->ratingCount, "best_rate" => $json->aggregateRating->bestRating, "worst_rate" => $json->aggregateRating->worstRating, "duration" => $time[1] . " \xd8\xb3\xd8\xa7\xd8\xb9\xd8\xaa \xd9\x88 " . $time[2] . " \xd8\xaf\xd9\x82\xdb\x8c\xd9\x82\xd9\x87 ", "content_rating" => (isset($json->contentRating) ? $json->contentRating : "NA"), "writers" => implode(",", $writer), "languages" => implode(",", $langs), "budget" => $budget, "production" => implode(",", $production), "world_sell" => $worldsell); 
        return $datas; 
    } 
    function im_loader() { 
        if (!empty($_POST["im_id"])) { 
            $data = im_parse($_POST["im_id"]); 
            echo ($data ? $GLOBALS["e9bf054adccf85586e047354305a5"]($data) : "-1"); 
        } 
        die(); 
    } 
    add_action("wp_ajax_im_loader", "im_loader"); 
    function im_check_term($name, $tax) { 
        $term = get_term_by("name", $name, $tax); 
        return $term ? $term->term_id : false; 
    } 
    function im_add_new_term($name, $tax) { 
        if ($tax == "genre") { 
            return wp_insert_term($name, $tax, array("slug" => array_search($name, $genres))) ["term_id"]; 
        } else { 
            $data = wp_insert_term($name, $tax); 
            if (!is_wp_error($data)) { 
                return $data['term_id']; 
            } 
        } 
    } 
    function im_save() { 
        global $post, $im_args; 
        $added = false; 
        if (isset($_POST["im_delete"])) { 
            delete_post_meta($post->ID, "codein_im"); 
            foreach ($im_args as $key => $name) { 
                delete_post_meta($post->ID, get_option($key, $key)); 
            } 
            foreach (array("genre", "release", "actor", "director", "country") as $tax) { 
                $terms = get_the_terms($post->ID, $tax); 
                if ($GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"]($terms)) { 
                    foreach ($terms as $term) { 
                        wp_remove_object_terms($post->ID, $term->term_id, $tax); 
                    } 
                } 
            } 
            return; 
        } 
        if (!empty($_POST["im_image"]) && preg_match("#(yes|resize)#", get_option("im_upload_picture")) && !get_post_meta($post->ID, "codein_im", true)) { 
            $wpdir = wp_upload_dir(); 
            $file = $wpdir["path"] . "/" . $post->ID . ".jpg"; 
            im_download($_POST["im_image"], $file); 
            if (get_option("im_upload_picture") == "resize") { 
                $image = wp_get_image_editor($file); 
                if (!is_wp_error($image)) { 
                    $size = $image->get_size(); 
                    $def = $size["width"] / 400; 
                    $image->resize(400, $size["height"] / $def, true); 
                    $image->save($file); 
                } 
            } 
            $filetype = wp_check_filetype($GLOBALS["eb83bca864c64ee1e669dfab01c95"]($file), null); 
            $attachment = array("guid" => $file, "post_mime_type" => $filetype["type"], "post_title" => $GLOBALS["eb83bca864c64ee1e669dfab01c95"]($file), "post_content" => '', "post_status" => "inherit"); 
            $attach_id = wp_insert_attachment($attachment, $file, $post->ID); 
            require_once (ABSPATH . "wp-admin/includes/image.php"); 
            $attach_data = wp_generate_attachment_metadata($attach_id, $file); 
            wp_update_attachment_metadata($attach_id, $attach_data); 
            set_post_thumbnail($post->ID, $attach_id); 
            $_POST["im_image"] = $wpdir["url"] . "/" . $post->ID . ".jpg"; 
        } 
        if (get_option("im_active_tax") == "yes") { 
            if (!empty($_POST["im_genre"]) && !get_post_meta($post->ID, "codein_im", true)) { 
                $genre = "movie_genres"; 
                if (get_post_type() == "series") { 
                    $genre = "serie_genres"; 
                } 
                $gens = array(); 
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_genre"]) as $gen) { 
                    $check = im_check_term($gen, $genre); 
                    if (!$check) { 
                        $gens[] = im_add_new_term($gen, $genre); 
                    } else { 
                        $gens[] = $check; 
                    } 
                } 
                wp_set_post_terms($post->ID, $gens, $genre, false); 
            } 
            if (!empty($_POST["im_actors"]) && !get_post_meta($post->ID, "codein_im", true)) { 
                $tax = "movie_artists"; 
                if (get_post_type() == "series") { 
                    $genre = "serie_artists"; 
                } 
                $acts = array(); 
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_actors"]) as $gen) { 
                    $check = im_check_term($gen, $tax); 
                    if (!$check) { 
                        $acts[] = im_add_new_term($gen, $tax); 
                    } else { 
                        $acts[] = $check; 
                    } 
                } 
                wp_set_post_terms($post->ID, $acts, $tax, false); 
            } 
            if (!empty($_POST["im_writers"]) && !get_post_meta($post->ID, "codein_im", true)) { 
                $acts = array(); 
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_writers"]) as $gen) { 
                    $check = im_check_term($gen, "writer"); 
                    if (!$check) { 
                        $acts[] = im_add_new_term($gen, "writer"); 
                    } else { 
                        $acts[] = $check; 
                    } 
                } 
                wp_set_post_terms($post->ID, $acts, "writer", false); 
            } 
            if (!empty($_POST["im_languages"]) && !get_post_meta($post->ID, "codein_im", true)) { 
                $acts = array(); 
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_languages"]) as $gen) { 
                    $check = im_check_term($gen, "language"); 
                    if (!$check) { 
                        $acts[] = im_add_new_term($gen, "language"); 
                    } else { 
                        $acts[] = $check; 
                    } 
                } 
                wp_set_post_terms($post->ID, $acts, "language", false); 
            } 
            if (!empty($_POST["im_production"]) && !get_post_meta($post->ID, "codein_im", true)) { 
                $acts = array(); 
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_production"]) as $gen) { 
                    $check = im_check_term($gen, "production"); 
                    if (!$check) { 
                        $acts[] = im_add_new_term($gen, "production"); 
                    } else { 
                        $acts[] = $check; 
                    } 
                } 
                wp_set_post_terms($post->ID, $acts, "production", false); 
            } 
            if (!empty($_POST["im_content_rating"]) && !get_post_meta($post->ID, "codein_im", true)) { 
                $acts = array(); 
                $check = im_check_term($_POST["im_content_rating"], "content-rating"); 
                if (!$check) { 
                    $acts[] = im_add_new_term($_POST["im_content_rating"], "content-rating"); 
                } else { 
                    $acts[] = $check; 
                } 
                wp_set_post_terms($post->ID, $acts, "content-rating", false); 
            } 
            if (!empty($_POST["im_director"]) && !get_post_meta($post->ID, "codein_im", true)) { 
                $dirs = array(); 
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_director"]) as $gen) { 
                    $check = im_check_term($gen, "director"); 
                    if (!$check) { 
                        $dirs[] = im_add_new_term($gen, "director"); 
                    } else { 
                        $dirs[] = $check; 
                    } 
                } 
                wp_set_post_terms($post->ID, $dirs, "director", false); 
            } 
            if (!empty($_POST["im_date"]) && !get_post_meta($post->ID, "codein_im", true)) { 
                $tax = "movie_years"; 
                if (get_post_type() == "series") { 
                    $genre = "serie_years"; 
                } 
                $year = $GLOBALS["f821b5159d85278da0badf5d32ffe210"]("-", $_POST["im_date"]) [0]; 
                $check = im_check_term($year, $tax); 
                if (!$check) { 
                    $year = im_add_new_term($year, $tax); 
                } else { 
                    $year = $check; 
                } 
                wp_set_post_terms($post->ID, array($year), $tax, false); 
            } 
            if (!empty($_POST["im_country"]) && !get_post_meta($post->ID, "codein_im", true)) { 
                $dirs = array(); 
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_country"]) as $gen) { 
                    $check = im_check_term($gen, "country"); 
                    if (!$check) { 
                        $dirs[] = im_add_new_term($gen, "country"); 
                    } else { 
                        $dirs[] = $check; 
                    } 
                } 
                wp_set_post_terms($post->ID, $dirs, "country", false); 
            } 
        } 
        foreach ($im_args as $key => $val) { 
            if (!empty($_POST[$key])) { 
                update_post_meta($post->ID, get_option($key, $key), $_POST[$key]); 
                $added = true; 
            } 
        } 
        if ($added) { 
            updatE_post_meta($post->ID, "codein_im", "1"); 
        } 
    } 
    add_action("save_post", "im_save", 1); 
    function im_box() { 
        global $im_args, $post; 
        if (get_post_meta($post->ID, "codein_im", true)) { 
            echo "<div class="imdb">"; 
            foreach ($im_args as $key => $val) { 
                echo "<label>" . $val . "</label><input type="text" name="" . $key . "" value="" . get_post_meta($post->ID, get_option($key, $key), true) . "">"; 
            } 
            echo "</div><input type="submit" name="im_delete" value="\xd9\xbe\xd8\xa7\xda\xa9\xda\xa9\xd8\xb1\xd8\xaf\xd9\x86\xd8\xa7\xd8\xb7\xd9\x84\xd8\xa7\xd8\xb9\xd8\xa7\xd8\xaa" class="button - primary">"; 
        } else { ?><?php echo "\xa<script>\xaif(typeof $ == "undefined")\xa    $ = jQuery;\xavar args = {"; ?><?php foreach ($im_args as $key => $name) { 
            }; ?><?php echo "};\xavar args_cf = {"; ?><?php foreach ($im_args as $key => $name) { 
                echo """ . $key . "" : "" . get_option($key, $key) . "","; 
            }; ?><?php echo "};\xafunction get_data(id){\xa    var data = {"action":"im_loader","im_id":id};\xa    $(".imdb").animate({"opacity":"0.3"});\xa    $.post(ajaxurl, data, function(response) {\xa        var data = JSON.parse(response);\xa        $(".imdb").html("");\xa        for(var inp in data){\xa            $(".imdb").append('<label>'+args["im_"+inp]+'</label><input type="text" name="im_'+inp+'" value="'+data[inp]+'">');\xa\x9\x9\x9$("input[name='"+args_cf["im_"+inp]+"'] , #"+args_cf["im_"+inp]).val(data[inp]);\xa\x9\x9\x9$("div[data-name='"+args_cf["im_"+inp]+"'] .acf-input input").val(data[inp]);\xa        }\xa        $(".imdb").animate({"opacity":"1"});\xa    });\xa}\xa\xa$(function(){\xa    $("#im_show").click(function(e){\xa        e.preventDefault();\xa        if($("#imdb_id").val().trim() != ""){\xa            get_data($("#imdb_id").val());\xa        }\xa    });\xa});\xa</script>\xa<div class="imdb">\xa<input type="text" id="imdb_id" placeholder="IMDB ID , Example : tt0448115">\xa<button id="im_show">\xd9\x86\xd9\x85\xd8\xa7\xdb\x8c\xd8\xb4 \xd8\xa7\xd8\xb7\xd9\x84\xd8\xa7\xd8\xb9\xd8\xa7\xd8\xaa</button>\xa</div>\xa"; ?><?php 
        } 
    } 
    function im_meta_boxes() { 
        add_meta_box("codein_imdb", "IMDB", "im_box", array("movies", "series"), 'normal', 'high'); 
    } 
    add_action("add_meta_boxes", "im_meta_boxes"); 
    function im_settings() { 
        global $im_args; 
        if (isset($_POST["save"])) { 
            $im_args["im_upload_picture"] = "a"; 
            $im_args["im_active_tax"] = "a"; 
            foreach ($im_args as $key => $val) { 
                update_option($key, $_POST[$key]); 
            } 
            unset($im_args["im_upload_picture"]); 
            unset($im_args["im_active_tax"]); 
        } 
        $upload = get_option("im_upload_picture"); 
        $active = get_option("im_active_tax"); ?><?php echo "\xa<form method="post" class="im_form">\xa<span>\xd8\xb9\xda\xa9\xd8\xb3 \xd8\xb1\xd9\x88\xdb\x8c \xd8\xb3\xd8\xa7\xdb\x8c\xd8\xaa \xd8\xb4\xd9\x85\xd8\xa7 \xd8\xa8\xd8\xa7\xd8\xb1\xda\xaf\xd8\xb0\xd8\xa7\xd8\xb1\xdb\x8c \xd8\xb4\xd9\x88\xd8\xaf\xd8\x9f</span>\xa<select name="im_upload_picture"><option value="yes" "; ?><?=($upload == "yes" ? "selected" : ""); ?><?php echo ">\xd8\xa8\xd9\x84\xd9\x87</option><option value="resize" "; ?><?=($upload == "resize" ? "selected" : ""); ?><?php echo ">\xd8\xa8\xd9\x84\xd9\x87 \xd9\x88 \xda\xa9\xd9\x85 \xd8\xad\xd8\xac\xd9\x85 \xd8\xb4\xd9\x88\xd8\xaf</option><option value="no" "; ?><?=($upload == "no" ? "selected" : ""); ?><?php echo ">\xd8\xae\xdb\x8c\xd8\xb1</option></select>\xa<span>\xd8\xa8\xd8\xb1\xd8\xa7\xdb\x8c \xd8\xa8\xd8\xa7\xd8\xb2\xdb\x8c\xda\xaf\xd8\xb1\xd8\xa7\xd9\x86 \xd8\x8c \xda\xa9\xd8\xa7\xd8\xb1\xda\xaf\xd8\xb1\xd8\xaf\xd8\xa7\xd9\x86 \xd8\x8c \xd8\xb3\xd8\xa7\xd9\x84 \xd8\xb3\xd8\xa7\xd8\xae\xd8\xaa \xd8\x8c \xda\xa9\xd8\xb4\xd9\x88\xd8\xb1... \xd8\xa2\xd8\xb1\xd8\xb4\xdb\x8c\xd9\x88 \xd8\xa7\xdb\x8c\xd8\xac\xd8\xa7\xd8\xaf \xd8\xb4\xd9\x88\xd8\xaf\xd8\x9f</span>\xa<select name="im_active_tax"><option value="yes" "; ?><?=($active == "yes" ? "selected" : ""); ?><?php echo ">\xd8\xa8\xd9\x84\xd9\x87</option><option value="no" "; ?><?=($active == "no" ? "selected" : ""); ?><?php echo ">\xd8\xae\xdb\x8c\xd8\xb1</option></select>\xa<span>\xd8\xaa\xd9\x86\xd8\xb8\xdb\x8c\xd9\x85\xd8\xa7\xd8\xaa \xd8\xb2\xd9\x85\xdb\x8c\xd9\x86\xd9\x87 \xd9\x87\xd8\xa7\xdb\x8c \xd8\xaf\xd9\x84\xd8\xae\xd9\x88\xd8\xa7\xd9\x87</span>\xa"; ?><?php foreach ($im_args as $key => $value) { ?><?php echo "\xa    <label for=""; ?><?=$key; ?><?php echo ""> "; ?><?=$value; ?><?php echo " </label> <input type="text" name=""; ?><?=$key; ?><?php echo "" value=""; ?><?=get_option($key, $key); ?><?php echo "" id=""; ?><?=$key; ?><?php echo "">\xa"; ?><?php 
        } ?><?php echo "\xa<input type="submit" class="button-primary" name="save" value="\xd8\xb0\xd8\xae\xdb\x8c\xd8\xb1\xd9\x87">\xa</form>\xa"; ?><?php 
    } 
    function im_menu() { 
        add_menu_page("IMDB Catcher", "\xd8\xa7\xd9\x81\xd8\xb2\xd9\x88\xd9\x86\xd9\x87 IMDB", "manage_options", "im_settings", "im_settings", "", "6"); 
        add_submenu_page("im_settings", "\xd8\xa8\xd8\xb1\xd9\x88\xd8\xb2 \xd8\xb1\xd8\xb3\xd8\xa7\xd9\x86\xdb\x8c \xd8\xac\xd8\xaf\xd8\xa7\xd9\x88\xd9\x84", "\xd8\xa8\xd8\xb1\xd9\x88\xd8\xb2 \xd8\xb1\xd8\xb3\xd8\xa7\xd9\x86\xdb\x8c \xd8\xac\xd8\xaf\xd8\xa7\xd9\x88\xd9\x84", "manage_options", "update_imdb", "update_imdb"); 
    } 
    add_action("admin_menu", "im_menu"); 
    function update_imdb() { 
        if (get_option("imdb_updated")) { 
            echo "\xd8\xa8\xd8\xb1\xd9\x88\xd8\xb2 \xd8\xb1\xd8\xb3\xd8\xa7\xd9\x86\xdb\x8c \xd9\x82\xd8\xa8\xd9\x84\xd8\xa7 \xd8\xa7\xd9\x86\xd8\xac\xd8\xa7\xd9\x85 \xd8\xb4\xd8\xaf\xd9\x87 \xd8\xa7\xd8\xb3\xd8\xaa"; 
        } else { 
            global $wpdb; 
            $wpdb->query("update $wpdb->term_taxonomy set taxonomy = 'release' where taxonomy = 'year' "); 
            echo "\xd8\xa8\xd8\xb1\xd9\x88\xd8\xb2 \xd8\xb1\xd8\xb3\xd8\xa7\xd9\x86\xdb\x8c \xd8\xa8\xd8\xa7 \xd9\x85\xd9\x88\xd9\x81\xd9\x82\xdb\x8c\xd8\xaa \xd8\xa7\xd9\x86\xd8\xac\xd8\xa7\xd9\x85 \xd8\xb4\xd8\xaf"; 
            update_option("imdb_updated", "1"); 
        } 
    } 
    function im_admin_style() { 
        wp_enqueue_style("im-admin-styles", plugin_dir_url(__FILE__) . "/style.css"); 
        wp_enqueue_script(array("jquery")); 
    } 
    add_action("admin_enqueue_scripts", "im_admin_style"); /*add_action( "init", "im_init" ); function im_init() { if(get_option("im_active_tax") == "yes"){ register_taxonomy("director", array("movies", "series"), array("label" => " ", "public" => true, "rewrite" => array("slug"=>"director", "hierarchical"=>true))); register_taxonomy("country", array("movies","series"), array("label" => "", "public" => true, "rewrite" => array("slug"=>"country", "hierarchical"=>true))); register_taxonomy("writer", array("movies","series"), array("label" => "", "public" => true, "rewrite" => array("slug"=>"writer", "hierarchical"=>true))); register_taxonomy("language", array("movies","series"), array("label" => "", "public" => true, "rewrite" => array("slug"=>"language", "hierarchical"=>true))); register_taxonomy("production", array("movies","series"), array("label" => " ", "public" => true, "rewrite" => array("slug"=>"production", "hierarchical"=>true))); register_taxonomy("content-rating", array("movies","series"), array("label" => "  ", "public" => true, "rewrite" => array("slug"=>"content-rating", "hierarchical"=>true))); } }*/ 
    function im_get_selected($tax, $bet, $echo = true) { 
        global $post; 
        $ret = ""; 
        $terms = get_the_terms($post->ID, $tax); 
        foreach ($terms as $term) { 
            $ret.= "<a href="" . get_term_link($term->term_id) . "" title="" . $term->name . ""> " . $term->name . " </a> " . ($GLOBALS["daf5424fddf6d1c3270018021b5e7b5b"]($term, $terms) < $GLOBALS["e2942a04780e223b215eb8b663cf5353"]($terms) - 1 ? $bet . " " : ""); 
        } 
        if ($echo) { 
            echo $ret; 
        } else { 
            return $ret; 
        } 
    } 
    function codein_imdb() { 
        global $im_args, $post; 
        $ret = ""; 
        foreach ($im_args as $key => $val) { 
            if (!in_array($key, array("im_image"))) { 
                $vl = get_post_meta($post->ID, get_option($key, $key), true); 
                if ($key == "im_url") { 
                    $vl = "<a href="" . $vl . "" title="IMDB" target="_blank" rel="nofollow">\xda\xa9\xd9\x84\xdb\x8c\xda\xa9</a>"; 
                } 
                if (get_option("im_active_tax") == "yes") { 
                    if ($GLOBALS["e5928f6b2bb28eb4fc8adb8867e6015"]($key, array("im_genre", "im_director", "im_country"))) { 
                        $vl = im_get_selected($GLOBALS["c3b75986a18638d635a5d5d67e5364d"]("im_", "", $key), ",", false); 
                    } 
                    if ($key == "im_actors") { 
                        $vl = im_get_selected("actor", ",", false); 
                    } 
                    if ($key == "im_date") { 
                        $vl = im_get_selected("release", ",", false); 
                    } 
                } 
                $ret.= $val . " : " . $vl . "<br>"; 
            } 
        } 
        return $ret; 
    } 
    add_shortcode("codein_imdb", "codein_imdb"); 
    function imdb_show($type) { 
        global $post; 
        $type = $type["type"]; 
        if ($GLOBALS["e5928f6b2bb28eb4fc8adb8867e6015"]($type, array("genre", "release", "actor", "director", "country", "writer", "production", "language"))) { 
            return im_get_selected($type, ",", false); 
        } 
        if ($GLOBALS["e5928f6b2bb28eb4fc8adb8867e6015"]($type, array("name", "rate", "description", "creator", "rate_count", "budget", "world_sell"))) { 
            return get_post_meta($post->ID, get_option("im_" . $type, "im_" . $type), true); 
        } 
    } 
    add_shortcode("codein_imdb_show", "imdb_show"); 
    function set_imdb_year_plug($query) { 
        if ($query->is_year()) { 
            $year = $query->get("year"); 
            $query->set("tax_query", array(array("taxonomy" => "year", "field" => "name", "terms" => $year,),)); 
            $query->set("year", 0); 
        } 
    } 
    class Tax_Widget_imdb extends WP_Widget { 
        function __construct() { 
            parent::__construct("Tax_Widget", __("\xe2\x9c\x85 \xd9\x84\xdb\x8c\xd8\xb3\xd8\xaa \xd8\xa7\xd8\xb7\xd9\x84\xd8\xa7\xd8\xb9\xd8\xa7\xd8\xaa IMDB", "imdb_widget"), array("description" => __("\xd8\xa7\xd8\xa8\xd8\xb2\xd8\xa7\xd8\xb1\xda\xa9 \xd9\x82\xd8\xa7\xd9\x84\xd8\xa8 \xd8\xa7\xd8\xb3\xda\xa9\xd8\xa7\xd8\xb1", "imdb_widget"))); 
        } 
        public function form($instance) { 
            if (isset($instance["title"])) { 
                $title = $instance["title"]; 
            } else { 
                $title = "\xd8\xaf\xd8\xb3\xd8\xaa\xd9\x87 \xd8\xa8\xd9\x86\xd8\xaf\xdb\x8c"; 
            } 
            if (isset($instance["cats"])) { 
                $cats = $instance["cats"]; 
            } 
            if (isset($instance["count"])) { 
                $count = $instance["count"]; 
            } 
            if (isset($instance["mobile"])) { 
                $mobile = $instance["mobile"]; 
            } 
            if (isset($instance["random"])) { 
                $random = $instance["random"]; 
            } ?><?php echo "\xa\xa\x9<p>\xa\x9<label for=""; ?><?php echo $this->get_field_id("title"); ?><?php echo "">\xd8\xb9\xd9\x86\xd9\x88\xd8\xa7\xd9\x86 :</label> \xa\x9<input class="widefat" id=""; ?><?php echo $this->get_field_id("title"); ?><?php echo "" name=""; ?><?php echo $this->get_field_name("title"); ?><?php echo "" type="text" value=""; ?><?php echo esc_attr($title); ?><?php echo "" />\xa\x9</p>\xa\x9<p>\xa\x9<label for=""; ?><?php echo $this->get_field_id("type"); ?><?php echo "">\xd9\x86\xd9\x85\xd8\xa7\xdb\x8c\xd8\xb4 :</label> \xa\x9<select class="test" id=""; ?><?php echo $this->get_field_id("type"); ?><?php echo "" name=""; ?><?php echo $this->get_field_name("type"); ?><?php echo "" type="text">\xa\x9\x9<option value="genre""; ?><?=($instance["type"] == "genre" ? " selected" : ""); ?><?php echo ">\xda\x98\xd8\xa7\xd9\x86\xd8\xb1\xd9\x87\xd8\xa7</option>\xa\x9\x9<option value="release""; ?><?=($instance["type"] == "release" ? " selected" : ""); ?><?php echo ">\xd8\xb3\xd8\xa7\xd9\x84 \xd8\xaa\xd9\x88\xd9\x84\xdb\x8c\xd8\xaf</option>\xa\x9\x9<option value="director""; ?><?=($instance["type"] == "director" ? " selected" : ""); ?><?php echo ">\xda\xa9\xd8\xa7\xd8\xb1\xda\xaf\xd8\xb1\xd8\xaf\xd8\xa7\xd9\x86 \xd9\x87\xd8\xa7</option>\xa\x9\x9<option value="actor""; ?><?=($instance["type"] == "actor" ? " selected" : ""); ?><?php echo ">\xd8\xa8\xd8\xa7\xd8\xb2\xdb\x8c\xda\xa9\xd8\xb1\xd8\xa7\xd9\x86</option>\xa\x9\x9<option value="country""; ?><?=($instance["type"] == "country" ? " selected" : ""); ?><?php echo ">\xda\xa9\xd8\xb4\xd9\x88\xd8\xb1</option>\xa\x9</select>\xa\x9</p>\xa\x9<p>\xa\x9<label for=""; ?><?php echo $this->get_field_id("mobile"); ?><?php echo "">\xd8\xb9\xd8\xaf\xd9\x85 \xd9\x86\xd9\x85\xd8\xa7\xdb\x8c\xd8\xb4 \xd8\xaf\xd8\xb1 \xd9\x85\xd9\x88\xd8\xa8\xd8\xa7\xdb\x8c\xd9\x84 :</label> \xa\x9<input class="widefat" id=""; ?><?php echo $this->get_field_id("mobile"); ?><?php echo "" name=""; ?><?php echo $this->get_field_name("mobile"); ?><?php echo "" type="checkbox" value="1" "; ?><?php echo ($mobile == 1 ? "checked" : ""); ?><?php echo " >\xa\x9<small class="help">\xd8\xa8\xd8\xb1\xd8\xa7\xdb\x8c \xd8\xa7\xd9\x81\xd8\xb2\xd8\xa7\xdb\x8c\xd8\xb4 \xd8\xb3\xd8\xb1\xd8\xb9\xd8\xaa \xd9\x85\xd9\x88\xd8\xa8\xd8\xa7\xdb\x8c\xd9\x84 \xd9\x85\xdb\x8c \xd8\xaa\xd9\x88\xd8\xa7\xd9\x86\xdb\x8c\xd8\xaf \xd8\xa7\xdb\x8c\xd9\x86 \xd8\xa8\xd8\xae\xd8\xb4 \xd8\xb1\xd8\xa7 \xd8\xba\xdb\x8c\xd8\xb1 \xd9\x81\xd8\xb9\xd8\xa7\xd9\x84 \xda\xa9\xd9\x86\xdb\x8c\xd8\xaf</small>\xa\x9</p>\xa\x9"; ?><?php 
        } 
        public function widget($args, $instance) { 
            if (is_mobile() && $instance["mobile"] == 1) { 
                return; 
            } 
            $title = apply_filters("widget_title", $instance["title"]); 
            echo $args["before_widget"]; 
            if (!empty($title)) echo $args["before_title"] . $title . $args["after_title"]; ?><?php echo "\xa\x9<ul class="categories">\xa\x9"; ?><?php $getcats = get_terms($instance["type"], array("hide_empty" => false, "orderby" => "name")); 
            foreach ($getcats as $cat) { 
                echo "<li><a href="" . get_term_link($cat) . "" title="" . $cat->name . "">" . $cat->name . "</a></li>"; 
            } ?><?php echo "\xa\x9</ul>\xa\x9"; ?><?php echo $args["after_widget"]; 
        } 
        public function update($new_instance, $old_instance) { 
            $instance = array(); 
            $instance["title"] = (!empty($new_instance["title"])) ? $GLOBALS["c7e178c3d98c9c456bd7134111b6b0"]($new_instance["title"]) : ''; 
            $instance["type"] = (!empty($new_instance["type"])) ? $new_instance["type"] : "genre"; 
            $instance["mobile"] = (!empty($new_instance["mobile"])) ? $GLOBALS["c7e178c3d98c9c456bd7134111b6b0"]($new_instance["mobile"]) : ''; 
            return $instance; 
        } 
    } 
    function register_imdb_widgets() { 
        register_widget("Tax_Widget_imdb"); 
    } 
    add_action("widgets_init", "register_imdb_widgets"); 
} else { 
    function help_imdb() { ?><div class="is-visible"> 
    <div class="help-imdb"> 
        <p></p> 
        <div></div> 
    </div> 
</div> 
<script> 
    jQuery(document).ready(function() { 
        jQuery('.help-imdb div a:last-child').click(function(e) { 
            jQuery('.is-visible').fadeOut(); 
        }); 
    }); 
</script><?php 
    } 
    add_action('admin_head', 'help_imdb'); 
} ?>

Did this file decode correctly?

Original Code

<?php
$GLOBALS["c7e178c3d98c9c456bd7134111b6b0"] = "strip_tags";
$GLOBALS["e5928f6b2bb28eb4fc8adb8867e6015"] = "in_array";
$GLOBALS["e2942a04780e223b215eb8b663cf5353"] = "count";
$GLOBALS["daf5424fddf6d1c3270018021b5e7b5b"] = "array_search";
$GLOBALS["f821b5159d85278da0badf5d32ffe210"] = "explode";
$GLOBALS["e9bf054adccf85586e047354305a5"] = "json_encode";
$GLOBALS["bf13a9d0832fdbbda6b85e1209be0"] = "json_decode";
$GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"] = "is_array";
$GLOBALS["fb85fb78b0a17d6afd24d378ab0f0d70"] = "ltrim";
$GLOBALS["a28b9ce9a4ccf84a60efced5c33f5e"] = "rtrim";
$GLOBALS["b7d16c1118328a268a38340757f84e31"] = "preg_match_all";
$GLOBALS["c3b75986a18638d635a5d5d67e5364d"] = "str_replace";
$GLOBALS["f166dfa5baf03fb0cef5b6bcc5514dd1"] = "curl_close";
$GLOBALS["c719efb0fbd104327ced0c8405304153"] = "curl_error";
$GLOBALS["c6f7396f1d1ee5c24b894546a94cffa"] = "curl_getinfo";
$GLOBALS["b0d167d9bdb4bcf490e91779bef"] = "curl_exec";
$GLOBALS["dff242dc58dfc1f530eee0cd2764"] = "curl_setopt";
$GLOBALS["a66b32feb52f0d8087934c742a21359"] = "curl_init";
$GLOBALS["ab1125e443bd6769e77e7de0da7befd1"] = "fclose";
$GLOBALS["eb83bca864c64ee1e669dfab01c95"] = "basename";
if (file_exists(get_template_directory() . '/imdb/imdb.php')) {
    $im_args = array("im_name" => "\xd9\x86\xd8\xa7\xd9\x85 \xd9\x81\xdb\x8c\xd9\x84\xd9\x85", "im_url" => "\xd9\x84\xdb\x8c\xd9\x86\xda\xa9 IMDB", "im_image" => "\xd8\xa2\xd8\xaf\xd8\xb1\xd8\xb3 \xd8\xb9\xda\xa9\xd8\xb3", "im_genre" => "\xda\x98\xd8\xa7\xd9\x86\xd8\xb1 \xd9\x81\xdb\x8c\xd9\x84\xd9\x85", "im_country" => "\xd9\x85\xd8\xad\xd8\xb5\xd9\x88\xd9\x84 \xda\xa9\xd8\xb4\xd9\x88\xd8\xb1", "im_actors" => "\xd8\xa8\xd8\xa7\xd8\xb2\xdb\x8c\xda\xaf\xd8\xb1\xd8\xa7\xd9\x86", "im_director" => "\xda\xa9\xd8\xa7\xd8\xb1\xda\xaf\xd8\xb1\xd8\xaf\xd8\xa7\xd9\x86", "im_creator" => "\xd8\xb3\xd8\xa7\xd8\xb2\xd9\x86\xd8\xaf\xda\xaf\xd8\xa7\xd9\x86", "im_description" => "\xd8\xaa\xd9\x88\xd8\xb6\xdb\x8c\xd8\xad\xd8\xa7\xd8\xaa", "im_date" => "\xd8\xaa\xd8\xa7\xd8\xb1\xdb\x8c\xd8\xae \xd8\xa7\xd9\x86\xd8\xaa\xd8\xb4\xd8\xa7\xd8\xb1", "im_rate" => "\xd8\xa7\xd9\x85\xd8\xaa\xdb\x8c\xd8\xa7\xd8\xb2", "im_rate_count" => "\xd8\xaa\xd8\xb9\xd8\xaf\xd8\xa7\xd8\xaf \xd8\xa7\xd8\xb1\xd8\xa7", "im_best_rate" => "\xd8\xa8\xd8\xa7\xd9\x84\xd8\xa7\xd8\xaa\xd8\xb1\xdb\x8c\xd9\x86 \xd8\xa7\xd9\x85\xd8\xaa\xdb\x8c\xd8\xa7\xd8\xb2", "im_worst_rate" => "\xda\xa9\xd9\x85\xd8\xaa\xd8\xb1\xdb\x8c\xd9\x86 \xd8\xa7\xd9\x85\xd8\xaa\xdb\x8c\xd8\xa7\xd8\xb2", "im_duration" => "\xd8\xb2\xd9\x85\xd8\xa7\xd9\x86 \xd9\x81\xdb\x8c\xd9\x84\xd9\x85", "im_content_rating" => "\xd8\xb1\xd8\xaf\xd9\x87 \xd8\xa8\xd9\x86\xd8\xaf\xdb\x8c \xd8\xb3\xd9\x86\xdb\x8c", "im_writers" => "\xd9\x86\xd9\x88\xdb\x8c\xd8\xb3\xd9\x86\xd8\xaf\xda\xaf\xd8\xa7\xd9\x86", "im_languages" => "\xd8\xb2\xd8\xa8\xd8\xa7\xd9\x86", "im_budget" => "\xd9\x87\xd8\xb2\xdb\x8c\xd9\x86\xd9\x87 \xdb\x8c \xd8\xb3\xd8\xa7\xd8\xae\xd8\xaa", "im_world_sell" => "\xd9\x81\xd8\xb1\xd9\x88\xd8\xb4 \xd8\xac\xd9\x87\xd8\xa7\xd9\x86\xdb\x8c", "im_production" => "\xd8\xaa\xd9\x87\xdb\x8c\xd9\x87 \xda\xa9\xd9\x86\xd9\x86\xd8\xaf\xda\xaf\xd8\xa7\xd9\x86");
    function im_load($url) {
        $ch = $GLOBALS["a66b32feb52f0d8087934c742a21359"]();
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_URL, $url);
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_RETURNTRANSFER, 1);
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_HTTPHEADER, array("User-Agent:Mozilla/5.01 (Windows NT 6.2; Win64; x64; rv:59.0) Gecko/2011 Firefox/59.01"));
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_CONNECTTIMEOUT, 30);
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_TIMEOUT, 30);
        $data = $GLOBALS["b0d167d9bdb4bcf490e91779bef"]($ch);
        $httpcode = $GLOBALS["c6f7396f1d1ee5c24b894546a94cffa"]($ch, CURLINFO_HTTP_CODE);
        if ($GLOBALS["c719efb0fbd104327ced0c8405304153"]($ch)) {
            die($GLOBALS["c719efb0fbd104327ced0c8405304153"]($ch));
        }
        $GLOBALS["f166dfa5baf03fb0cef5b6bcc5514dd1"]($ch);
        return $data;
    }
    function im_download($file_source, $file_target) {
        $fp = fopen($file_target, "w+");
        $ch = $GLOBALS["a66b32feb52f0d8087934c742a21359"]($GLOBALS["c3b75986a18638d635a5d5d67e5364d"](" ", "%20", $file_source));
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_TIMEOUT, 50);
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_FILE, $fp);
        $GLOBALS["dff242dc58dfc1f530eee0cd2764"]($ch, CURLOPT_FOLLOWLOCATION, true);
        $GLOBALS["b0d167d9bdb4bcf490e91779bef"]($ch);
        $GLOBALS["f166dfa5baf03fb0cef5b6bcc5514dd1"]($ch);
        $GLOBALS["ab1125e443bd6769e77e7de0da7befd1"]($fp);
        return true;
    }
    function im_parse($imdb_id) {
        $genres = array("comedy" => "\xda\xa9\xd9\x85\xd8\xaf\xdb\x8c", "drama" => "\xd8\xaf\xd8\xb1\xd8\xa7\xd9\x85", "short" => "\xda\xa9\xd9\x88\xd8\xaa\xd8\xa7\xd9\x87", "family" => "\xd8\xae\xd8\xa7\xd9\x86\xd9\x88\xd8\xa7\xd8\xaf\xda\xaf\xdb\x8c", "romance" => "\xd8\xb1\xd9\x85\xd8\xa7\xd9\x86\xd8\xaa\xdb\x8c\xda\xa9", "talk-show" => "\xd8\xb4\xd9\x88\xdb\x8c \xd8\xaa\xd9\x84\xd9\x88\xdb\x8c\xd8\xb2\xdb\x8c\xd9\x88\xd9\x86\xdb\x8c", "animation" => "\xd8\xa7\xd9\x86\xdb\x8c\xd9\x85\xdb\x8c\xd8\xb4\xd9\x86", "music" => "\xd9\x85\xd9\x88\xd8\xb2\xdb\x8c\xda\xa9", "fantasy" => "\xd9\x81\xd8\xa7\xd9\x86\xd8\xaa\xd8\xb2\xdb\x8c", "adventure" => "\xd9\x85\xd8\xa7\xd8\xac\xd8\xb1\xd8\xa7\xd8\xac\xd9\x88\xdb\x8c\xdb\x8c", "action" => "\xd8\xa7\xda\xa9\xd8\xb4\xd9\x86", "sci-fi" => "\xd8\xb9\xd9\x84\xd9\x85\xdb\x8c \xd8\xaa\xd8\xae\xdb\x8c\xd9\x84\xdb\x8c", "crime" => "\xd8\xac\xd9\x86\xd8\xa7\xdb\x8c\xdb\x8c", "news" => "\xd8\xae\xd8\xa8\xd8\xb1\xdb\x8c", "game-show" => "\xd8\xb4\xd9\x88\xdb\x8c \xd8\xa8\xd8\xa7\xd8\xb2\xdb\x8c", "mystery" => "\xd8\xb1\xd8\xa7\xd8\xb2 \xd8\xa2\xd9\x84\xd9\x88\xd8\xaf", "musical" => "\xd9\x85\xd9\x88\xd8\xb2\xdb\x8c\xda\xa9\xd8\xa7\xd9\x84", "horror" => "\xd8\xaa\xd8\xb1\xd8\xb3\xd9\x86\xd8\xa7\xda\xa9", "thriller" => "\xd9\x87\xdb\x8c\xd8\xac\xd8\xa7\xd9\x86 \xd8\xa7\xd9\x86\xda\xaf\xdb\x8c\xd8\xb2", "reality-tv" => "\xd8\xaa\xd9\x84\xd9\x88\xdb\x8c\xd8\xb2\xdb\x8c\xd9\x88\xd9\x86\xdb\x8c", "documentary" => "\xd9\x85\xd8\xb3\xd8\xaa\xd9\x86\xd8\xaf", "sport" => "\xd9\x88\xd8\xb1\xd8\xb2\xd8\xb4\xdb\x8c", "history" => "\xd8\xaa\xd8\xa7\xd8\xb1\xdb\x8c\xd8\xae\xdb\x8c", "western" => "\xd9\x88\xd8\xb3\xd8\xaa\xd8\xb1\xd9\x86", "biography" => "\xd8\xa8\xdb\x8c\xd9\x88\xda\xaf\xd8\xb1\xd8\xa7\xd9\x81\xdb\x8c", "war" => "\xd8\xac\xd9\x86\xda\xaf\xdb\x8c", "adult" => "\xd8\xa8\xd8\xb2\xd8\xb1\xda\xaf\xd8\xb3\xd8\xa7\xd9\x84", "film-noir" => "film-noir");
        $data = im_load("https://www.imdb.com/title/" . $imdb_id . "/");
        $GLOBALS["b7d16c1118328a268a38340757f84e31"]("#<script type=\"application\/ld\+json\">(.*?)<\/script>#s", $data, $json);
        $GLOBALS["b7d16c1118328a268a38340757f84e31"]("/<a href=\"\/search\/title[?]country_of_origin=([a-z]+)&ref_=tt_dt_dt\"\n>([A-za-z0-9 ]+)<\/a>/", $data, $countries);
        preg_match("#<div class=\"credit_summary_item\">(\s+)<h4 class=\"inline\">Writers:<\/h4>(.*)<\/div>#Us", $data, $writers);
        preg_match("#<div class=\"txt-block\">(\s+)<h4 class=\"inline\">Language:<\/h4>(.*)<\/div>#Us", $data, $lang);
        preg_match("#<div class=\"txt-block\">(\s+)<h4 class=\"inline\">Budget:<\/h4>[\$]([0-9,]+)(\s+)#Us", $data, $budge);
        preg_match("#<div class=\"txt-block\">(\s+)<h4 class=\"inline\">Cumulative Worldwide Gross:<\/h4> [\$]([0-9,]+)(\s)#Us", $data, $worlsell);
        preg_match("#<div class=\"txt-block\">(\s+)<h4 class=\"inline\">Production Co:<\/h4>(.*)<\/div>#Us", $data, $company);
        $writer = array();
        $langs = array();
        $budget = "";
        $worldsell = "";
        $production = array();
        if (isset($writers[2])) {
            preg_match_all("#<a href=\"(.*)\"(\s+)>(.*)<\/a>#Us", $writers[2], $writers);
            if (isset($writers[3])) {
                foreach ($writers[3] as $wri) {
                    if (!preg_match("#more credits#", $wri)) {
                        $writer[] = $GLOBALS["a28b9ce9a4ccf84a60efced5c33f5e"]($GLOBALS["fb85fb78b0a17d6afd24d378ab0f0d70"]($wri));
                    }
                }
            }
        }
        if (isset($lang[2])) {
            preg_match_all("#<a href=\"(.*)\"(\s+)>(.*)<\/a>#Us", $lang[2], $lang);
            if (isset($lang[3])) {
                foreach ($lang[3] as $wri) {
                    $langs[] = $GLOBALS["a28b9ce9a4ccf84a60efced5c33f5e"]($GLOBALS["fb85fb78b0a17d6afd24d378ab0f0d70"]($wri));
                }
            }
        }
        if (isset($budge[2])) {
            $budget = "$" . $GLOBALS["fb85fb78b0a17d6afd24d378ab0f0d70"]($GLOBALS["a28b9ce9a4ccf84a60efced5c33f5e"]($budge[2]));
        }
        if (isset($worlsell[2])) {
            $worldsell = "$" . $GLOBALS["fb85fb78b0a17d6afd24d378ab0f0d70"]($GLOBALS["a28b9ce9a4ccf84a60efced5c33f5e"]($worlsell[2]));
        }
        if (isset($company[2])) {
            preg_match_all("#<a href=\"(.*)\"(\s+)>(.*)<\/a>#Us", $company[2], $company);
            if (isset($company[3]) && $GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"]($company[3]) && !empty($company[3])) {
                foreach ($company[3] as $wri) {
                    if (!preg_match("#See more#", $wri)) {
                        $production[] = $GLOBALS["a28b9ce9a4ccf84a60efced5c33f5e"]($GLOBALS["fb85fb78b0a17d6afd24d378ab0f0d70"]($wri));
                    }
                }
            }
        }
        $countries = $countries[2];
        if (empty($json[1][0])) return false;
        $json = $GLOBALS["bf13a9d0832fdbbda6b85e1209be0"]($json[1][0]);
        $genre = array();
        if ($GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"]($json->genre)) {
            foreach ($json->genre as $gen) {
                $genre[] = $genres[strtolower($gen) ];
            }
        } else {
            $genre[] = $genres[strtolower($json->genre) ];
        }
        $actors = array();
        if ($GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"]($json->actor)) {
            foreach ($json->actor as $ac) {
                if (isset($ac->name)) $actors[] = $ac->name;
            }
        } else {
            $actors[] = $json->actor->name;
        }
        $directors = array();
        if (isset($json->director) && $GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"]($json->director)) {
            foreach ($json->director as $direc) {
                if (isset($direc->name)) $directors[] = $direc->name;
            }
        } else if (isset($json->director)) {
            $directors[] = $json->director->name;
        }
        $creators = array();
        if (isset($json->creator) && $GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"]($json->creator)) {
            foreach ($json->creator as $cre) {
                if (isset($cre->name)) $creators[] = $cre->name;
            }
        } else if (isset($json->creator)) {
            $creators[] = $json->creator->name;
        }
        if (isset($json->duration)) {
            preg_match("#PT([0-9]+)H([0-9]+)M#", $json->duration, $time);
        } else {
            $time = array("", "0", "0");
        }
        $datas = array("name" => $json->name, "url" => "https://www.imdb.com" . $json->url, "image" => ($GLOBALS["c3b75986a18638d635a5d5d67e5364d"](".jpg", "SY1000_SX675_AL_.jpg", $json->image)), "genre" => implode(",", $genre), "country" => implode(",", $countries), "actors" => implode(",", $actors), "director" => implode(",", $directors), "creator" => implode(",", $creators), "description" => $json->description, "date" => $json->datePublished, "rate" => $json->aggregateRating->ratingValue, "rate_count" => $json->aggregateRating->ratingCount, "best_rate" => $json->aggregateRating->bestRating, "worst_rate" => $json->aggregateRating->worstRating, "duration" => $time[1] . " \xd8\xb3\xd8\xa7\xd8\xb9\xd8\xaa \xd9\x88 " . $time[2] . " \xd8\xaf\xd9\x82\xdb\x8c\xd9\x82\xd9\x87 ", "content_rating" => (isset($json->contentRating) ? $json->contentRating : "NA"), "writers" => implode(",", $writer), "languages" => implode(",", $langs), "budget" => $budget, "production" => implode(",", $production), "world_sell" => $worldsell);
        return $datas;
    }
    function im_loader() {
        if (!empty($_POST["im_id"])) {
            $data = im_parse($_POST["im_id"]);
            echo ($data ? $GLOBALS["e9bf054adccf85586e047354305a5"]($data) : "-1");
        }
        die();
    }
    add_action("wp_ajax_im_loader", "im_loader");
    function im_check_term($name, $tax) {
        $term = get_term_by("name", $name, $tax);
        return $term ? $term->term_id : false;
    }
    function im_add_new_term($name, $tax) {
        if ($tax == "genre") {
            return wp_insert_term($name, $tax, array("slug" => array_search($name, $genres))) ["term_id"];
        } else {
            $data = wp_insert_term($name, $tax);
            if (!is_wp_error($data)) {
                return $data['term_id'];
            }
        }
    }
    function im_save() {
        global $post, $im_args;
        $added = false;
        if (isset($_POST["im_delete"])) {
            delete_post_meta($post->ID, "codein_im");
            foreach ($im_args as $key => $name) {
                delete_post_meta($post->ID, get_option($key, $key));
            }
            foreach (array("genre", "release", "actor", "director", "country") as $tax) {
                $terms = get_the_terms($post->ID, $tax);
                if ($GLOBALS["b4cbf0877d50f4387f2b89eb182b82b0"]($terms)) {
                    foreach ($terms as $term) {
                        wp_remove_object_terms($post->ID, $term->term_id, $tax);
                    }
                }
            }
            return;
        }
        if (!empty($_POST["im_image"]) && preg_match("#(yes|resize)#", get_option("im_upload_picture")) && !get_post_meta($post->ID, "codein_im", true)) {
            $wpdir = wp_upload_dir();
            $file = $wpdir["path"] . "/" . $post->ID . ".jpg";
            im_download($_POST["im_image"], $file);
            if (get_option("im_upload_picture") == "resize") {
                $image = wp_get_image_editor($file);
                if (!is_wp_error($image)) {
                    $size = $image->get_size();
                    $def = $size["width"] / 400;
                    $image->resize(400, $size["height"] / $def, true);
                    $image->save($file);
                }
            }
            $filetype = wp_check_filetype($GLOBALS["eb83bca864c64ee1e669dfab01c95"]($file), null);
            $attachment = array("guid" => $file, "post_mime_type" => $filetype["type"], "post_title" => $GLOBALS["eb83bca864c64ee1e669dfab01c95"]($file), "post_content" => '', "post_status" => "inherit");
            $attach_id = wp_insert_attachment($attachment, $file, $post->ID);
            require_once (ABSPATH . "wp-admin/includes/image.php");
            $attach_data = wp_generate_attachment_metadata($attach_id, $file);
            wp_update_attachment_metadata($attach_id, $attach_data);
            set_post_thumbnail($post->ID, $attach_id);
            $_POST["im_image"] = $wpdir["url"] . "/" . $post->ID . ".jpg";
        }
        if (get_option("im_active_tax") == "yes") {
            if (!empty($_POST["im_genre"]) && !get_post_meta($post->ID, "codein_im", true)) {
                $genre = "movie_genres";
                if (get_post_type() == "series") {
                    $genre = "serie_genres";
                }
                $gens = array();
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_genre"]) as $gen) {
                    $check = im_check_term($gen, $genre);
                    if (!$check) {
                        $gens[] = im_add_new_term($gen, $genre);
                    } else {
                        $gens[] = $check;
                    }
                }
                wp_set_post_terms($post->ID, $gens, $genre, false);
            }
            if (!empty($_POST["im_actors"]) && !get_post_meta($post->ID, "codein_im", true)) {
                $tax = "movie_artists";
                if (get_post_type() == "series") {
                    $genre = "serie_artists";
                }
                $acts = array();
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_actors"]) as $gen) {
                    $check = im_check_term($gen, $tax);
                    if (!$check) {
                        $acts[] = im_add_new_term($gen, $tax);
                    } else {
                        $acts[] = $check;
                    }
                }
                wp_set_post_terms($post->ID, $acts, $tax, false);
            }
            if (!empty($_POST["im_writers"]) && !get_post_meta($post->ID, "codein_im", true)) {
                $acts = array();
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_writers"]) as $gen) {
                    $check = im_check_term($gen, "writer");
                    if (!$check) {
                        $acts[] = im_add_new_term($gen, "writer");
                    } else {
                        $acts[] = $check;
                    }
                }
                wp_set_post_terms($post->ID, $acts, "writer", false);
            }
            if (!empty($_POST["im_languages"]) && !get_post_meta($post->ID, "codein_im", true)) {
                $acts = array();
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_languages"]) as $gen) {
                    $check = im_check_term($gen, "language");
                    if (!$check) {
                        $acts[] = im_add_new_term($gen, "language");
                    } else {
                        $acts[] = $check;
                    }
                }
                wp_set_post_terms($post->ID, $acts, "language", false);
            }
            if (!empty($_POST["im_production"]) && !get_post_meta($post->ID, "codein_im", true)) {
                $acts = array();
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_production"]) as $gen) {
                    $check = im_check_term($gen, "production");
                    if (!$check) {
                        $acts[] = im_add_new_term($gen, "production");
                    } else {
                        $acts[] = $check;
                    }
                }
                wp_set_post_terms($post->ID, $acts, "production", false);
            }
            if (!empty($_POST["im_content_rating"]) && !get_post_meta($post->ID, "codein_im", true)) {
                $acts = array();
                $check = im_check_term($_POST["im_content_rating"], "content-rating");
                if (!$check) {
                    $acts[] = im_add_new_term($_POST["im_content_rating"], "content-rating");
                } else {
                    $acts[] = $check;
                }
                wp_set_post_terms($post->ID, $acts, "content-rating", false);
            }
            if (!empty($_POST["im_director"]) && !get_post_meta($post->ID, "codein_im", true)) {
                $dirs = array();
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_director"]) as $gen) {
                    $check = im_check_term($gen, "director");
                    if (!$check) {
                        $dirs[] = im_add_new_term($gen, "director");
                    } else {
                        $dirs[] = $check;
                    }
                }
                wp_set_post_terms($post->ID, $dirs, "director", false);
            }
            if (!empty($_POST["im_date"]) && !get_post_meta($post->ID, "codein_im", true)) {
                $tax = "movie_years";
                if (get_post_type() == "series") {
                    $genre = "serie_years";
                }
                $year = $GLOBALS["f821b5159d85278da0badf5d32ffe210"]("-", $_POST["im_date"]) [0];
                $check = im_check_term($year, $tax);
                if (!$check) {
                    $year = im_add_new_term($year, $tax);
                } else {
                    $year = $check;
                }
                wp_set_post_terms($post->ID, array($year), $tax, false);
            }
            if (!empty($_POST["im_country"]) && !get_post_meta($post->ID, "codein_im", true)) {
                $dirs = array();
                foreach ($GLOBALS["f821b5159d85278da0badf5d32ffe210"](",", $_POST["im_country"]) as $gen) {
                    $check = im_check_term($gen, "country");
                    if (!$check) {
                        $dirs[] = im_add_new_term($gen, "country");
                    } else {
                        $dirs[] = $check;
                    }
                }
                wp_set_post_terms($post->ID, $dirs, "country", false);
            }
        }
        foreach ($im_args as $key => $val) {
            if (!empty($_POST[$key])) {
                update_post_meta($post->ID, get_option($key, $key), $_POST[$key]);
                $added = true;
            }
        }
        if ($added) {
            updatE_post_meta($post->ID, "codein_im", "1");
        }
    }
    add_action("save_post", "im_save", 1);
    function im_box() {
        global $im_args, $post;
        if (get_post_meta($post->ID, "codein_im", true)) {
            echo "<div class="imdb">";
            foreach ($im_args as $key => $val) {
                echo "<label>" . $val . "</label><input type="text" name="" . $key . "" value="" . get_post_meta($post->ID, get_option($key, $key), true) . "">";
            }
            echo "</div><input type="submit" name="im_delete" value="\xd9\xbe\xd8\xa7\xda\xa9\xda\xa9\xd8\xb1\xd8\xaf\xd9\x86\xd8\xa7\xd8\xb7\xd9\x84\xd8\xa7\xd8\xb9\xd8\xa7\xd8\xaa" class="button - primary">";
        } else { ?><?php echo "\xa<script>\xaif(typeof $ == "undefined")\xa    $ = jQuery;\xavar args = {"; ?><?php foreach ($im_args as $key => $name) {
            }; ?><?php echo "\x7d\x3b\xa\x76\x61\x72\x20\x61\x72\x67\x73\x5f\x63\x66\x20\x3d\x20\x7b"; ?><?php foreach ($im_args as $key => $name) {
                echo "\x22" . $key . "\x22\x20\x3a\x20\x22" . get_option($key, $key) . "\x22\x2c";
            }; ?><?php echo "\x7d\x3b\xa\x66\x75\x6e\x63\x74\x69\x6f\x6e\x20\x67\x65\x74\x5f\x64\x61\x74\x61\x28\x69\x64\x29\x7b\xa\x20\x20\x20\x20\x76\x61\x72\x20\x64\x61\x74\x61\x20\x3d\x20\x7b\x22\x61\x63\x74\x69\x6f\x6e\x22\x3a\x22\x69\x6d\x5f\x6c\x6f\x61\x64\x65\x72\x22\x2c\x22\x69\x6d\x5f\x69\x64\x22\x3a\x69\x64\x7d\x3b\xa\x20\x20\x20\x20\x24\x28\x22\x2e\x69\x6d\x64\x62\x22\x29\x2e\x61\x6e\x69\x6d\x61\x74\x65\x28\x7b\x22\x6f\x70\x61\x63\x69\x74\x79\x22\x3a\x22\x30\x2e\x33\x22\x7d\x29\x3b\xa\x20\x20\x20\x20\x24\x2e\x70\x6f\x73\x74\x28\x61\x6a\x61\x78\x75\x72\x6c\x2c\x20\x64\x61\x74\x61\x2c\x20\x66\x75\x6e\x63\x74\x69\x6f\x6e\x28\x72\x65\x73\x70\x6f\x6e\x73\x65\x29\x20\x7b\xa\x20\x20\x20\x20\x20\x20\x20\x20\x76\x61\x72\x20\x64\x61\x74\x61\x20\x3d\x20\x4a\x53\x4f\x4e\x2e\x70\x61\x72\x73\x65\x28\x72\x65\x73\x70\x6f\x6e\x73\x65\x29\x3b\xa\x20\x20\x20\x20\x20\x20\x20\x20\x24\x28\x22\x2e\x69\x6d\x64\x62\x22\x29\x2e\x68\x74\x6d\x6c\x28\x22\x22\x29\x3b\xa\x20\x20\x20\x20\x20\x20\x20\x20\x66\x6f\x72\x28\x76\x61\x72\x20\x69\x6e\x70\x20\x69\x6e\x20\x64\x61\x74\x61\x29\x7b\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x24\x28\x22\x2e\x69\x6d\x64\x62\x22\x29\x2e\x61\x70\x70\x65\x6e\x64\x28\x27\x3c\x6c\x61\x62\x65\x6c\x3e\x27\x2b\x61\x72\x67\x73\x5b\x22\x69\x6d\x5f\x22\x2b\x69\x6e\x70\x5d\x2b\x27\x3c\x2f\x6c\x61\x62\x65\x6c\x3e\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x22\x74\x65\x78\x74\x22\x20\x6e\x61\x6d\x65\x3d\x22\x69\x6d\x5f\x27\x2b\x69\x6e\x70\x2b\x27\x22\x20\x76\x61\x6c\x75\x65\x3d\x22\x27\x2b\x64\x61\x74\x61\x5b\x69\x6e\x70\x5d\x2b\x27\x22\x3e\x27\x29\x3b\xa\x9\x9\x9\x24\x28\x22\x69\x6e\x70\x75\x74\x5b\x6e\x61\x6d\x65\x3d\x27\x22\x2b\x61\x72\x67\x73\x5f\x63\x66\x5b\x22\x69\x6d\x5f\x22\x2b\x69\x6e\x70\x5d\x2b\x22\x27\x5d\x20\x2c\x20\x23\x22\x2b\x61\x72\x67\x73\x5f\x63\x66\x5b\x22\x69\x6d\x5f\x22\x2b\x69\x6e\x70\x5d\x29\x2e\x76\x61\x6c\x28\x64\x61\x74\x61\x5b\x69\x6e\x70\x5d\x29\x3b\xa\x9\x9\x9\x24\x28\x22\x64\x69\x76\x5b\x64\x61\x74\x61\x2d\x6e\x61\x6d\x65\x3d\x27\x22\x2b\x61\x72\x67\x73\x5f\x63\x66\x5b\x22\x69\x6d\x5f\x22\x2b\x69\x6e\x70\x5d\x2b\x22\x27\x5d\x20\x2e\x61\x63\x66\x2d\x69\x6e\x70\x75\x74\x20\x69\x6e\x70\x75\x74\x22\x29\x2e\x76\x61\x6c\x28\x64\x61\x74\x61\x5b\x69\x6e\x70\x5d\x29\x3b\xa\x20\x20\x20\x20\x20\x20\x20\x20\x7d\xa\x20\x20\x20\x20\x20\x20\x20\x20\x24\x28\x22\x2e\x69\x6d\x64\x62\x22\x29\x2e\x61\x6e\x69\x6d\x61\x74\x65\x28\x7b\x22\x6f\x70\x61\x63\x69\x74\x79\x22\x3a\x22\x31\x22\x7d\x29\x3b\xa\x20\x20\x20\x20\x7d\x29\x3b\xa\x7d\xa\xa\x24\x28\x66\x75\x6e\x63\x74\x69\x6f\x6e\x28\x29\x7b\xa\x20\x20\x20\x20\x24\x28\x22\x23\x69\x6d\x5f\x73\x68\x6f\x77\x22\x29\x2e\x63\x6c\x69\x63\x6b\x28\x66\x75\x6e\x63\x74\x69\x6f\x6e\x28\x65\x29\x7b\xa\x20\x20\x20\x20\x20\x20\x20\x20\x65\x2e\x70\x72\x65\x76\x65\x6e\x74\x44\x65\x66\x61\x75\x6c\x74\x28\x29\x3b\xa\x20\x20\x20\x20\x20\x20\x20\x20\x69\x66\x28\x24\x28\x22\x23\x69\x6d\x64\x62\x5f\x69\x64\x22\x29\x2e\x76\x61\x6c\x28\x29\x2e\x74\x72\x69\x6d\x28\x29\x20\x21\x3d\x20\x22\x22\x29\x7b\xa\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x67\x65\x74\x5f\x64\x61\x74\x61\x28\x24\x28\x22\x23\x69\x6d\x64\x62\x5f\x69\x64\x22\x29\x2e\x76\x61\x6c\x28\x29\x29\x3b\xa\x20\x20\x20\x20\x20\x20\x20\x20\x7d\xa\x20\x20\x20\x20\x7d\x29\x3b\xa\x7d\x29\x3b\xa\x3c\x2f\x73\x63\x72\x69\x70\x74\x3e\xa\x3c\x64\x69\x76\x20\x63\x6c\x61\x73\x73\x3d\x22\x69\x6d\x64\x62\x22\x3e\xa\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x22\x74\x65\x78\x74\x22\x20\x69\x64\x3d\x22\x69\x6d\x64\x62\x5f\x69\x64\x22\x20\x70\x6c\x61\x63\x65\x68\x6f\x6c\x64\x65\x72\x3d\x22\x49\x4d\x44\x42\x20\x49\x44\x20\x2c\x20\x45\x78\x61\x6d\x70\x6c\x65\x20\x3a\x20\x74\x74\x30\x34\x34\x38\x31\x31\x35\x22\x3e\xa\x3c\x62\x75\x74\x74\x6f\x6e\x20\x69\x64\x3d\x22\x69\x6d\x5f\x73\x68\x6f\x77\x22\x3e\xd9\x86\xd9\x85\xd8\xa7\xdb\x8c\xd8\xb4\x20\xd8\xa7\xd8\xb7\xd9\x84\xd8\xa7\xd8\xb9\xd8\xa7\xd8\xaa\x3c\x2f\x62\x75\x74\x74\x6f\x6e\x3e\xa\x3c\x2f\x64\x69\x76\x3e\xa"; ?><?php
        }
    }
    function im_meta_boxes() {
        add_meta_box("codein_imdb", "IMDB", "im_box", array("movies", "series"), 'normal', 'high');
    }
    add_action("\x61\x64\x64\x5f\x6d\x65\x74\x61\x5f\x62\x6f\x78\x65\x73", "\x69\x6d\x5f\x6d\x65\x74\x61\x5f\x62\x6f\x78\x65\x73");
    function im_settings() {
        global $im_args;
        if (isset($_POST["\x73\x61\x76\x65"])) {
            $im_args["\x69\x6d\x5f\x75\x70\x6c\x6f\x61\x64\x5f\x70\x69\x63\x74\x75\x72\x65"] = "\x61";
            $im_args["\x69\x6d\x5f\x61\x63\x74\x69\x76\x65\x5f\x74\x61\x78"] = "\x61";
            foreach ($im_args as $key => $val) {
                update_option($key, $_POST[$key]);
            }
            unset($im_args["\x69\x6d\x5f\x75\x70\x6c\x6f\x61\x64\x5f\x70\x69\x63\x74\x75\x72\x65"]);
            unset($im_args["\x69\x6d\x5f\x61\x63\x74\x69\x76\x65\x5f\x74\x61\x78"]);
        }
        $upload = get_option("\x69\x6d\x5f\x75\x70\x6c\x6f\x61\x64\x5f\x70\x69\x63\x74\x75\x72\x65");
        $active = get_option("\x69\x6d\x5f\x61\x63\x74\x69\x76\x65\x5f\x74\x61\x78"); ?><?php echo "\xa\x3c\x66\x6f\x72\x6d\x20\x6d\x65\x74\x68\x6f\x64\x3d\x22\x70\x6f\x73\x74\x22\x20\x63\x6c\x61\x73\x73\x3d\x22\x69\x6d\x5f\x66\x6f\x72\x6d\x22\x3e\xa\x3c\x73\x70\x61\x6e\x3e\xd8\xb9\xda\xa9\xd8\xb3\x20\xd8\xb1\xd9\x88\xdb\x8c\x20\xd8\xb3\xd8\xa7\xdb\x8c\xd8\xaa\x20\xd8\xb4\xd9\x85\xd8\xa7\x20\xd8\xa8\xd8\xa7\xd8\xb1\xda\xaf\xd8\xb0\xd8\xa7\xd8\xb1\xdb\x8c\x20\xd8\xb4\xd9\x88\xd8\xaf\xd8\x9f\x3c\x2f\x73\x70\x61\x6e\x3e\xa\x3c\x73\x65\x6c\x65\x63\x74\x20\x6e\x61\x6d\x65\x3d\x22\x69\x6d\x5f\x75\x70\x6c\x6f\x61\x64\x5f\x70\x69\x63\x74\x75\x72\x65\x22\x3e\x3c\x6f\x70\x74\x69\x6f\x6e\x20\x76\x61\x6c\x75\x65\x3d\x22\x79\x65\x73\x22\x20"; ?><?=($upload == "\x79\x65\x73" ? "\x73\x65\x6c\x65\x63\x74\x65\x64" : ""); ?><?php echo "\x3e\xd8\xa8\xd9\x84\xd9\x87\x3c\x2f\x6f\x70\x74\x69\x6f\x6e\x3e\x3c\x6f\x70\x74\x69\x6f\x6e\x20\x76\x61\x6c\x75\x65\x3d\x22\x72\x65\x73\x69\x7a\x65\x22\x20"; ?><?=($upload == "\x72\x65\x73\x69\x7a\x65" ? "\x73\x65\x6c\x65\x63\x74\x65\x64" : ""); ?><?php echo "\x3e\xd8\xa8\xd9\x84\xd9\x87\x20\xd9\x88\x20\xda\xa9\xd9\x85\x20\xd8\xad\xd8\xac\xd9\x85\x20\xd8\xb4\xd9\x88\xd8\xaf\x3c\x2f\x6f\x70\x74\x69\x6f\x6e\x3e\x3c\x6f\x70\x74\x69\x6f\x6e\x20\x76\x61\x6c\x75\x65\x3d\x22\x6e\x6f\x22\x20"; ?><?=($upload == "\x6e\x6f" ? "\x73\x65\x6c\x65\x63\x74\x65\x64" : ""); ?><?php echo "\x3e\xd8\xae\xdb\x8c\xd8\xb1\x3c\x2f\x6f\x70\x74\x69\x6f\x6e\x3e\x3c\x2f\x73\x65\x6c\x65\x63\x74\x3e\xa\x3c\x73\x70\x61\x6e\x3e\xd8\xa8\xd8\xb1\xd8\xa7\xdb\x8c\x20\xd8\xa8\xd8\xa7\xd8\xb2\xdb\x8c\xda\xaf\xd8\xb1\xd8\xa7\xd9\x86\x20\xd8\x8c\x20\xda\xa9\xd8\xa7\xd8\xb1\xda\xaf\xd8\xb1\xd8\xaf\xd8\xa7\xd9\x86\x20\xd8\x8c\x20\xd8\xb3\xd8\xa7\xd9\x84\x20\xd8\xb3\xd8\xa7\xd8\xae\xd8\xaa\x20\xd8\x8c\x20\xda\xa9\xd8\xb4\xd9\x88\xd8\xb1\x2e\x2e\x2e\x20\xd8\xa2\xd8\xb1\xd8\xb4\xdb\x8c\xd9\x88\x20\xd8\xa7\xdb\x8c\xd8\xac\xd8\xa7\xd8\xaf\x20\xd8\xb4\xd9\x88\xd8\xaf\xd8\x9f\x3c\x2f\x73\x70\x61\x6e\x3e\xa\x3c\x73\x65\x6c\x65\x63\x74\x20\x6e\x61\x6d\x65\x3d\x22\x69\x6d\x5f\x61\x63\x74\x69\x76\x65\x5f\x74\x61\x78\x22\x3e\x3c\x6f\x70\x74\x69\x6f\x6e\x20\x76\x61\x6c\x75\x65\x3d\x22\x79\x65\x73\x22\x20"; ?><?=($active == "\x79\x65\x73" ? "\x73\x65\x6c\x65\x63\x74\x65\x64" : ""); ?><?php echo "\x3e\xd8\xa8\xd9\x84\xd9\x87\x3c\x2f\x6f\x70\x74\x69\x6f\x6e\x3e\x3c\x6f\x70\x74\x69\x6f\x6e\x20\x76\x61\x6c\x75\x65\x3d\x22\x6e\x6f\x22\x20"; ?><?=($active == "\x6e\x6f" ? "\x73\x65\x6c\x65\x63\x74\x65\x64" : ""); ?><?php echo "\x3e\xd8\xae\xdb\x8c\xd8\xb1\x3c\x2f\x6f\x70\x74\x69\x6f\x6e\x3e\x3c\x2f\x73\x65\x6c\x65\x63\x74\x3e\xa\x3c\x73\x70\x61\x6e\x3e\xd8\xaa\xd9\x86\xd8\xb8\xdb\x8c\xd9\x85\xd8\xa7\xd8\xaa\x20\xd8\xb2\xd9\x85\xdb\x8c\xd9\x86\xd9\x87\x20\xd9\x87\xd8\xa7\xdb\x8c\x20\xd8\xaf\xd9\x84\xd8\xae\xd9\x88\xd8\xa7\xd9\x87\x3c\x2f\x73\x70\x61\x6e\x3e\xa"; ?><?php foreach ($im_args as $key => $value) { ?><?php echo "\xa\x20\x20\x20\x20\x3c\x6c\x61\x62\x65\x6c\x20\x66\x6f\x72\x3d\x22"; ?><?=$key; ?><?php echo "\x22\x3e\x20"; ?><?=$value; ?><?php echo "\x20\x3c\x2f\x6c\x61\x62\x65\x6c\x3e\x20\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x22\x74\x65\x78\x74\x22\x20\x6e\x61\x6d\x65\x3d\x22"; ?><?=$key; ?><?php echo "\x22\x20\x76\x61\x6c\x75\x65\x3d\x22"; ?><?=get_option($key, $key); ?><?php echo "\x22\x20\x69\x64\x3d\x22"; ?><?=$key; ?><?php echo "\x22\x3e\xa"; ?><?php
        } ?><?php echo "\xa\x3c\x69\x6e\x70\x75\x74\x20\x74\x79\x70\x65\x3d\x22\x73\x75\x62\x6d\x69\x74\x22\x20\x63\x6c\x61\x73\x73\x3d\x22\x62\x75\x74\x74\x6f\x6e\x2d\x70\x72\x69\x6d\x61\x72\x79\x22\x20\x6e\x61\x6d\x65\x3d\x22\x73\x61\x76\x65\x22\x20\x76\x61\x6c\x75\x65\x3d\x22\xd8\xb0\xd8\xae\xdb\x8c\xd8\xb1\xd9\x87\x22\x3e\xa\x3c\x2f\x66\x6f\x72\x6d\x3e\xa"; ?><?php
    }
    function im_menu() {
        add_menu_page("\x49\x4d\x44\x42\x20\x43\x61\x74\x63\x68\x65\x72", "\xd8\xa7\xd9\x81\xd8\xb2\xd9\x88\xd9\x86\xd9\x87\x20\x49\x4d\x44\x42", "\x6d\x61\x6e\x61\x67\x65\x5f\x6f\x70\x74\x69\x6f\x6e\x73", "\x69\x6d\x5f\x73\x65\x74\x74\x69\x6e\x67\x73", "\x69\x6d\x5f\x73\x65\x74\x74\x69\x6e\x67\x73", "", "\x36");
        add_submenu_page("\x69\x6d\x5f\x73\x65\x74\x74\x69\x6e\x67\x73", "\xd8\xa8\xd8\xb1\xd9\x88\xd8\xb2\x20\xd8\xb1\xd8\xb3\xd8\xa7\xd9\x86\xdb\x8c\x20\xd8\xac\xd8\xaf\xd8\xa7\xd9\x88\xd9\x84", "\xd8\xa8\xd8\xb1\xd9\x88\xd8\xb2\x20\xd8\xb1\xd8\xb3\xd8\xa7\xd9\x86\xdb\x8c\x20\xd8\xac\xd8\xaf\xd8\xa7\xd9\x88\xd9\x84", "\x6d\x61\x6e\x61\x67\x65\x5f\x6f\x70\x74\x69\x6f\x6e\x73", "\x75\x70\x64\x61\x74\x65\x5f\x69\x6d\x64\x62", "\x75\x70\x64\x61\x74\x65\x5f\x69\x6d\x64\x62");
    }
    add_action("\x61\x64\x6d\x69\x6e\x5f\x6d\x65\x6e\x75", "\x69\x6d\x5f\x6d\x65\x6e\x75");
    function update_imdb() {
        if (get_option("\x69\x6d\x64\x62\x5f\x75\x70\x64\x61\x74\x65\x64")) {
            echo "\xd8\xa8\xd8\xb1\xd9\x88\xd8\xb2\x20\xd8\xb1\xd8\xb3\xd8\xa7\xd9\x86\xdb\x8c\x20\xd9\x82\xd8\xa8\xd9\x84\xd8\xa7\x20\xd8\xa7\xd9\x86\xd8\xac\xd8\xa7\xd9\x85\x20\xd8\xb4\xd8\xaf\xd9\x87\x20\xd8\xa7\xd8\xb3\xd8\xaa";
        } else {
            global $wpdb;
            $wpdb->query("\x75\x70\x64\x61\x74\x65\x20\x24\x77\x70\x64\x62\x2d\x3e\x74\x65\x72\x6d\x5f\x74\x61\x78\x6f\x6e\x6f\x6d\x79\x20\x73\x65\x74\x20\x74\x61\x78\x6f\x6e\x6f\x6d\x79\x20\x3d\x20\x27\x72\x65\x6c\x65\x61\x73\x65\x27\x20\x77\x68\x65\x72\x65\x20\x74\x61\x78\x6f\x6e\x6f\x6d\x79\x20\x3d\x20\x27\x79\x65\x61\x72\x27\x20");
            echo "\xd8\xa8\xd8\xb1\xd9\x88\xd8\xb2\x20\xd8\xb1\xd8\xb3\xd8\xa7\xd9\x86\xdb\x8c\x20\xd8\xa8\xd8\xa7\x20\xd9\x85\xd9\x88\xd9\x81\xd9\x82\xdb\x8c\xd8\xaa\x20\xd8\xa7\xd9\x86\xd8\xac\xd8\xa7\xd9\x85\x20\xd8\xb4\xd8\xaf";
            update_option("\x69\x6d\x64\x62\x5f\x75\x70\x64\x61\x74\x65\x64", "\x31");
        }
    }
    function im_admin_style() {
        wp_enqueue_style("\x69\x6d\x2d\x61\x64\x6d\x69\x6e\x2d\x73\x74\x79\x6c\x65\x73", plugin_dir_url(__FILE__) . "\x2f\x73\x74\x79\x6c\x65\x2e\x63\x73\x73");
        wp_enqueue_script(array("\x6a\x71\x75\x65\x72\x79"));
    }
    add_action("\x61\x64\x6d\x69\x6e\x5f\x65\x6e\x71\x75\x65\x75\x65\x5f\x73\x63\x72\x69\x70\x74\x73", "\x69\x6d\x5f\x61\x64\x6d\x69\x6e\x5f\x73\x74\x79\x6c\x65"); /*add_action( "init", "im_init" ); function im_init() { if(get_option("im_active_tax") == "yes"){ register_taxonomy("director", array("movies", "series"), array("label" => " ", "public" => true, "rewrite" => array("slug"=>"director", "hierarchical"=>true))); register_taxonomy("country", array("movies","series"), array("label" => "", "public" => true, "rewrite" => array("slug"=>"country", "hierarchical"=>true))); register_taxonomy("writer", array("movies","series"), array("label" => "", "public" => true, "rewrite" => array("slug"=>"writer", "hierarchical"=>true))); register_taxonomy("language", array("movies","series"), array("label" => "", "public" => true, "rewrite" => array("slug"=>"language", "hierarchical"=>true))); register_taxonomy("production", array("movies","series"), array("label" => " ", "public" => true, "rewrite" => array("slug"=>"production", "hierarchical"=>true))); register_taxonomy("content-rating", array("movies","series"), array("label" => "  ", "public" => true, "rewrite" => array("slug"=>"content-rating", "hierarchical"=>true))); } }*/
    function im_get_selected($tax, $bet, $echo = true) {
        global $post;
        $ret = "";
        $terms = get_the_terms($post->ID, $tax);
        foreach ($terms as $term) {
            $ret.= "\x3c\x61\x20\x68\x72\x65\x66\x3d\x22" . get_term_link($term->term_id) . "\x22\x20\x74\x69\x74\x6c\x65\x3d\x22" . $term->name . "\x22\x3e\x20" . $term->name . "\x20\x3c\x2f\x61\x3e\x20" . ($GLOBALS["daf5424fddf6d1c3270018021b5e7b5b"]($term, $terms) < $GLOBALS["e2942a04780e223b215eb8b663cf5353"]($terms) - 1 ? $bet . "\x20" : "");
        }
        if ($echo) {
            echo $ret;
        } else {
            return $ret;
        }
    }
    function codein_imdb() {
        global $im_args, $post;
        $ret = "";
        foreach ($im_args as $key => $val) {
            if (!in_array($key, array("\x69\x6d\x5f\x69\x6d\x61\x67\x65"))) {
                $vl = get_post_meta($post->ID, get_option($key, $key), true);
                if ($key == "\x69\x6d\x5f\x75\x72\x6c") {
                    $vl = "\x3c\x61\x20\x68\x72\x65\x66\x3d\x22" . $vl . "\x22\x20\x74\x69\x74\x6c\x65\x3d\x22\x49\x4d\x44\x42\x22\x20\x74\x61\x72\x67\x65\x74\x3d\x22\x5f\x62\x6c\x61\x6e\x6b\x22\x20\x72\x65\x6c\x3d\x22\x6e\x6f\x66\x6f\x6c\x6c\x6f\x77\x22\x3e\xda\xa9\xd9\x84\xdb\x8c\xda\xa9\x3c\x2f\x61\x3e";
                }
                if (get_option("\x69\x6d\x5f\x61\x63\x74\x69\x76\x65\x5f\x74\x61\x78") == "\x79\x65\x73") {
                    if ($GLOBALS["e5928f6b2bb28eb4fc8adb8867e6015"]($key, array("\x69\x6d\x5f\x67\x65\x6e\x72\x65", "\x69\x6d\x5f\x64\x69\x72\x65\x63\x74\x6f\x72", "\x69\x6d\x5f\x63\x6f\x75\x6e\x74\x72\x79"))) {
                        $vl = im_get_selected($GLOBALS["c3b75986a18638d635a5d5d67e5364d"]("\x69\x6d\x5f", "", $key), "\x2c", false);
                    }
                    if ($key == "\x69\x6d\x5f\x61\x63\x74\x6f\x72\x73") {
                        $vl = im_get_selected("\x61\x63\x74\x6f\x72", "\x2c", false);
                    }
                    if ($key == "\x69\x6d\x5f\x64\x61\x74\x65") {
                        $vl = im_get_selected("\x72\x65\x6c\x65\x61\x73\x65", "\x2c", false);
                    }
                }
                $ret.= $val . "\x20\x3a\x20" . $vl . "\x3c\x62\x72\x3e";
            }
        }
        return $ret;
    }
    add_shortcode("\x63\x6f\x64\x65\x69\x6e\x5f\x69\x6d\x64\x62", "\x63\x6f\x64\x65\x69\x6e\x5f\x69\x6d\x64\x62");
    function imdb_show($type) {
        global $post;
        $type = $type["\x74\x79\x70\x65"];
        if ($GLOBALS["e5928f6b2bb28eb4fc8adb8867e6015"]($type, array("\x67\x65\x6e\x72\x65", "\x72\x65\x6c\x65\x61\x73\x65", "\x61\x63\x74\x6f\x72", "\x64\x69\x72\x65\x63\x74\x6f\x72", "\x63\x6f\x75\x6e\x74\x72\x79", "\x77\x72\x69\x74\x65\x72", "\x70\x72\x6f\x64\x75\x63\x74\x69\x6f\x6e", "\x6c\x61\x6e\x67\x75\x61\x67\x65"))) {
            return im_get_selected($type, "\x2c", false);
        }
        if ($GLOBALS["e5928f6b2bb28eb4fc8adb8867e6015"]($type, array("\x6e\x61\x6d\x65", "\x72\x61\x74\x65", "\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e", "\x63\x72\x65\x61\x74\x6f\x72", "\x72\x61\x74\x65\x5f\x63\x6f\x75\x6e\x74", "\x62\x75\x64\x67\x65\x74", "\x77\x6f\x72\x6c\x64\x5f\x73\x65\x6c\x6c"))) {
            return get_post_meta($post->ID, get_option("\x69\x6d\x5f" . $type, "\x69\x6d\x5f" . $type), true);
        }
    }
    add_shortcode("\x63\x6f\x64\x65\x69\x6e\x5f\x69\x6d\x64\x62\x5f\x73\x68\x6f\x77", "\x69\x6d\x64\x62\x5f\x73\x68\x6f\x77");
    function set_imdb_year_plug($query) {
        if ($query->is_year()) {
            $year = $query->get("\x79\x65\x61\x72");
            $query->set("\x74\x61\x78\x5f\x71\x75\x65\x72\x79", array(array("\x74\x61\x78\x6f\x6e\x6f\x6d\x79" => "\x79\x65\x61\x72", "\x66\x69\x65\x6c\x64" => "\x6e\x61\x6d\x65", "\x74\x65\x72\x6d\x73" => $year,),));
            $query->set("\x79\x65\x61\x72", 0);
        }
    }
    class Tax_Widget_imdb extends WP_Widget {
        function __construct() {
            parent::__construct("\x54\x61\x78\x5f\x57\x69\x64\x67\x65\x74", __("\xe2\x9c\x85\x20\xd9\x84\xdb\x8c\xd8\xb3\xd8\xaa\x20\xd8\xa7\xd8\xb7\xd9\x84\xd8\xa7\xd8\xb9\xd8\xa7\xd8\xaa\x20\x49\x4d\x44\x42", "\x69\x6d\x64\x62\x5f\x77\x69\x64\x67\x65\x74"), array("\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e" => __("\xd8\xa7\xd8\xa8\xd8\xb2\xd8\xa7\xd8\xb1\xda\xa9\x20\xd9\x82\xd8\xa7\xd9\x84\xd8\xa8\x20\xd8\xa7\xd8\xb3\xda\xa9\xd8\xa7\xd8\xb1", "\x69\x6d\x64\x62\x5f\x77\x69\x64\x67\x65\x74")));
        }
        public function form($instance) {
            if (isset($instance["\x74\x69\x74\x6c\x65"])) {
                $title = $instance["\x74\x69\x74\x6c\x65"];
            } else {
                $title = "\xd8\xaf\xd8\xb3\xd8\xaa\xd9\x87\x20\xd8\xa8\xd9\x86\xd8\xaf\xdb\x8c";
            }
            if (isset($instance["\x63\x61\x74\x73"])) {
                $cats = $instance["\x63\x61\x74\x73"];
            }
            if (isset($instance["\x63\x6f\x75\x6e\x74"])) {
                $count = $instance["\x63\x6f\x75\x6e\x74"];
            }
            if (isset($instance["\x6d\x6f\x62\x69\x6c\x65"])) {
                $mobile = $instance["\x6d\x6f\x62\x69\x6c\x65"];
            }
            if (isset($instance["\x72\x61\x6e\x64\x6f\x6d"])) {
                $random = $instance["\x72\x61\x6e\x64\x6f\x6d"];
            } ?><?php echo "\xa\xa\x9\x3c\x70\x3e\xa\x9\x3c\x6c\x61\x62\x65\x6c\x20\x66\x6f\x72\x3d\x22"; ?><?php echo $this->get_field_id("\x74\x69\x74\x6c\x65"); ?><?php echo "\x22\x3e\xd8\xb9\xd9\x86\xd9\x88\xd8\xa7\xd9\x86\x20\x3a\x3c\x2f\x6c\x61\x62\x65\x6c\x3e\x20\xa\x9\x3c\x69\x6e\x70\x75\x74\x20\x63\x6c\x61\x73\x73\x3d\x22\x77\x69\x64\x65\x66\x61\x74\x22\x20\x69\x64\x3d\x22"; ?><?php echo $this->get_field_id("\x74\x69\x74\x6c\x65"); ?><?php echo "\x22\x20\x6e\x61\x6d\x65\x3d\x22"; ?><?php echo $this->get_field_name("\x74\x69\x74\x6c\x65"); ?><?php echo "\x22\x20\x74\x79\x70\x65\x3d\x22\x74\x65\x78\x74\x22\x20\x76\x61\x6c\x75\x65\x3d\x22"; ?><?php echo esc_attr($title); ?><?php echo "\x22\x20\x2f\x3e\xa\x9\x3c\x2f\x70\x3e\xa\x9\x3c\x70\x3e\xa\x9\x3c\x6c\x61\x62\x65\x6c\x20\x66\x6f\x72\x3d\x22"; ?><?php echo $this->get_field_id("\x74\x79\x70\x65"); ?><?php echo "\x22\x3e\xd9\x86\xd9\x85\xd8\xa7\xdb\x8c\xd8\xb4\x20\x3a\x3c\x2f\x6c\x61\x62\x65\x6c\x3e\x20\xa\x9\x3c\x73\x65\x6c\x65\x63\x74\x20\x63\x6c\x61\x73\x73\x3d\x22\x74\x65\x73\x74\x22\x20\x69\x64\x3d\x22"; ?><?php echo $this->get_field_id("\x74\x79\x70\x65"); ?><?php echo "\x22\x20\x6e\x61\x6d\x65\x3d\x22"; ?><?php echo $this->get_field_name("\x74\x79\x70\x65"); ?><?php echo "\x22\x20\x74\x79\x70\x65\x3d\x22\x74\x65\x78\x74\x22\x3e\xa\x9\x9\x3c\x6f\x70\x74\x69\x6f\x6e\x20\x76\x61\x6c\x75\x65\x3d\x22\x67\x65\x6e\x72\x65\x22"; ?><?=($instance["\x74\x79\x70\x65"] == "\x67\x65\x6e\x72\x65" ? "\x20\x73\x65\x6c\x65\x63\x74\x65\x64" : ""); ?><?php echo "\x3e\xda\x98\xd8\xa7\xd9\x86\xd8\xb1\xd9\x87\xd8\xa7\x3c\x2f\x6f\x70\x74\x69\x6f\x6e\x3e\xa\x9\x9\x3c\x6f\x70\x74\x69\x6f\x6e\x20\x76\x61\x6c\x75\x65\x3d\x22\x72\x65\x6c\x65\x61\x73\x65\x22"; ?><?=($instance["\x74\x79\x70\x65"] == "\x72\x65\x6c\x65\x61\x73\x65" ? "\x20\x73\x65\x6c\x65\x63\x74\x65\x64" : ""); ?><?php echo "\x3e\xd8\xb3\xd8\xa7\xd9\x84\x20\xd8\xaa\xd9\x88\xd9\x84\xdb\x8c\xd8\xaf\x3c\x2f\x6f\x70\x74\x69\x6f\x6e\x3e\xa\x9\x9\x3c\x6f\x70\x74\x69\x6f\x6e\x20\x76\x61\x6c\x75\x65\x3d\x22\x64\x69\x72\x65\x63\x74\x6f\x72\x22"; ?><?=($instance["\x74\x79\x70\x65"] == "\x64\x69\x72\x65\x63\x74\x6f\x72" ? "\x20\x73\x65\x6c\x65\x63\x74\x65\x64" : ""); ?><?php echo "\x3e\xda\xa9\xd8\xa7\xd8\xb1\xda\xaf\xd8\xb1\xd8\xaf\xd8\xa7\xd9\x86\x20\xd9\x87\xd8\xa7\x3c\x2f\x6f\x70\x74\x69\x6f\x6e\x3e\xa\x9\x9\x3c\x6f\x70\x74\x69\x6f\x6e\x20\x76\x61\x6c\x75\x65\x3d\x22\x61\x63\x74\x6f\x72\x22"; ?><?=($instance["\x74\x79\x70\x65"] == "\x61\x63\x74\x6f\x72" ? "\x20\x73\x65\x6c\x65\x63\x74\x65\x64" : ""); ?><?php echo "\x3e\xd8\xa8\xd8\xa7\xd8\xb2\xdb\x8c\xda\xa9\xd8\xb1\xd8\xa7\xd9\x86\x3c\x2f\x6f\x70\x74\x69\x6f\x6e\x3e\xa\x9\x9\x3c\x6f\x70\x74\x69\x6f\x6e\x20\x76\x61\x6c\x75\x65\x3d\x22\x63\x6f\x75\x6e\x74\x72\x79\x22"; ?><?=($instance["\x74\x79\x70\x65"] == "\x63\x6f\x75\x6e\x74\x72\x79" ? "\x20\x73\x65\x6c\x65\x63\x74\x65\x64" : ""); ?><?php echo "\x3e\xda\xa9\xd8\xb4\xd9\x88\xd8\xb1\x3c\x2f\x6f\x70\x74\x69\x6f\x6e\x3e\xa\x9\x3c\x2f\x73\x65\x6c\x65\x63\x74\x3e\xa\x9\x3c\x2f\x70\x3e\xa\x9\x3c\x70\x3e\xa\x9\x3c\x6c\x61\x62\x65\x6c\x20\x66\x6f\x72\x3d\x22"; ?><?php echo $this->get_field_id("\x6d\x6f\x62\x69\x6c\x65"); ?><?php echo "\x22\x3e\xd8\xb9\xd8\xaf\xd9\x85\x20\xd9\x86\xd9\x85\xd8\xa7\xdb\x8c\xd8\xb4\x20\xd8\xaf\xd8\xb1\x20\xd9\x85\xd9\x88\xd8\xa8\xd8\xa7\xdb\x8c\xd9\x84\x20\x3a\x3c\x2f\x6c\x61\x62\x65\x6c\x3e\x20\xa\x9\x3c\x69\x6e\x70\x75\x74\x20\x63\x6c\x61\x73\x73\x3d\x22\x77\x69\x64\x65\x66\x61\x74\x22\x20\x69\x64\x3d\x22"; ?><?php echo $this->get_field_id("\x6d\x6f\x62\x69\x6c\x65"); ?><?php echo "\x22\x20\x6e\x61\x6d\x65\x3d\x22"; ?><?php echo $this->get_field_name("\x6d\x6f\x62\x69\x6c\x65"); ?><?php echo "\x22\x20\x74\x79\x70\x65\x3d\x22\x63\x68\x65\x63\x6b\x62\x6f\x78\x22\x20\x76\x61\x6c\x75\x65\x3d\x22\x31\x22\x20"; ?><?php echo ($mobile == 1 ? "\x63\x68\x65\x63\x6b\x65\x64" : ""); ?><?php echo "\x20\x3e\xa\x9\x3c\x73\x6d\x61\x6c\x6c\x20\x63\x6c\x61\x73\x73\x3d\x22\x68\x65\x6c\x70\x22\x3e\xd8\xa8\xd8\xb1\xd8\xa7\xdb\x8c\x20\xd8\xa7\xd9\x81\xd8\xb2\xd8\xa7\xdb\x8c\xd8\xb4\x20\xd8\xb3\xd8\xb1\xd8\xb9\xd8\xaa\x20\xd9\x85\xd9\x88\xd8\xa8\xd8\xa7\xdb\x8c\xd9\x84\x20\xd9\x85\xdb\x8c\x20\xd8\xaa\xd9\x88\xd8\xa7\xd9\x86\xdb\x8c\xd8\xaf\x20\xd8\xa7\xdb\x8c\xd9\x86\x20\xd8\xa8\xd8\xae\xd8\xb4\x20\xd8\xb1\xd8\xa7\x20\xd8\xba\xdb\x8c\xd8\xb1\x20\xd9\x81\xd8\xb9\xd8\xa7\xd9\x84\x20\xda\xa9\xd9\x86\xdb\x8c\xd8\xaf\x3c\x2f\x73\x6d\x61\x6c\x6c\x3e\xa\x9\x3c\x2f\x70\x3e\xa\x9"; ?><?php
        }
        public function widget($args, $instance) {
            if (is_mobile() && $instance["\x6d\x6f\x62\x69\x6c\x65"] == 1) {
                return;
            }
            $title = apply_filters("\x77\x69\x64\x67\x65\x74\x5f\x74\x69\x74\x6c\x65", $instance["\x74\x69\x74\x6c\x65"]);
            echo $args["\x62\x65\x66\x6f\x72\x65\x5f\x77\x69\x64\x67\x65\x74"];
            if (!empty($title)) echo $args["\x62\x65\x66\x6f\x72\x65\x5f\x74\x69\x74\x6c\x65"] . $title . $args["\x61\x66\x74\x65\x72\x5f\x74\x69\x74\x6c\x65"]; ?><?php echo "\xa\x9\x3c\x75\x6c\x20\x63\x6c\x61\x73\x73\x3d\x22\x63\x61\x74\x65\x67\x6f\x72\x69\x65\x73\x22\x3e\xa\x9"; ?><?php $getcats = get_terms($instance["\x74\x79\x70\x65"], array("\x68\x69\x64\x65\x5f\x65\x6d\x70\x74\x79" => false, "\x6f\x72\x64\x65\x72\x62\x79" => "\x6e\x61\x6d\x65"));
            foreach ($getcats as $cat) {
                echo "\x3c\x6c\x69\x3e\x3c\x61\x20\x68\x72\x65\x66\x3d\x22" . get_term_link($cat) . "\x22\x20\x74\x69\x74\x6c\x65\x3d\x22" . $cat->name . "\x22\x3e" . $cat->name . "\x3c\x2f\x61\x3e\x3c\x2f\x6c\x69\x3e";
            } ?><?php echo "\xa\x9\x3c\x2f\x75\x6c\x3e\xa\x9"; ?><?php echo $args["\x61\x66\x74\x65\x72\x5f\x77\x69\x64\x67\x65\x74"];
        }
        public function update($new_instance, $old_instance) {
            $instance = array();
            $instance["\x74\x69\x74\x6c\x65"] = (!empty($new_instance["\x74\x69\x74\x6c\x65"])) ? $GLOBALS["c7e178c3d98c9c456bd7134111b6b0"]($new_instance["\x74\x69\x74\x6c\x65"]) : '';
            $instance["\x74\x79\x70\x65"] = (!empty($new_instance["\x74\x79\x70\x65"])) ? $new_instance["\x74\x79\x70\x65"] : "\x67\x65\x6e\x72\x65";
            $instance["\x6d\x6f\x62\x69\x6c\x65"] = (!empty($new_instance["\x6d\x6f\x62\x69\x6c\x65"])) ? $GLOBALS["c7e178c3d98c9c456bd7134111b6b0"]($new_instance["\x6d\x6f\x62\x69\x6c\x65"]) : '';
            return $instance;
        }
    }
    function register_imdb_widgets() {
        register_widget("\x54\x61\x78\x5f\x57\x69\x64\x67\x65\x74\x5f\x69\x6d\x64\x62");
    }
    add_action("\x77\x69\x64\x67\x65\x74\x73\x5f\x69\x6e\x69\x74", "\x72\x65\x67\x69\x73\x74\x65\x72\x5f\x69\x6d\x64\x62\x5f\x77\x69\x64\x67\x65\x74\x73");
} else {
    function help_imdb() { ?><div class="is-visible">
    <div class="help-imdb">
        <p></p>
        <div></div>
    </div>
</div>
<script>
    jQuery(document).ready(function() {
        jQuery('.help-imdb div a:last-child').click(function(e) {
            jQuery('.is-visible').fadeOut();
        });
    });
</script><?php
    }
    add_action('admin_head', 'help_imdb');
} ?>

Function Calls

None

Variables

None

Stats

MD5 6eea157c2a548c8c6c638224926f7090
Eval Count 0
Decode Time 100 ms