source: extensions/bbcode_bar/admin.php @ 26076

Last change on this file since 26076 was 26076, checked in by mistic100, 10 years ago

update for Piwigo 2.6 + many code and logical cleaning

File size: 767 bytes
RevLine 
[9682]1<?php
[26076]2defined('BBCODE_ID') or die('Hacking attempt!');
[9682]3
4global $conf, $template;
5
[26076]6if (isset($_POST['submit']))
[9965]7{
[26076]8  $conf['bbcode_bar'] = array();
9  foreach ($conf['bbcode_bar_codes'] as $key)
10  {
11    $conf['bbcode_bar'][$key] = isset($_POST[$key]);
[10983]12  }
13 
[26076]14  conf_update_param('bbcode_bar', serialize($conf['bbcode_bar']));
15  $page['infos'][] = l10n('Information data registered in database');
[9682]16}
17
[26076]18foreach ($conf['bbcode_bar_codes'] as $key)
19{
20  $template->assign(strtoupper($key).'_STATUS', $conf['bbcode_bar'][$key] ? 'checked="checked"' : '');
[9682]21}
22
[26076]23$template->assign('BBCODE_PATH', BBCODE_PATH);
24$template->set_filename('bbcode_bar_conf', realpath(BBCODE_PATH . 'template/bbcode_bar_admin.tpl'));
[9682]25$template->assign_var_from_handle('ADMIN_CONTENT', 'bbcode_bar_conf');
Note: See TracBrowser for help on using the repository browser.