function getRequest($v3c6e0b8a9c15224a8228b9a98ca1531d) { if ($v3c6e0b8a9c15224a8228b9a98ca1531d == 'p' || $v3c6e0b8a9c15224a8228b9a98ca1531d == 'per_page_limit') { $va363b8d13575101a0226e8d0d054f2e7 = prepareRequest($v3c6e0b8a9c15224a8228b9a98ca1531d); if ($va363b8d13575101a0226e8d0d054f2e7 !== false) { return $va363b8d13575101a0226e8d0d054f2e7; } } return getArrayKey($_REQUEST, $v3c6e0b8a9c15224a8228b9a98ca1531d); }
$settings[$pieces[0]] = urldecode($pieces[1]); } if ($v == "<BEGIN>") { $isParam = TRUE; } } if (isset($settings["directives"])) { $settings["directives"] = explode(",", $settings["directives"]); } return $settings; } header("Cache-Control: no-store, no-cache"); header("Pragma: no-cache"); $response = ""; $request = ""; $post = prepareRequest(); for (reset($post); list($k, $v) = each($post);) { $request .= "&" . urlencode($k) . "=" . urlencode(stripslashes($v)); } $request = substr($request, 1); $response = performRequest($request); if ($response == "-1") { exit; } $settings = transcribeResponse($response); $directives = $settings["directives"]; $email = isset($settings["email"]) ? $settings["email"] : ""; $emailmethod = isset($settings["emailmethod"]) ? $settings["emailmethod"] : 0; echo isset($directives[0]) && $directives[0] == 1 ? getDocType() : ""; echo isset($settings["injDocType"]) ? formatHTML($settings["injDocTypeMsg"]) : ""; echo isset($directives[1]) && $directives[1] == 1 ? getHeadHTML1() : "";
<?php header('Content-Type: application/json'); if (!empty($_GET['title'])) { $title = $_GET['title']; $title = prepareRequest($title); $url = 'http://api.themoviedb.org/3/'; $mode = 'search/movie?query='; $key = 'get_your_api_key_at_http://api.themoviedb.org'; echo $json = file_get_contents($url . $mode . $title . $key); } function prepareRequest($str) { return str_replace(' ', '%20', $str); }