</style> </head> <body> <form> Enter Image Keyword: <input type="text" name="keyword" autocomplete="off"> <button type="submit" class="btn btn-warning">Get Image</button> <i>Created with love By Akshat Joshi!</i> </form> <div class="well"> <?php include 'aboutimage.php'; if (isset($_GET["keyword"]) && strtolower($_GET["keyword"]) != "akshat" && strtolower($_GET["keyword"]) != "akshat joshi") { echo '<img src="cover.php?key=' . $_GET["keyword"] . '">'; $data = wikidefinition($_GET["keyword"]); //var_dump( wikidefinition('bangladesh') ) ; //displays the array content if ($data[1] == "" || $data[1] == ucfirst($_GET["keyword"]) . " may refer to") { echo "No info about image found"; } else { echo "About Image: " . $data[1] . "<br/>"; } } elseif (strtolower($_GET["keyword"]) == "akshat" || strtolower($_GET["keyword"]) == "akshat joshi") { echo "<img src='http://kidkonnect.esy.es/yt/upload/20130729_040303.jpg' height='25%' width='25%'> About Image: Akshat Joshi is a computer programmer in pune"; } else { echo 'Enter some stuff and see the magic!!!'; } ?> </div> </body> <center><h1>Search from over 100000000000 images in the world!</h1></center>
function detailMovie() { $movieid = base64_decode($_GET['mid']); $actornm = base64_decode($_GET['nm']); $actorpi = base64_decode($_GET['pi']); if ($movieid == "" || $actornm == "") { die; } $json = file_get_contents('http://api.themoviedb.org/3/movie/' . $movieid . '?query=&api_key=22e8595de8c06be02009d7efb076399e'); $movie = json_decode($json); //Get the trailers-videos for the movie $json = file_get_contents('http://api.themoviedb.org/3/movie/' . $movie->id . '/videos?query=&api_key=22e8595de8c06be02009d7efb076399e'); $vidmovie = json_decode($json); $vidlinks = ""; foreach ($vidmovie->results as $video) { $vidlinks .= (strlen($vidlinks) > 0 ? ', ' : '') . "<a href='http://www.youtube.com/watch?v=" . $video->key . "' class='fancybox-media' > " . $video->name . "</a>"; } $actorbi = wikidefinition(str_replace(" ", "+", $actornm)); $tablemovied = ""; $tablemovied .= "<table><tr><td>"; if ($actorpi != "") { $srcimg = 'https://image.tmdb.org/t/p/w92/' . $actorpi; } else { $srcimg = 'images/no-profile-w92.jpg'; } $tablemovied .= "<img src='" . $srcimg . "' alt='' class='img-rounded'/>"; $tablemovied .= "</td><td> </td><td>"; $tablemovied .= "<table><tr><td>" . $actorbi[0] . "</td></tr>"; $tablemovied .= "<tr><td>" . $actorbi[2][0] . "</td></tr>"; $tablemovied .= "<tr><td><a href='" . $actorbi[3][0] . "' target='_blank' >" . $actorbi[3][0] . "</a>"; $tablemovied .= "</td></tr></table></td></tr></table></div>"; $tablemovied .= "<table width='80%' align='center' class='table table-hover result'>"; $tablemovied .= "<tr><td width='15%'>Poster</td><td width='15%'>Title</td><td width='40%'>Overview</td><td width='30%'>Videos</td></tr>"; if ($movie->poster_path != '') { $srcimage = "https://image.tmdb.org/t/p/w92/" . $movie->poster_path; } else { $srcimage = "images/no_movie_poster.jpg"; } $tablemovied .= "<tr><td><img src='" . $srcimage . "' /></td>"; $tablemovied .= "<td>" . $movie->original_title . "</td>"; $tablemovied .= "<td>" . $movie->overview . "</td>"; $tablemovied .= "<td>" . $vidlinks . "</td></tr></table>"; $tablemovied = str_replace('"', '´', $tablemovied); return $tablemovied; }