"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/inc/functions_image.php" between
mybb_1819.zip and mybb_1820.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

functions_image.php  (mybb_1819):functions_image.php  (mybb_1820)
skipping to change at line 181 skipping to change at line 181
return false; return false;
} }
$memory_limit = @ini_get("memory_limit"); $memory_limit = @ini_get("memory_limit");
if(!$memory_limit || $memory_limit == -1) if(!$memory_limit || $memory_limit == -1)
{ {
return false; return false;
} }
$limit = preg_match("#^([0-9]+)\s?([kmg])b?$#i", trim(my_strtolower($memo ry_limit)), $matches); $limit = preg_match("#^([0-9]+)\s?([kmg])b?$#i", trim(my_strtolower($memo ry_limit)), $matches);
$memory_limit = 0; $memory_limit = (int)$memory_limit;
if($matches[1] && $matches[2]) if($matches[1] && $matches[2])
{ {
switch($matches[2]) switch($matches[2])
{ {
case "k": case "k":
$memory_limit = $matches[1] * 1024; $memory_limit = $matches[1] * 1024;
break; break;
case "m": case "m":
$memory_limit = $matches[1] * 1048576; $memory_limit = $matches[1] * 1048576;
break; break;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)