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