Last change
on this file since 3531 was
3531,
checked in by tiico, 15 years ago
|
First revision (for testing)
Only in French (translation to be done)
|
File size:
924 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | // default values |
---|
6 | if (!isset($ext_datas)) |
---|
7 | $ext_datas = array( |
---|
8 | 'tempo' => "10", |
---|
9 | |
---|
10 | ); |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | // Enregistrement de la configuration |
---|
15 | if (isset($_POST['submit']) and !is_adviser()) |
---|
16 | { |
---|
17 | foreach ($ext_datas as $key =>$value) |
---|
18 | $ext_datas[$key] = $_POST['Monde_'.$key]; |
---|
19 | |
---|
20 | } |
---|
21 | |
---|
22 | foreach ($ext_datas as $key => $value) |
---|
23 | { |
---|
24 | |
---|
25 | foreach ($ext_datas as $key =>$value) |
---|
26 | $template->assign(array( 'Monde_'.$key => $ext_datas[$key])); |
---|
27 | |
---|
28 | } |
---|
29 | |
---|
30 | $template->assign(array('OTHERS_SCRIPT' => |
---|
31 | '<script type="text/javascript" src="'.FLASHGAL_PATH.'farbtastic/farbtastic.js"></script> |
---|
32 | <link href="'.FLASHGAL_PATH.'farbtastic/farbtastic.css" rel="stylesheet" type="text/css" />')); |
---|
33 | |
---|
34 | $template->set_filenames(array('module_options' => dirname(__FILE__) . '/config.tpl')); |
---|
35 | $template->assign_var_from_handle('MODULE_OPTIONS', 'module_options'); |
---|
36 | |
---|
37 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.