private function VerifyPlugin() { $zip = new \ZipArchive(); if (!$zip->open($this->path_plugin)) { return null; } $zip->extractTo($this->path); $zip->close(); $explode = explode(".zip", $this->path_plugin); $this->path = $explode[0]; $data = parent::FindDataDirectory($this->path); return $data; }
public static function GetIcon_extension($dir, $ext, $fname = null) { $directory = new _Directory(); $datafiles = $directory->FindDataDirectory($dir); foreach ($datafiles as $key => $value) { if ($fname == $value['filename'] && $fname != null) { foreach (self::$extensions as $k => $v) { if ($k === $ext) { return $v; } } } else { foreach (self::$extensions as $k => $v) { if ($k === $ext) { return $v; } } } } return false; }
} /* * Helper * * **/ $Dir_ = new _Directory(); $path_controller = $Dir_->FindDataDirectory($GLOBAL_PATH . "/Content/Helper/"); foreach ($path_controller as $k => $val) { require $val['root'] . '/' . $val['filename']; } /* * Library * * **/ $Dir_ = new _Directory(); $path_controller = $Dir_->FindDataDirectory($GLOBAL_PATH . "/Content/Library/"); foreach ($path_controller as $k => $val) { require $val['root'] . '/' . $val['filename']; } /** * View del sistema */ require $GLOBAL_PATH . '/Content/View/ViewClass.php'; /** * ACA SE AGREGARAN LOS SCRIPTS FUERA DEL NUCLEO DEL SISTEMA ... * **/ require $GLOBAL_PATH . '/Content/Web/admin/ViewPage/ViewHeader.php'; if (!function_exists("set_dependencies")) { function set_dependencies(array $lib) { global $GLOBAL_PATH;
public static function get_directory_tree($directory, $pattern = null) { $directory = self::GetRootUrl($directory); $dir = new _Directory(); return $dir->FindDataDirectory($directory, $pattern); }