Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




pclziputiloptiontext [ WordPress Function ]

pclziputiloptiontext ( $p_option )
Defined at:



No description yet.

Source


<?php
function PclZipUtilOptionText($p_option)
  {

    
$v_list get_defined_constants();
    for (
reset($v_list); $v_key key($v_list); next($v_list)) {
        
$v_prefix substr($v_key010);
        if ((   (
$v_prefix == 'PCLZIP_OPT')
           || (
$v_prefix == 'PCLZIP_CB_')
           || (
$v_prefix == 'PCLZIP_ATT'))
            && (
$v_list[$v_key] == $p_option)) {
        return 
$v_key;
        }
    }

    
$v_result 'Unknown';

    return 
$v_result;
  }
  
// --------------------------------------------------------------------------------

  // --------------------------------------------------------------------------------
  // Function : PclZipUtilTranslateWinPath()
  // Description :
  //   Translate windows path by replacing '\' by '/' and optionally removing
  //   drive letter.
  // Parameters :
  //   $p_path : path to translate.
  //   $p_remove_disk_letter : true | false
  // 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_path0,1) == '\\')) {
          
$p_path strtr($p_path'\\''/');
      }
    }
    return 
$p_path;
  }
  
// --------------------------------------------------------------------------------


?>
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics