update poster service

This commit is contained in:
j 2007-08-04 09:29:43 +00:00
commit cf8e33ec65
6 changed files with 36 additions and 14 deletions

View file

@ -1,10 +1,10 @@
<?php
$id = $_GET['id'];
$data = json_decode(file_get_contents("http://rlx:luxor@0xdb.org/$id/posterData.json"), true);
$data = json_decode(file_get_contents("http://0xdb.org/$id/posterData.json"), true);
$director = utf8_decode($data['director']);
$title = utf8_decode($data['title']);
$url = "http://rlx:luxor@0xdb.org/$id/posterStill.png";
$url = "http://0xdb.org/$id/posterStill.png";
$md5 = md5("$director/$title");
$rPoster = round(hexdec(substr($md5, 0, 2)) / 2);
@ -125,4 +125,4 @@ function formatString($string, $width) {
return explode("\n", wordwrap($string, $width));
}
?>
?>