Last change
on this file since 25752 was
25752,
checked in by plg, 10 years ago
|
smartpocket, configuration: simpler yes/no checkboxes (with fontello icons, same as AdminTools checkboxes)
|
File size:
815 bytes
|
Rev | Line | |
---|
[23718] | 1 | <?php |
---|
| 2 | |
---|
| 3 | // Need upgrade? |
---|
| 4 | global $conf; |
---|
| 5 | include(PHPWG_THEMES_PATH.'smartpocket/admin/upgrade.inc.php'); |
---|
| 6 | |
---|
| 7 | load_language('theme.lang', PHPWG_THEMES_PATH.'smartpocket/'); |
---|
| 8 | |
---|
| 9 | $config_send= array(); |
---|
| 10 | |
---|
| 11 | if(isset($_POST['submit_smartpocket'])) |
---|
| 12 | { |
---|
[25752] | 13 | $config_send['loop'] = isset($_POST['loop']); |
---|
| 14 | $config_send['autohide'] = (isset($_POST['autohide']) ? 5000 : 0); |
---|
[23718] | 15 | |
---|
| 16 | $conf['smartpocket'] = serialize($config_send); |
---|
| 17 | conf_update_param('smartpocket', pwg_db_real_escape_string($conf['smartpocket'])); |
---|
| 18 | |
---|
| 19 | array_push($page['infos'], l10n('Information data registered in database')); |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | $template->set_filenames(array( |
---|
| 23 | 'theme_admin_content' => dirname(__FILE__) . '/admin.tpl')); |
---|
| 24 | |
---|
| 25 | $template->assign('options', unserialize($conf['smartpocket'])); |
---|
| 26 | |
---|
| 27 | $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content'); |
---|
| 28 | |
---|
| 29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.