source: extensions/bbcode_bar/admin.php @ 28835

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

use new maintain class

File size: 756 bytes
Line 
1<?php
2defined('BBCODE_ID') or die('Hacking attempt!');
3
4global $conf, $template;
5
6if (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', $conf['bbcode_bar']);
15  $page['infos'][] = l10n('Information data registered in database');
16}
17
18foreach ($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.