[Phpcms-plugins-cvs] onlineEditor4phpCMS/include/pclzip pclzip-trace.lib.php,NONE,1.1
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2004-05-21 21:13:13
|
Update of /cvsroot/phpcms-plugins/onlineEditor4phpCMS/include/pclzip In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19385/include/pclzip Added Files: pclzip-trace.lib.php Log Message: cleaned for release --- NEW FILE: pclzip-trace.lib.php --- <?php // -------------------------------------------------------------------------------- // PhpConcept Library - Zip Module 2.1 // -------------------------------------------------------------------------------- // License GNU/LGPL - Vincent Blavet - December 2003 // http://www.phpconcept.net // -------------------------------------------------------------------------------- // // Presentation : // PclZip is a PHP library that manage ZIP archives. // So far tests show that archives generated by PclZip are readable by // WinZip application and other tools. // // Description : // See readme.txt and http://www.phpconcept.net // // Warning : // This library and the associated files are non commercial, non professional // work. [...4932 lines suppressed...] // Return Values : // The path translated. // -------------------------------------------------------------------------------- function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true) { if (stristr(php_uname(), 'windows')) { // ----- Look for potential disk letter if (($p_remove_disk_letter) && (($v_position = strpos($p_path, ':')) != false)) { $p_path = substr($p_path, $v_position+1); } // ----- Change potential windows directory separator if ((strpos($p_path, '\\') > 0) || (substr($p_path, 0,1) == '\\')) { $p_path = strtr($p_path, '\\', '/'); } } return $p_path; } // -------------------------------------------------------------------------------- ?> |