settings: cinemas picker

This commit is contained in:
franzz committed 2015-08-20 23:00:24 +02:00
1 parent 6a97fba1de
commit 6da97fb569
8 files changed
+201 -32

No files matched your search

+2 -2
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);