Index: /extensions/piclens/admin/config.php
===================================================================
--- /extensions/piclens/admin/config.php	(revision 3410)
+++ /extensions/piclens/admin/config.php	(revision 3410)
@@ -0,0 +1,122 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier config.php  *********/
+
+if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
+
+global $template, $page;
+ 
+$me = get_plugin_data($plugin_id);
+
+$type_list = array(l10n('piclens_label_withoutrecursive'), l10n ('piclens_label_withrecursive') );
+ 
+$template->set_filenames( array('plugin_admin_content' => PICLENS_ROOT.'/admin/config.tpl') );
+
+// recuperation des parametres depuis le  fichier de configuration
+if (isset($_POST['restore'])) 
+{ 
+	
+	if (file_exists(PICLENS_CFG_FILE))
+	{
+		// changement du nom du fichier de conf.
+		$me->load_config_file();
+		$me->save_config();
+		array_push($page['infos'], sprintf(l10n('piclens_admin_restoreOK'), PICLENS_CFG_FILE1));
+	}
+	else
+		array_push($page['errors'], sprintf(l10n('piclens_admin_restoreKO'), PICLENS_CFG_FILE1));
+}
+// Sauvegarde des parametres dans le  fichier de configuration (
+if (isset($_POST['savefile'])) 
+{ 
+	if (file_exists(PICLENS_CFG_FILE))
+		array_push($page['infos'], sprintf(l10n('piclens_admin_savefileWN'), PICLENS_CFG_FILE1));
+	// Sauvegarde dans le fichier
+	$me->save_config_file();
+	array_push($page['infos'], sprintf(l10n('piclens_admin_savefileOK'), PICLENS_CFG_FILE1));
+	
+}
+
+if (isset($_POST['submit'])) { 
+  $me->my_config['piclens_active'] = isset($_POST['piclens_active']);
+  $me->my_config['piclens_recursive'] = isset($_POST['piclens_recursive']);
+  $me->my_config['piclens_gallerie_active'] = isset($_POST['piclens_gallerie_active']);
+  $me->my_config['piclens_gallerie_type'] = $_POST['piclens_gallerie_type'];
+  $me->my_config['piclens_lite_active'] = isset($_POST['piclens_lite_active']);
+  $me->my_config['piclens_secureimage'] = isset($_POST['piclens_secureimage']);
+  $me->my_config['piclens_extendeddesc'] = isset($_POST['piclens_extendeddesc']);
+  
+  $me->my_config['piclens_recentpics_active'] = isset($_POST['piclens_recentpics_active']);
+  $me->my_config['piclens_recentcats_active'] = isset($_POST['piclens_recentcats_active']);
+  $me->my_config['piclens_mostvisited_active']  = isset($_POST['piclens_mostvisited_active']);
+  $me->my_config['piclens_bestrated_active'] = isset($_POST['piclens_bestrated_active']);
+  $me->my_config['piclens_favorites_active'] = isset($_POST['piclens_favorites_active']);
+
+  $me->my_config['piclens_recursive_mode'] = $_POST['recursive_mode'];
+  
+  $me->save_config();
+  array_push($page['infos'], l10n('piclens_admin_saveOK'));
+	
+}
+
+//$template->assign('PICLENS_ACTIVATED', $me->my_config['piclens_active'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_RECURSIVE_ACTIVATED', $me->my_config['piclens_recursive'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_GALLERIE_ACTIVATED', $me->my_config['piclens_gallerie_active'] ? 'checked="checked"' : '' );
+
+// Affichage des coix miniature possibles pour la recursivite de l'option 'Activer gallerie'
+$i=1;
+foreach ( $type_list as $order ) //on parcours le tableau 
+{
+	$template->append('PlGallerie',array('ID' => $i,'NAME' => $order,'SELECTED' => ($me->my_config['piclens_gallerie_type'] == $i ? 'selected' : '')));
+	$i++;	
+}
+//$template->assign('PICLENS_GALLERIE_TYPE', $me->my_config['piclens_gallerie_type']);
+
+//$template->assign('PICLENS_LITE_ACTIVATED', $me->my_config['piclens_lite_active'] ? 'checked="checked"' : '' );
+
+//$template->assign('PICLENS_SECUREIMAGE', get_db_plugins('active','secureImages'));
+//$template->assign('PICLENS_SECUREIMAGE_ACTIVATED', $me->my_config['piclens_secureimage'] ? 'checked="checked"' : '' );
+
+//$template->assign('PICLENS_EXTENDEDDESC', get_db_plugins('active','ExtendedDescription') );
+//$template->assign('PICLENS_EXTENDEDDESC_ACTIVATED', $me->my_config['piclens_extendeddesc'] ? 'checked="checked"' : '' );
+ 
+//$template->assign('PICLENS_RECENTPICS_ACTIVATED', $me->my_config['piclens_recentpics_active'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_RECENTCATS_ACTIVATED', $me->my_config['piclens_recentcats_active'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_MOSTVISITED_ACTIVATED', $me->my_config['piclens_mostvisited_active'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_BESTRATED_ACTIVATED', $me->my_config['piclens_bestrated_active'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_FAVORITES_ACTIVATED', $me->my_config['piclens_favorites_active'] ? 'checked="checked"' : '' );
+
+$template->assign(array(
+	'PICLENS_ACTIVATED' 			=> ($me->my_config['piclens_active'] ? 'checked="checked"' : ''), 
+	'PICLENS_RECURSIVE_ACTIVATED' 	=> ($me->my_config['piclens_recursive'] ? 'checked="checked"' : '' ),
+	'PICLENS_GALLERIE_ACTIVATED' 	=> ($me->my_config['piclens_gallerie_active'] ? 'checked="checked"' : '' ),
+	'PICLENS_GALLERIE_TYPE'			=> $me->my_config['piclens_gallerie_type'],
+	'PICLENS_LITE_ACTIVATED'		=> ($me->my_config['piclens_lite_active'] ? 'checked="checked"' : '' ),
+	'PICLENS_SECUREIMAGE'			=> get_db_plugins('active','secureImages'),
+	'PICLENS_SECUREIMAGE_ACTIVATED'	=> ($me->my_config['piclens_secureimage'] ? 'checked="checked"' : '' ),
+	'PICLENS_EXTENDEDDESC'			=> get_db_plugins('active','ExtendedDescription'), 
+	'PICLENS_EXTENDEDDESC_ACTIVATED'=> ($me->my_config['piclens_extendeddesc'] ? 'checked="checked"' : '' ),
+	'PICLENS_RECENTPICS_ACTIVATED'	=> ($me->my_config['piclens_recentpics_active'] ? 'checked="checked"' : '' ),
+	'PICLENS_RECENTCATS_ACTIVATED'	=> ($me->my_config['piclens_recentcats_active'] ? 'checked="checked"' : '' ),
+	'PICLENS_MOSTVISITED_ACTIVATED'	=> ($me->my_config['piclens_mostvisited_active'] ? 'checked="checked"' : '' ),
+	'PICLENS_BESTRATED_ACTIVATED'	=> ($me->my_config['piclens_bestrated_active'] ? 'checked="checked"' : '' ),
+	'PICLENS_FAVORITES_ACTIVATED'	=> ($me->my_config['piclens_favorites_active'] ? 'checked="checked"' : '' ),
+	$me->my_config['piclens_recursive_mode'].'_CHECKED' => 'checked="checked"',
+	'ICON_INFO' => PICLENS_ADMIN_PATH . 'info.png',
+	'PICLENS_CFGFILE_PRESENT'		=> file_exists(PICLENS_CFG_FILE),
+	));
+
+//$template->assign('ICON_INFO' , PICLENS_ADMIN_PATH . 'info.png');
+ 
+ 
+$template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content');
+ 
+
+?>
Index: /extensions/piclens/admin/config.tpl
===================================================================
--- /extensions/piclens/admin/config.tpl	(revision 3410)
+++ /extensions/piclens/admin/config.tpl	(revision 3410)
@@ -0,0 +1,183 @@
+
+{include file='include/autosize.inc.tpl'}
+{known_script id="jquery.dimensions" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.dimensions.packed.js"}
+{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.cluetip.packed.js"}
+<script type="text/javascript">
+jQuery().ready(function(){ldelim}
+  jQuery('.cluetip').cluetip({ldelim}
+    width: 400,
+    splitTitle: '|'
+  });
+});
+</script>
+
+{html_head}
+{literal}
+
+<script type="text/javascript">
+
+window.onload = load;
+
+function GereControle(Controleur, Controle, Masquer) {
+var objControleur = document.getElementById(Controleur);
+var objControle = document.getElementById(Controle);
+
+	if (Masquer=='1')
+		objControle.style.visibility=(objControleur.checked==true)?'visible':'hidden';
+	else
+		objControle.disabled=(objControleur.checked==true)?false:true;
+	return true;
+}
+
+
+function load()
+{
+ GereControle('PlGallerieActived','PlTypeGallerie', 1);
+}
+
+</script>
+
+
+{/literal}
+{/html_head}
+
+
+<div class="titrePage">
+  <h2>Piclens</h2>
+</div>
+<p>
+{'piclens_admin_title'|@translate}
+</p>
+<form method="post" action="{$PICLENS_F_ACTION}" class="general">
+<fieldset>
+	<legend>{'piclens_cfg_title'|@translate}</legend>
+<TABLE border="0" CELLPADDING="2" ALIGN="LEFT">
+
+	<TR>
+		<TD colspan="2">
+		    01 - <input type="checkbox" name="piclens_active" {$PICLENS_ACTIVATED}/> {'piclens_cfg_piclens_actived'|@translate} 
+		    <br/>
+		</TD>
+	</TR>
+	<TR>
+		<TD colspan="2">
+		    02 - <input type="checkbox" name="piclens_recursive" {$PICLENS_RECURSIVE_ACTIVATED}/> {'piclens_cfg_recursiv_actived'|@translate}
+		    <br/>
+		</TD>
+	</TR>
+	<TR>
+		<TD colspan="2">
+			03 - <input type="checkbox" id="PlGallerieActived" name="piclens_gallerie_active" onclick="GereControle('PlGallerieActived','PlTypeGallerie', 1)" {$PICLENS_GALLERIE_ACTIVATED}/> {'piclens_cfg_root_actived'|@translate}
+		    <label for="piclens_gallerie_type" id="PlType"></label>
+		      <select id="PlTypeGallerie" name="piclens_gallerie_type">
+				 {foreach from=$PlGallerie item=PlGallerie}
+				  <option value="{$PlGallerie.ID}" {$PlGallerie.SELECTED}>{$PlGallerie.NAME}</option>
+				{/foreach}
+			  </select>
+
+		    <br/>
+		</TD>
+	</TR>
+	<TR>
+		<TD colspan="2">
+		    04 - <input type="checkbox" name="piclens_lite_active" {$PICLENS_LITE_ACTIVATED}/> {'piclens_cfg_lite_actived'|@translate}
+		    <br/>
+		</TD>
+	</TR>
+
+	<TR>
+		<TD>
+		    05 - {'piclens_cfg_specials_actived'|@translate} 
+		    <br/>
+		</TD>
+		<TD>
+			<input type="checkbox" name="piclens_favorites_active" {$PICLENS_FAVORITES_ACTIVATED}/> {'piclens_favorites_label'|@translate} 
+		    <br/>
+			<input type="checkbox" name="piclens_mostvisited_active" {$PICLENS_MOSTVISITED_ACTIVATED}/> {'piclens_mostvisited_label'|@translate} 
+		    <br/>
+			<input type="checkbox" name="piclens_bestrated_active" {$PICLENS_BESTRATED_ACTIVATED}/> {'piclens_bestrated_label'|@translate} 
+		    <br/>
+			<input type="checkbox" name="piclens_recentpics_active" {$PICLENS_RECENTPICS_ACTIVATED}/> {'piclens_recentpics_label'|@translate} 
+		    <br/>
+			<input type="checkbox" name="piclens_recentcats_active" {$PICLENS_RECENTCATS_ACTIVATED}/> {'piclens_recentcats_label'|@translate} 
+		    <br/>
+
+		</TD>
+	</TR>
+	
+	{if $PICLENS_SECUREIMAGE or $PICLENS_EXTENDEDDESC}
+	<TR>
+		<TD colspan="2">
+			<fieldset>
+				<legend>{'piclens_cfg_otherplugins_title'|@translate}</legend>
+
+			<table>
+			{if $PICLENS_SECUREIMAGE}
+			<TR>
+				<TD>
+					{'piclens_label_plugins'|@translate|@sprintf:'SecureImage'}
+					<br/>
+					0A - <input type="checkbox" name="piclens_secureimage" {$PICLENS_SECUREIMAGE_ACTIVATED}/> {'piclens_cfg_plugins_actived'|@translate|@sprintf:'SecureImage'}
+				</TD>
+				<td>
+					<img class="cluetip" src="{$ICON_INFO}" alt="" title="'SecureImage'|{'piclens_secureimage_detail'|@translate}">
+				</td>
+			</TR>
+			{/if}
+			{if $PICLENS_EXTENDEDDESC}
+			<TR>
+				<TD>
+					{'piclens_label_plugins'|@translate|@sprintf:'Extended Description'}
+					<br/>
+					0B - <input type="checkbox" name="piclens_extendeddesc" {$PICLENS_EXTENDEDDESC_ACTIVATED}/> {'piclens_cfg_plugins_actived'|@translate|@sprintf:'Extended Description'}
+				</TD>
+				<td>
+					<img class="cluetip" src="{$ICON_INFO}" alt="" title="'Extended Description'|{'piclens_extendeddesc_detail'|@translate}">
+				</td>
+			</TR>
+			{/if}
+			</table>
+
+			</fieldset>
+		  </div>
+		</TD>
+	</TR>
+	{/if}						
+	
+ 
+ </table>
+<br/>
+</fieldset>
+
+<fieldset>
+<legend>{'piclens_recurs_mode_title'|@translate}</legend>
+<TABLE border="0" CELLPADDING="3">
+
+	<tr>
+		<td align="right">{'piclens_recurs_mode_label'|@translate} &nbsp;</td>
+		<td><input type="radio" name="recursive_mode" value="standard" {$standard_CHECKED}>&nbsp;{'piclens_recursive_standard'|@translate}</td>
+		<td><img class="cluetip" src="{$ICON_INFO}" alt="" title="{'piclens_recursive_standard_title'|@translate}|{'piclens_recursive_standard_detail'|@translate}"></td>
+	</tr>
+	<tr>
+		<td align="right"></td>
+		<td><input type="radio" name="recursive_mode" value="specifique" {$specifique_CHECKED}>&nbsp;{'piclens_recursive_specifique'|@translate}</td>
+		<td><img class="cluetip" src="{$ICON_INFO}" alt="" title="{'piclens_recursive_specifique_title'|@translate}|{'piclens_recursive_specifique_detail'|@translate}"></td>
+	</tr>
+	</tr>
+	<tr>
+		<td align="center" colspan="3"></td>
+	</tr>
+	<tr>
+		<td align="center" colspan="3">{'piclens_recurs_mode_rem'|@translate} &nbsp;</td>
+	</tr>
+ </table>
+<br/>
+</fieldset>
+ 
+<p><input type="submit" name="submit" value="{'piclens_admin_submit'|@translate}" />
+{if $PICLENS_CFGFILE_PRESENT}
+<input type="submit" name="restore" value="{'piclens_admin_restore'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">
+{/if}
+<input type="submit" name="savefile" value="{'piclens_admin_savefile'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">
+</p>
+</form>
Index: /extensions/piclens/admin/crossdomain.xml
===================================================================
--- /extensions/piclens/admin/crossdomain.xml	(revision 3410)
+++ /extensions/piclens/admin/crossdomain.xml	(revision 3410)
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
+<cross-domain-policy>
+    <site-control permitted-cross-domain-policies="all"/>
+    <allow-access-from domain="*.cooliris.com" secure="false" />
+    <allow-access-from domain="*.piclens.com" secure="false" />
+ 
+</cross-domain-policy>
+
Index: /extensions/piclens/admin/functions.inc.php
===================================================================
--- /extensions/piclens/admin/functions.inc.php	(revision 3410)
+++ /extensions/piclens/admin/functions.inc.php	(revision 3410)
@@ -0,0 +1,73 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier fonctions.inc.php  *********/
+
+
+function get_html_exts_selection(
+  $exts,
+  $fieldname,
+  $selecteds = array()
+  )
+{
+  global $conf;
+  if (count ($exts) == 0 )
+  {
+    return '';
+  }
+  $output = '<div id="'.$fieldname.'">';
+  $id = 1;
+  foreach ($exts as $ext)
+  {
+    $output.=
+
+      '<input type="checkbox" name="'.$fieldname.'[]"'
+      .' id="ext_'.$id++.'"'
+      .' value="'.$ext['tn_ext'].'"'
+      ;
+
+    if (in_array($ext['tn_ext'], $selecteds))
+    {
+      $output.= ' checked="checked"';
+    }
+
+    $output.=
+      '><label>'
+      .'&nbsp;<b>'. $ext['tn_ext'].'</b>&nbsp;'
+      .'</label>'
+      ."\n"
+      ;
+  }
+  $output.= '</div>';
+
+  return $output;
+}
+
+
+function get_all_exts()
+{
+$query = '
+  SELECT DISTINCT(tn_ext)
+  FROM '.IMAGES_TABLE.'
+  ORDER BY tn_ext;';
+
+$result = pwg_query($query);
+
+$ext = array();
+  while ($row = mysql_fetch_assoc($result))
+  {
+    if (empty($row['tn_ext']))
+		$row['tn_ext']='!NULL!';
+    array_push($ext, $row);
+  }
+
+  return $ext;
+}
+
+?>
Index: /extensions/piclens/admin/index.php
===================================================================
--- /extensions/piclens/admin/index.php	(revision 3410)
+++ /extensions/piclens/admin/index.php	(revision 3410)
@@ -0,0 +1,30 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/piclens/admin/piclens_admin.php
===================================================================
--- /extensions/piclens/admin/piclens_admin.php	(revision 3410)
+++ /extensions/piclens/admin/piclens_admin.php	(revision 3410)
@@ -0,0 +1,47 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier piclens-admin.php  *********/
+ 
+if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
+
+load_language('plugin.lang', PICLENS_PATH);
+
+include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
+
+
+global $template;
+
+// Gestion des onglets
+if (!isset($_GET['tab']))
+    $page['tab'] = 'config';
+else
+    $page['tab'] = $_GET['tab'];
+    
+$my_base_url = get_admin_plugin_menu_link(__FILE__);
+    
+$tabsheet = new tabsheet();
+$tabsheet->add('config',
+//               'Configuration',
+				l10n('piclens_config_tab'),
+               $my_base_url.'&amp;tab=config');
+$tabsheet->add('rssfeed',
+//               'Flux RSS',
+				l10n('piclens_rssfeed_tab'),
+               $my_base_url.'&amp;tab=rssfeed');
+$tabsheet->add('piclenswallconfig',
+//               'Configugation PiclensWall',
+				l10n('piclens_3dwallconfig_tab'),
+               $my_base_url.'&amp;tab=piclenswallconfig');
+$tabsheet->select($page['tab']);
+$tabsheet->assign();
+
+include_once (PICLENS_ADMIN_PATH.$page['tab'] . '.php');
+
+?>
Index: /extensions/piclens/admin/piclens_copy.php
===================================================================
--- /extensions/piclens/admin/piclens_copy.php	(revision 3410)
+++ /extensions/piclens/admin/piclens_copy.php	(revision 3410)
@@ -0,0 +1,30 @@
+<?php 
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier piclens-copy.php  *********/
+
+if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
+
+if (!file_exists($filename)) 
+{
+	$crossdomain = (dirname(__FILE__)).'/crossdomain.xml';
+	if (!file_exists($crossdomain))
+		array_push($page['error'], l10n('piclens_admin_saveERR1'));
+	else
+	{	
+		if (!copy($crossdomain, $filename)) 
+			array_push($page['error'], l10n('piclens_admin_saveERR2'));
+		else
+			array_push($page['infos'], l10n('piclens_admin_saveOK2'));	
+	}
+}
+else
+	array_push($page['error'], l10n('piclens_admin_saveERR3'));
+
+?>
Index: /extensions/piclens/admin/piclenswallconfig.php
===================================================================
--- /extensions/piclens/admin/piclenswallconfig.php	(revision 3410)
+++ /extensions/piclens/admin/piclenswallconfig.php	(revision 3410)
@@ -0,0 +1,149 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier piclenswallconfig.php  *********/
+
+if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
+
+global $template, $page;
+ 
+$pwgstuff_ok = get_db_plugins('active','PWG_Stuffs');
+$me = get_plugin_data($plugin_id);
+
+ $template->set_filenames( array('plugin_admin_content' => PICLENS_ROOT.'/admin/piclenswallconfig.tpl') );
+
+
+if (isset($_POST['submit'])) { 
+  $me->my_config['piclens_wall'] = isset($_POST['piclens_wall']);
+  $me->my_config['piclens_wall_color'] =   $_POST['background_color'];
+  $me->my_config['piclens_wall_height'] =   $_POST['piclens_wall_height'];
+  $me->my_config['piclens_wall_categories'] = isset($_POST['categories']) ? 
+                          array_map("mysql_escape_string", $_POST['categories']) :
+                          array(); 
+  $me->my_config['piclens_wall_nav'] = isset($_POST['piclens_wall_nav']);
+  $me->my_config['piclens_wall_cat_nav_replace'] = isset($_POST['categories_nav']) ? 
+                          array_map("mysql_escape_string", $_POST['categories_nav']) :
+                          array(); 
+  $me->my_config['piclens_wall_specif'] =   $_POST['piclens_wall_specif'];
+  $me->my_config['piclens_wall_ontop'] = isset($_POST['piclens_wall_ontop']);  
+  $me->my_config['piclens_wall_oncat'] = isset($_POST['piclens_wall_oncat']); 
+  $me->my_config['piclens_wall_showembed'] = isset($_POST['piclens_wall_embed']);
+  $me->my_config['piclens_wall_showfullscreen'] = isset($_POST['piclens_wall_fullscreen']);
+  $me->my_config['piclens_wall_showsearch'] = isset($_POST['piclens_wall_search']);
+  $me->my_config['piclens_wall_showsearch'] = isset($_POST['piclens_wall_search']);
+  $me->my_config['piclens_wall_transparent'] =   isset($_POST['piclens_wall_transparent']);
+
+  $me->my_config['piclens_wall_spec'] = isset($_POST['piclens_wall_spec']);
+  $me->my_config['piclens_wall_spec_recentpics'] = isset($_POST['piclens_wall_spec_recentpics']);
+  $me->my_config['piclens_wall_spec_recentcats'] = isset($_POST['piclens_wall_spec_recentcats']);
+  $me->my_config['piclens_wall_spec_mostvisited'] = isset($_POST['piclens_wall_spec_mostvisited']);
+  $me->my_config['piclens_wall_spec_bestrated'] = isset($_POST['piclens_wall_spec_bestrated']);
+  $me->my_config['piclens_wall_spec_favorites'] = isset($_POST['piclens_wall_spec_favorites']);
+
+  $me->my_config['piclens_wall_swflocal'] = isset($_POST['piclens_wall_swflocal']);
+  
+  if ($pwgstuff_ok && $me->my_config['piclens_wall'])
+  {
+	array_push($page['errors'], l10n('piclens_admin_saveERR4'));
+	$me->my_config['piclens_wall'] = false;
+  }
+
+  $me->save_config();
+  array_push($page['infos'], l10n('piclens_admin_saveOK'));
+	
+}
+
+
+// Copie fichier crossdomain a la racine
+$filename = $_SERVER['DOCUMENT_ROOT'].'/crossdomain.xml';
+// copie du fichier crossdomain.xml
+if (isset($_POST['crossdomain_copy']))
+{
+	include_once(PICLENS_ADMIN_PATH . '/piclens_copy.php');
+}
+
+//$template->assign('PICLENS_COPY_CROSSDOMAIN', file_exists($filename) ? l10n('piclens_label_crossdomain1') : '<input type="checkbox" name="crossdomain_copy" /> '.l10n('piclens_label_crossdomain2'));
+
+//$template->assign('PICLENS_COPY_CROSSDOMAIN', file_exists($filename));
+
+//$template->assign('PICLENS_PWGSTUFF', $pwgstuff_ok ? 'disabled="disabled"' : '');
+//$template->assign('PICLENS_PWGSTUFF1', $pwgstuff_ok ? l10n('piclens_label_pwgstuff1'): l10n('piclens_label_pwgstuff2'));
+
+//$template->assign('PICLENS_WALL_ACTIVATED', $me->my_config['piclens_wall'] ? 'checked="checked"' : '' );
+
+//$template->assign(array($me->my_config['piclens_wall_color'].'_CHECKED' => 'checked="checked"'));
+//$template->assign(array($me->my_config['piclens_wall_specif'].'_CHECKED' => 'checked="checked"'));
+//$template->assign(array('PICLENS_WALL_HEIGHT' => $me->my_config['piclens_wall_height']));
+
+//$template->assign('CROSSDOMAIN_LNK', PICLENS_PATH.'crossdomain.xml');
+
+$query = '
+  SELECT id,name,uppercats,global_rank
+  FROM '.CATEGORIES_TABLE.';';
+
+display_select_cat_wrapper($query,
+    $me->my_config['piclens_wall_categories'],
+    'categories',
+    true);
+
+display_select_cat_wrapper($query,
+    $me->my_config['piclens_wall_cat_nav_replace'],
+    'categories_nav',
+    true);
+	
+//$template->assign('PICLENS_WALL_ONTOP', $me->my_config['piclens_wall_ontop'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_WALL_ONCAT', $me->my_config['piclens_wall_oncat'] ? 'checked="checked"' : '' );
+
+//$template->assign('PICLENS_WALL_EMBED', $me->my_config['piclens_wall_showembed'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_WALL_FULLSCREEN', $me->my_config['piclens_wall_showfullscreen'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_WALL_SEARCH', $me->my_config['piclens_wall_showsearch'] ? 'checked="checked"' : '' );
+
+//$template->assign('PICLENS_WALL_NAV', $me->my_config['piclens_wall_nav'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_WALL_TITLE', $me->my_config['piclens_wall_title']);
+
+//$template->assign('PICLENS_WALL_SPEC', $me->my_config['piclens_wall_spec'] ? 'checked="checked"' : '' );
+
+//$template->assign('PICLENS_WALL_SPEC', $me->my_config['piclens_wall_spec'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_WALL_SPEC_RECENTPICS', $me->my_config['piclens_wall_spec_recentpics'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_WALL_SPEC_RECENTCATS', $me->my_config['piclens_wall_spec_recentcats'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_WALL_SPEC_MOSTVISITED', $me->my_config['piclens_wall_spec_mostvisited'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_WALL_SPEC_BESTRATED', $me->my_config['piclens_wall_spec_bestrated'] ? 'checked="checked"' : '' );
+//$template->assign('PICLENS_WALL_SPEC_FAVORITES', $me->my_config['piclens_wall_spec_favorites'] ? 'checked="checked"' : '' );
+
+$template->assign(array(
+	'PICLENS_COPY_CROSSDOMAIN'							=> file_exists($filename),
+	'PICLENS_PWGSTUFF'									=> ($pwgstuff_ok ? 'disabled="disabled"' : ''),
+	'PICLENS_PWGSTUFF1'									=> ($pwgstuff_ok ? l10n('piclens_label_pwgstuff1'): l10n('piclens_label_pwgstuff2')),
+	'PICLENS_WALL_ACTIVATED'							=> ($me->my_config['piclens_wall'] ? 'checked="checked"' : '' ),
+	$me->my_config['piclens_wall_color'].'_CHECKED' 	=> 'checked="checked"',
+	$me->my_config['piclens_wall_specif'].'_CHECKED' 	=> 'checked="checked"',
+	'PICLENS_WALL_HEIGHT' 								=> $me->my_config['piclens_wall_height'],
+	'CROSSDOMAIN_LNK'									=> PICLENS_PATH.'crossdomain.xml',
+	'PICLENS_WALL_ONTOP'								=> ($me->my_config['piclens_wall_ontop'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_ONCAT'								=> ($me->my_config['piclens_wall_oncat'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_EMBED'								=> ($me->my_config['piclens_wall_showembed'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_FULLSCREEN'							=> ($me->my_config['piclens_wall_showfullscreen'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_SEARCH'								=> ($me->my_config['piclens_wall_showsearch'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_TRANSPARENT'							=> ($me->my_config['piclens_wall_transparent'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_NAV'									=> ($me->my_config['piclens_wall_nav'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_TITLE'								=> $me->my_config['piclens_wall_title'],
+	'PICLENS_WALL_SPEC'									=> ($me->my_config['piclens_wall_spec'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_SPEC'									=> ($me->my_config['piclens_wall_spec'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_SPEC_RECENTPICS'						=> ($me->my_config['piclens_wall_spec_recentpics'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_SPEC_RECENTCATS'						=> ($me->my_config['piclens_wall_spec_recentcats'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_SPEC_MOSTVISITED'						=> ($me->my_config['piclens_wall_spec_mostvisited'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_SPEC_BESTRATED'						=> ($me->my_config['piclens_wall_spec_bestrated'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_SPEC_FAVORITES'						=> ($me->my_config['piclens_wall_spec_favorites'] ? 'checked="checked"' : '' ),
+	'PICLENS_WALL_SWFLOCAL'								=> ($me->my_config['piclens_wall_swflocal'] ? 'checked="checked"' : '' )
+	));
+
+
+$template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content');
+
+?>
Index: /extensions/piclens/admin/piclenswallconfig.tpl
===================================================================
--- /extensions/piclens/admin/piclenswallconfig.tpl	(revision 3410)
+++ /extensions/piclens/admin/piclenswallconfig.tpl	(revision 3410)
@@ -0,0 +1,190 @@
+{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
+{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
+{known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js"}
+
+{html_head}
+{/html_head}
+
+
+
+<div class="titrePage">
+  <h2>Piclens</h2>
+</div>
+<p>
+{'piclens_admin_title'|@translate}
+</p>
+<form method="post" action="{$PICLENS_F_ACTION}" class="general">
+<fieldset>
+	<legend>{'piclens_wallcfg_title'|@translate}</legend>
+	<TABLE>
+		<tr><td colspan="2"><br></td></tr>
+
+		<TR>
+			<td colspan="2" align="left">
+				 - <input type="checkbox" name="piclens_wall" {$PICLENS_WALL_ACTIVATED} {$PICLENS_PWGSTUFF}/> {'piclens_wallcfg_actived'|@translate}
+			</TD>
+		</TR>
+		<TR>
+			<td colspan="2" align="left">
+				<br>   {$PICLENS_PWGSTUFF1}
+			</td>
+		</TR>
+		<TR>
+			<td colspan="2" align="left">
+				&nbsp;&nbsp;   <input type="checkbox" name="piclens_wall_swflocal" {$PICLENS_WALL_SWFLOCAL}/> {'piclens_wallcfg_swflocal'|@translate}
+			</td>
+		</TR>
+		
+		<TR>
+			<td colspan="2"align="left">
+				<br>   <i>{'piclens_wallcfg_info'|@translate} <a href={$CROSSDOMAIN_LNK}>crossdomain.xml</a> {'piclens_wallcfg_info_suite'|@translate}</i>
+			</TD>
+		</TR>
+		<TR>
+			<td colspan="2" align="left">&nbsp;&nbsp;
+				{if $PICLENS_COPY_CROSSDOMAIN}
+				{'piclens_label_crossdomain1'|@translate}
+				{else}
+				<input type="checkbox" name="crossdomain_copy" /> {'piclens_label_crossdomain2'|@translate}
+				{/if}
+			<br>
+			</TD>	
+		</tr>
+		<tr>
+			<td colspan="2"><br><hr></td>
+		</tr>
+		<tr>
+			<td colspan="2" align="center">{'piclens_stuff_notparam'|@translate}</td>
+		</tr>
+		<tr>
+			<td align="right">{'piclens_wallcfg_name'|@translate}&nbsp;&nbsp;</td>
+			<td><input type="text" size="65" maxlength="50" value="{$PICLENS_WALL_TITLE}" name="piclens_wall_title"/></td>
+		</tr>
+		<tr>
+			<td align="right"> {'piclens_wallcfg_disp'|@translate} &nbsp;
+		    <td>
+				 <input type="checkbox" name="piclens_wall_ontop" {$PICLENS_WALL_ONTOP}/>&nbsp; {'piclens_wallcfg_disp_opt1'|@translate}
+				 <br>
+				 <input type="checkbox" name="piclens_wall_oncat" {$PICLENS_WALL_ONCAT}/>&nbsp; {'piclens_wallcfg_disp_opt2'|@translate}
+			</td>
+		</tr>
+
+		<tr>
+			<td colspan="2"><br><hr></td>
+		</tr>
+		<tr>
+			<td colspan="2" align="center">{'piclens_stuff_param_commun'|@translate}</td>
+		</tr>
+		<tr>
+		
+		<tr>
+		    <td align="right">{'piclens_wallcfg_color'|@translate} &nbsp;</td>
+		    <td><input type="radio" name="background_color" value="dark" {$dark_CHECKED}>&nbsp;{'piclens_wallcfg_colorB'|@translate}</td>
+		</tr>
+		<tr>
+		    <td align="right"></td>
+		    <td><input type="radio" name="background_color" value="white" {$white_CHECKED}>&nbsp;{'piclens_wallcfg_colorW'|@translate}</td>
+		</tr>
+		<tr>
+			<td align="right">{'piclens_wallcfg_heigh'|@translate} &nbsp;</td>
+			<td><input type="text" size="3" maxlength="3" value="{$PICLENS_WALL_HEIGHT}" name="piclens_wall_height">&nbsp;px</td>
+		</tr>
+		<br>
+		<tr>
+			<td align="right"> {'piclens_wallcfg_option'|@translate} &nbsp; </td>
+		    <td>
+				 <input type="checkbox" name="piclens_wall_embed" {$PICLENS_WALL_EMBED}/>&nbsp; {'piclens_wallcfg_option-opt1'|@translate} 
+				 <br>
+				 <input type="checkbox" name="piclens_wall_fullscreen" {$PICLENS_WALL_FULLSCREEN}/>&nbsp; {'piclens_wallcfg_option-opt2'|@translate}
+				 <br>
+				 <input type="checkbox" name="piclens_wall_search" {$PICLENS_WALL_SEARCH}/>&nbsp; {'piclens_wallcfg_option-opt3'|@translate}
+				 <br>
+				 <input type="checkbox" name="piclens_wall_transparent" {$PICLENS_WALL_TRANSPARENT}/>&nbsp; {'piclens_wallcfg_transparent'|@translate}
+				 <br/>
+			</td>
+		</tr>
+		<br>
+		<tr>
+		    <td align="right">{'piclens_wallcfg_param'|@translate} &nbsp;</td>
+		    <td><input type="radio" name="piclens_wall_specif" value="common" {$common_CHECKED}>&nbsp;{'piclens_wallcfg_paramNORM'|@translate}</td>
+		</tr>
+		<tr>
+		    <td align="right"></td>
+		    <td><input type="radio" name="piclens_wall_specif" value="spec" {$spec_CHECKED}>&nbsp;{'piclens_wallcfg_paramSPEC'|@translate}</td>
+		</tr>
+		<tr>
+			<td colspan="2"><br>&nbsp;</td>
+		</tr>
+		<TR>
+			<td align="right">{'piclens_wallcfg_cat'|@translate}&nbsp;</td>
+			<td align="center">
+		      <select class="categoryList" name="categories[]" multiple="multiple" size="30">
+		        {html_options options=$categories selected=$categories_selected value=$categories_value}
+		      </select>
+			</td>
+		</tr>
+	</TABLE>
+</fieldset>
+<br/>
+
+<fieldset>
+	<legend>{'piclens_wallcfg_navoption_title'|@translate}</legend>
+	<table>
+		<tr><td colspan="2"><br></td></tr>
+		<tr>
+			<td colspan="2" align="left">
+				 - <input type="checkbox" name="piclens_wall_nav" {$PICLENS_WALL_NAV}/> {'piclens_wallcfg_cat_nav'|@translate}
+			</TD>
+		</TR>
+		<TR>
+			<td align="right">{'piclens_wallcfg_cat_nav1'|@translate}&nbsp;</td>
+			<td align="center">
+		      <select class="categoryList" name="categories_nav[]" multiple="multiple" size="30">
+		        {html_options options=$categories_nav selected=$categories_nav_selected value=$categories_nav_value}
+		      </select>
+			</td>
+		</tr>
+
+		<tr>
+			<td align="left">
+				 - <input type="checkbox" name="piclens_wall_spec" {$PICLENS_WALL_SPEC}/> {'piclens_wallcfg_spec_nav'|@translate}
+			</TD>
+			<TD align="rignt">
+				 <input type="checkbox" name="piclens_wall_spec_favorites" {$PICLENS_WALL_SPEC_FAVORITES}/> {'piclens_favorites_label'|@translate} 
+		    <br/>
+				 <input type="checkbox" name="piclens_wall_spec_mostvisited" {$PICLENS_WALL_SPEC_MOSTVISITED}/> {'piclens_mostvisited_label'|@translate} 
+		    <br/>
+				 <input type="checkbox" name="piclens_wall_spec_bestrated" {$PICLENS_WALL_SPEC_BESTRATED}/> {'piclens_bestrated_label'|@translate} 
+		    <br/>
+				 <input type="checkbox" name="piclens_wall_spec_recentcats" {$PICLENS_WALL_SPEC_RECENTCATS}/> {'piclens_recentcats_label'|@translate} 
+		    <br/>
+				 <input type="checkbox" name="piclens_wall_spec_recentpics" {$PICLENS_WALL_SPEC_RECENTPICS}/> {'piclens_recentpics_label'|@translate} 
+			
+			</TD>
+		</TR>
+		
+	</table>
+{literal}
+<script type="text/javascript">
+  jQuery().ready(function(){
+    // Resize possible for categories selection
+    jQuery('.categoryList').resizable({
+      handles: "all",
+      animate: true,
+      animateDuration: "slow",
+      animateEasing: "swing",
+      preventDefault: true,
+      preserveCursor: true,
+      autoHide: true,
+      ghost: true
+    });
+  });
+</script>
+{/literal}
+
+<br/>
+</fieldset>
+ 
+<p><input type="submit" name="submit" value="{'piclens_admin_submit'|@translate}" /></p>
+
+</form>
Index: /extensions/piclens/admin/rssfeed.php
===================================================================
--- /extensions/piclens/admin/rssfeed.php	(revision 3410)
+++ /extensions/piclens/admin/rssfeed.php	(revision 3410)
@@ -0,0 +1,174 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier rssfeed.php  *********/
+
+
+if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
+
+include_once(PICLENS_ADMIN_PATH . 'functions.inc.php');
+
+global $template, $page;
+ 
+$me = get_plugin_data($plugin_id);
+
+//$order_list = array('Defaut Piwigo', 'Date de Creation', 'Date d\'ajout', 'Note Moyenne', 'Plus vues', 'Nom du fichier', 'Id', 'Al&eacute;atoire', 'Cat&eacute;gories');
+$order_list = array(l10n('piclens_label_orderPiwigo'), l10n('piclens_label_orderCreDate'), l10n('piclens_label_orderAddDate'), l10n('piclens_label_orderRank'), l10n('piclens_label_orderBest'), l10n('piclens_label_orderName'), l10n('piclens_label_orderID'), l10n('piclens_label_orderRand'), l10n('piclens_label_orderCat'));
+//$sort_list = array('Defaut Piwigo', 'Croissant', 'Decroissant');
+$sort_list = array(l10n('piclens_label_sortPiwigo'), l10n('piclens_label_sortUp'), l10n('piclens_label_sortDown'));
+
+//$thumb_list = array('Miniature', 'Normal');
+$thumb_list = array(l10n('piclens_label_TypeTN'), l10n('piclens_label_TypeNorm'));
+//$normal_list = array('Miniature', 'Normal', 'High');
+$normal_list = array(l10n('piclens_label_TypeTN'), l10n('piclens_label_TypeNorm'), l10n('piclens_label_TypeHigh'));
+//$nameformat_list = array('Nom vignette : taille', 'Nom vignette', 'Nom de l\'image');
+$nameformat_list = array(l10n('piclens_label_Name1'), l10n('piclens_label_Name2'), l10n('piclens_label_Name3'));
+//$descformat_list = array('Rien', 'Nom de l\'image', 'Description de l\'image');
+$descformat_list = array(l10n('piclens_label_Desc1'), l10n('piclens_label_Desc2'), l10n('piclens_label_Desc3'));
+ 
+ 
+$template->set_filenames( array('plugin_admin_content' => PICLENS_ROOT.'/admin/rssfeed.tpl') );
+
+if (isset($_POST['submit'])) { 
+  $me->my_config['piclens_thumb'] = $_POST['piclens_thumb'];
+  $me->my_config['piclens_normal'] = $_POST['piclens_normal'];
+  $me->my_config['piclens_order'] = $_POST['piclens_order'];
+  $me->my_config['piclens_order_cat'] = $_POST['piclens_order_cat'];
+  $me->my_config['piclens_sort'] = $_POST['piclens_sort'];
+  $me->my_config['piclens_sort_cat'] = $_POST['piclens_sort_cat'];
+  
+  $included_file_types = isset($_POST['file_types']) ? 
+                          array_map("mysql_escape_string", $_POST['file_types']) :
+                          array(); 
+  $me->my_config['included_file_types'] = $included_file_types;
+  $me->my_config['piclens_name_image'] = $_POST['piclens_name_image'];
+  $me->my_config['piclens_name_desc'] = $_POST['piclens_name_desc'];
+  $me->my_config['piclens_video'] = isset($_POST['piclens_video']);
+  $me->my_config['piclens_cat_view'] = isset($_POST['piclens_cat_view']);
+
+  
+  if ($me->my_config['piclens_order'] == 1)	// defaut PIWIGO
+	$me->my_config['piclens_sort'] = 1;		// defaut PIWIGO
+  if ($me->my_config['piclens_order_cat'] == 1)	// defaut PIWIGO
+	$me->my_config['piclens_sort_cat'] = 1;		// defaut PIWIGO
+
+  $me->save_config();
+  array_push($page['infos'], l10n('piclens_admin_saveOK'));
+	
+}
+// Affichage des coix miniature possibles pour Piclens
+$i=1;
+foreach ( $thumb_list as $order ) //on parcours le tableau 
+{
+	$template->append('PlThumb',array('ID' => $i,'NAME' => $order,'SELECTED' => ($me->my_config['piclens_thumb'] == $i ? 'selected' : '')));
+	$i++;	
+}
+//$template->assign('PICLENS_THUMB', $me->my_config['piclens_thumb']);
+
+// Affichage des choix normal possibles pour Piclens
+$i=1;
+foreach ( $normal_list as $order ) //on parcours le tableau 
+{
+	$template->append('PlNormal',array('ID' => $i,'NAME' => $order,'SELECTED' => ($me->my_config['piclens_normal'] == $i ? 'selected' : '')));
+	$i++;	
+}
+//$template->assign('PICLENS_NORMAL', $me->my_config['piclens_normal']);
+
+
+// Affichage des tri possibles pour Piclens - HOME (Accueil)
+$i=1;
+foreach ( $order_list as $order ) //on parcours le tableau 
+{
+	$template->append('PlOrder',array('ID' => $i,'NAME' => $order,'SELECTED' => ($me->my_config['piclens_order'] == $i ? 'selected' : '')));
+	$i++;	
+}
+//$template->assign('PICLENS_ORDER', $me->my_config['piclens_order']);
+
+// Affichage des tri possibles pour Piclens - CATEGORIES
+$i=1;
+foreach ( $order_list as $order ) //on parcours le tableau 
+{
+	$template->append('PlOrderC',array('ID' => $i,'NAME' => $order,'SELECTED' => ($me->my_config['piclens_order_cat'] == $i ? 'selected' : '')));
+	$i++;	
+}
+//$template->assign('PICLENS_ORDER_CAT', $me->my_config['piclens_order_cat']);
+
+// Affichage de l'ordre possibles pour Piclens
+$i=1;
+foreach ( $sort_list as $order ) //on parcours le tableau 
+{
+	$template->append('PlSort',array('ID' => $i,'NAME' => $order,'SELECTED' => ($me->my_config['piclens_sort'] == $i ? 'selected' : '')));
+	$i++;	
+}
+//$template->assign('PICLENS_SORT', $me->my_config['piclens_sort']);
+
+// Affichage de l'ordre possibles pour Piclens - CATEGORIES
+$i=1;
+foreach ( $sort_list as $order ) //on parcours le tableau 
+{
+	$template->append('PlSortC',array('ID' => $i,'NAME' => $order,'SELECTED' => ($me->my_config['piclens_sort_cat'] == $i ? 'selected' : '')));
+	$i++;	
+}
+//$template->assign('PICLENS_SORT_CAT', $me->my_config['piclens_sort_cat']);
+
+/*ù
+// Selection type de fichier autorise
+$query = '
+  SELECT DISTINCT(tn_ext)
+  FROM '.IMAGES_TABLE.';';
+
+$result = pwg_query($query);
+if (!empty($result)) {
+
+  while ($row = mysql_fetch_assoc($result)) {
+  if (empty($row['tn_ext']))
+	$row['tn_ext']='!NULL!';
+  $template->append(
+      'file_types',
+      array('SELECTED' => (!empty($me->my_config['included_file_types']) && in_array($row['tn_ext'], $me->my_config['included_file_types'] )) ? 'selected' : '',
+            'VALUE' => $row['tn_ext'],
+            'OPTION' => $row['tn_ext']
+           )
+    );
+  }
+}
+*/
+
+// Selection des groupes
+$exts = get_all_exts();
+if (!empty($exts))
+{
+  $template->assign('file_types',  get_html_exts_selection($exts, 'file_types', $me->my_config['included_file_types']));
+}
+
+
+// Affichage des types d'affichage de nom image dans piclens
+$i=1;
+foreach ( $nameformat_list as $order ) //on parcours le tableau 
+{
+	$template->append('PlName',array('ID' => $i,'NAME' => $order,'SELECTED' => ($me->my_config['piclens_name_image'] == $i ? 'selected' : '')));
+	$i++;	
+}
+//$template->assign('PICLENS_NAME_IMAGE', $me->my_config['piclens_name_image']);
+
+// Affichage des types d'affichage de description image dans piclens
+$i=1;
+foreach ( $descformat_list as $order ) //on parcours le tableau 
+{
+	$template->append('PlDesc',array('ID' => $i,'NAME' => $order,'SELECTED' => ($me->my_config['piclens_name_desc'] == $i ? 'selected' : '')));
+	$i++;	
+}
+//$template->assign('PICLENS_NAME_DESC', $me->my_config['piclens_name_desc']);
+
+$template->assign('PICLENS_VIDEO', $me->my_config['piclens_video'] ? 'checked="checked"' : '' );
+$template->assign('PICLENS_CAT_VIEW', $me->my_config['piclens_cat_view'] ? 'checked="checked"' : '' );
+
+$template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content');
+
+?>
Index: /extensions/piclens/admin/rssfeed.tpl
===================================================================
--- /extensions/piclens/admin/rssfeed.tpl	(revision 3410)
+++ /extensions/piclens/admin/rssfeed.tpl	(revision 3410)
@@ -0,0 +1,177 @@
+
+{html_head}
+{/html_head}
+
+
+<div class="titrePage">
+  <h2>Piclens</h2>
+</div>
+<p>
+{'piclens_admin_title'|@translate}
+</p>
+<form method="post" action="{$PICLENS_F_ACTION}" class="general">
+<fieldset>
+	<legend>{'piclens_rsscfg_title'|@translate}</legend>
+
+     <br/>
+<div>
+<fieldset>
+	<legend>{'piclens_rsscfg_exttitle'|@translate}</legend>
+	<TABLE border="0" CELLPADDING="3"  ALIGN="LEFT">
+		<TR>
+			<TD > 
+			    {'piclens_rsscfg_ext'|@translate}
+			</TD > 
+			<td colspan="2">{$file_types}
+			</td>
+		</TR>
+		<TR>
+			<TD > &nbsp;
+			</TD > 
+			<TD colspan="2"> 
+			    <i>{'piclens_rsscfg_ext1'|@translate}</i>
+			</TD > 
+		</TR>
+		<TR>
+			<td colspan="3"><i>&nbsp;&nbsp; {'piclens_rsscfg_ext2'|@translate}</i>
+			</td>
+		</TR>
+	</TABLE>
+</fieldset>
+
+</div>
+
+<div>
+<TABLE border="0" CELLPADDING="3"  ALIGN="LEFT">
+
+	<TR>
+		<TD > 
+		     - {'piclens_rsscfg_TNtype'|@translate}
+		</TD > 
+		<TD colspan="2" > 		
+		    <select id="PlThumbInput" name="piclens_thumb">
+			{foreach from=$PlThumb item=PlThumb}
+				<option value="{$PlThumb.ID}" {$PlThumb.SELECTED}>{$PlThumb.NAME}</option>
+			{/foreach}
+		    </select>
+
+		</TD>
+	</TR>
+	<TR>
+		
+		<TD > 
+			 - {'piclens_rsscfg_IMGtype'|@translate}
+		</TD > 
+		<TD colspan="2"> 		
+		    <select id="PlNormalInput" name="piclens_normal">
+			{foreach from=$PlNormal item=PlNormal}
+				<option value="{$PlNormal.ID}" {$PlNormal.SELECTED}>{$PlNormal.NAME}</option>
+			{/foreach}
+		    </select>
+		
+		</TD>
+	</TR>
+
+	<TR>
+
+		<TD > 
+		</TD > 
+		<TD > {'piclens_label_sortHome'|@translate}
+		</TD > 
+		<TD > {'piclens_label_sortCat'|@translate}
+		</TD > 
+	</TR>
+	
+	<TR>
+
+		<TD > 
+			 - {'piclens_rsscfg_order'|@translate}
+		</TD > 
+		<TD> 		
+		    <select id="PlInput" name="piclens_order">
+			{foreach from=$PlOrder item=PlOrder}
+				<option value="{$PlOrder.ID}" {$PlOrder.SELECTED}>{$PlOrder.NAME}</option>
+			{/foreach}
+		    </select>
+		</TD>
+		<TD> 		
+		    <select id="PlInput" name="piclens_order_cat">
+			{foreach from=$PlOrderC item=PlOrderC}
+				<option value="{$PlOrderC.ID}" {$PlOrderC.SELECTED}>{$PlOrderC.NAME}</option>
+			{/foreach}
+		    </select>
+		</TD>
+	</TR>
+	<TR>
+		<TD > 
+			 - {'piclens_rsscfg_order1'|@translate}
+		</TD > 
+		<TD> 		
+		    <select id="Plsort" name="piclens_sort">
+			{foreach from=$PlSort item=PlSort}
+				<option value="{$PlSort.ID}" {$PlSort.SELECTED}>{$PlSort.NAME}</option>
+			{/foreach}
+		    </select>
+		</TD>
+		<TD> 		
+		    <select id="PlsortC" name="piclens_sort_cat">
+			{foreach from=$PlSortC item=PlSortC}
+				<option value="{$PlSortC.ID}" {$PlSortC.SELECTED}>{$PlSortC.NAME}</option>
+			{/foreach}
+		    </select>
+		</TD>
+
+	</TR>
+	<TR>
+		<TD colspan="3"> &nbsp;
+		</TD>
+	</TR>
+	<TR>
+		<TD > 
+			 - {'piclens_rsscfg_name'|@translate}
+		</TD > 
+		<TD> 		
+		    <select id="Plname" name="piclens_name_image">
+			{foreach from=$PlName item=PlName}
+				<option value="{$PlName.ID}" {$PlName.SELECTED}>{$PlName.NAME}</option>
+			{/foreach}
+		    </select>
+		
+		</TD>
+		<TD > 
+		     &nbsp;&nbsp;<input type="checkbox" name="piclens_cat_view" {$PICLENS_CAT_VIEW}/> {'piclens_rsscfg_namecat'|@translate}
+		</TD > 
+		
+
+	</TR>
+	<TR>
+		<TD > 
+			 - {'piclens_rsscfg_desc'|@translate}
+		</TD > 
+		<TD colspan="2"> 		
+		    <select id="Pldesc" name="piclens_name_desc">
+			{foreach from=$PlDesc item=PlDesc}
+				<option value="{$PlDesc.ID}" {$PlDesc.SELECTED}>{$PlDesc.NAME}</option>
+			{/foreach}
+		    </select>
+		
+		</TD>
+
+	</TR>
+	<TR>
+		<TD > 
+		     - <input type="checkbox" name="piclens_video" {$PICLENS_VIDEO}/> {'piclens_rsscfg_video'|@translate}
+		</TD > 
+		<TD colspan="2"> 	&nbsp;
+		</TD>
+	</TR>
+
+</TABLE> 
+</div>
+    
+	<br/>
+</fieldset>
+ 
+<p><input type="submit" name="submit" value="{'piclens_admin_submit'|@translate}" /></p>
+
+</form>
Index: /extensions/piclens/crossdomain.xml
===================================================================
--- /extensions/piclens/crossdomain.xml	(revision 3410)
+++ /extensions/piclens/crossdomain.xml	(revision 3410)
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
+<cross-domain-policy>
+    <site-control permitted-cross-domain-policies="all"/>
+    <allow-access-from domain="*.cooliris.com" secure="false" />
+    <allow-access-from domain="*.piclens.com" secure="false" />
+ 
+</cross-domain-policy>
+
Index: /extensions/piclens/generate_rss.php
===================================================================
--- /extensions/piclens/generate_rss.php	(revision 3410)
+++ /extensions/piclens/generate_rss.php	(revision 3410)
@@ -0,0 +1,611 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier generate_rss.php  *********/
+
+$debug = false;
+
+if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
+
+include (PICLENS_INC_PATH.'config_extendeddesc.inc.php');	// Parametres pour extended description.
+
+// recuperation du parametre pour le mode no recursif (forçage de la non recursivite)
+if (isset($_GET['norecurs'])) 
+{
+	$obj->my_config['piclens_recursive'] = false;
+}
+
+
+// extensions video
+$py_addext = array("gvideo", "dm", "ytube", "wideo", "vimeo", "flv");
+$video_ext_piclens = array("flv");
+
+// Vérification présence et activation plugin SecureImages ET si actif, vérification d'activation de compatibilité
+$plugins_SecureImage_only = (get_db_plugins('active','secureImages') ? true : false );
+$plugins_SecureImage = ($plugins_SecureImage_only && ($obj->my_config['piclens_secureimage']) ? true : false );
+// Verification presence et activation plugin ExtendedDescription 
+$plugins_ExtendedDesc = (get_db_plugins('active','ExtendedDescription') && ($obj->my_config['piclens_extendeddesc']) ? true : false );
+
+
+// Vérification d'activation du plugin (page administration) OU activation de piclensWall
+if ($obj->my_config['piclens_active'] OR $obj->my_config['piclens_wall'] OR (!$obj->my_config['piclens_wall'] AND get_db_plugins('active','PWG_Stuffs')))
+{
+	//-------------------------------------------------------------- initialization
+
+	// Mode des miniatures et des images normales dans piclens (avec et sans plugin secureimage)
+	$thumb_secure = array('', '&amp;thumb=1', '');	// correspondant a 1-->'miniature' et 2-->'normal'
+	$normal_secure = array('', '&amp;thumb=1', '', '&amp;highdef=1');	// correspondant a 1-->'miniature' et 2-->'normal' et 3 --> High
+	$order_list = array('', $conf['order_by_inside_category'], 'ORDER BY date_creation', 'ORDER BY date_available', 'ORDER BY average_rate', 'ORDER BY hit', 'ORDER BY file', 'ORDER BY id', 'ORDER BY RAND()', 'ORDER BY category_id');	
+	$order_sort = array('', '', ' ASC', ' DESC');
+
+	// Extensions a prendre en compte
+	$tn_ext_is_null = false;
+	$type_ext = $obj->my_config['included_file_types'];
+	foreach($type_ext as $i => $value)
+	{
+		if ($value == '!NULL!')	$tn_ext_is_null = true;
+		$type_ext[$i] = '"'.($value == '!NULL!' ? 'NULL' : $value).'"';
+	}
+
+	// Categories a prendre en compte pour le mur
+	$piclenswall_cat = (isset($obj->my_config['piclens_wall_categories']) ? $obj->my_config['piclens_wall_categories'] : array());
+
+	// Seulement sur une page type 'categorie'
+	if (isset($page['section']))
+	{
+		$cat = array();
+		$pictures = array();
+
+		$forbidden = get_sql_condition_FandF(
+			  array
+				(
+				  'forbidden_categories' => 'category_id',
+				  'visible_categories' => 'category_id',
+				  'visible_images' => 'id'
+				),
+			  'AND'
+		  );
+
+		// Images recentes
+		if (($page['section']) == 'recent_pics')
+		{
+		    if ( !isset($page['super_order_by']) )
+		    {
+		      $conf['order_by'] = str_replace(
+		        'ORDER BY ',
+		        'ORDER BY date_available DESC,',
+		        $conf['order_by']
+		        );
+		    }			
+			// $cat need to bo not null...
+			array_push($cat, "1");
+
+			$query = 'SELECT DISTINCT(img.id), img.file, img.date_available, img.date_creation, img.tn_ext, img.name, 
+					  img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path, 
+					  img.level '
+					.' FROM ' . IMAGES_TABLE.' AS img'
+					.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON img.id = ic.image_id'
+					.' WHERE
+						img.date_available >= SUBDATE(
+						CURRENT_DATE,INTERVAL '.$user['recent_period'].' DAY) '
+						.$forbidden
+						.' '.$conf['order_by'].';';
+		}
+		// Plus vues
+		elseif ($page['section'] == 'recent_cats')
+		{
+			// $cat need to bo not null...
+			array_push($cat, "1");
+
+			$query = 'SELECT DISTINCT(img.id), img.file, img.date_available, img.date_creation, img.tn_ext, img.name, 
+					  img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path, 
+					  img.level, ic.category_id, cat.name AS catname, cat.comment AS catcomment, cat.rank, cat.status, 
+					  cat.visible, cat.uppercats, cat.permalink '
+					.' FROM ' . IMAGES_TABLE.' AS img'
+					.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON img.id = ic.image_id'
+					.' INNER JOIN '.CATEGORIES_TABLE.' AS cat ON ic.category_id = cat.id'			
+					.' INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.' ON cat.id = cat_id and user_id = '.$user['id']
+					.' WHERE date_last >= SUBDATE(
+						CURRENT_DATE,INTERVAL '.$user['recent_period'].' DAY
+						)
+						'.get_sql_condition_FandF
+							(
+								array('visible_categories' => 'id',),
+							'AND'
+							).'
+						;';
+		}
+		
+		// Plus vues
+		elseif ($page['section'] == 'most_visited')
+		{
+			// $cat need to bo not null...
+			array_push($cat, "1");
+			$query = 'SELECT DISTINCT(img.id), img.file, img.date_available, img.date_creation, img.tn_ext, img.name, 
+					  img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path, 
+					  img.level, ic.category_id, cat.name AS catname, cat.comment AS catcomment, cat.rank, cat.status, 
+					  cat.visible, cat.uppercats, cat.permalink '
+					.' FROM ' . IMAGES_TABLE.' AS img'
+					.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON img.id = ic.image_id'
+					.' INNER JOIN '.CATEGORIES_TABLE.' AS cat ON ic.category_id = cat.id'			
+					.' WHERE img.hit > 0 '
+				    .$forbidden
+					.' ORDER BY hit DESC, file ASC'
+					.' LIMIT 0, '.$conf['top_number'].';';
+		
+		}
+		// mieux notees	
+		elseif ($page['section'] == 'best_rated')
+		{
+			// $cat need to bo not null...
+			array_push($cat, "1");
+
+			$query = 'SELECT DISTINCT(img.id), img.file, img.date_available, img.date_creation, img.tn_ext, img.name, 
+					  img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path, 
+					  img.level '
+					.' FROM ' . IMAGES_TABLE.' AS img'
+					.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON img.id = ic.image_id'
+					.' WHERE img.average_rate IS NOT NULL '
+					.$forbidden
+					.' ORDER BY average_rate DESC, id ASC'
+					.' LIMIT 0, '.$conf['top_number'].';';
+		}
+		elseif ($page['section'] == 'favorites')
+		{
+			check_user_favorites();
+			// $cat need to bo not null...
+			array_push($cat, "1");
+
+			$query = 'SELECT img.id, img.file, img.date_available, img.date_creation, img.tn_ext, img.name, 
+					  img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path, 
+					  img.level '
+					.' FROM '.FAVORITES_TABLE.' AS fav '
+					.' INNER JOIN '.IMAGES_TABLE.' AS img ON fav.image_id = img.id'
+					.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON img.id = ic.image_id'
+					.' WHERE user_id = '.$user['id']
+					.' '.get_sql_condition_FandF
+						(
+							array('visible_images' => 'id'),
+							'AND'
+						)
+					.' '.$conf['order_by'].';';
+		}
+
+		elseif (($page['section']) == 'categories')
+		{
+			// Accueil
+			if(empty($page['category'])) 
+			{
+				// Page accueil
+				// Vérification d'activation du plugin (page administration)
+				// ou flux pour piclenswall et configuration specifique
+				if ($obj->my_config['piclens_gallerie_active'] || $piclenswallfeed)
+				{
+					// Categories de premier niveau 
+					$query = 'SELECT id,name,permalink FROM ' . CATEGORIES_TABLE
+					.' WHERE id_uppercat is NULL';
+					
+					$result = pwg_query($query);
+
+					while ($row = mysql_fetch_assoc($result))
+					{
+						if (!(in_array($row['id'], explode(',', $user['forbidden_categories']))))
+						{
+									array_push($cat, $row['id']);
+								
+						}
+					}
+					// Type = avec recursiite 
+					// Si parametrage specifique pour le mur 3D,  recursivite sur les categories 
+					if (($piclenswallfeed) || (( $obj->my_config['piclens_gallerie_type'])-1))
+					{
+						// recuperation des sous-categories (tous niveaux) de la categorie en cours.
+						$subcat= get_subcat_ids($cat);
+			
+						// Verification droits des sous-categories
+						foreach($subcat as $sscat)
+						{
+							if (!(in_array($sscat, explode(',', $user['forbidden_categories']))))
+									array_push($cat, $sscat);
+						}
+					}
+
+					// selection uniquement des categories a afficher (si flux pour le mur ET parametre mur = specifique)
+					if ($piclenswallfeed)
+					{
+						foreach($cat as $i => $wcat)
+						{
+							if (!in_array($wcat, $piclenswall_cat))
+								unset($cat[$i]);
+						}
+					}
+
+					$query = 'SELECT DISTINCT(img.id), img.file, img.date_available, img.date_creation, img.tn_ext, img.name, 
+							  img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path, 
+							  img.level, ic.category_id, cat.name AS catname, cat.comment AS catcomment, cat.rank, cat.status, 
+							  cat.visible, cat.uppercats, cat.permalink '
+					.' FROM ' . IMAGES_TABLE.' AS img'
+					.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON img.id = ic.image_id'
+					.' INNER JOIN '.CATEGORIES_TABLE.' AS cat ON ic.category_id = cat.id'
+					.' WHERE ic.category_id IN ('.implode(',', $cat).')'
+					.(sizeof($obj->my_config['included_file_types']) ? ' AND (img.tn_ext IN ('.implode(',', $type_ext).')' : '')
+					.($tn_ext_is_null ? ' OR img.tn_ext IS NULL)' : (sizeof($obj->my_config['included_file_types']) ? ')' : ''))
+					// Verif droits (niveaux) de l'utilisateur sur les images 
+					.' AND img.level <='.$user['level'].' '
+					// Choix du critere de tri d'affichage
+					.$order_list[ $obj->my_config['piclens_order'] ]
+					.$order_sort[ $obj->my_config['piclens_sort'] ];
+					
+					
+				}
+			}
+			
+			// Page category
+			elseif (isset($page['category']))
+			{
+				check_restrictions($page['category']['id']);
+		
+				// Flux pour le mur 3D et mur en mode "specifique"
+				if ($piclenswallfeed)
+				{
+					$selectionID = $page['category']['id'];
+					//  categorie parametre pour etre affichee dans le mur
+					if (in_array($selectionID, $piclenswall_cat))
+						array_push($cat, $selectionID);
+
+					// recuperation des sous-categories (tous niveaux) de la categorie en cours.
+					$subcat= get_subcat_ids(array($selectionID));
+
+					// Verification ajout des sous-categories qui peuvent être affichees (parametrees dans mur 3D) et des drois des sous categories 
+					foreach($subcat as $sscat)
+					{
+						if ((in_array($sscat, $piclenswall_cat)) && (!(in_array($sscat, explode(',', $user['forbidden_categories'])))))
+							array_push($cat, $sscat);
+					}
+
+				}
+				// Piclens (et mur 3D avec meme parametrage que piclens) : paramétrage "commun"
+				else
+				{		
+					//  recherche de toutes les photos de la categorie (incluant les photos des sous-categories si necessaire)
+					$selectionID = $page['category']['id'];
+
+					array_push($cat, $selectionID);
+
+					// Si recursivite activee 
+					if ($obj->my_config['piclens_recursive'])
+					{
+						// recuperation des sous-categories (tous niveaux) de la categorie en cours.
+						$subcat= get_subcat_ids(array($selectionID));
+
+						// Verification droits des sous-categories
+						foreach($subcat as $sscat)
+				 		{
+							if (!(in_array($sscat, explode(',', $user['forbidden_categories']))))
+								array_push($cat, $sscat);
+						}
+					
+					}
+				}
+					
+				$query = 'SELECT DISTINCT(img.id), img.file, img.date_available, img.date_creation, img.tn_ext, img.name, 
+						  img.comment, img.author, img.hit ,img.filesize, img.average_rate, img.has_high, img.path, 
+						  img.level, ic.category_id, cat.name AS catname, cat.comment AS catcomment, cat.rank, cat.status, 
+						  cat.visible, cat.uppercats, cat.permalink '
+				.' FROM ' . IMAGES_TABLE.' AS img'
+				.' INNER JOIN '.IMAGE_CATEGORY_TABLE.' AS ic ON img.id = ic.image_id'
+				.' INNER JOIN '.CATEGORIES_TABLE.' AS cat ON ic.category_id = cat.id'
+				.' WHERE ic.category_id IN ('.implode(',', $cat).')'
+				.(sizeof($obj->my_config['included_file_types']) ? ' AND (img.tn_ext IN ('.implode(',', $type_ext).')' : '')
+				.($tn_ext_is_null ? ' OR img.tn_ext IS NULL)' : (sizeof($obj->my_config['included_file_types']) ? ')' : ''))
+				// Verif droits (niveaux) de l'utilisateur sur les images 
+				.' AND img.level <='.$user['level'].' '
+				// Choix du critere de tri d'affichage
+				.$order_list[ $obj->my_config['piclens_order_cat'] ]
+				.$order_sort[ $obj->my_config['piclens_sort_cat'] ];
+
+				}
+		}
+			
+		if ($debug)	echo $query;
+		
+			// Si au moins une image récupérée (une catégorie ou une image présente)
+		if (count($cat)!=0)
+		{
+			$result = pwg_query($query);
+			while ($row = mysql_fetch_assoc($result))
+			{
+				// Plugin Extended Description present et active
+				// suppression des categories et images pour lesquelles un <!--hidden--> est present 
+				if (!$plugins_ExtendedDesc
+					OR ($plugins_ExtendedDesc 
+						&& !(substr_count($row['name'],  $piclens_extdesc_hidden)) 
+						&& ((isset($row['catname']) ? !(substr_count($row['catname'],  $piclens_extdesc_hidden)) : true))
+						))
+					array_push($pictures, $row);
+			}
+		}
+		// Fin requetes recherches photos
+
+		
+		// Creation du fichier xml (flux rss)
+		// It's a rss file
+		header("Content-Type: application/xml; charset=UTF-8");
+		echo '<?xml version="1.0" encoding="utf-8" standalone="yes"?>';
+		echo "\n";
+		echo '<rss version="2.0" '."\n"
+			 .'xmlns:media="http://search.yahoo.com/mrss/" '."\n"
+			 .'xmlns:atom="http://www.w3.org/2005/Atom">';
+		echo "\n";
+		echo '<channel>';
+		echo "\n";
+
+		//	<!--	<title>test Page</title> -->
+		echo '<link>'.$obj->root_site_piclens.'</link>';
+		echo "\n";
+		echo '<description>Flux RSS pour cooliris</description>';
+		echo "\n";
+		echo '<language>fr</language>';
+		echo "\n";
+
+		// Version du plugin Piclens
+		$db_plugins = get_db_plugins('', 'piclens'); 
+		if (!empty($db_plugins)) 
+			$piclens_version = $db_plugins[0]['version']; 
+		else
+			$piclens_version = 'N/A'; 
+
+		echo '<generator>Piwigo Cooliris Plugin v.'.$piclens_version.'</generator>';
+		echo "\n";
+
+		// Icone de la gallerie dans le flux RSS
+//		echo '<logo url="'.get_root_url().'template-common/favicon.ico"></logo>';
+		echo "\n";
+		echo '<atom:icon>'.$obj->root_site_piclens.'template-common/favicon.ico</atom:icon>';
+		echo "\n";
+//   <atom:link href="http://mywebsite.com/photos.rss" rel="self" type="application/rss+xml" />
+
+		// Pour chacune des images, preparation du flux xml
+		foreach ($pictures as $row)
+		{
+			// Mode de l'image parametre
+			$piclens_normal = $obj->my_config['piclens_normal'];
+
+			// si parametrage high et high absente ou utilisateur non habilite, affichage version normale
+			if (($piclens_normal == 3) && (!($row['has_high']) || !$user['enabled_high']))
+				$piclens_normal = 2; // Normal uniquement pour l'image en cours
+
+			// Get thumbnail url
+			if ($plugins_SecureImage)	// SecureImage installe et actif
+			{
+				$link_url = $obj->root_site_piclens.'plugins/secureImages/getFile.php?image_id='.$row['id'];
+
+				$thumbnail_url = $obj->root_site_piclens.'plugins/secureImages/getFile.php?image_id='.$row['id']
+				.$thumb_secure[$obj->my_config['piclens_thumb'] ];
+				$content_url = $obj->root_site_piclens.'plugins/secureImages/getFile.php?image_id='.$row['id']
+				.$normal_secure[$piclens_normal ];
+			}
+			else	// SecureImage non installe ou non actif
+			{
+				$link_url = $obj->root_site_piclens.$row['path'];
+				
+				if ( ($obj->my_config['piclens_thumb']) == 2) 	// Normal
+					$thumbnail_url = (url_is_remote($row['path']) ? $row['path']: embellish_url($obj->root_site_piclens.$row['path']));
+				else
+				{
+					if ($plugins_SecureImage_only)	// Plugin secureimage active mais configuration compatibilite piclens-secureimage desactivee
+					{
+						$path=get_thumbnail_location($row);
+						$thumbnail_url = ( url_is_remote($path) ? $path : embellish_url($obj->root_site_piclens.$path) );
+					}
+					else	// Plugin secureimage desactive
+					{
+						$thumbnail_url = embellish_url($obj->root_site_piclens.get_thumbnail_location($row));
+					}
+				}	
+
+				switch ($piclens_normal)
+				{
+					case 1 : // miniature
+						if ($plugins_SecureImage_only)	// Plugin secureimage active mais configuration compatibilite piclens-secureimage desactivee
+						{
+							$path=get_thumbnail_location($row);
+							$content_url = ( url_is_remote($path) ? $path : embellish_url($obj->root_site_piclens.$path) );
+						}
+						else	// Plugin secureimage desactive
+						{
+							$content_url = embellish_url($obj->root_site_piclens.get_thumbnail_location($row));;
+						}
+						break;
+					case 2 : // normal
+						$content_url = (url_is_remote($row['path']) ? $row['path']: embellish_url($obj->root_site_piclens.$row['path']));
+						break;
+					case 3 : 
+						 $content_url =  (url_is_remote($row['path']) ? dirname($row['path']).'/pwg_high/'.basename($row['path']) 
+																	  : embellish_url( $obj->root_site_piclens. dirname($row['path']).'/pwg_high/'.basename($row['path']))
+										 );
+						 break;
+					default : // normal
+						$content_url =  (url_is_remote($row['path']) ? $row['path'] : embellish_url($obj->root_site_piclens.$row['path']));
+						break;
+				}
+			}
+			
+			// link on picture.php page
+			set_make_full_url();
+			if ( isset($row['category_id']) & isset($row['catname']) ) 
+			{
+				$url = duplicate_picture_url(
+				array(
+				'image_id' => $row['id'],
+				'image_file' => $row['file'],
+				'category' => array(
+								'id' => $row['category_id'],
+								'name' => $row['catname'],
+								'permalink' => ''
+							  )
+				),
+				array('start')
+				);
+			}
+			else
+			{
+				$url = duplicate_picture_url(
+				  array(
+					'image_id' => $row['id'],
+					'image_file' => $row['file']
+				  ),
+				  array('start')
+				);
+			}	
+			unset_make_full_url();
+
+			// HTTPS Patch : If needed NO_https can easily be set in your config_local thru LocalFiles Editor
+			if (isset($conf['NO_https']) and $conf['NO_https'] and strncasecmp($url, 'https://', 8) == 0 ) 
+				$url = 'http://' . substr($url, 8);
+			
+			// Show rss item for a picture
+			echo "<item>\n";
+			
+			// Recuperation informations de la categorie (Present maintenant dans row['catname'])
+			//$catinfo = get_cat_info($row['category_id']);
+			// Titre de l'image dans Piclens 			
+			switch($obj->my_config['piclens_name_image'])
+			{
+				case 2 :
+						// format nom fichier
+					echo "<title><![CDATA["
+						  .(($obj->my_config['piclens_cat_view'] && isset ($row['catname'])) ? $row['catname']." - " : "") 
+						  . $row['file'] . "]]></title>\n";
+					break;
+				case 3 :
+					// format nom de la photo
+					if (isset($row['name']))
+						echo "<title><![CDATA["
+						  .(($obj->my_config['piclens_cat_view'] && isset ($row['catname'])) ? $row['catname']." - " : "") 
+						.$row['name']."]]></title>\n";
+					else 
+						echo "<title><![CDATA[" 
+						  .(($obj->my_config['piclens_cat_view'] && isset ($row['catname'])) ? $row['catname']." - " : "") 
+						. $row['file'] . "]]></title>\n";
+					break;
+				default :
+						// format nom fichier : taille
+					echo "<title><![CDATA[" 
+						  .(($obj->my_config['piclens_cat_view'] && isset ($row['catname'])) ? $row['catname']." - " : "") 
+					. get_thumbnail_title($row) . "]]></title>\n";
+					break;
+			}
+
+			// Description (nom de vignette) present
+			switch($obj->my_config['piclens_name_desc'])
+			{
+				case 2 :
+					if (isset($row['name']))
+					echo '<media:description type="html"><![CDATA['.$row['name'].']]> </media:description>';
+					break;
+				case 3 : 
+					if (isset($row['comment']))
+					{
+						if ($plugins_ExtendedDesc)	// Extended description compatibility
+						{
+							$desc=trigger_event('render_element_description',$row['comment']);
+							echo '<media:description type="html"><![CDATA['.$desc.']]> </media:description>';
+						}
+						else
+							echo '<media:description type="html"><![CDATA['.$row['comment'].']]> </media:description>';					
+
+					}
+					break;
+				default :
+					break;
+			}
+			echo "\n";
+			
+			// link
+			echo "<link>" . $url . "</link>\n";
+
+//			echo "<guid>" . $row['id'] . "\</guid>\n";				
+			echo "<guid isPermaLink=\"false\">\"" . $row['id'] . "\"</guid>\n";
+			
+
+			echo "<media:thumbnail url=\"" . $thumbnail_url . "\" />\n";
+
+			$extension = explode(".", $row['file']); 
+			$extension = $extension[sizeof($extension)-1];
+
+			// Fichiers video  (Charlies content)
+			if ((in_array($extension, $video_ext_piclens))) 
+			{
+				if ($obj->my_config['piclens_video'])	// activation des videos
+				{
+					switch ($extension)
+					{
+						case "flv":
+							echo "<media:content type=\"video/x-flv\" url=\"".$content_url."\"/>\n";
+							break;
+					}
+				}
+				else
+				{
+					echo "<media:content url=\"" . $thumbnail_url . "\" />\n";
+				}
+			}
+			// Fichiers video  (PY Gvideo)
+			elseif ((in_array($extension, $py_addext))) 
+			{
+				if ($obj->my_config['piclens_video'])	// activation des videos
+				{
+					// Si impossibilite de lire le fichier!
+					if( false == ($idvideo = file_get_contents(PHPWG_ROOT_PATH.$row['path'])))
+					{
+						echo "<media:content url=\"" . $thumbnail_url . "\" />\n";					
+					}
+					else
+					{
+						$sp = explode("/", $idvideo);
+						switch ($extension)
+						{
+							case "dm" :
+								echo "<enclosure url=\"http://www.dailymotion.com/swf/".$sp[0]."\" type=\"application/x-shockwave-flash\" />\n";
+								break;
+							case "ytube":
+								echo "<enclosure url=\"http://youtube.com/v/".$sp[0].".swf\" type=\"application/x-shockwave-flash\" />\n";
+								break;
+							case "wideo":
+								echo "<enclosure url=\"http://www.kewego.com/swf/p3/epix.swf?language_code=fr&amp;playerKey=0df9b773a15b&amp;skinKey=7109c4112f57&amp;sig=".$sp[0]."\" type=\"application/x-shockwave-flash\" />\n";
+								break;
+							case "gvideo":
+								echo "<enclosure url=\"http://video.google.com/googleplayer.swf?docid=".$sp[0]."\" type=\"application/x-shockwave-flash\" />\n";
+								break;
+							case "vimeo":
+								echo "<enclosure url=\"http://vimeo.com/moogaloop.swf?clip_id=".$sp[0]."\" type=\"application/x-shockwave-flash\" />\n";
+								break;
+						}
+					}
+				}
+				else
+				{
+					echo "<media:content url=\"" . $thumbnail_url . "\" />\n";
+				}
+			}
+			// Images (standard)
+			else
+				echo "<media:content url=\"" . $content_url . "\" />\n";
+
+			echo "</item>\n";
+			echo "\n";
+		}
+		echo "</channel>\n";
+		echo "</rss>";
+	}
+	
+}
+
+?>
Index: /extensions/piclens/img/index.php
===================================================================
--- /extensions/piclens/img/index.php	(revision 3410)
+++ /extensions/piclens/img/index.php	(revision 3410)
@@ -0,0 +1,30 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/piclens/include/Piclens.class.php
===================================================================
--- /extensions/piclens/include/Piclens.class.php	(revision 3410)
+++ /extensions/piclens/include/Piclens.class.php	(revision 3410)
@@ -0,0 +1,508 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier piclens.class.php  *********/
+ 
+
+class Piclens
+{
+    var $my_config, $root_site_piclens;
+	
+	function Piclens()
+	{
+		// HTTPS
+		set_make_full_url();
+		$this->root_site_piclens = get_root_url();
+		// If needed NO_https can easily be set in your config_local thru LocalFiles Editor
+		if (isset($conf['NO_https']) and $conf['NO_https'] and strncasecmp($this->root_site_piclens, 'https://', 8) == 0 ) 
+			$this->root_site_piclens = 'http://' . substr($this->root_site_piclens, 8);
+		// HTTPS
+		unset_make_full_url();
+	}
+	
+	
+	// Add Piclens CSS & Javascript in HEAD section
+	function piclens_link()
+	{
+	    global $template, $page, $user;
+
+		
+		$jscript = '<script type="text/javascript"> function roll_over_piclens(img_name, img_src){document[img_name].src = img_src;}</script>';
+		$template->append('head_elements',$jscript);			
+	  
+//foreach ($page  as $key => $value) 
+//echo "page[".$key."]=".$value."\n";
+
+		// Vérification d'activation du plugin (page administration)
+		if ($this->my_config['piclens_active'])
+		{
+			// Correction bug compteur "fou". Les pages d'affichage des images seules ne sont pas a prendre en compte.
+			if (isset($page['section']) && !isset($page['image_id']))
+			{
+
+				// Page images recentes
+				if (($page['section']) == 'recent_pics' && $this->my_config['piclens_recentpics_active'])
+				{
+					$piclnkMaster='<link rel="alternate"'
+								. ' href="'.$this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/recent_pics"'
+								.' type="application/rss+xml" title="" id="recent_pics"'
+								. ' >' . "\n";			
+				}
+				// Page categories recentes
+				elseif (($page['section']) == 'recent_cats' && $this->my_config['piclens_recentcats_active'])
+				{
+					if ($this->my_config['piclens_recursive_mode'] != 'standard')
+					{
+						$query = 'SELECT c.id, c.permalink
+						  FROM '.CATEGORIES_TABLE.' c INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.'
+						  ON id = cat_id and user_id = '.$user['id'].'
+						  WHERE date_last >= SUBDATE(
+							CURRENT_DATE,INTERVAL '.$user['recent_period'].' DAY
+						  )
+						'.get_sql_condition_FandF
+						  (
+							array
+							  (
+								'visible_categories' => 'id',
+							  ),
+							'AND'
+						  ).'
+						;';
+						$piclnkMaster='';
+						$result = pwg_query($query);
+						while ($row = mysql_fetch_assoc($result))
+						{
+							// Gestion des permalinks
+							$categoryId = $row['id'] ;
+							if (!empty($row['permalink']))
+								$categoryId = $row['permalink'];
+					
+							$piclnkMaster.='<link rel="alternate"'
+										. ' href="'.$this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/category/'
+										. $categoryId .'&norecurs"'
+										.' type="application/rss+xml" title="" id="'.$row['id'].'"'
+										. ' >' . "\n";
+							
+						}
+					}
+					else
+					{
+
+						$piclnkMaster='<link rel="alternate"'
+									. ' href="'.$this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/recent_cats"'
+									.' type="application/rss+xml" title="" id="recent_cats"'
+									. ' >' . "\n";			
+
+					}
+				}
+				// Page plus vues
+				elseif (($page['section']) == 'most_visited' && $this->my_config['piclens_mostvisited_active'])
+				{
+					$piclnkMaster='<link rel="alternate"'
+								. ' href="'.$this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/most_visited"'
+								.' type="application/rss+xml" title="" id="most_visited"'
+								. ' >' . "\n";			
+				}
+				// mieux notees	
+				else if ($page['section'] == 'best_rated' && $this->my_config['piclens_bestrated_active'])
+				{
+					$piclnkMaster='<link rel="alternate"'
+								. ' href="'.$this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/best_rated"'
+								.' type="application/rss+xml" title="" id="best_rated"'
+								. ' >' . "\n";			
+				}
+				// favories	
+				else if ($page['section'] == 'favorites' && $this->my_config['piclens_favorites_active'])
+				{
+					$piclnkMaster='<link rel="alternate"'
+								. ' href="'.$this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/favorites"'
+								.' type="application/rss+xml" title="" id="favorites"'
+								. ' >' . "\n";			
+				}
+
+				// Seulement sur une page type 'categorie'
+				// Correction bug compteur "fou". Les pages d'affichage des images seules ne sont pas a prendre en compte.
+				elseif (($page['section']) == 'categories' && !isset($page['image_id']))
+				{
+					
+					// Page accueil et option gallerie activee
+				    if( (empty($page['category'])) && $this->my_config['piclens_gallerie_active'] )
+				    {
+						if ($this->my_config['piclens_recursive_mode'] != 'standard')
+						{
+							$query = 'SELECT id,name,permalink FROM ' . CATEGORIES_TABLE
+							.' WHERE id_uppercat is NULL';
+							
+							$piclnkMaster='';
+							$result = pwg_query($query);
+
+							while ($row = mysql_fetch_assoc($result))
+							{
+								if (!(in_array($row['id'], explode(',', $user['forbidden_categories']))))
+								{
+									$piclnkMaster.='<link rel="alternate"'
+												. ' href="'.$this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/category/'
+												. $row['id'] .'"'
+												.' type="application/rss+xml" title="" id="'.$row['id'].'"'
+												. ' >' . "\n";										
+								}
+							}
+						
+						}
+						else
+						{
+							$piclnkMaster='<link rel="alternate"'
+										. ' href="'.$this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/categories"'
+										.' type="application/rss+xml" title="" id="accueil"'
+										. ' >' . "\n";
+						}
+				    }
+					// Add only if we are in category page
+				    elseif (!empty($page['category']['id']))
+					{
+
+						if ($this->my_config['piclens_recursive_mode'] != 'standard')
+						{
+							$categoryId = $page['category']['id'] ;
+							if (!empty($page['category']['permalink']))
+								$categoryId = $page['category']['permalink'];
+
+							$piclnkMaster='<link rel="alternate"'
+										. ' href="'.$this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/category/'
+										. $categoryId .'&norecurs"'
+										.' type="application/rss+xml" title="" id="'.$page['category']['id'].'"'
+										. ' >' . "\n";
+
+							$query = '
+							SELECT DISTINCT(id)
+							FROM '.CATEGORIES_TABLE.'
+							WHERE id_uppercat='.$page['category']['id'].';';
+							$result = pwg_query($query);
+
+							while ($row = mysql_fetch_array($result))
+							{
+								$piclnkMaster.='<link rel="alternate"'
+											. ' href="'.$this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/category/'
+											. $row['id'] .'"'
+											.' type="application/rss+xml" title="" id="'.$row['id'].'"'
+											. ' >' . "\n";
+							}
+/*							
+							$piclnkMaster.='<link rel="alternate"'
+										. ' href="'.get_root_url().PICLENS_PATH.'piclens-rss.php?/category/'
+										. $categoryId .'&norecurs"'
+										.' type="application/rss+xml" title="" id="'.$page['category']['id'].'"'
+										. ' >' . "\n";
+*/
+						}
+						
+						else
+						{
+							// Gestion des permalinks
+							$categoryId = $page['category']['id'] ;
+							if (!empty($page['category']['permalink']))
+								$categoryId = $page['category']['permalink'];
+					
+							$piclnkMaster='<link rel="alternate"'
+										. ' href="'.$this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/category/'
+										. $categoryId .'"'
+										.' type="application/rss+xml" title="" id="'.$page['category']['id'].'"'
+										. ' >' . "\n";
+						}
+					}
+
+				}
+				
+				if (isset($piclnkMaster))
+				{
+					$piclnk=$piclnkMaster;
+					// We need absolute path
+				
+					 $template->append('head_elements',$piclnk.'<script type="text/javascript" src="http://lite.piclens.com/current/piclens.js"></script>');			
+				}
+			}
+	    }
+		
+	}
+
+
+	// Add piclens Flash slideshow to toolbar
+	// Thanks to P@t
+	function add_piclens_icon()
+	{
+		global $template, $page;
+		if ($this->my_config['piclens_lite_active'] && $this->my_config['piclens_active'])
+		{
+	 		// Seulement sur une page type 'categorie'
+			if (isset($page['section']))
+			{
+				// images recentes
+				
+				if (   (($page['section']) == 'recent_pics' && $this->my_config['piclens_recentpics_active'])
+					|| (($page['section']) == 'recent_cats' && $this->my_config['piclens_recentcats_active'])
+					|| (($page['section']) == 'most_visited' && $this->my_config['piclens_mostvisited_active'])
+					|| (($page['section']) == 'best_rated' && $this->my_config['piclens_bestrated_active'])
+					|| (($page['section']) == 'favorites' && $this->my_config['piclens_favorites_active'])
+					|| (($page['section']) == 'categories')
+					)
+				// categories recentes
+				// plus vues
+				// mieux notees	
+				// favories	
+				{
+					if($page['section'] == 'categories')
+					{
+						if (empty($page['category']))	// 	acceuil
+							$rssfeed = $this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/categories';
+						else
+						{
+							$rssfeed = $this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/category/';
+							$rssfeed .= empty($page['category']['permalink']) ? $page['category']['id'] : $page['category']['permalink'];
+						}
+						if (isset($conf['NO_https']) and $conf['NO_https'] and strncasecmp($rssfeed, 'https://', 8) == 0 ) 
+								$rssfeed = 'http://' . substr($rssfeed, 8);
+				
+					}
+					$tpl_code = '<li><a href="javascript:PicLensLite.start('.(isset($rssfeed) ? ' {feedUrl:\''.$rssfeed.'\'}' : '').');" title="'.l10n('piclens_button').'" onmouseover="roll_over_piclens(\'but1\', \''.$this->root_site_piclens.PICLENS_IMG_PATH.'cooliris-icon-point.png\')" onmouseout="roll_over_piclens(\'but1\', \''.$this->root_site_piclens.PICLENS_IMG_PATH.'cooliris-icon.png\')">';
+					$tpl_code.='<img src="'.$this->root_site_piclens.PICLENS_IMG_PATH.'cooliris-icon.png" NAME="but1" class="button" alt="'.l10n('piclens_button').'" width="24" height="24"></a></li>';
+					if(($page['section'] == 'categories') && empty($page['category']) && !$this->my_config['piclens_gallerie_active'])	// Accueil et option piclens gallerie desactivee
+						$tpl_code='<img src="'.$this->root_site_piclens.PICLENS_IMG_PATH.'cooliris-icon-black.png" NAME="but1" class="button" alt="'.l10n('piclens_button').'" width="24" height="24"></a></li>';
+				}
+				if (isset($tpl_code))
+					$template->concat('PLUGIN_INDEX_ACTIONS', $tpl_code."\n");
+			}
+			
+		}
+	}
+
+
+	// Add piclens pics to start slideshow
+	// Another thanks to P@t
+	function set_make_full_url_piclens()
+	{
+		global $page;
+
+		set_make_full_url();
+		// HTTPS PATCH : If needed NO_https can easily be set in your config_local thru LocalFiles Editor
+		if (isset($conf['NO_https']) and $conf['NO_https'] and strncasecmp($page['root_path'], 'https://', 8) == 0 ) 
+			$page['root_path'] = 'http://' . substr($page['root_path'], 8);
+		
+	}
+
+	/* Loading of the configuration on database */
+	function load_config()
+	{
+
+	    $query = '
+	      SELECT value
+	      FROM '.CONFIG_TABLE.'
+	      WHERE param = \''.PICLENS_CFG_DB.'\'
+	    ;';
+
+	    $result = pwg_query($query);
+
+	    if($result) 
+		{
+		     $row = mysql_fetch_row($result);
+		     if(is_string($row[0])) 
+			 {
+		        $this->my_config = unserialize($row[0]);
+		     }
+	    }
+		$this->load_default_config();
+		// Desactivation de piclenswall si PWG Stuff est installe
+		$this->my_config['piclens_wall'] = (get_db_plugins('active','PWG_Stuffs') ? false : $this->my_config['piclens_wall']);
+
+		// Si tri = defaut PIWIGO ==> l'ordre est egalement defaut PIWIGO
+		if ($this->my_config['piclens_order'] == 1)			$this->my_config['piclens_sort'] = 1;
+		if ($this->my_config['piclens_order_cat'] == 1)		$this->my_config['piclens_sort_cat'] = 1;
+		
+	}
+
+	/* Loading of the configuration file - If not exist -> load default values */
+	function load_config_file()
+	{
+		// changement du nom du fichier de conf.
+		if (!file_exists(PICLENS_CFG_FILE))
+		{
+			if (file_exists(PICLENS_CFG_FILE_OLD))
+				@rename(PICLENS_CFG_FILE_OLD,PICLENS_CFG_FILE);
+		}
+		
+		$x = @file_get_contents( PICLENS_CFG_FILE );
+		if ($x!==false)
+		{
+		  $c = unserialize($x);
+		  $this->my_config = $c;
+		}
+		// Init default value for the config file
+		$this->load_default_config();
+		
+		// Desactivation de piclenswall si PWG Stuff est installe
+		$this->my_config['piclens_wall'] = (get_db_plugins('active','PWG_Stuffs') ? false : $this->my_config['piclens_wall']);
+
+		// Si tri = defaut PIWIGO ==> l'ordre est egalement defaut PIWIGO
+		if ($this->my_config['piclens_order'] == 1)			$this->my_config['piclens_sort'] = 1;
+		if ($this->my_config['piclens_order_cat'] == 1)		$this->my_config['piclens_sort_cat'] = 1;
+	}
+
+	/* Saving of the configuration on DB*/
+	function save_config()
+	{
+	    $query = '
+	      REPLACE INTO '.CONFIG_TABLE.'
+	      VALUES(
+	        \''.PICLENS_CFG_DB.'\',
+	        \''.serialize($this->my_config).'\',
+	        \'Configuration de Piclens\')
+	    ;';
+
+	    $result = pwg_query($query);
+
+	    if($result) 
+			return true;
+	    else 
+			return false;
+
+	}
+
+	/* Saving of the configuration file with data */
+	function save_config_file()
+	{
+		$file = fopen( PICLENS_CFG_FILE, 'w' );
+		fwrite($file, serialize($this->my_config) );
+		fclose( $file );
+	}
+
+	
+	private function load_default_config()
+	{
+	    include PICLENS_INC_PATH.'default_values.inc.php';
+	    foreach ($piclens_default_values as $key => $value) 
+		{
+		    if (!isset($this->my_config[$key]))		$this->my_config[$key] = $value;
+		}
+	}
+	
+	function piclens_admin_menu($menu)
+	{
+	    array_push($menu,
+	       array(
+	            'NAME' => 'Cooliris-Piclens',
+	            'URL' => get_admin_plugin_menu_link(PICLENS_ADMIN_PATH.'piclens_admin.php')
+	        ) 
+	    );
+	    return $menu;
+	}
+
+	function piclenswall()
+	{
+	    global $page;
+		// piclens active+ activation du mur
+//		if ($this->my_config['piclens_active'] && $this->my_config['piclens_wall'])
+		if ($this->my_config['piclens_wall'])
+	    if (isset($page['body_id']) and $page['section'] == 'categories')
+		        include_once(PICLENS_PATH.'piclenswall.php');	
+	}
+
+	function piclens_thumbnails()
+	{
+	  global $template, $page;
+	  
+		// piclens active
+		if (	isset($page['section'])
+			and $this->my_config['piclens_active'])
+		{
+		
+			// Pages speciales et configuration activee
+			if ($this->my_config['piclens_wall_spec'])
+			{
+				// Page images recentes
+				if (($page['section']) == 'recent_pics' && $this->my_config['piclens_wall_spec_recentpics'])
+					$rssfeed = $this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/recent_pics';
+
+				// Page categories recentes
+				elseif (($page['section']) == 'recent_cats' && $this->my_config['piclens_wall_spec_recentcats'])
+					$rssfeed = $this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/recent_cats';
+
+				// Page plus vues
+				elseif (($page['section']) == 'most_visited' && $this->my_config['piclens_wall_spec_mostvisited'])
+					$rssfeed = $this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/most_visited';
+
+					// mieux notees	
+				else if ($page['section'] == 'best_rated' && $this->my_config['piclens_wall_spec_bestrated'])
+					$rssfeed = $this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/best_rated';
+
+					// favories	
+				else if ($page['section'] == 'favorites' && $this->my_config['piclens_wall_spec_favorites'])
+					$rssfeed = $this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/favorites';
+			}
+			// Remplacement de la navigation
+			if ($this->my_config['piclens_wall_nav'])
+			{
+				// Page categories	
+				if ($page['section'] == 'categories'
+					and !empty($page['category'])
+				    and !empty($page['items']))
+				{
+					// verification de presence de la categorie dans la liste parametree
+					if (in_array($page['category']['id'], $this->my_config['piclens_wall_cat_nav_replace']))
+					{
+						$rssfeed = $this->root_site_piclens.PICLENS_PATH.'piclens-rss.php?/category/';
+						$rssfeed .= empty($page['category']['permalink']) ? $page['category']['id'] : $page['category']['permalink'];
+					}
+				}
+			}			
+		}
+
+		if (isset($rssfeed))
+		{
+			if (isset($conf['NO_https']) and $conf['NO_https'] and strncasecmp($rssfeed, 'https://', 8) == 0 ) 
+					$rssfeed = 'http://' . substr($rssfeed, 8);
+		
+			$color = $this->my_config['piclens_wall_color'];
+			$height = $this->my_config['piclens_wall_height'];
+			$showfullscreen =  ($this->my_config['piclens_wall_showfullscreen'] ? "true" : "false");
+			$showembed = ($this->my_config['piclens_wall_showembed'] ? "true" : "false");
+			$showsearch = ($this->my_config['piclens_wall_showsearch'] ? "true" : "false");
+			$template->assign('THUMBNAILS', 
+				'<object id="o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
+					width="100%" height="'.$this->my_config['piclens_wall_height'].'" >
+						<param name="movie" value="'
+// Test si utilisation du fichier flash local.
+						.($this->my_config['piclens_wall_swflocal'] ? $this->root_site_piclens.PICLENS_PATH.'swf/cooliris.swf' : 'http://apps.cooliris.com/embed/cooliris.swf') 
+						.'?feed='.$rssfeed.'&amp;style='.$color.'&amp;showEmbed='.$showembed.'&amp;showFullScreen='.$showfullscreen.'&amp;showSearch='.$showsearch.'" />
+						<param name="allowFullScreen" value="'.$showfullscreen.'" />
+						<param name="showEmbed" value="'.$showembed.'" />
+						<param name="showSearch" value="'.$showsearch.'" />
+						<param name="allowScriptAccess" value="always" />'
+						.($this->my_config['piclens_wall_transparent']  
+							?	'<param name="wmode" value="transparent" />
+								<embed WMODE="transparent"' 
+							: 	'<embed ')
+						.'type="application/x-shockwave-flash" src="'
+// Test si utilisation du fichier flash local.
+						.($this->my_config['piclens_wall_swflocal'] ? $this->root_site_piclens.PICLENS_PATH.'swf/cooliris.swf' : 'http://apps.cooliris.com/embed/cooliris.swf') 
+						.'?feed='.$rssfeed.'&amp;style='.$color.'&amp;showEmbed='.$showembed.'&amp;showFullScreen='.$showfullscreen.'&amp;showSearch='.$showsearch.'" width="100%" height="'.$height.'" showEmbed="'.$showembed.'" showSearch="'.$showsearch.'" allowFullScreen="'.$showfullscreen.'" allowScriptAccess="always" />
+				</object>'); 
+
+		// Suppression de la barre de navigation
+			$template->clear_assign('NAV_BAR');
+			// Suppression de la barre de navigation categories (cas de l'affichage des categories recentes)
+			if (($page['section']) == 'recent_cats')
+				$template->clear_assign('CATEGORIES');
+		}
+		
+	}
+	
+
+	
+}
+
+?>
Index: /extensions/piclens/include/config_extendeddesc.inc.php
===================================================================
--- /extensions/piclens/include/config_extendeddesc.inc.php	(revision 3410)
+++ /extensions/piclens/include/config_extendeddesc.inc.php	(revision 3410)
@@ -0,0 +1,16 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier config_extendeddesc.incl.php  *********/
+
+// balises utilisees par extended description
+
+$piclens_extdesc_hidden = '<!--hidden-->';
+
+?>
Index: /extensions/piclens/include/default_values.inc.php
===================================================================
--- /extensions/piclens/include/default_values.inc.php	(revision 3410)
+++ /extensions/piclens/include/default_values.inc.php	(revision 3410)
@@ -0,0 +1,66 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier default_values.inc.php  *********/
+
+$piclens_default_values['piclens_active'] = false; /* Possibility to disactivate the function */
+$piclens_default_values['piclens_recursive'] = false;
+$piclens_default_values['piclens_gallerie_active'] = false; 
+$piclens_default_values['piclens_gallerie_type'] = 1; // Sans recursivite pour toute l'affichage de toute la gallerie
+$piclens_default_values['piclens_lite_active'] = true; 
+$piclens_default_values['piclens_secureimage'] = 1;
+$piclens_default_values['piclens_extendeddesc'] = 1;
+
+$piclens_default_values['piclens_recursive_mode'] = 'standard';	// mode de recursivite
+
+$piclens_default_values['piclens_thumb'] = 1; // Vignette = thumbmail
+$piclens_default_values['piclens_normal'] = 2; // Vignette = Normal
+$piclens_default_values['piclens_order'] = 1;	// default
+$piclens_default_values['piclens_order_cat'] = 1;	// default
+$piclens_default_values['piclens_sort'] = 1;	// default
+$piclens_default_values['piclens_sort_cat'] = 1;	// default
+$piclens_default_values['included_file_types'] = array();	// default
+$piclens_default_values['piclens_wall'] = false;	// cooliris Wall inactif
+$piclens_default_values['piclens_name_image'] = 1;	// default : thumbmail + taille
+$piclens_default_values['piclens_name_desc'] = 1;	// default : name
+$piclens_default_values['piclens_video'] = true;	// Activation des videos
+$piclens_default_values['piclens_cat_view'] = false;	// Affichage des categories dans piclens
+
+$piclens_default_values['piclens_wall_color'] = "dark";	// couleur mur 3D
+$piclens_default_values['piclens_wall_height'] = 450;	// hauteur  mur 3D
+$piclens_default_values['piclens_wall_categories'] = array();	// categories selectionnees pour le mur 3D
+$piclens_default_values['piclens_wall_specif'] = "common";	// Pamametres commun piclens et mur3D
+$piclens_default_values['piclens_wall_ontop'] = true;	// mur3D sur l'accueil
+$piclens_default_values['piclens_wall_oncat'] = false;	// mur 3D sur les categories
+$piclens_default_values['piclens_wall_showembed'] = true; // Affichage icone Embed sur le mur 3D
+$piclens_default_values['piclens_wall_showfullscreen'] = true; // Affichage icone Fullscreen sur le mur 3D
+$piclens_default_values['piclens_wall_showsearch'] = true; // Affichage icone search sur le mur 3D
+$piclens_default_values['piclens_wall_transparent'] = false; // Affichage en mode transparent du mur 3D
+
+$piclens_default_values['piclens_wall_nav'] = false; // remplacement navigation image dans categories par le mur 3D
+$piclens_default_values['piclens_wall_cat_nav_replace'] = array();	// categories pour lesquelles la navigation est remplacee par le mur 3D
+$piclens_default_values['piclens_wall_title'] = 'Cooliris 3D-Wall'; // Titre du mur 3D.
+
+$piclens_default_values['piclens_recentpics_active'] = true;
+$piclens_default_values['piclens_recentcats_active'] = true;
+$piclens_default_values['piclens_mostvisited_active'] = true;
+$piclens_default_values['piclens_bestrated_active'] = true;
+$piclens_default_values['piclens_favorites_active'] = true;
+
+$piclens_default_values['piclens_wall_spec'] = false; // remplacement navigation image dans categories par le mur 3D
+$piclens_default_values['piclens_wall_spec_recentpics'] = false;
+$piclens_default_values['piclens_wall_spec_recentcats'] = false;
+$piclens_default_values['piclens_wall_spec_mostvisited'] = false;
+$piclens_default_values['piclens_wall_spec_bestrated'] = false;
+$piclens_default_values['piclens_wall_spec_favorites'] = false;
+
+$piclens_default_values['piclens_wall_swflocal'] = false;	// Flash swf local utilise pour le mur 3D (pas besoin du fichier crossdomain.xml mais pas de MAJ automatique du flash)
+
+
+?>
Index: /extensions/piclens/include/index.php
===================================================================
--- /extensions/piclens/include/index.php	(revision 3410)
+++ /extensions/piclens/include/index.php	(revision 3410)
@@ -0,0 +1,30 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/piclens/index.php
===================================================================
--- /extensions/piclens/index.php	(revision 3410)
+++ /extensions/piclens/index.php	(revision 3410)
@@ -0,0 +1,30 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/piclens/language/en_UK/index.php
===================================================================
--- /extensions/piclens/language/en_UK/index.php	(revision 3410)
+++ /extensions/piclens/language/en_UK/index.php	(revision 3410)
@@ -0,0 +1,33 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | PhpWebGallery - a PHP based picture gallery                           |
+// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
+// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
+// +-----------------------------------------------------------------------+
+// | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
+// | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
+// | last modifier : $Author: rub $
+// | revision      : $Revision: 1912 $
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/piclens/language/en_UK/plugin.lang.php
===================================================================
--- /extensions/piclens/language/en_UK/plugin.lang.php	(revision 3410)
+++ /extensions/piclens/language/en_UK/plugin.lang.php	(revision 3410)
@@ -0,0 +1,155 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier EN plugin.lang.php  *********/
+// Piclenslite button
+$lang['piclens_button']	 				= 'View a slideshow';
+
+
+// Admin page
+$lang['piclens_config_tab']	 			= 'Configuration';
+$lang['piclens_rssfeed_tab'] 			= 'RSS Feed';
+$lang['piclens_3dwallconfig_tab'] 		= 'PiclensWall Configuration';
+
+// 
+$lang['piclens_admin_title'] 			= 'Cooliris/Piclens PlugIn Configuration';
+$lang['piclens_admin_submit']			= 'Save';
+$lang['piclens_admin_saveOK'] 			= 'Cooliris-Piclens Configuration Saved';
+$lang['piclens_admin_saveERR1']			= 'crossdomain.xml file not found';
+$lang['piclens_admin_saveERR2']			= 'File copy Error';
+$lang['piclens_admin_saveERR3']			= 'crossdomain.xml file already present';
+$lang['piclens_admin_saveOK2']			= 'crossdomain.xml file is properly copied to the root of the site';
+$lang['piclens_admin_saveERR4']			= 'Cooliris 3D Wall disabled because PWG Stuff is installed';
+
+$lang['piclens_admin_restoreOK']		= 'Parameters in Configuration file (%s) are saved into DataBase';
+$lang['piclens_admin_restoreKO']		= 'Configuration File (%s) missing';
+$lang['piclens_admin_savefileOK']		= 'Parameters saved in configuration file (%s)';
+$lang['piclens_admin_savefileWN']		= 'Existing configuration file (%s) was deleted';
+$lang['piclens_admin_restore']			= 'Restore parameters from file';
+$lang['piclens_admin_savefile']			= 'Save parameters to file';
+
+$lang['piclens_cfg_title'] 				= 'Piclens : Configuration';
+$lang['piclens_cfg_piclens_actived']	= 'Enabling the Cooliris/Piclens plugin';
+$lang['piclens_cfg_recursiv_actived']	= 'Enabling the recursion on the sub-categories';
+$lang['piclens_cfg_root_actived']		= 'Enabling Piclens on all the Gallery (at the Home gallery)';
+$lang['piclens_cfg_lite_actived']		= 'Enabling PiclensLite (Piclens without navigator plugins)';
+
+$lang['piclens_cfg_otherplugins_title']	= 'Compatibility with other installed plugins';
+$lang['piclens_cfg_plugins_actived']	= 'Enabling compatibility with <b><u><i>%s</i></u></b> Plugin';
+$lang['piclens_label_plugins']			= '<b><u><i>%s</i></u> Plugin installed </b>and <b>activated</b>';
+$lang['piclens_secureimage_detail']		= 'Use the getFile method from the SecureImage plugin to load pictures.';
+$lang['piclens_extendeddesc_detail']	= 'Using language tag [lang] for the picture description and the < !--hidden-- > tag to hide categories and pictures.';
+
+$lang['piclens_cfg_specials_actived']	= 'Enabling Piclens on "Specials" pages';
+$lang['piclens_recentpics_label'] 		= 'Recent pictures';
+$lang['piclens_recentcats_label'] 		= 'Recent categories';
+$lang['piclens_mostvisited_label'] 		= 'Most visited';
+$lang['piclens_bestrated_label'] 		= 'Best rated';
+$lang['piclens_favorites_label'] 		= 'My favorites';
+
+$lang['piclens_label_withoutrecursive']	= 'Without recursion';
+$lang['piclens_label_withrecursive']	= 'With recursion';
+
+$lang['piclens_recurs_mode_title']		= 'Recursion Method';
+$lang['piclens_recurs_mode_label']		= 'Recursion Method  : ';
+$lang['piclens_recursive_standard']		= 'Standard';
+$lang['piclens_recursive_standard_title']= 'Standard Method';
+$lang['piclens_recursive_standard_detail']= 'Home<br/>&nbsp;\- Category A<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\- Sub Category AA<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- pictures_AAxx<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\ <br/>&nbsp;\&nbsp;&nbsp;&nbsp;\- Sub Category AB<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- pictures_ABxx<br/>&nbsp;\<br/>&nbsp;\- Category B<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- Sub Category BA<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- pictures_BAxx<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- Sub Category BB<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- pictures_BBxx<br/><br/>- At Home, 1 stream containing all the images of A and B categories and their subcategories (flux Home)<br/>- In each category (eg A), 1 stream containing all images in the category and sub-categories (eg A and AA and AB)<br/>';
+$lang['piclens_recursive_specifique']	= 'Specific';
+$lang['piclens_recursive_specifique_title']= 'Specific Method ';
+$lang['piclens_recursive_specifique_detail']= 'Home<br/>&nbsp;\- Category A<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\- Sub Category AA<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- pictures_AAxx<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\ <br/>&nbsp;\&nbsp;&nbsp;&nbsp;\- Sub Category AB<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- pictures_ABxx<br/>&nbsp;\<br/>&nbsp;\- Category B<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- Sub Category BA<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- pictures_BAxx<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- Sub Category BB<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- pictures_BBxx<br/><br/>- At the Home, 1 stream for each category contains all the images of sub-categories (eg, flows A and B flows)<br/>- In each category (eg A), 1 stream for the category containing all images in the category (eg flow A) and 1 stream for each subcategories containing all the images in the sub-categories (eg flow AA and flow AB)';
+
+$lang['piclens_recurs_mode_rem']		= '<i>Whatever the method chosen, the wall 3D "Cooliris 3D Wall" (Tab 3) operates in <b>Standard Method</b></i>';
+
+$lang['piclens_rsscfg_title'] 			= 'Piclens : RSS feed Parameters';
+$lang['piclens_rsscfg_exttitle']		= 'File type show in Piclens';
+$lang['piclens_rsscfg_ext']				= 'Use these file extensions : ';
+$lang['piclens_rsscfg_ext1']			= '(Any extension selected => Use all extensions in rss feed)';
+$lang['piclens_rsscfg_ext2']			= 'Note : !NULL! represent some records without thumbnails (some video file [.flv for exemple])';
+
+$lang['piclens_rsscfg_TNtype']			= 'Thumbnail image type use in Piclens slideshow';
+$lang['piclens_rsscfg_IMGtype']			= 'Normal image type use in Piclens slideshow';
+$lang['piclens_rsscfg_order']			= 'Display order of pictures in PicLens';
+$lang['piclens_rsscfg_order1']			= 'Sorting order of pictures in Piclens';
+$lang['piclens_rsscfg_name'] 			= 'Pictures name in Piclens';
+$lang['piclens_rsscfg_namecat']			= 'Show the Category name';
+$lang['piclens_rsscfg_desc'] 			= 'Description of pictures in Piclens';
+$lang['piclens_rsscfg_video'] 			= 'Video support in Piclens';
+
+$lang['piclens_label_orderPiwigo'] 		= 'Defaut Piwigo';
+$lang['piclens_label_orderCreDate'] 	= 'Create date';
+$lang['piclens_label_orderAddDate'] 	= 'Add Date';
+$lang['piclens_label_orderRank'] 		= 'Average rate';
+$lang['piclens_label_orderBest'] 		= 'Best hit';
+$lang['piclens_label_orderName']		= 'File name';
+$lang['piclens_label_orderID'] 			= 'Id';
+$lang['piclens_label_orderRand'] 		= 'Random';
+$lang['piclens_label_orderCat'] 		= 'Category';
+
+$lang['piclens_label_sortHome'] 		= 'Piclens on Home';
+$lang['piclens_label_sortCat'] 			= 'Piclens on Categories';
+
+$lang['piclens_label_sortPiwigo']		= 'Defaut Piwigo';
+$lang['piclens_label_sortUp']			= 'UP';
+$lang['piclens_label_sortDown']			= 'DOWN';
+
+$lang['piclens_label_TypeTN']			= 'Thumbnail';
+$lang['piclens_label_TypeNorm']			= 'Normal';
+$lang['piclens_label_TypeHigh']			= 'High';
+
+$lang['piclens_label_Name1']			= 'Thumbnail name : size';
+$lang['piclens_label_Name2']			= 'Thumbnail name';
+$lang['piclens_label_Name3']			= 'Picture name';
+
+$lang['piclens_label_Desc1']			= 'Nothing';
+$lang['piclens_label_Desc2']			= 'Picture name';
+$lang['piclens_label_Desc3']			= 'Picture description';
+
+
+$lang['piclens_wallcfg_title'] 			= 'Piclens : PiclensWall (3D Wall) Configuration';
+$lang['piclens_wallcfg_navoption_title']= 'Navigation with Cooliris 3D Wall';
+$lang['piclens_wallcfg_name']			= 'Cooliris 3D Wall Title :';
+$lang['piclens_wallcfg_actived']		= 'Enabling Cooliris 3DWall';
+$lang['piclens_wallcfg_info']			= '<b>Important for 3DWall works: </b>It is necessary to copy the file';
+$lang['piclens_wallcfg_info_suite']		= 'at the root of the site (or modify the existant one)';
+$lang['piclens_wallcfg_color']			= 'Background color for the Cooliris 3D wall';
+$lang['piclens_wallcfg_colorB']			= 'Black';
+$lang['piclens_wallcfg_colorW']			= 'White';
+$lang['piclens_wallcfg_heigh']			= 'Height for the Cooliris 3D Wall';
+$lang['piclens_wallcfg_disp']			= 'Choosing display Cooliris 3D wall :';
+$lang['piclens_wallcfg_disp_opt1']		= 'Home';
+$lang['piclens_wallcfg_disp_opt2']		= 'Categories';
+$lang['piclens_wallcfg_option']			= 'Display Options of Cooliris 3D Wall :';
+$lang['piclens_wallcfg_option-opt1']	= 'Show "Embed" link';
+$lang['piclens_wallcfg_option-opt2']	= 'Show "FullScreen" link';
+$lang['piclens_wallcfg_option-opt3']	= 'Show "Search" link';
+$lang['piclens_wallcfg_transparent']	= '"Transparent" Mode for the wall. <i>Needed for some horizontal themes</i>';
+$lang['piclens_wallcfg_param']			= 'Cooliris 3D Wall Parameters ';
+$lang['piclens_wallcfg_paramNORM']		= 'Standard (Same for all the gallery)';
+$lang['piclens_wallcfg_paramSPEC']		= 'Specific (configuration of the categories below)';
+$lang['piclens_wallcfg_cat_nav']		= 'Replacing the thumbnails navigation in categories by the Cooliris 3D wall';
+$lang['piclens_wallcfg_cat_nav1']		= 'Categories for which the wall replaces 3D navigation :';
+
+$lang['piclens_wallcfg_swflocal'] 		= '[Optional] Using the local flash file (swf) for the 3DWall instead of the Cooliris site <b>[In this case, the crossdomain.xml file is not needed]</b>';
+
+$lang['piclens_wallcfg_cat']			= '	Categories included in the Cooliris 3D wall (when parameter \'specific\') :';
+
+$lang['piclens_wallcfg_spec_nav']		= 'Replacing the navigation on specials pages by the Cooliris 3D wall';
+
+$lang['piclens_label_crossdomain1']		= '<i>The <u>crossdomain.xml</u> file already exist at the root of the site, edit and change it manually if necessary.</i>';
+$lang['piclens_label_crossdomain2']		= 'Copy crossdomain.xml file at the root of the site.';
+
+$lang['piclens_label_pwgstuff1']		= '<u>Note :</u> <b>Option not available because PWG_Stuff is installed (check the option in PWG_Stuff). Some settings can be changed here.</b>';
+$lang['piclens_label_pwgstuff2']		= '<u>Note :</u> Instead, install <a href=http://fr.piwigo.org/ext/extension_view.php?eid=190>PWG_Stuff</a> to add PicLens 3DWall block (customizable display in PWG_Stuff).';
+
+$lang['piclens_stuff_notparam']			= '<b>Parameters specific to the plugin Cooliris PicLens. Not used in PWG Stuff plugin</b>';
+$lang['piclens_stuff_param_commun']		= '<b>Parameters may be common to plugins  Cooliris PicLens and PWG-Stuff</b>';
+
+
+?>
Index: /extensions/piclens/language/fr_FR/index.php
===================================================================
--- /extensions/piclens/language/fr_FR/index.php	(revision 3410)
+++ /extensions/piclens/language/fr_FR/index.php	(revision 3410)
@@ -0,0 +1,33 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | PhpWebGallery - a PHP based picture gallery                           |
+// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
+// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
+// +-----------------------------------------------------------------------+
+// | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
+// | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
+// | last modifier : $Author: rub $
+// | revision      : $Revision: 1912 $
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/piclens/language/fr_FR/plugin.lang.php
===================================================================
--- /extensions/piclens/language/fr_FR/plugin.lang.php	(revision 3410)
+++ /extensions/piclens/language/fr_FR/plugin.lang.php	(revision 3410)
@@ -0,0 +1,157 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier FR plugin.lang.php  *********/
+
+// Piclenslite button
+$lang['piclens_button']	 				= 'Afficher un diaporama simple';
+
+
+// Admin page
+$lang['piclens_config_tab']	 			= 'Configuration';
+$lang['piclens_rssfeed_tab'] 			= 'Flux RSS';
+$lang['piclens_3dwallconfig_tab'] 		= 'Configuration Cooliris 3DWall';
+
+// 
+$lang['piclens_admin_title'] 			= 'Configuration du PlugIn Cooliris/Piclens';
+$lang['piclens_admin_submit']			= 'Enregistrer';
+$lang['piclens_admin_saveOK'] 			= 'Configuration Cooliris-Piclens Sauv&eacute;e';
+$lang['piclens_admin_saveERR1']			= 'fichier crossdomain.xml absent';
+$lang['piclens_admin_saveERR2']			= 'Erreur de copie du fichier';
+$lang['piclens_admin_saveERR3']			= 'Fichier crossdomain.xml d&eacute;j&agrave; existant';
+$lang['piclens_admin_saveOK2']			= 'Fichier crossdomain.xml correctement copi&eacute; &agrave; la racine du site';
+$lang['piclens_admin_saveERR4']			= '3D Wall d&eacute;sactiv&eacute; car PWG Stuff est install&eacute;';
+
+$lang['piclens_admin_restoreOK']		= 'Param&egrave;tres du fichier de configuration (%s) r&eacute;cup&eacute;r&eacute;s et sauvegard&eacute;s en base';
+$lang['piclens_admin_restoreKO']		= 'Fichier de configurations (%s) Absent';
+$lang['piclens_admin_savefileOK']		= 'Param&egrave;tres sauvegard&eacute;s dans le fichier de configuration (%s)';
+$lang['piclens_admin_savefileWN']		= 'Le Fichier de configurations (%s) existant a &eacute;t&eacute; &eacute;cras&eacute;';
+$lang['piclens_admin_restore']			= 'Restaurer param&egrave;tres depuis fichier';
+$lang['piclens_admin_savefile']			= 'Sauvegarde param&egrave;tres dans fichier';
+
+$lang['piclens_cfg_title'] 				= 'Piclens : Configuration';
+$lang['piclens_cfg_piclens_actived']	= 'Activation du plugin Cooliris/Piclens';
+$lang['piclens_cfg_recursiv_actived']	= 'Activation de la r&eacute;cursivit&eacute; sur les sous-cat&eacute;gories';
+$lang['piclens_cfg_root_actived']		= 'Activation de Piclens sur toute la galerie (sur l\'accueil)';
+$lang['piclens_cfg_lite_actived']		= 'Activation de PiclensLite (version Piclens sans plugins navigateur)';
+
+$lang['piclens_cfg_otherplugins_title']	= 'Compatibilit&eacute; avec les autres plugins install&eacute;s';
+$lang['piclens_cfg_plugins_actived']	= 'Activation de la compatibilit&eacute; avec le Plugin <b><u><i>%s</i></u></b>';
+$lang['piclens_label_plugins']			= 'Plugin <b><u><i>%s</i></u> Install&eacute; </b>et <b>activ&eacute;</b>';
+$lang['piclens_secureimage_detail']		= 'Utilisation de la m&eacute;thode getFile du plugin SecureImage pour charger les images (minitaures, normales et high).';
+$lang['piclens_extendeddesc_detail']	= 'Prise en compte des balises langues [lang] pour la description des images et la balise < !--hidden-- > pour les images et les cat&eacute;gories &agrave; masquer.';
+
+$lang['piclens_cfg_specials_actived']	= 'Activation de Piclens sur les pages "sp&eacute;ciales"';
+$lang['piclens_recentpics_label'] 		= 'Images r&eacute;centes';
+$lang['piclens_recentcats_label'] 		= 'Cat&eacute;gories r&eacute;centes';
+$lang['piclens_mostvisited_label'] 		= 'Plus vues';
+$lang['piclens_bestrated_label'] 		= 'Mieux not&eacute;es';
+$lang['piclens_favorites_label'] 		= 'Mes favorites';
+
+$lang['piclens_label_withoutrecursive']	= 'Sans R&eacute;cursivit&eacute;';
+$lang['piclens_label_withrecursive']	= 'Avec R&eacute;cursivit&eacute;';
+
+$lang['piclens_recurs_mode_title']		= 'Piclens : Mode de r&eacute;cursivit&eacute;';
+$lang['piclens_recurs_mode_label']		= 'Type de r&eacute;cursivit&eacute; param&eacute;tr&eacute; : ';
+$lang['piclens_recursive_standard']		= 'Standard';
+$lang['piclens_recursive_standard_title']= 'Mode Standard ';
+$lang['piclens_recursive_standard_detail']= 'Accueil<br/>&nbsp;\- Cat&eacute;gorie A<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\- Sous cat&eacute;gorie AA<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- images_AAxx<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\- Sous cat&eacute;gorie AB<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- images_ABxx<br/>&nbsp;\<br/>&nbsp;\- Cat&eacute;gorie B<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- Sous cat&eacute;gorie BA<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- images_BAxx<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- Sous cat&eacute;gorie BB<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- images_BBxx<br/><br/>- Sur l\'accueil, 1 flux contenant toutes les images des cat&eacute;gories A et B et de leurs sous cat&eacute;gories (flux Accueil)<br/>- Sur chaque cat&eacute;gorie (ex. A), 1 flux contenant toutes les images de la cat&eacute;gorie et des sous-cat&eacute;gories (ex. A et AA et AB)<br/>';
+$lang['piclens_recursive_specifique']	= 'Sp&eacute;cifique';
+$lang['piclens_recursive_specifique_title']= 'Mode Sp&eacute;cifique ';
+$lang['piclens_recursive_specifique_detail']= 'Accueil<br/>&nbsp;\- Cat&eacute;gorie A<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\- Sous cat&eacute;gorie AA<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- images_AAxx<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\- Sous cat&eacute;gorie AB<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- images_ABxx<br/>&nbsp;\<br/>&nbsp;\- Cat&eacute;gorie B<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- Sous cat&eacute;gorie BA<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- images_BAxx<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- Sous cat&eacute;gorie BB<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- images_BBxx<br/><br/>- Sur l\'accueil, 1 flux par cat&eacute;gorie contenant toutes les images des sous-cat&eacute;gories respectives (ex. flux A et flux B)<br/>- Sur chaque cat&eacute;gorie (ex. A), 1 flux pour la cat&eacute;gorie contenant toutes les images de la cat&eacute;gorie (ex. flux A) et 1 flux par sous-cat&eacute;gories contenant toutes les images de la sous-cat&eacute;gories (ex. flux AA et flux AB)<br/>';
+
+$lang['piclens_recurs_mode_rem']		= '<i>Quelque soit le mode choisi, le mur 3D "Cooliris 3D Wall"(Onglet 3) fonctionne en <b>mode Standard</b></i>';
+
+$lang['piclens_rsscfg_title'] 			= 'Piclens : Param&egrave;tres du flux RSS';
+$lang['piclens_rsscfg_exttitle']		= 'Extensions Affich&eacute;es';
+$lang['piclens_rsscfg_ext']				= 'Utilisation des extensions (en base) suivantes : ';
+$lang['piclens_rsscfg_ext1']			= '(Aucune s&eacute;lection => toutes les extensions prises en compte dans le flux rss)';
+$lang['piclens_rsscfg_ext2']			= 'Remarque : !NULL! correspond aux enregistrements sans vignettes/thumbnails (certains fichiers vid&eacute;os [.flv par exemple])';
+
+$lang['piclens_rsscfg_TNtype']			= 'Type d\'image utilis&eacute; pour les miniatures Piclens';
+$lang['piclens_rsscfg_IMGtype']			= 'Type d\'image utilis&eacute; pour les affichages Piclens';
+$lang['piclens_rsscfg_order']			= 'Ordre d\'affichage des photos dans Piclens';
+$lang['piclens_rsscfg_order1']			= 'Sens du tri dans Piclens';
+$lang['piclens_rsscfg_name'] 			= 'Nom des images dans Piclens';
+$lang['piclens_rsscfg_namecat']			= 'Affichage du nom de la cat&eacute;gorie';
+$lang['piclens_rsscfg_desc'] 			= 'Description des images dans Piclens';
+$lang['piclens_rsscfg_video'] 			= 'Activation des vid&eacute;os dans l\'interface Piclens/Cooliris';
+
+$lang['piclens_label_orderPiwigo'] 		= 'Defaut Piwigo';
+$lang['piclens_label_orderCreDate'] 	= 'Date de Creation';
+$lang['piclens_label_orderAddDate'] 	= 'Date d\'ajout';
+$lang['piclens_label_orderRank'] 		= 'Note Moyenne';
+$lang['piclens_label_orderBest'] 		= 'Plus vues';
+$lang['piclens_label_orderName']		= 'Nom du fichier';
+$lang['piclens_label_orderID'] 			= 'Id';
+$lang['piclens_label_orderRand'] 		= 'Al&eacute;atoire';
+$lang['piclens_label_orderCat'] 		= 'Cat&eacute;gories';
+
+$lang['piclens_label_sortHome'] 		= 'Piclens sur Accueil';
+$lang['piclens_label_sortCat'] 			= 'Piclens sur Cat&eacute;gories';
+
+$lang['piclens_label_sortPiwigo']		= 'Defaut Piwigo';
+$lang['piclens_label_sortUp']			= 'Croissant';
+$lang['piclens_label_sortDown']			= 'Decroissant';
+
+$lang['piclens_label_TypeTN']			= 'Miniature';
+$lang['piclens_label_TypeNorm']			= 'Normal';
+$lang['piclens_label_TypeHigh']			= 'High';
+
+$lang['piclens_label_Name1']			= 'Nom vignette : taille';
+$lang['piclens_label_Name2']			= 'Nom vignette';
+$lang['piclens_label_Name3']			= 'Nom de l\'image';
+
+$lang['piclens_label_Desc1']			= 'Rien';
+$lang['piclens_label_Desc2']			= 'Nom de l\'image';
+$lang['piclens_label_Desc3']			= 'Description de l\'image';
+
+
+$lang['piclens_wallcfg_title'] 			= 'Piclens : Configuration de Cooliris 3D Wall';
+$lang['piclens_wallcfg_navoption_title']= 'Navigation avec Cooliris 3D Wall';
+$lang['piclens_wallcfg_actived']		= 'Activation du mur 3D Cooliris ';
+$lang['piclens_wallcfg_name']			= 'Titre du mur 3D Cooliris :';
+$lang['piclens_wallcfg_info']			= '<b>Important pour que le mur 3D fonctionne :</b> Il est necessaire de copier le fichier';
+$lang['piclens_wallcfg_info_suite']		= '&agrave; la racine du site (ou modifier le fichier existant)';
+$lang['piclens_wallcfg_color']			= 'Couleur du fond pour le mur 3D Cooliris :';
+$lang['piclens_wallcfg_colorB']			= 'Noir';
+$lang['piclens_wallcfg_colorW']			= 'Blanc';
+$lang['piclens_wallcfg_heigh']			= 'Hauteur du mur 3D Cooliris :';
+$lang['piclens_wallcfg_disp']			= 'Choix d\'affichage du mur 3D Cooliris :';
+$lang['piclens_wallcfg_disp_opt1']		= 'sur l\'accueil';
+$lang['piclens_wallcfg_disp_opt2']		= 'sur les cat&eacute;gories';
+$lang['piclens_wallcfg_option']			= 'Options d\'affichage du mur 3D Cooliris :';
+$lang['piclens_wallcfg_option-opt1']	= 'Affichage lien "Embed"';
+$lang['piclens_wallcfg_option-opt2']	= 'Affichage lien "FullScreen"';
+$lang['piclens_wallcfg_option-opt3']	= 'Affichage lien "Recherche"';
+$lang['piclens_wallcfg_transparent']	= 'Mode "Transparent" pour le mur. <i>N&eacute;cessaire pour certains th&egrave;mes horizontaux</i>';
+$lang['piclens_wallcfg_param']			= 'Param&egrave;tre pour le mur 3D Cooliris :';
+$lang['piclens_wallcfg_paramNORM']		= 'Standard, toutes les cat&eacute;gories prises en compte (idem param&egrave;tres Piclens)';
+$lang['piclens_wallcfg_paramSPEC']		= 'Sp&eacute;cifique (configuration des cat&eacute;gories ci-dessous)';
+$lang['piclens_wallcfg_cat_nav']		= 'Remplacement de la navigation des vignettes dans les cat&eacute;gories par le mur 3D';
+$lang['piclens_wallcfg_cat_nav1']		= 'Cat&eacute;gories pour lesquelles le mur 3D remplace la navigation :';
+
+$lang['piclens_wallcfg_swflocal'] 		= '[Optionel] Utilisation du fichier flash (swf) local pour le mur 3D au lieu du site Cooliris <b>[Dans ce cas, pas besoin de fichier crossdomain.xml]</b>';
+
+$lang['piclens_wallcfg_cat']			= 'Cat&eacute;gories prises en comte dans le mur 3D Cooliris (si param&egrave;tre \'sp&eacute;cifique\') :';
+
+$lang['piclens_wallcfg_spec_nav']		= 'Remplacement de la navigation des pages sp&eacute;ciales par le mur 3D';
+
+
+$lang['piclens_label_crossdomain1']		= '<i>Le fichier <u>crossdomain.xml</u> est d&eacute;j&agrave; existant &agrave; la racine du site, modifiez-le manuellement si n&eacute;cessaire.</i>';
+$lang['piclens_label_crossdomain2']		= 'Copie du fichier crossdomain.xml &agrave; la racine du site.';
+
+$lang['piclens_label_pwgstuff1']		= '<u>Remarque :</u> <b>Option non disponible car PWG_Stuff est install&eacute; (activez/d&eacute;sactivez l\'option dans PWG_Stuff). Certains param&egrave;tres restent modifiables ici.</b>';
+$lang['piclens_label_pwgstuff2']		= '<u>Remarque :</u> Installez plut&ocirc;t <a href=http://fr.piwigo.org/ext/extension_view.php?eid=190>PWG_Stuff</a> pour ajouter le block Piclens 3DWall (affichage param&egrave;trable dans PWG_Stuff).';
+
+$lang['piclens_stuff_notparam']			= '<b>Param&egrave;tres sp&eacute;cifiques au plugin Cooliris-piclens et non exploit&eacute;s par PWG-Stuff</b>';
+$lang['piclens_stuff_param_commun']		= '<b>Param&egrave;tres pouvant &ecirc;tre communs aux plugins Cooliris-piclens et PWG-Stuff</b>';
+
+
+?>
Index: /extensions/piclens/language/index.php
===================================================================
--- /extensions/piclens/language/index.php	(revision 3410)
+++ /extensions/piclens/language/index.php	(revision 3410)
@@ -0,0 +1,30 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/piclens/language/zh_CN/index.php
===================================================================
--- /extensions/piclens/language/zh_CN/index.php	(revision 3410)
+++ /extensions/piclens/language/zh_CN/index.php	(revision 3410)
@@ -0,0 +1,33 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | PhpWebGallery - a PHP based picture gallery                           |
+// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
+// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
+// +-----------------------------------------------------------------------+
+// | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
+// | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
+// | last modifier : $Author: rub $
+// | revision      : $Revision: 1912 $
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/piclens/language/zh_CN/plugin.lang.php
===================================================================
--- /extensions/piclens/language/zh_CN/plugin.lang.php	(revision 3410)
+++ /extensions/piclens/language/zh_CN/plugin.lang.php	(revision 3410)
@@ -0,0 +1,155 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier EN plugin.lang.php  *********/
+// Piclenslite button
+$lang['piclens_button']	 				= '查看幻灯片';
+
+
+// Admin page
+$lang['piclens_config_tab']	 			= '设置';
+$lang['piclens_rssfeed_tab'] 			= 'RSS 通知';
+$lang['piclens_3dwallconfig_tab'] 		= 'PiclensWall 设置';
+
+// 
+$lang['piclens_admin_title'] 			= 'Cooliris/Piclens 插件设置';
+$lang['piclens_admin_submit']			= '保存';
+$lang['piclens_admin_saveOK'] 			= 'Cooliris-Piclens 设置保存完毕';
+$lang['piclens_admin_saveERR1']			= 'crossdomain.xml 文件没找到';
+$lang['piclens_admin_saveERR2']			= '复制文件出错';
+$lang['piclens_admin_saveERR3']			= 'crossdomain.xml 文件已存在';
+$lang['piclens_admin_saveOK2']			= 'crossdomain.xml 文件已被复制到网站的根目录';
+$lang['piclens_admin_saveERR4']			= 'Cooliris 3D Wall 被关闭，因为 PWG Stuff 插件已安装了';
+
+$lang['piclens_admin_restoreOK']		= '配置文件中的参数 (%s) 已被保存进数据库';
+$lang['piclens_admin_restoreKO']		= '配置文件 (%s) 丢失';
+$lang['piclens_admin_savefileOK']		= '参数已被保存到配置文件 (%s)';
+$lang['piclens_admin_savefileWN']		= '现有的配置文件 (%s) 已被删除 ';
+$lang['piclens_admin_restore']			= '从文件里恢复参数';
+$lang['piclens_admin_savefile']			= '将参数保存到文件';
+
+$lang['piclens_cfg_title'] 				= 'Piclens : 设置';
+$lang['piclens_cfg_piclens_actived']	= '开启 Cooliris/Piclens 插件';
+$lang['piclens_cfg_recursiv_actived']	= '开启递归子目录';
+$lang['piclens_cfg_root_actived']		= '在所有图片中开启 Piclens (在首页显示的图片)';
+$lang['piclens_cfg_lite_actived']		= '关闭导航按钮 (不显示页面上的 Piclens 按钮)';
+
+$lang['piclens_cfg_otherplugins_title']	= '对其他插件的兼容设置';
+$lang['piclens_cfg_plugins_actived']	= '开启对 <b><u><i>%s</i></u></b> 插件的兼容';
+$lang['piclens_label_plugins']			= '<b><u><i>%s</i></u> 插件已安装 </b>并且 <b>已激活</b>';
+$lang['piclens_secureimage_detail']		= '使用 获取文件(getFile) 方法从　SecureImage 插件里加载图片';
+$lang['piclens_extendeddesc_detail']	= '在图片说明里使用语言标签 [lang] ，同时使用 < !--hidden-- > 标签隐藏分类和图片';
+
+$lang['piclens_cfg_specials_actived']	= '在“特殊”的页面里开启 Piclens ';
+$lang['piclens_recentpics_label'] 		= '最近更新的图片';
+$lang['piclens_recentcats_label'] 		= '最近更新的分类';
+$lang['piclens_mostvisited_label'] 		= '最多浏览的';
+$lang['piclens_bestrated_label'] 		= '评分最高的';
+$lang['piclens_favorites_label'] 		= '我的收藏';
+
+$lang['piclens_label_withoutrecursive']	= '不递归';
+$lang['piclens_label_withrecursive']	= '递归';
+
+$lang['piclens_recurs_mode_title']		= '递归方式';
+$lang['piclens_recurs_mode_label']		= '递归方式  : ';
+$lang['piclens_recursive_standard']		= '标准';
+$lang['piclens_recursive_standard_title']= '标准方式';
+$lang['piclens_recursive_standard_detail']= '首页<br/>&nbsp;\- 分类 A<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\- 子分类　AA<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- 图片_AAxx<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\ <br/>&nbsp;\&nbsp;&nbsp;&nbsp;\- 子分类 AB<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- 图片_ABxx<br/>&nbsp;\<br/>&nbsp;\- 分类 B<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- 子分类 BA<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- 图片_BAxx<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- 子分类 BB<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- 图片_BBxx<br/><br/>- 在首页，１个流将包含 A 和 B 以及它们的子分类下所有图片 (不断变化的首页)<br/>- 在每个分类里 (如 A), 1个流将包含此分类与其子类下所有图片 (如 A 和 AA 还有 AB)<br/>';
+$lang['piclens_recursive_specifique']	= '特殊';
+$lang['piclens_recursive_specifique_title']= '特殊方式 ';
+$lang['piclens_recursive_specifique_detail']= '首页<br/>&nbsp;\- 分类 A<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\- 子分类 AA<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- 图片_AAxx<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\ <br/>&nbsp;\&nbsp;&nbsp;&nbsp;\- 子分类 AB<br/>&nbsp;\&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- 图片_ABxx<br/>&nbsp;\<br/>&nbsp;\- 分类 B<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- 子分类 BA<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\&nbsp;&nbsp;&nbsp;\- 图片_BAxx<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- 子分类 BB<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\- 图片_BBxx<br/><br/>- 在首页，每个分类下各自有1个流包含其子类下的图片 (如, 流 A 和 流 B)<br/>- 在每个分类下 (如 A), 1个流将包含分类 (如 流 A)下所有图片，而另1个流将包含每个其子分类下的所有图片(如 流 AA 和 流 AB)';
+
+$lang['piclens_recurs_mode_rem']		= '<i>不论选什么方式, 3D 墙 "Cooliris 3D Wall" (Tab 3) 的操作都是 <b>标准方式</b></i>';
+
+$lang['piclens_rsscfg_title'] 			= 'Piclens : RSS 通知参数';
+$lang['piclens_rsscfg_exttitle']		= '在Piclens里显示的文件类型';
+$lang['piclens_rsscfg_ext']				= '使用这些文件扩展名 : ';
+$lang['piclens_rsscfg_ext1']			= '(所有都不选 => 在RSS里使用所有文件类型)';
+$lang['piclens_rsscfg_ext2']			= '注意 : !空! 表示某些记录没有缩略图 (某些视频文件 [例如 .flv])';
+
+$lang['piclens_rsscfg_TNtype']			= '在 Piclens 幻灯片下的缩略图方式';
+$lang['piclens_rsscfg_IMGtype']			= '在 Piclens 幻灯片下的正常图片方式';
+$lang['piclens_rsscfg_order']			= '显示 Piclens 里需要排序的字段';
+$lang['piclens_rsscfg_order1']			= '在 Piclens 里图片的排序方式';
+$lang['piclens_rsscfg_name'] 			= '在 Piclens 里显示的图片名';
+$lang['piclens_rsscfg_namecat']			= '显示分类名称';
+$lang['piclens_rsscfg_desc'] 			= '在 Piclens 里显示的图片说明';
+$lang['piclens_rsscfg_video'] 			= '在 Piclens 里支持视频';
+
+$lang['piclens_label_orderPiwigo'] 		= 'Piwigo 默认';
+$lang['piclens_label_orderCreDate'] 	= '创建日期';
+$lang['piclens_label_orderAddDate'] 	= '添加日期';
+$lang['piclens_label_orderRank'] 		= '评分平均值';
+$lang['piclens_label_orderBest'] 		= '最高点击数';
+$lang['piclens_label_orderName']		= '文件名';
+$lang['piclens_label_orderID'] 			= 'Id';
+$lang['piclens_label_orderRand'] 		= '随机';
+$lang['piclens_label_orderCat'] 		= '分类';
+
+$lang['piclens_label_sortHome'] 		= '首页的 Piclens';
+$lang['piclens_label_sortCat'] 			= '分类里的 Piclens';
+
+$lang['piclens_label_sortPiwigo']		= 'Piwigo 默认';
+$lang['piclens_label_sortUp']			= '顺序';
+$lang['piclens_label_sortDown']			= '倒序';
+
+$lang['piclens_label_TypeTN']			= '缩略图';
+$lang['piclens_label_TypeNorm']			= '正常';
+$lang['piclens_label_TypeHigh']			= '高级';
+
+$lang['piclens_label_Name1']			= '缩略图名称 : 大小';
+$lang['piclens_label_Name2']			= '缩略图名称';
+$lang['piclens_label_Name3']			= '图片名称';
+
+$lang['piclens_label_Desc1']			= '不显示';
+$lang['piclens_label_Desc2']			= '图片名称';
+$lang['piclens_label_Desc3']			= '图片说明';
+
+
+$lang['piclens_wallcfg_title'] 			= 'Piclens : PiclensWall (3D Wall) 设置';
+$lang['piclens_wallcfg_navoption_title']= 'Cooliris 3D Wall 导航设置';
+$lang['piclens_wallcfg_name']			= 'Cooliris 3D Wall 标题 :';
+$lang['piclens_wallcfg_actived']		= '开启 Cooliris 3DWall';
+$lang['piclens_wallcfg_info']			= '<b>让 3DWall 工作重要的是: </b>必须将文件';
+$lang['piclens_wallcfg_info_suite']		= '复制到网站的根目录下 (或者修改现有的)';
+$lang['piclens_wallcfg_color']			= 'Cooliris 3D wall 背景色';
+$lang['piclens_wallcfg_colorB']			= '黑色';
+$lang['piclens_wallcfg_colorW']			= '白色';
+$lang['piclens_wallcfg_heigh']			= 'Cooliris 3D wall 高度';
+$lang['piclens_wallcfg_disp']			= '选择 Cooliris 3D wall 显示方式 :';
+$lang['piclens_wallcfg_disp_opt1']		= '首页';
+$lang['piclens_wallcfg_disp_opt2']		= '分类';
+$lang['piclens_wallcfg_option']			= 'Cooliris 3D wall 显示选项 :';
+$lang['piclens_wallcfg_option-opt1']	= '显示嵌入连接';
+$lang['piclens_wallcfg_option-opt2']	= '显示 "全屏" 连接';
+$lang['piclens_wallcfg_option-opt3']	= '显示 "查询" 连接';
+$lang['piclens_wallcfg_transparent']	= '"透明" 模式. <i>需要某些垂直主题</i>';
+$lang['piclens_wallcfg_param']			= 'Cooliris 3D Wall 参数 ';
+$lang['piclens_wallcfg_paramNORM']		= '标准 (所有图片一样)';
+$lang['piclens_wallcfg_paramSPEC']		= '指定 (设置以下的分类)';
+$lang['piclens_wallcfg_cat_nav']		= '使用 Cooliris 3D wall 替换分类里的缩略图显示方式';
+$lang['piclens_wallcfg_cat_nav1']		= '选择需要被 Cooliris 3D wall 替换显示的分类 :';
+
+$lang['piclens_wallcfg_swflocal'] 		= '[选项] 使用本地flash文件(swf)来使用 3DWall 以替换 Cooliris 网站里的 <b>[这种情况下, 将不需要 crossdomain.xml 文件]</b>';
+
+$lang['piclens_wallcfg_cat']			= '在 Cooliris 3D wall 里包含的分类 (当参数为 \'指定\' 时) :';
+
+$lang['piclens_wallcfg_spec_nav']		= '使用 Cooliris 3D wall 替换指定页面的导航方式';
+
+$lang['piclens_label_crossdomain1']		= '<i> <u>crossdomain.xml</u> 文件已经存在于网站的根目录, 如果需要可以手工修改此文件</i>';
+$lang['piclens_label_crossdomain2']		= '币制 crossdomain.xml 文件到网站的根目录';
+
+$lang['piclens_label_pwgstuff1']		= '<u>注意 :</u> <b>选项不可用, 因为 PWG_Stuff 插件已安装了 (查看 PWG_Stuff 里的选项). 可在那里改变某些设置.</b>';
+$lang['piclens_label_pwgstuff2']		= '<u>注意 :</u> 安装 <a href=http://fr.piwigo.org/ext/extension_view.php?eid=190>PWG_Stuff</a> 插件以添加 PicLens 3DWall 模块 (可以在 PWG_Stuff 里设置相关的显示 ).';
+
+$lang['piclens_stuff_notparam']			= '<b>Cooliris PicLens 的指定参数. 不要在 PWG Stuff 里使用</b>';
+$lang['piclens_stuff_param_commun']		= '<b>或许可是Cooliris PicLens 和 PWG-Stuff 的公共参数</b>';
+
+
+?>
Index: /extensions/piclens/main.inc.php
===================================================================
--- /extensions/piclens/main.inc.php	(revision 3410)
+++ /extensions/piclens/main.inc.php	(revision 3410)
@@ -0,0 +1,106 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier main.inc.php  ********* /
+ /* 0.2.0 --> version for PIWIGO 2.0.0    */
+ /* 0.2.1 --> bug generation flux RSS  */
+ /*		icone piclens lite ameliore   */
+ /* 0.2.2 --> Bug sur les pages autres que "categories"  */
+ /*		bug caractere speciaux dans flux xml genere   */
+ /* 0.2.3 --> gestion des level (niveaux de confidentialité) sur les images  */
+ /* 0.2.4 --> Ajout informations dans flux RSS (version...) et icone de la gallerie */
+ /*		Paramétrage du nom et description à afficher sous l'image piclens   */
+ /*		Ajout 3DWall de cooliris   */
+ /* 0.2.5 --> désacrivation de 3DWall (si présence de  PWG Stuff) */
+ /* 		Nettoyage code + correction notice page admin*/
+ /*		Ajout support video "vimeo" (plugin PY Gvideo)   */
+ /*		Ajout support video "flv" (plugin Charlies)   */
+ /* 0.2.6 --> Nettoyage et restructuration du code + modification page admin */
+ /*		  paramétrage choix couleur fond sur mur 3D */
+ /*		  paramétrage prise en compte fichiers video  */
+ /* 0.2.7 --> Correction ouverture fichier videos GY Video */
+ /* 0.3.0beta --> ajout parametrage pour mur 3D dont selection categories */
+ /* 0.3.0beta2 --> correction requete SQL de selection des images */
+ /*		  	correction notice sur le 'root_path' */
+ /* 0.3.0beta3 --> ajout affichage aleatoire et categorie dans le flux  */
+ /*		  	Modification template piclenswall : mode transparent */
+ /*		  	Affichage des categories (parametrable) dans le titre de l'image sous piclens */
+ /*		  	Modification et correction configuration du tri par defaut Piwigo ( order_by_inside_category) */
+ /*		  	Ajout parametrage icones sur le mur 3D */
+ /*		  	Quelques Corrections integration SecureImage */
+ /* 0.3.0beta4 --> support multi-langue  (FR et EN)*/
+ /*		  	Optimisation requetes SQL */
+ /*		  	regroupement fichiers de generation flux rss (piclens-rss et piclenswall-rss) dans le fichier generate_rss */
+ /*		  	Ajout parametrage et remplacement de la navigation par le mur 3D et titre mur 3D*/
+ /* 0.3.0beta5 --> Correction ; manquant dans default_values (oups!)*/
+ /* 0.3.0beta6 --> Ajout parametre de tri/ordre selon le flux genere : accueil ou categorie*/
+ /*		  	Correction Lien entre tri et ordre si parametre = defaut PIWIGO*/ 
+ /*		  	Integration extended description (prise en compte hidden [categories et images] et description multilangue)*/
+ /*		  	Quelques corrections dans le flux xml genere (W3C feed validation)*/
+ /* 0.3.0beta7 --> Correction requete sql sur categorie*/
+ /*		  	Correction page admin (sauvegarde des parametres ordre et tri)*/
+ /* 0.3.0beta8 --> Activation piclens et mur sur pages speciales*/
+ /*		  	Parametre de recursivite (standard et specifique)*/
+ /*		  	Corrections et optimisation code*/
+ /* 0.3.0 --> Publication version finale*/
+ /* 0.3.1 --> Correction "notice" (warning) sur variable piclnkmaster*/
+ /*		 Ajout paramètre pour le mode transparent (a prendre en compte dans PWG Stuff)*/
+ /* 0.3.2 --> Correction "notice" (warning) sur variable piclens_wall_transparent*/
+ /* 0.3.3 --> Correction lien URL vers les images depuis piclens (arrivee directe sur la categorie)*/
+ /*  		Modification de l'affichage de la selection des extensions prises en compte*/
+ /*  		Page d'admin : intégration de jquery resizable pour redimensionner la selection des categories */
+ /*  		Sauvegarde des parametres en bases de données */
+ /*  		[MAJEUR] Correction de "l'emballement des hit images" sur l'accueil si modules "plus vues"... sont actives dans PWG_Stuff*/
+ /*  		Ajout patch pour lien en https */
+ /*  		Ajout parametre et utilisation du flash cooliris.swf en local (evite de copier crossdomain.xml). */
+ /* 0.3.4 --> [MAJEUR] Correction de "l'emballement des hit images" lie a la selection des images depuis les categories speciales*/
+ /*  		Correction patch pour lien en https */
+ /*  		Ajout fonction sauvegarde et restauration des fichier de configuration (utile pour la migration) */
+ /*  		Ajout traduction chinoise (thanks Winson) */
+ 
+
+/********* TODO  *********/
+//- possibilite d'afficher les derniers commentaires des images dans piclens
+
+
+ 
+if (!defined('PHPWG_ROOT_PATH'))  die('Hacking attempt!');
+ 
+define('PICLENS_NAME', 'Cooliris/Piclens');
+define('PICLENS_ROOT', dirname(__FILE__));
+define('PICLENS_DIR' , basename(dirname(__FILE__)));
+define('PICLENS_CFG_FILE' , PICLENS_ROOT.'/'.PICLENS_DIR.'.dat');
+define('PICLENS_CFG_FILE_OLD' , PICLENS_ROOT.'/data.dat');		// ancien fichier de config (version <= 0.2.5)
+define('PICLENS_CFG_FILE1' , PHPWG_PLUGINS_PATH.PICLENS_DIR.'.dat');
+define('PICLENS_CFG_DB' , PICLENS_DIR);
+define('PICLENS_PATH' , PHPWG_PLUGINS_PATH . PICLENS_DIR . '/');
+define('PICLENS_INC_PATH' , PHPWG_PLUGINS_PATH . PICLENS_DIR . '/include/');
+define('PICLENS_IMG_PATH' , PHPWG_PLUGINS_PATH . PICLENS_DIR . '/img/');
+define('PICLENS_ADMIN_PATH' , PHPWG_PLUGINS_PATH . PICLENS_DIR . '/admin/');
+
+load_language('plugin.lang', PICLENS_PATH);
+
+include_once PICLENS_INC_PATH.'Piclens.class.php';
+
+$obj = new Piclens();
+$obj->load_config();
+
+
+add_event_handler('loc_end_page_header', array(&$obj, 'piclens_link' ));
+add_event_handler('loc_end_index', array(&$obj, 'add_piclens_icon'));
+add_event_handler('loc_end_index' , array(&$obj, 'piclenswall'));
+add_event_handler('loc_end_index', array(&$obj, 'piclens_thumbnails'));
+add_event_handler('loc_begin_index', array(&$obj, 'set_make_full_url_piclens'));
+
+ 
+add_event_handler('get_admin_plugin_menu_links', array(&$obj, 'piclens_admin_menu') );
+set_plugin_data($plugin['id'], $obj);
+
+
+?>
Index: /extensions/piclens/piclens-rss.php
===================================================================
--- /extensions/piclens/piclens-rss.php	(revision 3410)
+++ /extensions/piclens/piclens-rss.php	(revision 3410)
@@ -0,0 +1,34 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier piclens-rss.php  *********/
+
+define('PHPWG_ROOT_PATH','../../');
+if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
+
+
+include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
+include_once(PHPWG_ROOT_PATH.'include/section_init.inc.php');
+
+// +-----------------------------------------------------------------------+
+// | Check Access and exit when user status is not ok                      |
+// +-----------------------------------------------------------------------+
+check_status(ACCESS_GUEST);
+
+// Load Piclens
+$obj = new Piclens();
+$obj->load_config();
+
+// Parametrages du mur 3D (parametres communs ou differents)
+$piclenswallfeed = false;
+
+// Generate rss
+include(PICLENS_PATH.'generate_rss.php');
+
+?>
Index: /extensions/piclens/piclenswall-rss.php
===================================================================
--- /extensions/piclens/piclenswall-rss.php	(revision 3410)
+++ /extensions/piclens/piclenswall-rss.php	(revision 3410)
@@ -0,0 +1,34 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier piclenswall-rss.php  *********/
+  
+define('PHPWG_ROOT_PATH','../../');
+if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
+
+
+include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
+include_once(PHPWG_ROOT_PATH.'include/section_init.inc.php');
+
+// +-----------------------------------------------------------------------+
+// | Check Access and exit when user status is not ok                      |
+// +-----------------------------------------------------------------------+
+check_status(ACCESS_GUEST);
+
+// Load Piclens
+$obj = new Piclens();
+$obj->load_config();
+
+// Parametrages du mur 3D (parametres communs ou differents)
+$piclenswallfeed = ( ($obj->my_config['piclens_wall_specif'] != 'common') ? true : false);
+
+// Generate rss
+include(PICLENS_PATH.'generate_rss.php');
+
+?>
Index: /extensions/piclens/piclenswall.php
===================================================================
--- /extensions/piclens/piclenswall.php	(revision 3410)
+++ /extensions/piclens/piclenswall.php	(revision 3410)
@@ -0,0 +1,71 @@
+<?php
+/*
+ * Plugin Name: CoolIris-Piclens
+ * Version: 0.3.4
+ * Description: Cooliris/Piclens activation
+ * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=234
+ * Author: Tiico
+ * Author URI: 
+ * */
+/********* Fichier piclenswall.php  *********/
+
+
+  global $user, $template;
+
+   if (!is_a_guest())
+	{	
+		// Seulement sur une page type 'categorie'
+		if ((isset($page['section'])) && (($page['section']) == 'categories'))
+		{
+			// Page accueil et  option mur sur l'accueil activee
+			if( (empty($page['category'])) && $this->my_config['piclens_wall_ontop'] )
+				$rssfeed = $this->root_site_piclens.PICLENS_PATH.'piclenswall-rss.php?/categories';
+
+			// categorie et option mur sur categorie activee
+			elseif (isset($page['category']) && !empty($page['category']['id']) && $this->my_config['piclens_wall_oncat'])
+			{
+			// remplacement naviagation ne doit pas etre active et mis en place sur la page...
+				if (!($this->my_config['piclens_wall_nav']) or !(in_array($page['category']['id'], $this->my_config['piclens_wall_cat_nav_replace']))) 
+
+				{				
+					$rssfeed = $this->root_site_piclens.PICLENS_PATH;
+
+					if ($this->my_config['piclens_wall_specif'] == 'common') // pas de specificites 3DWall : utilisation des parametres piclens
+						$rssfeed .= 'piclens-rss.php'.(empty($page['category']['permalink']) ? $page['category']['id'] : $page['category']['permalink']);
+					else
+					{
+						//  categorie pour laquelle le mur est parametre.
+						if (in_array($page['category']['id'], $this->my_config['piclens_wall_categories']))
+							$rssfeed .= 'piclenswall-rss.php'.(empty($page['category']['permalink']) ? $page['category']['id'] : $page['category']['permalink']);
+					}
+				}
+			}
+
+			$template->set_filenames(array('piclenswall' => PICLENS_ROOT . '/piclenswall.tpl'));
+			
+//			$template->assign('piclenswalltitle', $this->my_config['piclens_wall_title']);
+//			$template->assign('rssfeed', $rssfeed);
+//			$template->assign('color', $this->my_config['piclens_wall_color']);
+//			$template->assign('height', $this->my_config['piclens_wall_height']);
+//			$template->assign('showfullscreen', ($this->my_config['piclens_wall_showfullscreen'] ? "true" : "false"));
+//			$template->assign('showembed', ($this->my_config['piclens_wall_showembed'] ? "true" : "false"));
+//			$template->assign('showsearch', ($this->my_config['piclens_wall_showsearch'] ? "true" : "false"));
+
+			$template->assign(array(
+				'piclenswalltitle'		=> $this->my_config['piclens_wall_title'], 
+				'rssfeed'				=> $rssfeed,
+				'color'					=> $this->my_config['piclens_wall_color'],
+				'height'				=> $this->my_config['piclens_wall_height'],
+				'showfullscreen'		=> ($this->my_config['piclens_wall_showfullscreen'] ? "true" : "false"),
+				'showembed'				=> ($this->my_config['piclens_wall_showembed'] ? "true" : "false"),
+				'showsearch'			=> ($this->my_config['piclens_wall_showsearch'] ? "true" : "false"),
+				'transparent'			=> $this->my_config['piclens_wall_transparent'],
+				'swf_link'				=> ($this->my_config['piclens_wall_swflocal'] ? $this->root_site_piclens.PICLENS_PATH.'swf/cooliris.swf' : 'http://apps.cooliris.com/embed/cooliris.swf') 
+			));
+			
+			if (isset($rssfeed))
+				$template->concat('PLUGIN_INDEX_CONTENT_AFTER', $template->parse('piclenswall', true));
+		}
+	}
+
+?>
Index: /extensions/piclens/piclenswall.tpl
===================================================================
--- /extensions/piclens/piclenswall.tpl	(revision 3410)
+++ /extensions/piclens/piclenswall.tpl	(revision 3410)
@@ -0,0 +1,25 @@
+
+{if isset($rssfeed)}
+
+<div class="content piclens">
+	<div class="titrePage">
+	<h2>{$piclenswalltitle}</h2>
+	</div>
+	<center>
+	<object id="o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
+		width="100%" height="{$height}" >
+			<param name="movie" value="{$swf_link}?feed={$rssfeed}&amp;style={$color}&amp;showEmbed={$showembed}&amp;showFullScreen={$showfullscreen}&amp;showSearch={$showsearch}" />
+			<param name="allowFullScreen" value="{$showfullscreen}" />
+			<param name="showEmbed" value="{$showembed}" />
+			<param name="showSearch" value="{$showsearch}" />
+			<param name="allowScriptAccess" value="always" />
+			{if $transparent}
+			<param name="wmode" value="transparent" />
+			{/if}
+			<embed {if $transparent}WMODE="transparent" {/if} type="application/x-shockwave-flash" src="{$swf_link}?feed={$rssfeed}&amp;style={$color}&amp;showEmbed={$showembed}&amp;showFullScreen={$showfullscreen}&amp;showSearch={$showsearch}" width="100%" height="{$height}" showEmbed="{$showembed}" showSearch="{$showsearch}" allowFullScreen="{$showfullscreen}" allowScriptAccess="always" />
+	</object>
+	</center>
+
+
+</div>
+{/if}
