aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/AdminTools/maintain.class.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-06-13 19:53:56 +0000
committermistic100 <mistic@piwigo.org>2014-06-13 19:53:56 +0000
commit0018bcd9f5ed3e86edfa83b389a8f2e42cf4101e (patch)
treefdf2b5d26b0db04856c4ed590f9954b2ddcd2b55 /plugins/AdminTools/maintain.class.php
parent715f13b123c799eb5dae73147278a6e67fb1d8ea (diff)
add AdminTools to trunk
git-svn-id: http://piwigo.org/svn/trunk@28694 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/AdminTools/maintain.class.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/AdminTools/maintain.class.php b/plugins/AdminTools/maintain.class.php
new file mode 100644
index 000000000..2e89968fd
--- /dev/null
+++ b/plugins/AdminTools/maintain.class.php
@@ -0,0 +1,31 @@
+<?php
+defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
+
+class AdminTools_maintain extends PluginMaintain
+{
+ private $default_conf = array(
+ 'default_open' => true,
+ 'closed_position' => 'left',
+ 'public_quick_edit' => true,
+ );
+
+ function install($plugin_version, &$errors=array())
+ {
+ global $conf;
+
+ if (empty($conf['AdminTools']))
+ {
+ conf_update_param('AdminTools', $this->default_conf, true);
+ }
+ }
+
+ function update($old_version, $new_version, &$errors=array())
+ {
+ $this->install($new_version, $errors);
+ }
+
+ function uninstall()
+ {
+ conf_delete_param('AdminTools');
+ }
+}