source: extensions/Flash_Gallery/modules/FlashGallery/main.inc.php @ 3531

Revision 3531, 884 bytes checked in by tiico, 11 years ago (diff)

First revision (for testing)
Only in French (translation to be done)

Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5set_make_full_url();
6if (!url_is_remote($block['FLASHNAME']))
7        $block['FLASHNAME'] = embellish_url(get_root_url().$block['FLASHNAME']);
8
9$full_url = embellish_url( get_root_url().FLASHGAL_PATH.'js');
10$block['SCRIPT'] = '<script type="text/javascript" src="'.$full_url.'/swfobject.js"></script>';
11
12$block['XMLPARAM']=embellish_url( get_root_url().FLASHGAL_PATH.'modules/FlashGallery/config.php?/'.(isset($permalinkcat) ? 'category/'.$permalinkcat : (isset($catid) ? 'category/' . $catid  : 'categories' )));
13
14// Ajouter les infos home, catid... pour le xmlparam
15
16unset_make_full_url();
17$module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array(''));
18
19foreach ($module['ext_datas'] as $key => $value)
20{
21        $block[$key] = str_replace("#", "", $value);
22}
23
24
25
26?>
Note: See TracBrowser for help on using the repository browser.