Index: /extensions/add_index/admin/index.php
===================================================================
--- /extensions/add_index/admin/index.php	(revision 12800)
+++ /extensions/add_index/admin/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/admin/main_page.php
===================================================================
--- /extensions/add_index/admin/main_page.php	(revision 12800)
+++ /extensions/add_index/admin/main_page.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
@@ -51,7 +48,7 @@
  * @return array
  */
-function get_add_index_directories($path, $recursive = true)
-{
-  $dirs = array();
+function get_add_index_directories($path)
+{
+  $dirs = array($path);
 
   if (is_dir($path))
@@ -68,9 +65,5 @@
            )
         {
-          array_push($dirs, $path.'/'.$node);
-          if ($recursive)
-          {
-            $dirs = array_merge($dirs, get_add_index_directories($path.'/'.$node));
-          }
+          $dirs = array_merge($dirs, get_add_index_directories($path.'/'.$node));
         }
       }
@@ -87,7 +80,5 @@
 $index_file_src=$conf['add_index_source_directory_path'].$conf['add_index_filename'];
 $overwrite_file=isset($_GET['overwrite']);
-$site_id = (isset($_GET['site_id']) and is_numeric($_GET['site_id']) 
-            ? $_GET['site_id'] 
-            : 0);
+$site_id=((isset($_GET['site_id']) and is_numeric($_GET['site_id'])) ? $_GET['site_id'] : 0);
 
 // Init values
@@ -96,7 +87,13 @@
 $count_skip = 0;
 $count_error = 0;
+$dir_list=array();
 
 if (@file_exists($index_file_src))
 {
+  if (empty($site_id))
+  {
+    $dir_list[] = $conf['upload_dir'];
+  }
+
   $query = '
 select
@@ -120,39 +117,44 @@
     while (list($galleries_url) = mysql_fetch_row($result))
     {
-      if (!url_is_remote($galleries_url))
+      $dir_list[] = $galleries_url;
+    }
+  }
+
+  foreach ($dir_list as $galleries_url)
+  {
+    //~ echo $galleries_url.'<BR>';
+    if (!url_is_remote($galleries_url))
+    {
+      foreach (get_add_index_directories($galleries_url) as $dir_galleries)
       {
-        //echo $galleries_url.'<BR>';
-        foreach (get_add_index_directories($galleries_url) as $dir_galleries)
+        $file_dest = str_replace('//', '/', $dir_galleries.'/'.$conf['add_index_filename']);
+        if ($overwrite_file or !@file_exists($file_dest))
         {
-          $file_dest = str_replace('//', '/', $dir_galleries.'/'.$conf['add_index_filename']);
-          if ($overwrite_file or !@file_exists($file_dest))
+          if (copy($index_file_src, $file_dest))
           {
-            if (copy($index_file_src, $file_dest))
-            {
-              array_push($add_index_results,
-                sprintf(l10n('add_index_file_copied'), $file_dest));
-              $count_copy++;
-            }
-            else
-            {
-              array_push($page['errors'],
-                sprintf(l10n('add_index_file_not_copied'), $file_dest));
-              $count_error++;
-            }
+            array_push($add_index_results,
+              sprintf(l10n('add_index_file_copied'), $file_dest));
+            $count_copy++;
           }
           else
           {
-            $count_skip++;
+            array_push($page['errors'],
+              sprintf(l10n('add_index_file_not_copied'), $file_dest));
+            $count_error++;
           }
         }
+        else
+        {
+          $count_skip++;
+        }
       }
-      else
+    }
+    else
+    {
+      if (!empty($site_id))
       {
-        if (!empty($site_id))
-        {
-          array_push($page['errors'],
-            sprintf(l10n('add_index_not_local_site'), 
-              $galleries_url, $site_id));
-        }
+        array_push($page['errors'],
+          sprintf(l10n('add_index_not_local_site'), 
+            $galleries_url, $site_id));
       }
     }
Index: /extensions/add_index/index.php
===================================================================
--- /extensions/add_index/index.php	(revision 12800)
+++ /extensions/add_index/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/cs_CZ/help/index.php
===================================================================
--- /extensions/add_index/language/cs_CZ/help/index.php	(revision 12800)
+++ /extensions/add_index/language/cs_CZ/help/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/cs_CZ/index.php
===================================================================
--- /extensions/add_index/language/cs_CZ/index.php	(revision 12800)
+++ /extensions/add_index/language/cs_CZ/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/cs_CZ/plugin.lang.php
===================================================================
--- /extensions/add_index/language/cs_CZ/plugin.lang.php	(revision 12800)
+++ /extensions/add_index/language/cs_CZ/plugin.lang.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/de_DE/help/index.php
===================================================================
--- /extensions/add_index/language/de_DE/help/index.php	(revision 12800)
+++ /extensions/add_index/language/de_DE/help/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/de_DE/index.php
===================================================================
--- /extensions/add_index/language/de_DE/index.php	(revision 12800)
+++ /extensions/add_index/language/de_DE/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/de_DE/plugin.lang.php
===================================================================
--- /extensions/add_index/language/de_DE/plugin.lang.php	(revision 12800)
+++ /extensions/add_index/language/de_DE/plugin.lang.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/en_UK/help/index.php
===================================================================
--- /extensions/add_index/language/en_UK/help/index.php	(revision 12800)
+++ /extensions/add_index/language/en_UK/help/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/en_UK/index.php
===================================================================
--- /extensions/add_index/language/en_UK/index.php	(revision 12800)
+++ /extensions/add_index/language/en_UK/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/en_UK/plugin.lang.php
===================================================================
--- /extensions/add_index/language/en_UK/plugin.lang.php	(revision 12800)
+++ /extensions/add_index/language/en_UK/plugin.lang.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/es_ES/help/index.php
===================================================================
--- /extensions/add_index/language/es_ES/help/index.php	(revision 12800)
+++ /extensions/add_index/language/es_ES/help/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/es_ES/index.php
===================================================================
--- /extensions/add_index/language/es_ES/index.php	(revision 12800)
+++ /extensions/add_index/language/es_ES/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/es_ES/plugin.lang.php
===================================================================
--- /extensions/add_index/language/es_ES/plugin.lang.php	(revision 12800)
+++ /extensions/add_index/language/es_ES/plugin.lang.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
@@ -21,5 +18,4 @@
 // | USA.                                                                  |
 // +-----------------------------------------------------------------------+
-
 $lang['Add_Index'] = 'Adición de los ficheros "index"';
 $lang['Advanced_Add_Index'] = 'Adición y aplastamiento de los ficheros "index" para todos los sitios locales';
Index: /extensions/add_index/language/fr_FR/help/index.php
===================================================================
--- /extensions/add_index/language/fr_FR/help/index.php	(revision 12800)
+++ /extensions/add_index/language/fr_FR/help/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/fr_FR/index.php
===================================================================
--- /extensions/add_index/language/fr_FR/index.php	(revision 12800)
+++ /extensions/add_index/language/fr_FR/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/fr_FR/plugin.lang.php
===================================================================
--- /extensions/add_index/language/fr_FR/plugin.lang.php	(revision 12800)
+++ /extensions/add_index/language/fr_FR/plugin.lang.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/hu_HU/help/index.php
===================================================================
--- /extensions/add_index/language/hu_HU/help/index.php	(revision 12800)
+++ /extensions/add_index/language/hu_HU/help/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/hu_HU/index.php
===================================================================
--- /extensions/add_index/language/hu_HU/index.php	(revision 12800)
+++ /extensions/add_index/language/hu_HU/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/hu_HU/plugin.lang.php
===================================================================
--- /extensions/add_index/language/hu_HU/plugin.lang.php	(revision 12800)
+++ /extensions/add_index/language/hu_HU/plugin.lang.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/index.php
===================================================================
--- /extensions/add_index/language/index.php	(revision 12800)
+++ /extensions/add_index/language/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/it_IT/help/index.php
===================================================================
--- /extensions/add_index/language/it_IT/help/index.php	(revision 12800)
+++ /extensions/add_index/language/it_IT/help/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based photo gallery                                    |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2011 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/it_IT/index.php
===================================================================
--- /extensions/add_index/language/it_IT/index.php	(revision 12800)
+++ /extensions/add_index/language/it_IT/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based photo gallery                                    |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2011 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/it_IT/plugin.lang.php
===================================================================
--- /extensions/add_index/language/it_IT/plugin.lang.php	(revision 12800)
+++ /extensions/add_index/language/it_IT/plugin.lang.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/lv_LV/index.php
===================================================================
--- /extensions/add_index/language/lv_LV/index.php	(revision 12800)
+++ /extensions/add_index/language/lv_LV/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/lv_LV/plugin.lang.php
===================================================================
--- /extensions/add_index/language/lv_LV/plugin.lang.php	(revision 12800)
+++ /extensions/add_index/language/lv_LV/plugin.lang.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/no_NO/help/index.php
===================================================================
--- /extensions/add_index/language/no_NO/help/index.php	(revision 12800)
+++ /extensions/add_index/language/no_NO/help/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/no_NO/index.php
===================================================================
--- /extensions/add_index/language/no_NO/index.php	(revision 12800)
+++ /extensions/add_index/language/no_NO/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/no_NO/plugin.lang.php
===================================================================
--- /extensions/add_index/language/no_NO/plugin.lang.php	(revision 12800)
+++ /extensions/add_index/language/no_NO/plugin.lang.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/pl_PL/help/index.php
===================================================================
--- /extensions/add_index/language/pl_PL/help/index.php	(revision 12800)
+++ /extensions/add_index/language/pl_PL/help/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/pl_PL/index.php
===================================================================
--- /extensions/add_index/language/pl_PL/index.php	(revision 12800)
+++ /extensions/add_index/language/pl_PL/index.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/language/pl_PL/plugin.lang.php
===================================================================
--- /extensions/add_index/language/pl_PL/plugin.lang.php	(revision 12800)
+++ /extensions/add_index/language/pl_PL/plugin.lang.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/main.admin.inc.php
===================================================================
--- /extensions/add_index/main.admin.inc.php	(revision 12800)
+++ /extensions/add_index/main.admin.inc.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
Index: /extensions/add_index/main.base.inc.php
===================================================================
--- /extensions/add_index/main.base.inc.php	(revision 12800)
+++ /extensions/add_index/main.base.inc.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
@@ -21,5 +18,4 @@
 // | USA.                                                                  |
 // +-----------------------------------------------------------------------+
-
 if (!defined('PHPWG_ROOT_PATH'))
 {
Index: /extensions/add_index/main.inc.php
===================================================================
--- /extensions/add_index/main.inc.php	(revision 12800)
+++ /extensions/add_index/main.inc.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 Piwigo Team                  http://piwigo.org |
-// | Copyright(C) 2003-2008 Piwigo team    http://phpwebgallery.net |
-// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
@@ -24,5 +21,5 @@
 /*
 Plugin Name: Add Index
-Version: <add by PEM>
+Version: auto
 Description: Add index.php file on all sub-directories of local galleries pictures.
 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=284
Index: /extensions/add_index/main.normal.inc.php
===================================================================
--- /extensions/add_index/main.normal.inc.php	(revision 12800)
+++ /extensions/add_index/main.normal.inc.php	(revision 12801)
@@ -1,9 +1,6 @@
 <?php
 // +-----------------------------------------------------------------------+
-// | Piwigo - a PHP based picture gallery                                  |
-// +-----------------------------------------------------------------------+
-// | Copyright(C) 2008-2010 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 |
+// | Add Index - a Piwigo Plugin                                           |
+// | Copyright (C) 2019-2011 Piwigo team                                   |
 // +-----------------------------------------------------------------------+
 // | This program is free software; you can redistribute it and/or modify  |
@@ -21,4 +18,5 @@
 // | USA.                                                                  |
 // +-----------------------------------------------------------------------+
+
 
 if (!defined('PHPWG_ROOT_PATH'))
