From 93ad7022152b0dcf0d35125b61d4bfa09c0e1261 Mon Sep 17 00:00:00 2001 From: spelth Date: Sat, 2 May 2015 11:29:33 +0200 Subject: [PATCH] Basic Import --- maintain.inc.php | 75 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 maintain.inc.php 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