mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-01 02:52:50 +02:00
add AdminTools to trunk
git-svn-id: http://piwigo.org/svn/trunk@28694 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
23
plugins/AdminTools/admin.php
Normal file
23
plugins/AdminTools/admin.php
Normal file
@@ -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');
|
||||
Reference in New Issue
Block a user