source: extensions/Flash_Gallery/modules/FlashGallery/config.php @ 3599

Last change on this file since 3599 was 3599, checked in by tiico, 15 years ago

some minor corrections
add block.tpl from pwg_stuff (for flopure)
add prometeus module (javascript)
[TO BE COMPLETED]

File size: 1.7 KB
Line 
1<?php
2
3// Parameters XML for module FlashGallery
4
5define('PHPWG_ROOT_PATH','../../../../');
6
7include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
8
9// recuperation des parametres dans la base (ext_datas)
10$query = '
11SELECT ext_datas
12FROM ' . FLASHGAL_TABLE . '
13WHERE type LIKE "%FlashGallery"'
14. ' LIMIT 1';
15
16$result = pwg_query($query);
17
18// Module non dispo
19if (!($module = mysql_fetch_assoc($result)))
20{
21        echo '<?xml version="1.0"?>
22        <settings
23        />';   
24}
25else
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?>
Note: See TracBrowser for help on using the repository browser.