settings: cinemas picker

This commit is contained in:
2015-08-20 23:00:24 +02:00
parent 6a97fba1de
commit 6da97fb569
8 changed files with 201 additions and 32 deletions

View File

@@ -30,9 +30,9 @@ function setPageMime($sType='html')
if($sType!='html' && array_key_exists($sType, $asMainTypes)) header('Content-type: '.$asMainTypes[$sType].'/'.$sType);
}
function getTrimImage($iFilmId, $sinPath, $sImageExt)
function getTrimImage($iFilmId, $sSize, $sinPath, $sImageExt)
{
$sOutPath = 'images/'.$iFilmId.'.'.$sImageExt;
$sOutPath = 'images/'.$iFilmId.'_'.$sSize.'.'.$sImageExt;
if(!file_exists($sOutPath))
{
$oImage = call_user_func('imagecreatefrom'.$sImageExt, $sinPath);