Last change
on this file since 27318 was
26076,
checked in by mistic100, 11 years ago
|
update for Piwigo 2.6 + many code and logical cleaning
|
File size:
767 bytes
|
Line | |
---|
1 | <?php |
---|
2 | defined('BBCODE_ID') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | global $conf, $template; |
---|
5 | |
---|
6 | if (isset($_POST['submit'])) |
---|
7 | { |
---|
8 | $conf['bbcode_bar'] = array(); |
---|
9 | foreach ($conf['bbcode_bar_codes'] as $key) |
---|
10 | { |
---|
11 | $conf['bbcode_bar'][$key] = isset($_POST[$key]); |
---|
12 | } |
---|
13 | |
---|
14 | conf_update_param('bbcode_bar', serialize($conf['bbcode_bar'])); |
---|
15 | $page['infos'][] = l10n('Information data registered in database'); |
---|
16 | } |
---|
17 | |
---|
18 | foreach ($conf['bbcode_bar_codes'] as $key) |
---|
19 | { |
---|
20 | $template->assign(strtoupper($key).'_STATUS', $conf['bbcode_bar'][$key] ? 'checked="checked"' : ''); |
---|
21 | } |
---|
22 | |
---|
23 | $template->assign('BBCODE_PATH', BBCODE_PATH); |
---|
24 | $template->set_filename('bbcode_bar_conf', realpath(BBCODE_PATH . 'template/bbcode_bar_admin.tpl')); |
---|
25 | $template->assign_var_from_handle('ADMIN_CONTENT', 'bbcode_bar_conf'); |
---|
Note: See
TracBrowser
for help on using the repository browser.