du hade ret imdb hade ændret der struktur og ved at ændre koden fik jeg det til at virke nu er problem kun den ikke henter trailer og pohtos til filmende
her er den ny imdb og info php
- <?php
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- // Free PHP IMDb Scraper API for the new IMDb Template.
- // Version: 5.0
- // Author: Abhinay Rathore
- // Website: http://www.AbhinayRathore.com
- // Blog: http://web3o.blogspot.com
- // Demo: http://lab.abhinayrathore.com/imdb/
- // More Info: http://web3o.blogspot.com/2010/10/php-imdb-scraper-for-new-imdb-template.html
- // Last Updated: 12/31/2017
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- class Imdb
- {
- // Get movie information by Movie Title.
- // This method searches the given title on Google, Bing or Ask to get the best possible match.
- public function getMovieInfo($title, $getExtraInfo = true)
- {
- $imdbId = $this->getIMDbIdFromSearch(trim($title));
- if($imdbId === NULL){
- $arr = array();
- $arr['error'] = "No Title found in Search Results!";
- return $arr;
- }
- return $this->getMovieInfoById($imdbId, $getExtraInfo);
- }
-
- // Get movie information by IMDb Id.
- public function getMovieInfoById($imdbId, $getExtraInfo = true)
- {
- $arr = array();
- $imdbUrl = "http://www.imdb.com/title/" . trim($imdbId) . "/";
- return $this->scrapeMovieInfo($imdbUrl, $getExtraInfo);
- }
-
- // Scrape movie information from IMDb page and return results in an array.
- private function scrapeMovieInfo($imdbUrl, $getExtraInfo = true)
- {
- $arr = array();
- $html = $this->geturl("${imdbUrl}reference");
- $title_id = $this->match('/<link rel="canonical" href="http:\/\/www.imdb.com\/title\/(tt\d+)\/reference" \/>/ms', $html, 1);
- if(empty($title_id) || !preg_match("/tt\d+/i", $title_id)) {
- $arr['error'] = "No Title found on IMDb!";
- return $arr;
- }
- $arr['title_id'] = $title_id;
- $arr['imdb_url'] = $imdbUrl;
- $arr['title'] = str_replace('"', '', trim($this->match('/<title>(IMDb \- )*(.*?) \(.*?<\/title>/ms', $html, 2)));
- $arr['year'] = trim($this->match('/<title>.*?\(.*?(\d{4}).*?\).*?<\/title>/ms', $html, 1));
- $arr['rating'] = $this->match('/<span class="ipl-rating-star__rating">(\d.\d)<\/span>/ms', $html, 1);
- $arr['genres'] = $this->match_all('/<a href="\/genre\/.*?">(.*?)<\/a>/ms', $this->match('/<td.*?>Genres?<\/td>.*?<td>(.*?)<\/td>/ms', $html, 1), 1);
- $arr['directors'] = $this->match_all_key_value('/<a href="\/name\/(nm\d+).*?>(.*?)<\/a>/ms', $this->match('/Directed by.*?<\/h4>.*?<table.*?>(.*?)<\/table>/ms', $html, 1));
- $arr['writers'] = $this->match_all_key_value('/<a href="\/name\/(nm\d+).*?>(.*?)<\/a>/ms', $this->match('/Written by.*?<\/h4>.*?<table.*?>(.*?)<\/table>/ms', $html, 1));
- $arr['cast'] = $this->match_all_key_value('/<a href="\/name\/(nm\d+).*?>(.*?)<\/a>/ms', $this->match('/Cast.*?<\/h4>.*?<table.*?>(.*?)<\/table>/ms', $html, 1));
- $arr['cast'] = array_slice($arr['cast'], 0, 30);
- $arr['stars'] = $this->match_all_key_value('/<a href="\/name\/(nm\d+).*?>(.*?)<\/a>/ms', $this->match('/Stars:.*?<ul.*?>(.*?)<\/ul>/ms', $html, 1));
- $arr['producers'] = $this->match_all_key_value('/<a href="\/name\/(nm\d+).*?>(.*?)<\/a>/ms', $this->match('/Produced by.*?<\/h4>.*?<table.*?>(.*?)<\/table>/ms', $html, 1));
- $arr['musicians'] = $this->match_all_key_value('/<a href="\/name\/(nm\d+).*?>(.*?)<\/a>/ms', $this->match('/Music by.*?<\/h4>.*?<table.*?>(.*?)<\/table>/ms', $html, 1));
- $arr['cinematographers'] = $this->match_all_key_value('/<a href="\/name\/(nm\d+).*?>(.*?)<\/a>/ms', $this->match('/Cinematography by.*?<\/h4>.*?<table.*?>(.*?)<\/table>/ms', $html, 1));
- $arr['editors'] = $this->match_all_key_value('/<a href="\/name\/(nm\d+).*?>(.*?)<\/a>/ms', $this->match('/Film Editing by.*?<\/h4>.*?<table.*?>(.*?)<\/table>/ms', $html, 1));
- $arr['release_date'] = $this->match('/<a href="\/title\/tt\d+\/releaseinfo">(.*?)<\/a>/ms', $html, 1);
- $arr['tagline'] = trim($this->match('/<td.*?>Taglines<\/td>.*?<td>(.*?)(<a|<\/div)/ms', $html, 1));
- $arr['plot'] = trim(strip_tags($this->match('/<td.*?>Plot Summary<\/td>.*?<td>.*?<p>(.*?)</ms', $html, 1)));
- $arr['plot_keywords'] = $this->match_all('/<a href="\/keyword\/.*?">(.*?)<\/a>/ms', $this->match('/<td.*?>Plot Keywords<\/td>(.*?)<\/ul>/ms', $html, 1), 1);
- $arr['poster'] = $this->match('/<img.*?class="titlereference-primary-image".*?src="(.*?)"/ms', $html, 1);
- $arr['poster_large'] = "";
- $arr['poster_full'] = "";
- if ($arr['poster'] != '' && strpos($arr['poster'], "amazon.com") > 0) { //Get large and small posters
- $arr['poster'] = preg_replace('/_V1.*?.jpg/ms', "_V1._SY200.jpg", $arr['poster']);
- $arr['poster_large'] = preg_replace('/_V1.*?.jpg/ms', "_V1._SY500.jpg", $arr['poster']);
- $arr['poster_full'] = preg_replace('/_V1.*?.jpg/ms', "_V1._SY0.jpg", $arr['poster']);
- } else {
- $arr['poster'] = "";
- }
- $arr['runtime'] = trim($this->match('/<td.*?>Runtime<\/td>.*?<td>.*?<li.*?>(.*?)<\/li>/ms', $html, 1));
- $arr['top_250'] = trim($this->match('/Top Rated Movies: #(\d+)/ms', $html, 1));
- $arr['oscars'] = trim($this->match('/Won (\d+) Oscars?/ms', $html, 1));
- if(empty($arr['oscars']) && preg_match("/Won Oscar\./i", $html)) $arr['oscars'] = "1";
- $arr['awards'] = trim($this->match('/(\d+) wins/ms',$html, 1));
- $arr['nominations'] = trim($this->match('/(\d+) nominations/ms',$html, 1));
- $arr['language'] = $this->match_all('/<a href="\/language\/.*?">(.*?)<\/a>/ms', $this->match('/<td.*?>Language<\/td>.*?<td>(.*?)<\/td>/ms', $html, 1), 1);
- $arr['country'] = $this->match_all('/<a href="\/country\/.*?">(.*?)<\/a>/ms', $this->match('/<td.*?>Country<\/td>.*?<td>(.*?)<\/td>/ms', $html, 1), 1);
-
- if($getExtraInfo == true) {
- $releaseinfoHtml = $this->geturl("http://www.imdb.com/title/" . $arr['title_id'] . "/releaseinfo");
- $arr['also_known_as'] = $this->getAkaTitles($releaseinfoHtml);
- $arr['release_dates'] = $this->getReleaseDates($releaseinfoHtml);
- $arr['media_images'] = $this->getMediaImages($arr['title_id']);
- $arr['videos'] = $this->getVideos($arr['title_id']);
- }
-
- return $arr;
- }
-
- // Scan all Release Dates.
- private function getReleaseDates($html){
- $releaseDates = array();
- foreach($this->match_all('/<tr.*?>(.*?)<\/tr>/ms', $this->match('/<table id="release_dates".*?>(.*?)<\/table>/ms', $html, 1), 1) as $r) {
- $country = trim(strip_tags($this->match('/<td>(.*?)<\/td>/ms', $r, 1)));
- $date = trim(strip_tags($this->match('/<td class="release_date">(.*?)<\/td>/ms', $r, 1)));
- array_push($releaseDates, $country . " = " . $date);
- }
- return array_filter($releaseDates);
- }
- // Scan all AKA Titles.
- private function getAkaTitles($html){
- $akaTitles = array();
- foreach($this->match_all('/<tr.*?>(.*?)<\/tr>/msi', $this->match('/<table id="akas".*?>(.*?)<\/table>/ms', $html, 1), 1) as $m) {
- $akaTitleMatch = $this->match_all('/<td>(.*?)<\/td>/ms', $m, 1);
- $akaCountry = trim($akaTitleMatch[0]);
- $akaTitle = trim($akaTitleMatch[1]);
- array_push($akaTitles, $akaTitle . " = " . $akaCountry);
- }
- return array_filter($akaTitles);
- }
- // Collect all Media Images.
- private function getMediaImages($titleId){
- $url = "http://www.imdb.com/title/" . $titleId . "/mediaindex";
- $html = $this->geturl($url);
- $media = array();
- $media = array_merge($media, $this->scanMediaImages($html));
- foreach($this->match_all('/<a.*?>(\d*)<\/a>/ms', $this->match('/<span class="page_list">(.*?)<\/span>/ms', $html, 1), 1) as $p) {
- $html = $this->geturl($url . "?page=" . $p);
- $media = array_merge($media, $this->scanMediaImages($html));
- }
- return $media;
- }
- // Scan all media images.
- private function scanMediaImages($html){
- $pics = array();
- foreach($this->match_all('/src="(.*?)"/msi', $this->match('/<div class="media_index_thumb_list".*?>(.*?)<\/div>/msi', $html, 1), 1) as $i) {
- array_push($pics, preg_replace('/_V1\..*?.jpg/ms', "_V1._SY0.jpg", $i));
- }
- return array_filter($pics);
- }
-
- // Get all Videos and Trailers
- public function getVideos($titleId){
- $html = $this->geturl("http://www.imdb.com/title/${titleId}/videogallery");
- $videos = array();
- foreach ($this->match_all('/<a.*?href="\/videoplayer\/(vi\d+).*?".*?>.*?<\/a>/ms', $html, 1) as $v) {
- $videos[] = "http://www.imdb.com/video/imdb/${v}";
- }
- return array_filter($videos);
- }
-
- // Get Top 250 Movie List
- public function getTop250(){
- $html = $this->geturl("http://www.imdb.com/chart/top");
- $top250 = array();
- $rank = 1;
- foreach ($this->match_all('/<tr class="(even|odd)">(.*?)<\/tr>/ms', $html, 2) as $m) {
- $id = $this->match('/<td class="titleColumn">.*?<a href="\/title\/(tt\d+)\/.*?"/msi', $m, 1);
- $title = $this->match('/<td class="titleColumn">.*?<a.*?>(.*?)<\/a>/msi', $m, 1);
- $year = $this->match('/<td class="titleColumn">.*?<span class="secondaryInfo">\((.*?)\)<\/span>/msi', $m, 1);
- $rating = $this->match('/<td class="ratingColumn"><strong.*?>(.*?)<\/strong>/msi', $m, 1);
- $poster = $this->match('/<td class="posterColumn">.*?<img src="(.*?)"/msi', $m, 1);
- $poster = preg_replace('/_V1.*?.jpg/ms', "_V1._SY200.jpg", $poster);
- $url = "http://www.imdb.com/title/${id}/";
- $top250[] = array("id"=>$id, "rank"=>$rank, "title"=>$title, "year"=>$year, "rating"=>$rating, "poster"=>$poster, "url"=>$url);
- $rank++;
- }
- return $top250;
- }
- //************************[ Extra Functions ]******************************
- // Movie title search on Google, Bing or Ask. If search fails, return FALSE.
- private function getIMDbIdFromSearch($title, $engine = "google"){
- switch ($engine) {
- case "google": $nextEngine = "bing"; break;
- case "bing": $nextEngine = "ask"; break;
- case "ask": $nextEngine = FALSE; break;
- case FALSE: return NULL;
- default: return NULL;
- }
- $url = "http://www.${engine}.com/search?q=imdb+" . rawurlencode($title);
- $ids = $this->match_all('/<a.*?href="http:\/\/www.imdb.com\/title\/(tt\d+).*?".*?>.*?<\/a>/ms', $this->geturl($url), 1);
- if (!isset($ids[0]) || empty($ids[0])) //if search failed
- return $this->getIMDbIdFromSearch($title, $nextEngine); //move to next search engine
- else
- return $ids[0]; //return first IMDb result
- }
-
- private function geturl($url){
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
- $ip=rand(0,255).'.'.rand(0,255).'.'.rand(0,255).'.'.rand(0,255);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array("REMOTE_ADDR: $ip", "HTTP_X_FORWARDED_FOR: $ip"));
- curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/".rand(3,5).".".rand(0,3)." (Windows NT ".rand(3,5).".".rand(0,2)."; rv:2.0.1) Gecko/20100101 Firefox/".rand(3,5).".0.1");
- $html = curl_exec($ch);
- curl_close($ch);
- return $html;
- }
- private function match_all_key_value($regex, $str, $keyIndex = 1, $valueIndex = 2){
- $arr = array();
- preg_match_all($regex, $str, $matches, PREG_SET_ORDER);
- foreach($matches as $m){
- $arr[$m[$keyIndex]] = $m[$valueIndex];
- }
- return $arr;
- }
-
- private function match_all($regex, $str, $i = 0){
- if(preg_match_all($regex, $str, $matches) === false)
- return false;
- else
- return $matches[$i];
- }
- private function match($regex, $str, $i = 0){
- if(preg_match($regex, $str, $match) == 1)
- return $match[$i];
- else
- return false;
- }
- }
- ?>
- <?PHP
- include_once("includes/functions.inc.php");
- $imdb = new Imdb();
-
- $file = cleanWAMP(getDataFileName("$_GET[raw]"));
- $cleanTitle = clean_title($file);
-
- if (file_exists($dataFolder.$cleanTitle) !== false)
- exit(); //error
-
- $handle = fopen($dataFolder.$file, "r");
-
- if (isset($_GET['tab']) && $_GET['tab'] == "photos")
- $movieArray = $imdb->getMovieInfo($cleanTitle, 3);
- else if ($settings_data['imdb_mode'] == 'false')
- $movieArray = arrayFile("$dataFolder/$file");
- else
- $movieArray = $imdb->getMovieInfo($cleanTitle, 2);
-
- if ($handle){
- $videodata = explode("\n", file_get_contents("$dataFolder/$file"));
- $toggle = cleanWAMP($videodata[2]);
- }
- ?>
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title><?PHP echo $template->videoTitle($movieArray['title'],$movieArray['year']); ?></title>
- <?PHP $template->headerFiles(false); ?>
- </head>
- <body>
- <div id="dropmenu1" class="dropmenudiv">
- <?PHP $template->printGenres(); ?>
- </div>
-
- <table width="1200" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-left:auto;margin-right:auto;">
- <tr>
- <td style="color:white;"><center><div style="padding:20px 0px 10px 0px;"><div class="webtitle"><?PHP echo $settings_data['title']; ?></div></div></center></td>
- </tr>
- </table>
- <table width="1200" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-left:auto;margin-right:auto;">
- <tr>
- <td class="main_tab_table"><a href="index.php" class="tab_link"><div class="main_tab_selected"><?PHP echo $lang_template_library; ?></div></a><a href="admin.php" class="uptab_link_deselected"><div class="main_tab"><?PHP echo $lang_template_admin; ?></div></a>
- <div class="search_div">
- <?PHP $template->desktopSearch(); ?>
- </div></td>
- </tr>
- </table>
-
- <table width="1200" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-left:auto;margin-right:auto;">
- <tr>
- <td class="dropmenu_container"><a class="tab_link"><div style="float:left;padding:8px 50px 8px 50px;" id="chromemenu">
- <a style="cursor:pointer;" rel="dropmenu1" class="tab_link"><?PHP echo $lang_template_genres; ?></a>
- </div></a><a href="./" class="tab_link"><div style="float:left;padding:8px 20px 8px 20px;"><?PHP echo $lang_template_newVids; ?></div></a></td>
- </tr>
- </table>
-
- <table width="1200" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#E1E1E1" style="margin-left:auto;margin-right:auto;background-color:#E1E1E1;padding-bottom:20px;">
- <?PHP
- if ($movieArray['title_id'] != "" && checkPosterExists($movieArray['title_id']) == false)
- file_put_contents('pics/'.$movieArray['title_id'].'.jpg', file_get_contents($movieArray['poster']));
- ?>
- <tr>
- <td bgcolor="#FCFCFC">
- <div style="padding:50px;float:left;"><img src="<?PHP echo $template->printPoster($movieArray['title_id']); ?>" width="214" height="317"/><div style="text-align:center;padding-top:10px;"><div align="center"><div class="classification"><div class="cover"></div><div class="progress" style="width: <?PHP echo $movieArray['rating'] * 10; ?>%;"></div></div></div>
- </div></div>
-
- <div style="padding:50px;float:left;width:<?PHP if($toggle == "movie") { ?>500px<?PHP } else { ?>700px<?PHP } ?>;">
- <h2><?PHP echo $movieArray['title']; ?></h2>
- <div style="float:left;"><?PHP echo $movieArray['year']; ?></div><div style="float:left;padding-left:40px;"><?PHP if ($movieArray['rating'] != ''){ echo strtoupper(str_replace('_', ' ', $movieArray['rating'])); } else { ?>Unrated<?PHP } ?></div><div style="float:left;padding-left:40px;"><?PHP echo $movieArray['runtime']; ?> minutes</div><br /><br />
-
- <?PHP echo $movieArray['plot']; ?><br /><br />
- <table width="550" border="0" cellspacing="0" cellpadding="5">
- <tr>
- <td width="66" align="right" valign="top"><strong><?PHP echo $lang_info_cast; ?>:</strong></td>
- <td width="464"><?PHP $cast_count = count($movieArray['cast']); $i = 0; foreach ($movieArray['cast'] as $cast) { $i++; echo $cast; if ($i >= $cast_count) { continue; } else { echo ', '; } } ?> <a href="http://www.imdb.com/title/<?PHP echo $movieArray['title_id']; ?>/fullcredits#cast" onClick="return popitup('http://www.imdb.com/title/<?PHP echo $movieArray['title_id']; ?>/fullcredits#cast')" style="text-decoration:none;">... more</a></td>
- </tr>
- <?PHP if ($toggle == "movie") { ?>
- <tr>
- <td align="right" valign="top"><strong><?PHP echo $lang_info_director; ?>:</strong></td>
- <td><?PHP $cast_count = count($movieArray['directors']); $i = 0; foreach ($movieArray['directors'] as $cast) { $i++; echo $cast; if ($i >= $cast_count) { continue; } else { echo ', '; } } ?></td>
- </tr>
- <tr>
- <td align="right" valign="top"><strong><?PHP echo $lang_info_writer; ?>:</strong></td>
- <td><?PHP $cast_count = count($movieArray['writers']); $i = 0; foreach ($movieArray['writers'] as $cast) { $i++; echo $cast; if ($i >= $cast_count) { continue; } else { echo ', '; } } ?></td>
- </tr>
- <tr>
- <?PHP } else { ?>
- <tr>
- <td align="right" valign="top"><strong><?PHP echo $lang_info_creators; ?>:</strong></td>
- <td><?PHP echo $movieArray['creators']; ?></td>
- </tr>
- <?PHP } ?>
- <td align="right" valign="top"><strong><?PHP echo $lang_info_genre; ?>:</strong></td>
- <td><?PHP $cast_count = count($movieArray['genres']); $i = 0; foreach ($movieArray['genres'] as $cast) { $i++; echo $cast; if ($i >= $cast_count) { continue; } else { echo ', '; } } ?></td>
-
- </tr>
- </table>
- </div>
-
- <?PHP if ($toggle == "movie") { ?>
- <div style="padding:20px;float:left;width:150px;padding-top:50px;"><a href="play.php?video=<?PHP echo urlencode($_GET['raw']); ?>" title="Play Movie" style="text-decoration:none;" onClick="return playvideo('play.php?video=<?PHP echo urlencode($_GET['raw']); ?>')" ><div style="font-size:20px;background-color:#003366;width:100%;height:28px;color:white;text-align:center;cursor:pointer;">PLAY</div></a><br>
- </div>
- <?PHP } ?>
-
- <div style="clear:both;"> </div>
- <div style="float:left;width:300px;font-size:16px;padding:0px 20px 20px 20px;"><b><?PHP echo $lang_info_details; ?></b><hr />
- <table width="100%" border="0" cellspacing="0" cellpadding="5">
- <tr>
- <td width="126" align="right" valign="top"><strong><?PHP echo $lang_info_release; ?>:</strong></td>
- <td width="109"><?PHP if ($movieArray['release_date'] != '') { echo $movieArray['release_date']; } else { echo 'N/A'; } ?></td>
- </tr>
- <tr>
- <td align="right" valign="top"><strong><?PHP echo $lang_info_oscars; ?>:</strong></td>
- <td><?PHP if ($movieArray['oscars'] != '') { echo $movieArray['oscars']; } else { if (isset($movieArray['oscars2']) && $movieArray['oscars2'] != '') { echo 'Nominated '.$movieArray['oscars2']; } else { echo 'N/A'; } } ?></td>
- </tr>
- <tr>
- <td align="right" valign="top"><strong><?PHP echo $lang_info_random; ?>:</strong></td>
- <td><?PHP if($movieArray['tagline']!=''){ echo $movieArray['tagline']; } else { echo 'N/A'; } ?></td>
- </tr>
- <tr>
- <td align="right" valign="top"> </td>
- <td> </td>
- </tr>
- </table>
- </div>
-
- <div style="float:left;width:830px;border:thin #CCC solid;background-color:white;border-bottom:white;background-color:#CCCCCC;">
-
- <?PHP if ($toggle == "movie"){ ?>
- <a href="info.php?tab=trailers&name=<?PHP echo urlencode("$_GET[name]"); ?>&raw=<?PHP echo urlencode("$_GET[raw]"); ?>" title="Movie Trailers" alt="Movie Trailers" class="tab_link">
- <div <?PHP if (isset($_GET['tab'])){ if (stristr($_GET['tab'],'trailers')){ ?>class="selected_tab"<?PHP } else { ?>class="deselected_tab"<?PHP } } else { ?>class="selected_tab"<?PHP } ?>>Trailer</div></a>
- <?PHP } else { ?>
- <a href="info.php?tab=episodes&name=<?PHP echo urlencode("$_GET[name]"); ?>&raw=<?PHP echo urlencode("$_GET[raw]"); ?>" title="Movie Trailers" alt="Movie Trailers" class="tab_link">
- <div <?PHP if (isset($_GET['tab'])){ if (stristr($_GET['tab'],'episodes')){ ?>class="selected_tab"<?PHP } else { ?>class="deselected_tab"<?PHP } } else { ?>class="selected_tab"<?PHP } ?>>Episodes</div></a>
- <?PHP } ?>
-
- <a href="info.php?tab=photos&name=<?PHP echo urlencode("$_GET[name]"); ?>&raw=<?PHP echo urlencode("$_GET[raw]"); ?>" title="Movie Photos & Screenshots" alt="Movie Photos & Screenshots" class="tab_link">
-
- <div <?PHP if (isset($_GET['tab'])){ if (stristr($_GET['tab'],'photos')){ ?>class="selected_tab"<?PHP } else { ?>class="deselected_tab"<?PHP } } else { ?>class="deselected_tab"<?PHP } ?>>Photos</div></a>
-
-
- <div style="float:left;width:830px;border:thin #CCC solid;padding:10px;background-color:white;border-top:white;">
-
- <?PHP if ($toggle == "movie"){ ?>
- <?PHP if (isset($_GET['tab'])){ if (stristr($_GET['tab'],'trailers')){ echo '<div align="center"><iframe width="680" height="520" src="includes/trailer.php?url=http://www.imdb.com/video/imdb/'.$movieArray['trailer'].'/player"></iframe></div>'; } } else { echo '<div align="center"><iframe width="680" height="520" src="includes/trailer.php?url=http://www.imdb.com/video/imdb/'.$movieArray['trailer'].'/player"></iframe></div>'; }
-
- } else {
-
- if (isset($_GET['tab'])){ if (stristr($_GET['tab'],'episodes')){ echo $template->episodeLists(); } } else { echo $template->episodeLists(); }
-
- }?>
-
- <?PHP if (isset($_GET['tab'])){ if (stristr($_GET['tab'],'photos')){
- echo $imdb->createPhotos($movieArray['media_images'],$settings_data['info_photos']);
- } } ?>
-
- <?PHP if (isset($_GET['tab'])){ if (stristr($_GET['tab'],'reviews')){
- foreach ($imdb->getReviews($movieArray['title_id']) as $all_reviews)
- echo $all_reviews.'<hr>';
- } } ?>
-
- </div>
- </td>
- </tr>
- </table>
- <table width="1200" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-left:auto;margin-right:auto;">
- <tr>
- <td>
- <?PHP $template->footer(); ?>
- </td>
- </tr>
- </table>
-
- </body>
- </html>
når jeg vil vise skriver den "Fatal error: Call to undefined method Imdb::createPhotos() in D:\My IMDB Movies\www\info.php on line 156"