X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=web%2Fapp%2Fenv%2Fmodules%2Fmw_env_init.php;fp=web%2Fapp%2Fenv%2Fmodules%2Fmw_env_init.php;h=0000000000000000000000000000000000000000;hb=36ed114046cbe3d72a3589230e9f306a54fcc79d;hp=6a555fa8f28bb62f67ca0bb1d2c6c6109a8aa357;hpb=281c96e95451269f2614684b8de5be25862c8374;p=mtweb diff --git a/web/app/env/modules/mw_env_init.php b/web/app/env/modules/mw_env_init.php deleted file mode 100644 index 6a555fa..0000000 --- a/web/app/env/modules/mw_env_init.php +++ /dev/null @@ -1,63 +0,0 @@ -plugins()) !== false){ - foreach($plugins as $plugin_name => $plugin){ - $init_path = $this->path("plugins").$plugin_name."/app/init/"; - if( - $plugin["installed"] - && $plugin["enabled"] - && file_exists($init_path) - && is_dir($init_path) - ){ - if($dh = opendir($init_path)){ - $files = array(); - while(($file = readdir($dh)) !== false){ - if( - substr($file, 0, 1) != "." - && !is_dir($init_path.$file) - && strcmp(substr($file, -4), ".php") == 0 - && !isset($init_files[$file]) - ) $init_files[$file] = $init_path; - } - closedir($dh); - } - else $this->erreur("impossible d'ouvrir le dossier init du plugin ".$plugin_name, true); - } - if($this->check_stop()) return; - } - $init_path = $this->path("app")."init/"; - if( - file_exists($init_path) - && is_dir($init_path) - ){ - if($dh = opendir($init_path)){ - $files = array(); - while(($file = readdir($dh)) !== false){ - if( - substr($file, 0, 1) != "." - && !is_dir($init_path.$file) - && strcmp(substr($file, -4), ".php") == 0 - ) $init_files[$file] = $init_path; - } - closedir($dh); - } - else $this->erreur("impossible d'ouvrir le dossier init du plugin ".$plugin_name, true); - } - } - if($this->check_stop()) return; - if($init_files){ - ksort($init_files); - foreach($init_files as $file => $init_path){ - require $init_path.$file; - if($this->check_stop()) return; - } - } - } - - } - -?> \ No newline at end of file