1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piwigo_ynh.git synced 2024-09-03 20:06:03 +02:00
piwigo_ynh/sources/plugins/AdminTools/admin.php

24 lines
678 B
PHP
Raw Normal View History

2015-07-05 19:12:42 +02:00
<?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');