DokuWiki

It's better when it's simple

使用者工具

網站工具


側欄

這份翻譯較原始頁面舊,可能已過時。 檢視變更
本頁之翻譯?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy

zh-tw:installer

function utf8_encodeFN($file,$safe=true){

  global $conf;
  if($conf['fnencode'] == 'utf-8') {
   	$file=mb_convert_encoding($file,"CP936","UTF-8");
return $file;}
  if($safe && preg_match('#^[a-zA-Z0-9/_\-\.%]+$#',$file)){
      return $file;
  }
  if($conf['fnencode'] == 'safe'){
      return SafeFN::encode($file);
  }
  $file = urlencode($file);
  $file = str_replace('%2F','/',$file);
  return $file;

}

function utf8_decodeFN($file){

  global $conf;
  if($conf['fnencode'] == 'utf-8') {
   	$file=mb_convert_encoding($file,"UTF-8","CP936");
return $file;}
  if($conf['fnencode'] == 'safe'){
      return SafeFN::decode($file);
  }
  return urldecode($file);

}

zh-tw/installer.txt · 上一次變更: 2014-06-07 18:14 由 2001:4dd0:ff00:8eb9:3434:df96:4755:6fcb