source: extensions/skeleton/admin/config.php @ 19231

Last change on this file since 19231 was 17899, checked in by mistic100, 12 years ago

first commit

File size: 839 bytes
Line 
1<?php
2defined('SKELETON_PATH') or die('Hacking attempt!');
3
4// +-----------------------------------------------------------------------+
5// | Configuration tab                                                     |
6// +-----------------------------------------------------------------------+
7
8// save config
9if (isset($_POST['save_config']))
10{
11  $conf['skeleton'] = array(
12    'option1' => intval($_POST['option1']),
13    'option2' => isset($_POST['option2']),
14    );
15     
16  conf_update_param('skeleton', serialize($conf['skeleton']));
17  array_push($page['infos'], l10n('Information data registered in database'));
18}
19
20// send config to template
21$template->assign(array(
22  'skeleton' => $conf['skeleton'],
23  ));
24
25// define template file
26$template->set_filename('skeleton_content', realpath(SKELETON_PATH . 'admin/template/config.tpl'));
27
28?>
Note: See TracBrowser for help on using the repository browser.