Changeset 1935059
- Timestamp:
- 09/03/2018 03:14:09 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
website-backups/trunk/libs/classes/class-erowd_pclzip.php
r1929434 r1935059 1457 1457 1458 1458 // ----- Get the value 1459 $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE);1459 $v_result_list[$p_options_list[$i]] = ERO_PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE); 1460 1460 $i++; 1461 1461 break; … … 1524 1524 if ( is_string($p_options_list[$i+1]) 1525 1525 && ($p_options_list[$i+1] != '')) { 1526 $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE);1526 $v_result_list[$p_options_list[$i]] = ERO_PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE); 1527 1527 $i++; 1528 1528 } … … 2011 2011 2012 2012 // ----- Reduce the filename 2013 $v_descr['filename'] = PclZipUtilTranslateWinPath($v_descr['filename'], false);2013 $v_descr['filename'] = ERO_PclZipUtilTranslateWinPath($v_descr['filename'], false); 2014 2014 $v_descr['filename'] = PclZipUtilPathReduction($v_descr['filename']); 2015 2015 … … 2478 2478 // ----- Format the filename 2479 2479 $p_filedescr_list[$j]['filename'] 2480 = PclZipUtilTranslateWinPath($p_filedescr_list[$j]['filename'], false);2480 = ERO_PclZipUtilTranslateWinPath($p_filedescr_list[$j]['filename'], false); 2481 2481 2482 2482 … … 2942 2942 if (isset($p_filedescr['new_full_name'])) { 2943 2943 // ----- Remove drive letter if any 2944 $v_stored_filename = PclZipUtilTranslateWinPath($p_filedescr['new_full_name']);2944 $v_stored_filename = ERO_PclZipUtilTranslateWinPath($p_filedescr['new_full_name']); 2945 2945 } 2946 2946 … … 2999 2999 3000 3000 // ----- Remove drive letter if any 3001 $v_stored_filename = PclZipUtilTranslateWinPath($v_stored_filename);3001 $v_stored_filename = ERO_PclZipUtilTranslateWinPath($v_stored_filename); 3002 3002 3003 3003 // ----- Look for path to add … … 5487 5487 if ( ($p_dir == '.') 5488 5488 || ((strlen($p_dir) >=2) && (substr($p_dir, 0, 2) == './'))) { 5489 $p_dir = PclZipUtilTranslateWinPath(getcwd(), FALSE).'/'.substr($p_dir, 1);5489 $p_dir = ERO_PclZipUtilTranslateWinPath(getcwd(), FALSE).'/'.substr($p_dir, 1); 5490 5490 } 5491 5491 if ( ($p_path == '.') 5492 5492 || ((strlen($p_path) >=2) && (substr($p_path, 0, 2) == './'))) { 5493 $p_path = PclZipUtilTranslateWinPath(getcwd(), FALSE).'/'.substr($p_path, 1);5493 $p_path = ERO_PclZipUtilTranslateWinPath(getcwd(), FALSE).'/'.substr($p_path, 1); 5494 5494 } 5495 5495 … … 5670 5670 5671 5671 // -------------------------------------------------------------------------------- 5672 // Function : PclZipUtilTranslateWinPath()5672 // Function : ERO_PclZipUtilTranslateWinPath() 5673 5673 // Description : 5674 5674 // Translate windows path by replacing '\' by '/' and optionally removing … … 5680 5680 // The path translated. 5681 5681 // -------------------------------------------------------------------------------- 5682 function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true)5682 function ERO_PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true) 5683 5683 { 5684 5684 if (stristr(php_uname(), 'windows')) {
Note: See TracChangeset
for help on using the changeset viewer.