aboutsummaryrefslogtreecommitdiffstats
path: root/themes/elegant/admin/admin.inc.php
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2013-06-16 14:22:35 +0000
committerflop25 <flop25@piwigo.org>2013-06-16 14:22:35 +0000
commitb4cac600761d9f54a2af389dc394be061fad292c (patch)
tree5b6c1d71e80588dc82c03aa6393c84f9f11e9bc3 /themes/elegant/admin/admin.inc.php
parentc86481cbbef6d221d0bcd1d69e9434fd19dc2b22 (diff)
feature:2924
adding 3 options for the default behaviour of the panels ToDo lang files git-svn-id: http://piwigo.org/svn/trunk@23251 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'themes/elegant/admin/admin.inc.php')
-rw-r--r--themes/elegant/admin/admin.inc.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/themes/elegant/admin/admin.inc.php b/themes/elegant/admin/admin.inc.php
new file mode 100644
index 000000000..d50b75564
--- /dev/null
+++ b/themes/elegant/admin/admin.inc.php
@@ -0,0 +1,30 @@
+<?php
+
+// Need upgrade?
+global $conf;
+include(PHPWG_THEMES_PATH.'elegant/admin/upgrade.inc.php');
+
+load_language('theme.lang', PHPWG_THEMES_PATH.'elegant/');
+
+$config_send= array();
+
+if(isset($_POST['submit_elegant']))
+{
+ $config_send['p_main_menu']=(isset($_POST['p_main_menu']) and !empty($_POST['p_main_menu'])) ? $_POST['p_main_menu'] : 'on';
+ $config_send['p_pict_descr']=(isset($_POST['p_pict_descr']) and !empty($_POST['p_pict_descr'])) ? $_POST['p_pict_descr'] : 'on';
+ $config_send['p_pict_comment']=(isset($_POST['p_pict_comment']) and !empty($_POST['p_pict_comment'])) ? $_POST['p_pict_comment'] : 'off';
+ conf_update_param('elegant', pwg_db_real_escape_string(serialize($config_send)));
+
+ array_push($page['infos'], l10n('Information data registered in database'));
+
+ load_conf_from_db();
+}
+
+$template->set_filenames(array(
+ 'theme_admin_content' => dirname(__FILE__) . '/admin.tpl'));
+
+$template->assign('options', unserialize($conf['elegant']));
+
+$template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');
+
+?> \ No newline at end of file