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,9 +1,9 @@
<?
<?php
include('php/library.php');
if (!$id)
die('poster.php returns a poster for a given IMDb id<br />usage: poster.php?id=ID[&size=SIZE]<br />ID: IMDb id<br />POSTER: small [128px] or large [512px]');
if (!in_array(strlen($id), array(7, 34)))
die ('poster.php returns a poster for a given IMDb id<br />usage: poster.php?id=ID[&size=SIZE]<br />ID: IMDb id<br />SIZE: small [128px] or large [512px]');
returnPoster($id, $size);