28 if (preg_match(
"#/\\.#", $this->path))
31 $documentRoot = static::getDocumentRoot($this->siteId);
33 if (mb_substr($this->path, 0, mb_strlen($documentRoot)) === $documentRoot)
35 $relativePath = mb_substr($this->path, mb_strlen($documentRoot));
36 $relativePath = ltrim($relativePath,
"/");
37 if (($pos = mb_strpos($relativePath,
"/")) !==
false)
38 $s = mb_substr($relativePath, 0, $pos);
41 $s = mb_strtolower(rtrim($s,
"."));
45 Main\
Config\Option::get(
"main",
"upload_dir",
"upload") => 1,
47 "urlrewrite.php" => 1,