www.gusucode.com > Mao10CMS PHP开源建站系统 v3.5.3源码程序 > Mao10CMS_v3.5.3/Mao10CMS_v3.5.3/Engine/Library/Vendor/TemplateLite/internal/template.build_dir.php
<?php /** * Template Lite template_build_dir template internal module * * Type: template * Name: template_build_dir */ function template_build_dir($dir, $id, &$object) { $_args = explode('|', $id); if (count($_args) == 1 && empty($_args[0])) { return $object->_get_dir($dir); } $_result = $object->_get_dir($dir); foreach($_args as $value) { $_result .= $value.DIRECTORY_SEPARATOR; if (!is_dir($_result)) { @mkdir($_result, 0777); } } return $_result; } ?>