update poster service
This commit is contained in:
parent
6198a0732c
commit
cf8e33ec65
6 changed files with 36 additions and 14 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue