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

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: 2.4 KB
Line 
1<?php
2//header("Content-Type: application/xml; charset=UTF-8");
3
4//$module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array(''));
5// module['ext_datas']  doit etre deja unserialise...
6
7// Parameters for module
8
9define('PHPWG_ROOT_PATH','../../../../');
10
11include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
12include_once FLASHGAL_PATH.'include/class.inc.php';
13$home = null;
14$catid =  null ;
15$permalinkcat = null;
16
17if (isset($_GET['home']))
18{
19        $home = true;
20        $page['section'] = 'categories';
21}
22elseif (isset($_GET['catid']))
23{
24        $catid = $_GET['catid'];
25        $page['section'] = 'categories';
26        $page['category']['id'] = $catid;
27}
28elseif (isset($_GET['permalink']))
29{
30        $permalink = $_GET['permalink'];
31        $page['section'] = 'categories';
32        $page['category']['id'] = $permalink;
33}
34else
35{
36        include(PHPWG_ROOT_PATH.'include/section_init.inc.php');
37
38        $home = (($page['section'] == 'categories') and empty($page['category'])) ? true : null ;
39        $catid = ($page['section'] == 'categories' and 
40                                isset($page['category'])) ? $page['category']['id'] : null ;
41        $permalinkcat = empty($page['category']['permalink']) ? null : $page['category']['permalink'];
42}
43
44$flashgal = new flashgal($catid, $home, $permalinkcat);
45$module = $flashgal->module;
46
47
48$module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array(''));
49
50foreach ($module['ext_datas'] as $key => $value)
51{
52        $module['ext_datas'][$key] = str_replace("#", "", $value);
53}
54
55echo '<?xml version="1.0"?>
56
57<settings
58thumb_bg_color="'.$module['ext_datas']['thumb_bg_color'].'"
59thumb_bg_over="'.$module['ext_datas']['thumb_bg_over'].'"
60scroll_but_bg="'.$module['ext_datas']['scroll_but_bg'].'"
61scroll_but_arrow="'.$module['ext_datas']['scroll_but_arrow'].'"
62scroll_but_bg_over="'.$module['ext_datas']['scroll_but_bg_over'].'"
63scroll_but_arrow_over="'.$module['ext_datas']['scroll_but_arrow_over'].'"
64big_pic_border="'.$module['ext_datas']['big_pic_border'].'"
65next_pic_bg="'.$module['ext_datas']['next_pic_bg'].'"
66next_pic_arrow="'.$module['ext_datas']['next_pic_arrow'].'"
67next_pic_bg_over="'.$module['ext_datas']['next_pic_bg_over'].'"
68next_pic_arrow_over="'.$module['ext_datas']['next_pic_arrow_over'].'"
69background_color="'.$module['ext_datas']['background_color'].'"
70text_color="'.$module['ext_datas']['text_color'].'"
71
72text_visible="'.($module['ext_datas']['text_visible'] ? "on" : "off").'"
73fullscreen_visible="'.($module['ext_datas']['fullscreen_visible'] ? "on" : "off").'"
74/>';
75
76?>
Note: See TracBrowser for help on using the repository browser.