X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;ds=sidebyside;f=web%2Fapp%2Fenv%2Fmw_env.php;fp=web%2Fapp%2Fenv%2Fmw_env.php;h=0000000000000000000000000000000000000000;hb=36ed114046cbe3d72a3589230e9f306a54fcc79d;hp=1b8aaf16283639dd89c82e502c1a62561fadb777;hpb=281c96e95451269f2614684b8de5be25862c8374;p=mtweb diff --git a/web/app/env/mw_env.php b/web/app/env/mw_env.php deleted file mode 100644 index 1b8aaf1..0000000 --- a/web/app/env/mw_env.php +++ /dev/null @@ -1,34 +0,0 @@ -_app_file($file, $PRIORITE); - return $app_file ? true : false; - } - - function app_file($file, $PRIORITE = "ASC"){ - $app_file = $this->_app_file($file, $PRIORITE); - return $app_file ? $app_file : $file; - } - - function _app_file($file, $PRIORITE = "ASC"){ - $app_file = false; - if($PRIORITE == "ASC" && file_exists($this->path("app").$file)) return $this->path("app").$file; - if(($plugins = $this->plugins($PRIORITE)) !== false){ - foreach($plugins as $plugin_name => $plugin){ - if($file && $plugin["installed"] && $plugin["enabled"] && file_exists($this->path("plugins").$plugin_name."/app/".$file)){ - $app_file = $this->path("plugins").$plugin_name."/app/".$file; - break; - } - } - if($PRIORITE == "DESC" && !$app_file){ - if(file_exists($this->path("app").$file)) $app_file = $this->path("app").$file; - } - } - return $app_file; - } - - } - -?> \ No newline at end of file