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){
}
+ 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