- while ( <$filehandle> ) {
- print UPLOADFILE;
- }
- close (UPLOADFILE);
-
- #Open file to check if dimensions are within rang
- open (PNG , "<$logopath/logo.png");
- local $/;
- my $PNG1=<PNG>;
- close(PNG);
- my ($width,$height)=&pngsize($PNG1);
- if($width > 1920 || $height > 800 || $width < 1280 || $height < 400){
- $errormessage.="$Lang::tr{'Captive invalid logosize'} <br>Filedimensions width: $width height: $height ";
- unlink("$logopath/logo.png");