static function get_file_name($split_name) { list($prefix, $sub_path, $exec_file) = self::ifile_splice($split_name); $prefix_file = null; $file_addr = parent::get_file_name($split_name); if (!preg_grep("/^{$prefix}\$/", self::$core_prefix)) { if (!$file_addr) { $prefix_file = \lib\router::get_repository(); $prefix_file = preg_replace("#\\/[^\\/]+\\/?\$#", '', $prefix_file); if (file_exists(addons . $prefix . '/' . $sub_path . $exec_file)) { $file_addr = addons . $prefix . '/' . $sub_path . $exec_file; } } } return $file_addr; }
/** * [get_file_name description] * @param [type] $split_name [description] * @return [type] [description] */ static function get_file_name($split_name) { list($prefix, $sub_path, $exec_file) = self::ifile_splice($split_name); $prefix_file = null; if (preg_grep("/^{$prefix}\$/", self::$core_prefix)) { $file_addr = self::icheck_file($prefix, $sub_path, $exec_file); return $file_addr; } $prefix_file = \lib\router::get_repository(); $prefix_file = preg_replace("#\\/[^\\/]+\\/?\$#", '', $prefix_file); $file_addr = $prefix_file . '/' . $prefix . '/' . $sub_path . $exec_file; if (!file_exists($file_addr)) { $file_addr = false; } return $file_addr; }