22 include dirname(dirname(dirname(__DIR__))) .
'/mainfile.php';
48 $image->preserve_aspect_ratio =
true;
49 $image->enlarge_smaller_images =
false;
53 header(
"HTTP/1.1 301 Moved Permanently");
56 header(
"HTTP/1.0 404 Not Found");
61 echo
'Source file could not be found!';
64 echo
'Source file is not readable!';
67 echo
'Could not write target file!';
70 echo
'Unsupported source file format!';
73 echo
'Unsupported target file format!';
76 echo
'GD library version does not support target file format!';
79 echo
'GD library is not installed!';
82 echo
'"chmod" command is disabled via configuration!';
if($imgWidth==0 &&$imgHeight==0) $helper