<?php

$adres = $_REQUEST['imdb'];
$adres = ereg_replace("www", "m", $adres);
$adres = ereg_replace("http://imdb", "http://m.imdb", $adres);
//echo "$adres <br />";?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<?php
$url=file_get_contents($adres);
preg_match_all('#<span class="mobile-sprite yellow-star"></span><span class="inline-block text-left vertically-middle">(.*?)<small class="text-muted">/(.*?)<br />(.*?)</small></span>#si', $url, $imdb);
?>
<head>
<meta charset="utf-8">
<meta name="author" content="yilmaz" />
<meta name="editor" content="bu imdb puan çekme, yilmaz tarafindan yapilmistir, bedavadır" />
<title>imdb puanı <?=$imdb[1][0];?></title>	
<style type="text/css">
.imdb {
	position:absolute;
	font-size:10px;
	line-height:20px;
	margin-top: 0px;
	padding-top:0px;
	z-index: 5;
	text-align:center;
}
.imdb em {
	background: transparent url(img/imdbpan.png) no-repeat 0 0;
	padding-top:-2px;
	font-weight:bold;
	font-style:normal;
	color:#FFA300;
	display:inline-block;
	width: 43px;
	height:20px;
}

</style>
</head>
<body style="margin:0px; top:0px;background:transparent;">
<div class="imdb"><em><font color="#fff"><img src="img/imdb.png" alt="IMDB" />&nbsp;<?=$imdb[1][0];?></font>/10</em></div>
</body>
</html>