1 | <?php |
---|
2 | |
---|
3 | // Parameters XML for module FlashGallery |
---|
4 | |
---|
5 | define('PHPWG_ROOT_PATH','../../../../'); |
---|
6 | |
---|
7 | include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); |
---|
8 | |
---|
9 | // recuperation des parametres dans la base (ext_datas) |
---|
10 | $query = ' |
---|
11 | SELECT ext_datas |
---|
12 | FROM ' . FLASHGAL_TABLE . ' |
---|
13 | WHERE type LIKE "%FlashGallery"' |
---|
14 | . ' LIMIT 1'; |
---|
15 | |
---|
16 | $result = pwg_query($query); |
---|
17 | |
---|
18 | // Module non dispo |
---|
19 | if (!($module = mysql_fetch_assoc($result))) |
---|
20 | { |
---|
21 | echo '<?xml version="1.0"?> |
---|
22 | <settings |
---|
23 | />'; |
---|
24 | } |
---|
25 | else |
---|
26 | { |
---|
27 | $module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array('')); |
---|
28 | |
---|
29 | foreach ($module['ext_datas'] as $key => $value) |
---|
30 | { |
---|
31 | $module['ext_datas'][$key] = str_replace("#", "", $value); |
---|
32 | } |
---|
33 | |
---|
34 | echo '<?xml version="1.0"?> |
---|
35 | |
---|
36 | <settings |
---|
37 | thumb_bg_color="'.$module['ext_datas']['thumb_bg_color'].'" |
---|
38 | thumb_bg_over="'.$module['ext_datas']['thumb_bg_over'].'" |
---|
39 | scroll_but_bg="'.$module['ext_datas']['scroll_but_bg'].'" |
---|
40 | scroll_but_arrow="'.$module['ext_datas']['scroll_but_arrow'].'" |
---|
41 | scroll_but_bg_over="'.$module['ext_datas']['scroll_but_bg_over'].'" |
---|
42 | scroll_but_arrow_over="'.$module['ext_datas']['scroll_but_arrow_over'].'" |
---|
43 | big_pic_border="'.$module['ext_datas']['big_pic_border'].'" |
---|
44 | next_pic_bg="'.$module['ext_datas']['next_pic_bg'].'" |
---|
45 | next_pic_arrow="'.$module['ext_datas']['next_pic_arrow'].'" |
---|
46 | next_pic_bg_over="'.$module['ext_datas']['next_pic_bg_over'].'" |
---|
47 | next_pic_arrow_over="'.$module['ext_datas']['next_pic_arrow_over'].'" |
---|
48 | background_color="'.$module['ext_datas']['background_color'].'" |
---|
49 | text_color="'.$module['ext_datas']['text_color'].'" |
---|
50 | |
---|
51 | text_visible="'.($module['ext_datas']['text_visible'] ? "on" : "off").'" |
---|
52 | fullscreen_visible="'.($module['ext_datas']['fullscreen_visible'] ? "on" : "off").'" |
---|
53 | />'; |
---|
54 | } |
---|
55 | ?> |
---|