aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/AdminTools/admin.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/admin.php
parent715f13b123c799eb5dae73147278a6e67fb1d8ea (diff)
add AdminTools to trunk
git-svn-id: http://piwigo.org/svn/trunk@28694 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/AdminTools/admin.php')
-rw-r--r--plugins/AdminTools/admin.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/AdminTools/admin.php b/plugins/AdminTools/admin.php
new file mode 100644
index 000000000..ecd52115d
--- /dev/null
+++ b/plugins/AdminTools/admin.php
@@ -0,0 +1,23 @@
+<?php
+defined('ADMINTOOLS_PATH') or die('Hacking attempt!');
+
+if (isset($_POST['save_config']))
+{
+ $conf['AdminTools'] = array(
+ 'default_open' => isset($_POST['default_open']),
+ 'closed_position' => $_POST['closed_position'],
+ 'public_quick_edit' => isset($_POST['public_quick_edit']),
+ );
+
+ conf_update_param('AdminTools', $conf['AdminTools']);
+ $page['infos'][] = l10n('Information data registered in database');
+}
+
+
+$template->assign(array(
+ 'AdminTools' => $conf['AdminTools'],
+ ));
+
+
+$template->set_filename('admintools_content', realpath(ADMINTOOLS_PATH . 'template/admin.tpl'));
+$template->assign_var_from_handle('ADMIN_CONTENT', 'admintools_content');