Changeset 1269
- Timestamp:
- 07/14/10 09:50:52 (3 years ago)
- Location:
- trunk/plugins/MootoolsFileManager/mootools-filemanager/Backend
- Files:
-
- 2 modified
-
Assets/getid3/getid3.php (modified) (2 diffs)
-
Upload.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/MootoolsFileManager/mootools-filemanager/Backend/Assets/getid3/getid3.php
r1239 r1269 111 111 // Check memory limit. 112 112 $memory_limit = ini_get('memory_limit'); 113 if ( eregi('([0-9]+)M', $memory_limit, $matches)) {113 if (preg_match('/([0-9]+)M/i', $memory_limit, $matches)) { 114 114 // could be stored as "16M" rather than 16777216 for example 115 115 $memory_limit = $matches[1] * 1048576; … … 1494 1494 $return_string .= str_pad(dechex(ord($string{$i})), 2, '0', STR_PAD_LEFT); 1495 1495 } else { 1496 $return_string .= ' '.( ereg("[\x20-\x7E]", $string{$i}) ? $string{$i} : '€');1496 $return_string .= ' '.(preg_match("/[\x20-\x7E]/", $string{$i}) ? $string{$i} : '€'); 1497 1497 } 1498 1498 if ($spaces) { -
trunk/plugins/MootoolsFileManager/mootools-filemanager/Backend/Upload.php
r1239 r1269 96 96 $mime = null; 97 97 $ini = error_reporting(0); 98 if (function_exists('finfo_open') && $f = finfo_open(FILEINFO_MIME, getenv('MAGIC'))){98 if (function_exists('finfo_open') && $f = @finfo_open(FILEINFO_MIME, getenv('MAGIC'))){ 99 99 $mime = finfo_file($f, $file); 100 100 finfo_close($f);
