X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=mw%2Fapp%2Fcontrollers%2Fconfig%2Fplugins.php;h=e52a14156526725b97e6752400a364b015fe494b;hb=ad9756b0b72852c82165e824570f21b039fcb359;hp=4fc91799a0c4d1cee32e5d6086b717f0af9698d7;hpb=422d883e3ed8ee55ee41e3b7826f32b79cea646d;p=mtweb diff --git a/mw/app/controllers/config/plugins.php b/mw/app/controllers/config/plugins.php index 4fc9179..e52a141 100644 --- a/mw/app/controllers/config/plugins.php +++ b/mw/app/controllers/config/plugins.php @@ -2,15 +2,15 @@ class mw_config_plugins extends mw_controller{ - var $plugins; + public $plugins; - function validate(){ + public function validate(){ $env = $this->env(); if(($this->plugins = $env->plugins("DESC")) === false) return "impossible de lire la liste des plugins"; return true; } - function index(){ + public function index(){ $env = $this->env(); if($this->plugins !== false){ if($_POST){ @@ -52,7 +52,7 @@ else $env->erreur("impossible de lire la liste des plugins"); } - function install(){ + public function install(){ $env = $this->env(); $plugin_name = $_GET[$env->param("id")]; if(isset($this->plugins[$plugin_name])){ @@ -77,7 +77,7 @@ else $env->erreur("impossible de trouver le plugin ".$plugin_name); } - function uninstall(){ + public function uninstall(){ $env = $this->env(); $plugin_name = $_GET[$env->param("id")]; if(isset($this->plugins[$plugin_name])){ @@ -102,7 +102,7 @@ else $env->erreur("impossible de trouver le plugin ".$plugin_name); } - function enable(){ + public function enable(){ $env = $this->env(); $plugin_name = $_GET[$env->param("id")]; if(isset($this->plugins[$plugin_name])){ @@ -133,7 +133,7 @@ else $env->erreur("impossible de trouver le plugin ".$plugin_name); } - function disable(){ + public function disable(){ $env = $this->env(); $plugin_name = $_GET[$env->param("id")]; if(isset($this->plugins[$plugin_name])){ @@ -165,5 +165,3 @@ } } - -?> \ No newline at end of file