|
@@ 673-676 (lines=4) @@
|
| 670 |
|
$limit_size = (float) trim( str_ireplace( 'MB', '', $limit_size ) ); |
| 671 |
|
$limit_size = $limit_size * 1025 * 1025; // convert to KB to B |
| 672 |
|
} |
| 673 |
|
elseif ( false !== stripos( $limit_size, 'KB' ) ) { |
| 674 |
|
$limit_size = (float) trim( str_ireplace( 'KB', '', $limit_size ) ); |
| 675 |
|
$limit_size = $limit_size * 1025 * 1025; // convert to B |
| 676 |
|
} |
| 677 |
|
elseif ( false !== stripos( $limit_size, 'GB' ) ) { |
| 678 |
|
$limit_size = (float) trim( str_ireplace( 'GB', '', $limit_size ) ); |
| 679 |
|
$limit_size = $limit_size * 1025 * 1025 * 1025; // convert to MB to KB to B |
|
@@ 677-680 (lines=4) @@
|
| 674 |
|
$limit_size = (float) trim( str_ireplace( 'KB', '', $limit_size ) ); |
| 675 |
|
$limit_size = $limit_size * 1025 * 1025; // convert to B |
| 676 |
|
} |
| 677 |
|
elseif ( false !== stripos( $limit_size, 'GB' ) ) { |
| 678 |
|
$limit_size = (float) trim( str_ireplace( 'GB', '', $limit_size ) ); |
| 679 |
|
$limit_size = $limit_size * 1025 * 1025 * 1025; // convert to MB to KB to B |
| 680 |
|
} |
| 681 |
|
elseif ( false !== stripos( $limit_size, 'B' ) ) |
| 682 |
|
$limit_size = (float) trim( str_ireplace( 'B', '', $limit_size ) ); |
| 683 |
|
else |