X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=mw%2Fenv%2Fmodules%2Fmw_env_plugins.php;h=70a9ec81b39c2f0fc65e555b4b9739c64a4ee624;hb=422d883e3ed8ee55ee41e3b7826f32b79cea646d;hp=1df183466dc47d463cacbfd5ec5d991d24921136;hpb=e1b64e4088232b9d7b4acb2dc24279bb38fcafba;p=mtweb diff --git a/mw/env/modules/mw_env_plugins.php b/mw/env/modules/mw_env_plugins.php index 1df1834..70a9ec8 100644 --- a/mw/env/modules/mw_env_plugins.php +++ b/mw/env/modules/mw_env_plugins.php @@ -27,13 +27,6 @@ return; } $plugins = array(); - if(!class_exists("mw_plugin")){ - require $this->path("mw_dir")."plugins/mw_plugin.php"; - if(!class_exists("mw_plugin")){ - $plugins = false; - return; - } - } if($dh = opendir($this->path("mw_dir")."plugins/")){ $OK = true; while($OK && ($plugin_name = readdir($dh)) !== false){ @@ -184,4 +177,36 @@ } + class mw_plugin{ + + function title(){ + return "(sans titre)"; + } + + function description(){ + return ""; + } + + function install($env){ + return true; + } + + function uninstall($env){ + return true; + } + + function enable($env){ + return true; + } + + function disable($env){ + return true; + } + + function init($env){ + return true; + } + + } + ?> \ No newline at end of file