Changeset 702 for trunk/forum/includes/functions_convert.php
- Timestamp:
- Mar 31, 2010, 6:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/includes/functions_convert.php
r400 r702 3 3 * 4 4 * @package install 5 * @version $Id : functions_convert.php 8876 2008-09-18 14:26:56Z acydburn$5 * @version $Id$ 6 6 * @copyright (c) 2006 phpBB Group 7 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License … … 206 206 /** 207 207 * Generate the email hash stored in the users table 208 * 209 * Note: Deprecated, calls should directly go to phpbb_email_hash() 208 210 */ 209 211 function gen_email_hash($email) 210 212 { 211 return (crc32(strtolower($email)) . strlen($email));213 return phpbb_email_hash($email); 212 214 } 213 215 … … 552 554 553 555 // copy file will prepend $phpBB_root_path 554 $target = $config[$config_var] . '/' . basename(($use_target === false) ? $source : $use_target);556 $target = $config[$config_var] . '/' . utf8_basename(($use_target === false) ? $source : $use_target); 555 557 556 558 if (!empty($convert->convertor[$config_var]) && strpos($source, $convert->convertor[$config_var]) !== 0) … … 568 570 if ($result['copied']) 569 571 { 570 $result['target'] = basename($target);572 $result['target'] = utf8_basename($target); 571 573 } 572 574 else 573 575 { 574 $result['target'] = ($use_target !== false) ? $result['orig_source'] : basename($target);576 $result['target'] = ($use_target !== false) ? $result['orig_source'] : utf8_basename($target); 575 577 } 576 578 … … 601 603 $thumb_dir = $convert->convertor['thumbnails'][0]; 602 604 $thumb_prefix = $convert->convertor['thumbnails'][1]; 603 $thumb_source = $thumb_dir . $thumb_prefix . basename($result['source']);605 $thumb_source = $thumb_dir . $thumb_prefix . utf8_basename($result['source']); 604 606 605 607 if (strpos($thumb_source, $convert->convertor['upload_path']) !== 0) … … 1233 1235 } 1234 1236 1237 if (isset($convert->config_schema['array_name'])) 1238 { 1239 unset($convert->config_schema['array_name']); 1240 } 1241 1235 1242 $convert_config = extract_variables_from_file($filename); 1236 1243 if (!empty($convert->config_schema['array_name'])) … … 1265 1272 1266 1273 $convert_config = get_config(); 1274 1267 1275 foreach ($schema['settings'] as $config_name => $src) 1268 1276 { … … 1275 1283 else 1276 1284 { 1277 $config_value = (isset($convert_config[$src])) ? $convert_config[$src] : ''; 1278 } 1285 if ($schema['table_format'] != 'file' || empty($schema['array_name'])) 1286 { 1287 $config_value = (isset($convert_config[$src])) ? $convert_config[$src] : ''; 1288 } 1289 else if (!empty($schema['array_name'])) 1290 { 1291 $src_ary = $schema['array_name']; 1292 $config_value = (isset($convert_config[$src_ary][$src])) ? $convert_config[$src_ary][$src] : ''; 1293 } 1294 } 1279 1295 1280 1296 if ($config_value !== '') … … 1699 1715 'GLOBAL_MODERATORS' => array('00AA00', 1, 0), 1700 1716 'ADMINISTRATORS' => array('AA0000', 1, 1), 1701 'BOTS' => array('9E8DA7', 0, 0) 1717 'BOTS' => array('9E8DA7', 0, 0), 1718 'NEWLY_REGISTERED' => array('', 0, 0), 1702 1719 ); 1703 1720 … … 2257 2274 if (substr($trg, -1) == '/') 2258 2275 { 2259 $trg .= basename($src);2276 $trg .= utf8_basename($src); 2260 2277 } 2261 2278 $src_path = relative_base($src, $source_relative_path, __LINE__, __FILE__);
Note:
See TracChangeset
for help on using the changeset viewer.