Last change
on this file since 11217 was
10981,
checked in by mistic100, 13 years ago
|
last commit for first public version
|
File size:
801 bytes
|
Line | |
---|
1 | <?php |
---|
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | global $conf, $template; |
---|
5 | load_language('plugin.lang', B2F_PATH); |
---|
6 | $conf['back2front'] = explode(',', $conf['back2front']); |
---|
7 | |
---|
8 | // Enregistrement de la configuration |
---|
9 | if (isset($_POST['submit'])) |
---|
10 | { |
---|
11 | $conf['back2front'] = array( |
---|
12 | $conf['back2front'][0], |
---|
13 | $_POST['switch_mode'], |
---|
14 | $_POST['transition'] |
---|
15 | ); |
---|
16 | |
---|
17 | conf_update_param('back2front', implode (',', $conf['back2front'])); |
---|
18 | array_push($page['infos'], l10n('Information data registered in database')); |
---|
19 | } |
---|
20 | |
---|
21 | $template->assign(array( |
---|
22 | 'SWITCH_MODE' => $conf['back2front'][1], |
---|
23 | 'TRANSITION' => $conf['back2front'][2], |
---|
24 | )); |
---|
25 | |
---|
26 | $template->set_filename('back2front_conf', dirname(__FILE__).'/template/admin.tpl'); |
---|
27 | $template->assign_var_from_handle('ADMIN_CONTENT', 'back2front_conf'); |
---|
28 | |
---|
29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.