1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 04:41:53 +02:00

Code cleanup

This commit is contained in:
Cameron
2020-12-18 19:55:12 -08:00
parent 2b8a3cff60
commit 5b82c292b1
80 changed files with 1888 additions and 1731 deletions

View File

@@ -1162,22 +1162,22 @@ class validatorClass
}
$img = varset($img,$value);
//XXX There should be no size limits - as image sizes are handled by thumb.php
if ($size = getimagesize($img))
{
// if ($size = getimagesize($img))
// {
// echo "Image {$img} size: {$size[0]} x {$size[1]}<br />";
if (isset($defs['maxWidth']) && $size[0] > $defs['maxWidth'])
{ // Image too wide
// if (isset($defs['maxWidth']) && $size[0] > $defs['maxWidth'])
// { // Image too wide
// $errNum = ERR_IMAGE_TOO_WIDE;
}
if (isset($defs['maxHeight']) && $size[1] > $defs['maxHeight'])
{ // Image too high
// }
// if (isset($defs['maxHeight']) && $size[1] > $defs['maxHeight'])
// { // Image too high
// $errNum = ERR_IMAGE_TOO_HIGH;
}
}
else
{
// }
// }
// else
// {
// echo "Image {$img} not found or cannot size - original value {$value}<br />";
}
// }
unset($img);
break;
default :