Feature Issue ID 0000496: Integrate MOD add_index on PWG with plugin.lang.php
Add some plugin triggers: o for help o for language o for site manager o for advanced features Allow to launch directly plugin page (without section key) Add add_index plugin, available on site manager and advanced features Configuration page and best help must be coming soon. git-svn-id: http://piwigo.org/svn/trunk@1699 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
f992150313
commit
4489066c98
34 changed files with 929 additions and 40 deletions
|
|
@ -0,0 +1,7 @@
|
|||
<p>Functionality of AddIndex plugin:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>Add and overwrite "index" files for all local sites:</strong>
|
||||
Overwrite copy the file ./include/index.php in all sub-directories of gallerie local sites.
|
||||
</li>
|
||||
<ul>
|
||||
35
plugins/add_index/language/en_UK.iso-8859-1/help/index.php
Normal file
35
plugins/add_index/language/en_UK.iso-8859-1/help/index.php
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | PhpWebGallery - a PHP based picture gallery |
|
||||
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
|
||||
// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | branch : BSF (Best So Far)
|
||||
// | file : $RCSfile$
|
||||
// | last update : $Date: 2006-03-15 23:44:35 +0100 (mer., 15 mars 2006) $
|
||||
// | last modifier : $Author: plg $
|
||||
// | revision : $Revision: 1082 $
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | 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 of index.php
|
||||
|
||||
$url = '../index.php';
|
||||
header( 'Request-URI: '.$url );
|
||||
header( 'Content-Location: '.$url );
|
||||
header( 'Location: '.$url );
|
||||
exit();
|
||||
?>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<p>Functionality of AddIndex plugin:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>Add "index" files for local site:</strong>
|
||||
Copy the file ./include/index.php in all sub-directories of selected local site.
|
||||
</li>
|
||||
<ul>
|
||||
35
plugins/add_index/language/en_UK.iso-8859-1/index.php
Normal file
35
plugins/add_index/language/en_UK.iso-8859-1/index.php
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | PhpWebGallery - a PHP based picture gallery |
|
||||
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
|
||||
// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | branch : BSF (Best So Far)
|
||||
// | file : $RCSfile$
|
||||
// | last update : $Date: 2006-03-15 23:44:35 +0100 (mer., 15 mars 2006) $
|
||||
// | last modifier : $Author: plg $
|
||||
// | revision : $Revision: 1082 $
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | 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 of index.php
|
||||
|
||||
$url = '../index.php';
|
||||
header( 'Request-URI: '.$url );
|
||||
header( 'Content-Location: '.$url );
|
||||
header( 'Location: '.$url );
|
||||
exit();
|
||||
?>
|
||||
44
plugins/add_index/language/en_UK.iso-8859-1/plugin.lang.php
Normal file
44
plugins/add_index/language/en_UK.iso-8859-1/plugin.lang.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?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 |
|
||||
// | Copyright (C) 2006-2007 Ruben ARNAUD - team@phpwebgallery.net |
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | branch : BSF (Best So Far)
|
||||
// | file : $RCSfile$
|
||||
// | last update : $Date: 2006-07-18 23:38:54 +0200 (mar., 18 juil. 2006) $
|
||||
// | last modifier : $Author: rub $
|
||||
// | revision : $Revision: 1481 $
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | 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. |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
$lang['Add_Index'] = 'Add "index" files';
|
||||
$lang['Advanced_Add_Index'] = 'Add and overwrite "index" files for all local sites';
|
||||
$lang['Manager_Add_Index'] = 'add "index"';
|
||||
|
||||
$lang['add_index_file_copied'] = '%s copied';
|
||||
$lang['add_index_file_not_copied'] = '%s not copied';
|
||||
$lang['add_index_not_local_site'] = '%s [%d] is a remote site, it\`s compatible with add "index" files';
|
||||
$lang['add_index_nb_copied_file'] = '%d file copied';
|
||||
$lang['add_index_nb_copied_files'] = '%d files copied';
|
||||
$lang['add_index_nb_skipped_file'] = '%d file skipped';
|
||||
$lang['add_index_nb_skipped_files'] = '%d files skipped';
|
||||
$lang['add_index_nb_not_copied_file'] = '%d file not copied';
|
||||
$lang['add_index_nb_not_copied_files'] = '%d files not copied';
|
||||
$lang['add_index_src_file_dont_exists'] = 'Source file %s don\'t esists, cannot duplicate this file';
|
||||
|
||||
?>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<p>Fonctionnalité du plugin AddIndex:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>Ajout et écrasement des fichiers "index" pour tous les sites locaux :</strong>
|
||||
Copie avec écrasement le fichier ./include/index.php dans tous les sous-répertoires des galeries des sites locaux.
|
||||
</li>
|
||||
</ul>
|
||||
35
plugins/add_index/language/fr_FR.iso-8859-1/help/index.php
Normal file
35
plugins/add_index/language/fr_FR.iso-8859-1/help/index.php
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | PhpWebGallery - a PHP based picture gallery |
|
||||
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
|
||||
// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | branch : BSF (Best So Far)
|
||||
// | file : $RCSfile$
|
||||
// | last update : $Date: 2006-03-15 23:44:35 +0100 (mer., 15 mars 2006) $
|
||||
// | last modifier : $Author: plg $
|
||||
// | revision : $Revision: 1082 $
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | 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 of index.php
|
||||
|
||||
$url = '../index.php';
|
||||
header( 'Request-URI: '.$url );
|
||||
header( 'Content-Location: '.$url );
|
||||
header( 'Location: '.$url );
|
||||
exit();
|
||||
?>
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<p>Fonctionnalité du plugin AddIndex:</p>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>Ajout des fichiers "index" pour le site local :</strong>
|
||||
Copie le fichier ./include/index.php dans tous les sous-répertoires du site sélectionné.
|
||||
</li>
|
||||
</ul>
|
||||
35
plugins/add_index/language/fr_FR.iso-8859-1/index.php
Normal file
35
plugins/add_index/language/fr_FR.iso-8859-1/index.php
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | PhpWebGallery - a PHP based picture gallery |
|
||||
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
|
||||
// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | branch : BSF (Best So Far)
|
||||
// | file : $RCSfile$
|
||||
// | last update : $Date: 2006-03-15 23:44:35 +0100 (mer., 15 mars 2006) $
|
||||
// | last modifier : $Author: plg $
|
||||
// | revision : $Revision: 1082 $
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | 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 of index.php
|
||||
|
||||
$url = '../index.php';
|
||||
header( 'Request-URI: '.$url );
|
||||
header( 'Content-Location: '.$url );
|
||||
header( 'Location: '.$url );
|
||||
exit();
|
||||
?>
|
||||
44
plugins/add_index/language/fr_FR.iso-8859-1/plugin.lang.php
Normal file
44
plugins/add_index/language/fr_FR.iso-8859-1/plugin.lang.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?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 |
|
||||
// | Copyright (C) 2006-2007 Ruben ARNAUD - team@phpwebgallery.net |
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | branch : BSF (Best So Far)
|
||||
// | file : $RCSfile$
|
||||
// | last update : $Date: 2006-07-18 23:38:54 +0200 (mar., 18 juil. 2006) $
|
||||
// | last modifier : $Author: rub $
|
||||
// | revision : $Revision: 1481 $
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | 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. |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
$lang['Add_Index'] = 'Ajout des fichiers "index"';
|
||||
$lang['Advanced_Add_Index'] = 'Ajout et écrasement des fichiers "index" pour tous les sites locaux';
|
||||
$lang['Manager_Add_Index'] = 'ajout des "index"';
|
||||
|
||||
$lang['add_index_file_copied'] = '%s copié';
|
||||
$lang['add_index_file_not_copied'] = '%s non copié';
|
||||
$lang['add_index_not_local_site'] = '%s [%d] est un site distant, ce n\'est pas compatible avec l\'ajout de fichiers "index"';
|
||||
$lang['add_index_nb_copied_file'] = '%d fichier copié';
|
||||
$lang['add_index_nb_copied_files'] = '%d fichiers copiés';
|
||||
$lang['add_index_nb_skipped_file'] = '%d fichier à ne pas traiter';
|
||||
$lang['add_index_nb_skipped_files'] = '%d fichiers à ne pas traiter';
|
||||
$lang['add_index_nb_not_copied_file'] = '%d fichier non copié';
|
||||
$lang['add_index_nb_not_copied_files'] = '%d fichiers non copiés';
|
||||
$lang['add_index_src_file_dont_exists'] = 'Le fichier source n\'existe pas, la duplication de ce fichier n\'est pas possible';
|
||||
|
||||
?>
|
||||
35
plugins/add_index/language/index.php
Normal file
35
plugins/add_index/language/index.php
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | PhpWebGallery - a PHP based picture gallery |
|
||||
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
|
||||
// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | branch : BSF (Best So Far)
|
||||
// | file : $RCSfile$
|
||||
// | last update : $Date: 2006-07-18 23:38:54 +0200 (mar., 18 juil. 2006) $
|
||||
// | last modifier : $Author: rub $
|
||||
// | revision : $Revision: 1481 $
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | 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 of index.php
|
||||
|
||||
$url = '../index.php';
|
||||
header( 'Request-URI: '.$url );
|
||||
header( 'Content-Location: '.$url );
|
||||
header( 'Location: '.$url );
|
||||
exit();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue