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

Last change on this file since 27569 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
RevLine 
[3531]1<?php
2
[3599]3// Parameters XML for module FlashGallery
[3531]4
5define('PHPWG_ROOT_PATH','../../../../');
6
7include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
8
[3599]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)))
[3531]20{
[3599]21        echo '<?xml version="1.0"?>
22        <settings
23        />';   
[3531]24}
25else
26{
[3599]27        $module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array(''));
[3531]28
[3599]29        foreach ($module['ext_datas'] as $key => $value)
30        {
31                $module['ext_datas'][$key] = str_replace("#", "", $value);
32        }
[3531]33
[3599]34        echo '<?xml version="1.0"?>
[3531]35
[3599]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'].'"
[3531]50
[3599]51        text_visible="'.($module['ext_datas']['text_visible'] ? "on" : "off").'"
52        fullscreen_visible="'.($module['ext_datas']['fullscreen_visible'] ? "on" : "off").'"
53        />';
[3531]54}
55?>
Note: See TracBrowser for help on using the repository browser.