Last change
on this file since 27150 was
26076,
checked in by mistic100, 11 years ago
|
update for Piwigo 2.6 + many code and logical cleaning
|
File size:
767 bytes
|
Rev | Line | |
---|
[9682] | 1 | <?php |
---|
[26076] | 2 | defined('BBCODE_ID') or die('Hacking attempt!'); |
---|
[9682] | 3 | |
---|
| 4 | global $conf, $template; |
---|
| 5 | |
---|
[26076] | 6 | if (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] | 18 | foreach ($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.