예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
}
/*
 * 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;
예제 #4
0
 public static function get_directory_tree($directory, $pattern = null)
 {
     $directory = self::GetRootUrl($directory);
     $dir = new _Directory();
     return $dir->FindDataDirectory($directory, $pattern);
 }