diff --git a/maintain.inc.php b/maintain.inc.php new file mode 100644 index 0000000..ff5015b --- /dev/null +++ b/maintain.inc.php @@ -0,0 +1,75 @@ +load_config(); + } + + else { + $config->load_default_config(); + } + + $config->save_config(); + + $this->installed = true; + } + + /** + * plugin activation + * + * this function is triggered after installation, by manual activation + * or after a plugin update + * for this last case you must manage updates tasks of your plugin in this function + */ + function activate($plugin_version, &$errors=array()) + { + if (!$this->installed) + { + $this->install($plugin_version, $errors); + } + } + + function deactivate() + { + } + + function uninstall() + { + } + +} \ No newline at end of file