diff options
Diffstat (limited to 'plugins')
18 files changed, 1554 insertions, 1554 deletions
diff --git a/plugins/add_index/admin/main_page.tpl b/plugins/add_index/admin/main_page.tpl index 155151851..ecdd3edf1 100644 --- a/plugins/add_index/admin/main_page.tpl +++ b/plugins/add_index/admin/main_page.tpl @@ -1,14 +1,14 @@ -<!-- $Id: notification_by_mail.tpl Ruben ARNAUD -->
-<div class="titrePage">
- <h2>{lang:Add_Index}</h2>
-</div>
-
-<!-- BEGIN add_index_results -->
-<div>
- <ul>
- <!-- BEGIN result -->
- <li>{add_index_results.result.RESULT}</li>
- <!-- END result -->
- </ul>
-</div>
-<!-- END add_index_results -->
+<!-- $Id: notification_by_mail.tpl Ruben ARNAUD --> +<div class="titrePage"> + <h2>{lang:Add_Index}</h2> +</div> + +<!-- BEGIN add_index_results --> +<div> + <ul> + <!-- BEGIN result --> + <li>{add_index_results.result.RESULT}</li> + <!-- END result --> + </ul> +</div> +<!-- END add_index_results --> diff --git a/plugins/add_index/index.php b/plugins/add_index/index.php index f0ba36fa3..083b24edf 100644 --- a/plugins/add_index/index.php +++ b/plugins/add_index/index.php @@ -1,35 +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();
-?>
+<?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(); +?> diff --git a/plugins/add_index/language/en_UK.iso-8859-1/help/advanced_feature.html b/plugins/add_index/language/en_UK.iso-8859-1/help/advanced_feature.html index 5724d5d1b..00d15b57c 100644 --- a/plugins/add_index/language/en_UK.iso-8859-1/help/advanced_feature.html +++ b/plugins/add_index/language/en_UK.iso-8859-1/help/advanced_feature.html @@ -1,7 +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 to all sub-directories of gallerie local sites.
- </li>
-<ul>
+<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 to all sub-directories of gallerie local sites. + </li> +<ul> diff --git a/plugins/add_index/language/en_UK.iso-8859-1/help/site_manager.html b/plugins/add_index/language/en_UK.iso-8859-1/help/site_manager.html index 3ea24ac6b..353980adc 100644 --- a/plugins/add_index/language/en_UK.iso-8859-1/help/site_manager.html +++ b/plugins/add_index/language/en_UK.iso-8859-1/help/site_manager.html @@ -1,7 +1,7 @@ -<p>Functionality of AddIndex plugin:</p>
-<ul>
- <li>
- <strong>Add "index" files for local site:</strong>
- Copy the file ./include/index.php to all sub-directories of selected local site.
- </li>
-<ul>
+<p>Functionality of AddIndex plugin:</p> +<ul> + <li> + <strong>Add "index" files for local site:</strong> + Copy the file ./include/index.php to all sub-directories of selected local site. + </li> +<ul> diff --git a/plugins/add_index/language/en_UK.iso-8859-1/plugin.lang.php b/plugins/add_index/language/en_UK.iso-8859-1/plugin.lang.php index d49d702f5..5dfebec4f 100644 --- a/plugins/add_index/language/en_UK.iso-8859-1/plugin.lang.php +++ b/plugins/add_index/language/en_UK.iso-8859-1/plugin.lang.php @@ -1,44 +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) 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';
-
-?>
+<?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) 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'; + +?> diff --git a/plugins/add_index/language/fr_FR.iso-8859-1/help/advanced_feature.html b/plugins/add_index/language/fr_FR.iso-8859-1/help/advanced_feature.html index 5f0172d05..2592c0d28 100644 --- a/plugins/add_index/language/fr_FR.iso-8859-1/help/advanced_feature.html +++ b/plugins/add_index/language/fr_FR.iso-8859-1/help/advanced_feature.html @@ -1,7 +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>
+<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> diff --git a/plugins/add_index/language/fr_FR.iso-8859-1/help/site_manager.html b/plugins/add_index/language/fr_FR.iso-8859-1/help/site_manager.html index f341c7cda..533510d99 100644 --- a/plugins/add_index/language/fr_FR.iso-8859-1/help/site_manager.html +++ b/plugins/add_index/language/fr_FR.iso-8859-1/help/site_manager.html @@ -1,7 +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>
+<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> diff --git a/plugins/add_index/language/fr_FR.iso-8859-1/plugin.lang.php b/plugins/add_index/language/fr_FR.iso-8859-1/plugin.lang.php index 711ef3abe..b500c8868 100644 --- a/plugins/add_index/language/fr_FR.iso-8859-1/plugin.lang.php +++ b/plugins/add_index/language/fr_FR.iso-8859-1/plugin.lang.php @@ -1,44 +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) 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';
-
-?>
+<?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) 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'; + +?> diff --git a/plugins/add_index/language/index.php b/plugins/add_index/language/index.php index f0ba36fa3..083b24edf 100644 --- a/plugins/add_index/language/index.php +++ b/plugins/add_index/language/index.php @@ -1,35 +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();
-?>
+<?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(); +?> diff --git a/plugins/add_index/main.admin.inc.php b/plugins/add_index/main.admin.inc.php index 93421854f..39a3fe171 100644 --- a/plugins/add_index/main.admin.inc.php +++ b/plugins/add_index/main.admin.inc.php @@ -1,100 +1,100 @@ -<?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) 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. |
-// +-----------------------------------------------------------------------+
-
-if ((!defined('PHPWG_ROOT_PATH')) or (!(defined('IN_ADMIN') and IN_ADMIN)))
-{
- die('Hacking attempt!');
-}
-
-class AdminAddIndex extends AddIndex
-{
- function load_params()
- {
- global $conf;
-
- // Name of index file (index.php or index.htm or index.html)
- if (!isset($conf['add_index_filename']))
- {
- $conf['add_index_filename'] = 'index.php';
- }
- // Name of index file (index.php or index.htm or index.html)
- if (!isset($conf['add_index_source_directory_path']))
- {
- // Name of the directoty use in order to copy index file
- $conf['add_index_source_directory_path'] = PHPWG_ROOT_PATH.'include/';
- }
- }
-
- function loading_lang()
- {
- global $lang;
-
- include(get_language_filepath('plugin.lang.php', $this->path));
- }
-
- function get_admin_advanced_features_links($advanced_features)
- {
- array_push($advanced_features,
- array
- (
- 'CAPTION' => l10n('Advanced_Add_Index'),
- 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/main_page.php').'&overwrite'
- ));
-
- return $advanced_features;
- }
-
- function get_admins_site_links($site_manager_plugin_links, $site_id, $is_remote)
- {
- if (!$is_remote)
- {
- array_push($site_manager_plugin_links,
- array
- (
- 'U_HREF' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/main_page.php').'&site_id='.$site_id,
- 'U_CAPTION' => l10n('Manager_Add_Index'),
- 'U_HINT' => l10n('Add_Index')
- ));
- }
-
- return $site_manager_plugin_links;
- }
-}
-
-// Create object
-$add_index = new AdminAddIndex();
-
-// Load Add Index parameters
-$add_index->load_params();
-
-// Add events
-add_event_handler('loading_lang', array(&$add_index, 'loading_lang'));
-add_event_handler('get_admin_advanced_features_links', array(&$add_index, 'get_admin_advanced_features_links'));
-add_event_handler('get_admins_site_links', array(&$add_index, 'get_admins_site_links'), EVENT_HANDLER_PRIORITY_NEUTRAL, 3);
-
+<?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) 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. | +// +-----------------------------------------------------------------------+ + +if ((!defined('PHPWG_ROOT_PATH')) or (!(defined('IN_ADMIN') and IN_ADMIN))) +{ + die('Hacking attempt!'); +} + +class AdminAddIndex extends AddIndex +{ + function load_params() + { + global $conf; + + // Name of index file (index.php or index.htm or index.html) + if (!isset($conf['add_index_filename'])) + { + $conf['add_index_filename'] = 'index.php'; + } + // Name of index file (index.php or index.htm or index.html) + if (!isset($conf['add_index_source_directory_path'])) + { + // Name of the directoty use in order to copy index file + $conf['add_index_source_directory_path'] = PHPWG_ROOT_PATH.'include/'; + } + } + + function loading_lang() + { + global $lang; + + include(get_language_filepath('plugin.lang.php', $this->path)); + } + + function get_admin_advanced_features_links($advanced_features) + { + array_push($advanced_features, + array + ( + 'CAPTION' => l10n('Advanced_Add_Index'), + 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/main_page.php').'&overwrite' + )); + + return $advanced_features; + } + + function get_admins_site_links($site_manager_plugin_links, $site_id, $is_remote) + { + if (!$is_remote) + { + array_push($site_manager_plugin_links, + array + ( + 'U_HREF' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/main_page.php').'&site_id='.$site_id, + 'U_CAPTION' => l10n('Manager_Add_Index'), + 'U_HINT' => l10n('Add_Index') + )); + } + + return $site_manager_plugin_links; + } +} + +// Create object +$add_index = new AdminAddIndex(); + +// Load Add Index parameters +$add_index->load_params(); + +// Add events +add_event_handler('loading_lang', array(&$add_index, 'loading_lang')); +add_event_handler('get_admin_advanced_features_links', array(&$add_index, 'get_admin_advanced_features_links')); +add_event_handler('get_admins_site_links', array(&$add_index, 'get_admins_site_links'), EVENT_HANDLER_PRIORITY_NEUTRAL, 3); + ?>
\ No newline at end of file diff --git a/plugins/add_index/main.base.inc.php b/plugins/add_index/main.base.inc.php index 50f6e898a..9f78099ea 100644 --- a/plugins/add_index/main.base.inc.php +++ b/plugins/add_index/main.base.inc.php @@ -1,44 +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) 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. |
-// +-----------------------------------------------------------------------+
-
-if (!defined('PHPWG_ROOT_PATH'))
-{
- die('Hacking attempt!');
-}
-
-class AddIndex
-{
- var $path;
-
- function AddIndex()
- {
- $this->path = dirname(__FILE__).'/';
- }
-}
-
+<?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) 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. | +// +-----------------------------------------------------------------------+ + +if (!defined('PHPWG_ROOT_PATH')) +{ + die('Hacking attempt!'); +} + +class AddIndex +{ + var $path; + + function AddIndex() + { + $this->path = dirname(__FILE__).'/'; + } +} + ?>
\ No newline at end of file diff --git a/plugins/add_index/main.inc.php b/plugins/add_index/main.inc.php index 8d9989dbc..da25cd454 100644 --- a/plugins/add_index/main.inc.php +++ b/plugins/add_index/main.inc.php @@ -1,56 +1,56 @@ -<?php /*
-Plugin Name: Add Index
-Version: 1.0
-Description: Add file index.php file on all sub-directories of local galleries pictures. / Ajoute le fichier index.php sur les sous-répertoires de galeries d'images locales.
-Plugin URI: http://www.phpwebgallery.net
-Author: PhpWebGallery team
-Author URI: http://www.phpwebgallery.net
-*/
-// +-----------------------------------------------------------------------+
-// | 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) 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. |
-// +-----------------------------------------------------------------------+
-
-if (!defined('PHPWG_ROOT_PATH'))
-{
- die('Hacking attempt!');
-}
-
-if (in_array(script_basename(), array('popuphelp', 'admin')))
-{
- if (defined('IN_ADMIN') and IN_ADMIN)
- {
- include_once(dirname(__FILE__).'/'.'main.base.inc.php');
- include_once(dirname(__FILE__).'/'.'main.admin.inc.php');
- }
- else
- {
- include_once(dirname(__FILE__).'/'.'main.base.inc.php');
- include_once(dirname(__FILE__).'/'.'main.normal.inc.php');
- }
- set_plugin_data($plugin['id'], $add_index);
-}
-
+<?php /* +Plugin Name: Add Index +Version: 1.0 +Description: Add file index.php file on all sub-directories of local galleries pictures. / Ajoute le fichier index.php sur les sous-répertoires de galeries d'images locales. +Plugin URI: http://www.phpwebgallery.net +Author: PhpWebGallery team +Author URI: http://www.phpwebgallery.net +*/ +// +-----------------------------------------------------------------------+ +// | 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) 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. | +// +-----------------------------------------------------------------------+ + +if (!defined('PHPWG_ROOT_PATH')) +{ + die('Hacking attempt!'); +} + +if (in_array(script_basename(), array('popuphelp', 'admin'))) +{ + if (defined('IN_ADMIN') and IN_ADMIN) + { + include_once(dirname(__FILE__).'/'.'main.base.inc.php'); + include_once(dirname(__FILE__).'/'.'main.admin.inc.php'); + } + else + { + include_once(dirname(__FILE__).'/'.'main.base.inc.php'); + include_once(dirname(__FILE__).'/'.'main.normal.inc.php'); + } + set_plugin_data($plugin['id'], $add_index); +} + ?>
\ No newline at end of file diff --git a/plugins/add_index/main.normal.inc.php b/plugins/add_index/main.normal.inc.php index f412a4b1f..af3795cb9 100644 --- a/plugins/add_index/main.normal.inc.php +++ b/plugins/add_index/main.normal.inc.php @@ -1,65 +1,65 @@ -<?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) 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. |
-// +-----------------------------------------------------------------------+
-
-if (!defined('PHPWG_ROOT_PATH'))
-{
- die('Hacking attempt!');
-}
-
-class NormalAddIndex extends AddIndex
-{
- function get_popup_help_content($popup_help_content, $page)
- {
- if (in_array($page, array('advanced_feature', 'site_manager')))
- {
- $help_content =
- @file_get_contents(get_language_filepath('help/'.$page.'.html', $this->path));
- }
- else
- {
- $help_content = false;
- }
-
- if ($help_content == false)
- {
- return $popup_help_content;
- }
- else
- {
- return $popup_help_content.$help_content;
- }
- }
-}
-
-// Create object
-$add_index = new NormalAddIndex();
-
-// Add events
-add_event_handler('get_popup_help_content', array(&$add_index, 'get_popup_help_content'), EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
-
+<?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) 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. | +// +-----------------------------------------------------------------------+ + +if (!defined('PHPWG_ROOT_PATH')) +{ + die('Hacking attempt!'); +} + +class NormalAddIndex extends AddIndex +{ + function get_popup_help_content($popup_help_content, $page) + { + if (in_array($page, array('advanced_feature', 'site_manager'))) + { + $help_content = + @file_get_contents(get_language_filepath('help/'.$page.'.html', $this->path)); + } + else + { + $help_content = false; + } + + if ($help_content == false) + { + return $popup_help_content; + } + else + { + return $popup_help_content.$help_content; + } + } +} + +// Create object +$add_index = new NormalAddIndex(); + +// Add events +add_event_handler('get_popup_help_content', array(&$add_index, 'get_popup_help_content'), EVENT_HANDLER_PRIORITY_NEUTRAL, 2); + ?>
\ No newline at end of file diff --git a/plugins/admin_advices/admin_advices.tpl b/plugins/admin_advices/admin_advices.tpl index 19aa777cb..2a4d09635 100644 --- a/plugins/admin_advices/admin_advices.tpl +++ b/plugins/admin_advices/admin_advices.tpl @@ -1,32 +1,32 @@ -<div class="content">
- <h2>{lang:An_advice_about} {ADVICE_ABOUT}</h2>
- <h3>{ADVICE_TEXT}</h3>
- <table summary="Admin advices summary">
- <tr><td style="text-align: left; width: 50%;">
- <!-- BEGIN More -->
- {More.ADVICE} <br />
- <!-- END More -->
- <br />
- </td><td style="text-align: right; width: 20%;">
- <!-- BEGIN thumbnail -->
- <a href="{thumbnail.U_MODIFY}" title="{lang:link_info_image}">
- <img class="thumbnail" src="{thumbnail.IMAGE}"
- alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"></a>
- </td><td style="text-align: left;">
- <img src="{thumbnail.NAME}.png"
- alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Name}<br />
- <img src="{thumbnail.COMMENT}.png"
- alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Description}<br />
- <img src="{thumbnail.AUTHOR}.png"
- alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Author}<br />
- <img src="{thumbnail.CREATE_DATE}.png"
- alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Creation date}<br />
- <img src="{thumbnail.METADATA}.png"
- alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Metadata}<br />
- <img src="{thumbnail.TAGS}.png"
- alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Tags} ({thumbnail.NUM_TAGS})
- <!-- END thumbnail -->
- </td></tr>
- </table>
-
-</div>
+<div class="content"> + <h2>{lang:An_advice_about} {ADVICE_ABOUT}</h2> + <h3>{ADVICE_TEXT}</h3> + <table summary="Admin advices summary"> + <tr><td style="text-align: left; width: 50%;"> + <!-- BEGIN More --> + {More.ADVICE} <br /> + <!-- END More --> + <br /> + </td><td style="text-align: right; width: 20%;"> + <!-- BEGIN thumbnail --> + <a href="{thumbnail.U_MODIFY}" title="{lang:link_info_image}"> + <img class="thumbnail" src="{thumbnail.IMAGE}" + alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"></a> + </td><td style="text-align: left;"> + <img src="{thumbnail.NAME}.png" + alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Name}<br /> + <img src="{thumbnail.COMMENT}.png" + alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Description}<br /> + <img src="{thumbnail.AUTHOR}.png" + alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Author}<br /> + <img src="{thumbnail.CREATE_DATE}.png" + alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Creation date}<br /> + <img src="{thumbnail.METADATA}.png" + alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Metadata}<br /> + <img src="{thumbnail.TAGS}.png" + alt="{thumbnail.IMAGE_ALT}" title="{thumbnail.IMAGE_TITLE}"> {lang:Tags} ({thumbnail.NUM_TAGS}) + <!-- END thumbnail --> + </td></tr> + </table> + +</div> diff --git a/plugins/admin_advices/default-layout.css b/plugins/admin_advices/default-layout.css index 766617631..35f8801f3 100644 --- a/plugins/admin_advices/default-layout.css +++ b/plugins/admin_advices/default-layout.css @@ -1,19 +1,19 @@ -.content {
- list-style-type:none;
- margin: 0 1em 0 14.5em;
- padding: 0 0 15px 0;
-}
-.content h2 {
- font-weight: bold;
- padding-left: 2em;
-}
-.content h3 {
- text-align: left;
- padding-left: 3em;
- font-size: 120%;
-}
-.content table tr td {
- text-align: left;
- padding-left: 2em;
-}
-
+.content { + list-style-type:none; + margin: 0 1em 0 14.5em; + padding: 0 0 15px 0; +} +.content h2 { + font-weight: bold; + padding-left: 2em; +} +.content h3 { + text-align: left; + padding-left: 3em; + font-size: 120%; +} +.content table tr td { + text-align: left; + padding-left: 2em; +} + diff --git a/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php b/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php index f06b0c6c1..768323c61 100644 --- a/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php +++ b/plugins/admin_advices/en_UK.iso-8859-1/lang.adv.php @@ -1,444 +1,444 @@ -<?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 |
-// +-----------------------------------------------------------------------+
-//$lang_info['language_name'] = 'English';
-//$lang_info['country'] = ''Great Britain';
-//$lang_info['charset'] = 'iso-8859-1';
-//$lang_info['direction'] = 'ltr';
-//$lang_info['code'] = 'en';
-global $lang;
-$lang['An_advice_about'] = 'A new advice about';
-$lang['Metadata'] = 'Metadata';
-
-foreach ($conf as $key => $value)
-{
- if ( is_string($value) )
- {
- $bool = ($value == 'false') ? false : $value;
- $bool = ($value == 'true') ? true : $bool;
- $conf[$key] = $bool;
- }
-}
-
-//
-// Don't forget to update range for new advices
-//
-$cases = range(1,35);
-srand ((double) microtime() * 10000000);
-shuffle($cases);
-
-$cond = false;
-foreach ($cases as $id_adv)
-{
- if ($cond) break;
- $adv = array();
- switch ($id_adv) {
- Case 1 :
- $adv[] = 'Current value: public. ';
- $adv[] = 'Try $conf[\'newcat_default_status\'] = \'private\';';
- $adv[] = 'You will have more time to describe and check your pictures.';
- $adv[] = 'Time to decide between private and public status.';
- $adv[] = 'If you choose private, time to distribute authorization.';
- $adv[] = 'Your new category will be well prepared.';
- $cond = ($conf['newcat_default_status'] !== 'public');
- $confk = 'newcat_default_status';
- break;
-
- Case 2 :
- $adv[] = 'Current value: ' . (string) $conf['slideshow_period'] . '.';
- $adv[] = 'This value could be too small for low band connections.';
- $adv[] = 'Think about higher value like 4.';
- $cond = ( $conf['slideshow_period'] < 4 );
- $confk = 'slideshow_period';
- break;
-
- Case 3 :
- $adv[] = 'Current value: ' . implode(', ', $conf['file_ext']) . '. ';
- $adv[] = 'Should never contains extensions which can be executed';
- $adv[] = 'on the server side like *.php, *.PHP, *.asp, ...';
- $cond = ( in_array('php',$conf['file_ext']) );
- $confk = 'file_ext';
- break;
-
- Case 4 :
- $adv[] = 'Show IPTC Data from your picture:';
- $adv[] = ' 1 - Copy one of your jpg pictures (a public one)' .
- ' in ./tools/<br />' .
- ' 2 - Rename it as sample.jpg.<br />' .
- ' 3 - Run ./tools/metadata.php<br />' .
- ' 4 - Analyse results to determine which IPTC fields could be' .
- ' useful for your visitors.';
- $adv[] = 'Beginners would prefer to keep $conf[\'show_iptc\'] = false;';
- $adv[] = 'Advanced users would take care of $lang values and impacts' .
- ' on templates.';
- $cond = true;
- $confk = 'show_iptc_mapping';
- break;
-
- Case 5 :
- $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.';
- $adv[] = 'This value is maybe too high for low connections, ' .
- 'think about 25-50 depending on your thumbnail sizes.';
- $cond = ( $conf['top_number'] > 50 );
- $confk = 'top_number';
- break;
-
- Case 6 :
- $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.';
- $adv[] = 'One? It could be too low for random pictures, ' .
- 'think about 5-10 depending on your thumbnail sizes.';
- $cond = ( $conf['top_number'] < 2 ) ? true : false;
- $confk = 'top_number';
- break;
-
- Case 7 :
- $adv[] = 'Current value: ' . (string) $conf['anti-flood_time'] . '.';
- $adv[] = 'For normal flow processing, your value is probably too high. ' .
- 'Reasonable value is 60 (default).' ;
- $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false;
- $confk = 'anti-flood_time';
- break;
-
- Case 8 :
- $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.';
- $adv[] = 'Authorized values are ' .
- "'date_creation' or 'date_available'" .
- ', otherwise you can get unpredictable results.' ;
- $cond = ( !in_array($conf['calendar_datefield'],
- array('date_creation','date_available')) );
- $confk = 'calendar_datefield';
- break;
-
- Case 9 :
- // If (iptc or exif) are used and date_creation is updated
- // Then it's Ok, you can use date_creation by default for calendar
- // else ... Advice
- $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.';
- $adv[] = "'date_creation'" . ' is NOT filled by ' .
- 'any activated use metadata mapping fields.';
- $adv[] = 'So activate metadata usage <strong>or</strong> change to ' .
- '$conf[\'calendar_datefield\'] = \'date_available\'';
- $adv[] = 'Activate metadata usage as you want: <br />' .
- '1 - $conf[\'use_iptc\'] = true; or $conf[\'use_exif\'] = true; ' .
- 'each way will be correct.<br />' .
- '2 - And respectively map:<br />' .
- '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' .
- '=> \'2#055\', ...<br />' .
- 'or/and:<br />' .
- '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' .
- '=> \'DateTimeOriginal\', ...<br />' .
- '3 - Finally, a new task is up to you: Metadata synchronization.' ;
- $cond2 = ( $conf['use_exif'] and
- isset($conf['use_exif_mapping']['date_creation']) );
- $cond3 = ( $conf['use_iptc'] and
- isset($conf['use_iptc_mapping']['date_creation']) );
- $cond = ( $conf['calendar_datefield'] == 'date_creation' );
- $cond = ( ($cond2 or $cond3) and $cond ) ? false : true;
- $confk = 'calendar_datefield';
- break;
-
- Case 10 :
- $adv[] = 'Current value: false.';
- $adv[] = 'Not useful, private status is better, so code ' .
- '$conf[\'newcat_default_visible\'] = true;' ;
- $cond = !$conf['newcat_default_visible'];
- $confk = 'newcat_default_visible';
- break;
-
- Case 11 :
- $adv[] = 'Current value: true.';
- $adv[] = 'Any new subscriber has access to High Resolution pictures. ' .
- 'Is it what you want? No, so try ' .
- '$conf[\'newuser_default_enabled_high\'] = false;' ;
- $cond = $conf['newuser_default_enabled_high'];
- $confk = 'newuser_default_enabled_high';
- break;
-
- Case 12 :
- $adv[] = 'Current value: ' . (string) $conf['level_separator'] . '.';
- $adv[] = 'Try something else like $conf[\'level_separator\'] = \'+ \';';
- $cond = ( $conf['level_separator'] == ' / ' );
- $confk = 'level_separator';
- break;
-
- Case 13 :
- $adv[] = 'Current value: ' . (string) $conf['paginate_pages_around'] . '.';
- $adv[] = 'Usual range is between 2 and 5. To be light, choose ' .
- '$conf[\'paginate_pages_around\'] = 2; <br />' .
- 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7;';
- $cond = (($conf['paginate_pages_around'] < 2)
- or ($conf['paginate_pages_around'] > 12));
- $confk = 'paginate_pages_around';
- break;
-
- Case 14 :
- $adv[] = 'Current value: ' . (string) $conf['tn_width'] . '.';
- $adv[] = 'Should be a close value to your thumbnail width.' .
- $adv[] = 'Usual range is between 96 and 150, ' .
- 'about $conf[\'tn_width\'] = 128;';
- $cond = (($conf['tn_width'] < 66)
- or ($conf['tn_width'] > 180));
- $confk = 'tn_width';
- break;
-
- Case 15 :
- $adv[] = 'Current value: ' . (string) $conf['tn_height'] . '.';
- $adv[] = 'Should be a close value to your thumbnail height.' .
- $adv[] = 'Usual range is between 96 and 150, ' .
- 'about $conf[\'tn_height\'] = 128;';
- $cond = (($conf['tn_height'] < 66)
- or ($conf['tn_height'] > 180));
- $confk = 'tn_height';
- break;
-
- Case 16 :
- $adv[] = 'Thumbnail height and width have to be equal.';
- $adv[] = 'Choose $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] .
- ';<br />' .
- 'or $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';';
- $cond = ( $conf['tn_height'] !== $conf['tn_width'] );
- $confk = 'tn_height';
- break;
-
- Case 17 :
- $adv[] = 'Current value: true.';
- $adv[] = 'For security reason, please set ' .
- '$conf[\'show_version\'] = false;';
- $cond = $conf['show_version'];
- $confk = 'show_version';
- break;
-
- Case 18 :
- $adv[] = 'Current value: true.';
- $adv[] = 'For a lighter gallery just have a look to ' .
- '$conf[\'show_thumbnail_caption\'] = false;';
- $cond = $conf['show_thumbnail_caption'];
- $confk = 'show_thumbnail_caption';
- break;
-
- Case 19 :
- $adv[] = 'Current value: true.';
- $adv[] = 'For a lighter gallery just have a look to ' .
- '$conf[\'show_picture_name_on_title\'] = false;';
- $cond = $conf['show_picture_name_on_title'];
- $confk = 'show_picture_name_on_title';
- break;
-
- Case 20 :
- $adv[] = 'Current value: true.';
- $adv[] = 'If you do NOT have any category descriptions just have ' .
- 'a look to $conf[\'subcatify\'] = false;';
- $cond = $conf['subcatify'];
- $confk = 'subcatify';
- break;
-
- Case 21 :
- $adv[] = 'Current value: true.';
- $adv[] = 'Leave $conf[\'allow_random_representative\'] = true; <br />' .
- 'but analyze if you can avoid for performance reasons.' ;
- $cond = $conf['allow_random_representative'];
- $confk = 'allow_random_representative';
- break;
-
- Case 22 :
- $adv[] = 'Current value: ' . (string) $conf['prefix_thumbnail'] . '.';
- $adv[] = 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.';
- $adv[] = 'Do NOT change it except if your thumbnails are NOT visible.';
- $adv[] = 'Distant site may use a different prefix but ' .
- 'create_listing_file.php must be modified.<br />' .
- 'You will get a warning message during synchronization in ' .
- 'that case.';
- $adv[] = 'Try to keep the same prefix thru all your sites either ' .
- 'local or distants.';
- $adv[] = 'Keep this parameter in your ./include/config_'.
- '<strong>local.inc.php</strong>. <br />'.
- 'See our wiki configuration page for more information about ' .
- './include/config_<strong>local.inc.php</strong>.';
- $cond = ( $conf['prefix_thumbnail'] !== 'TN-' );
- $confk = 'prefix_thumbnail';
- break;
-
- Case 23 :
- $adv[] = 'Current value: ' . (string) $conf['users_page'] . '.';
- $adv[] = 'Unless you have a low band connection, you can draw up ' .
- '$conf[\'users_page\'] to a higher value ' .
- 'if you have more than 20 members.';
- $cond = ( $conf['users_page'] < 21 );
- $confk = 'users_page';
- break;
-
- Case 24 :
- $adv[] = 'Current value: true.';
- $adv[] = 'Should be false, only few webmasters have to set ' .
- '$conf[\'mail_options\'] = true; <br />' .
- 'A specific advice you can get from an advanced ' .
- 'user on our forum in some mailing issues.' ;
- $cond = $conf['mail_options'];
- $confk = 'mail_options';
- break;
-
- Case 25 :
- $adv[] = 'Current value: true.';
- $adv[] = 'Should be false, only PWG dev Team have to set ' .
- '$conf[\'check_upgrade_feed\'] = true; for test purpose.' ;
- $cond = $conf['check_upgrade_feed'];
- $confk = 'check_upgrade_feed';
- break;
-
- Case 26 :
- $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items'])
- . 'items.';
- $adv[] = 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.';
- $cond = ( count($conf['rate_items']) < 4 );
- $confk = 'rate_items';
- break;
-
- Case 27 :
- $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items'])
- . 'items.';
- $adv[] = 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.';
- $adv[] = 'Check your best rated pictures prior to remove some values.' .
- '<br />Reduce excessive rating and change your ' .
- '$conf[\'rate_items\'].';
- $cond = ( count($conf['rate_items']) > 6 );
- $confk = 'rate_items';
- break;
-
- Case 28 :
- $adv[] = 'Current value: true.';
- $adv[] = 'Could be true, think about $conf[\'show_iptc\'] = false;'
- . '<br />Some Professional photographers choose false ' .
- 'their reasons are not really professional.' ;
- $adv[] = 'Do NOT confuse between <strong>show</strong>_iptc and ' .
- '<strong>use</strong>_iptc (have a look on metadata page ' .
- 'on our wiki).';
- $cond = $conf['show_iptc'];
- $confk = 'show_iptc';
- break;
-
- Case 29 :
- $adv[] = 'Current value: true.';
- $adv[] = 'Documentalists and professionnal photographers would ' .
- 'set it true, but beginners should leave it ' .
- 'as $conf[\'use_iptc\'] = false;';
- $adv[] = 'Take care of mentionned fields in metadata synchronization.' .
- '<br />Mentionned fields would be rewrited with IPTC values ' .
- ' even those ones are NOT empty.';
- $adv[] = 'Do NOT confuse between <strong>show</strong>_iptc and ' .
- '<strong>use</strong>_iptc (have a look on metadata page ' .
- 'on our wiki).';
- $cond = $conf['use_iptc'];
- $confk = 'use_iptc';
- break;
-
- Case 30 :
- $adv[] = 'How to deal with IPTC:';
- $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' .
- '<br />2 - Rename it as sample.jpg.' .
- '<br />3 - Run ./tools/metadata.php' .
- '<br />4 - Analyse results to determine which IPTC fields ' .
- 'could be used to override database fields.';
- $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;';
- $adv[] = 'Advanced users make documentation efforts prior ' .
- 'to upload their pictures.<br />' .
- 'IPTC fields have to be described in ' .
- '$conf[\'use_iptc_mapping\']';
- $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' .
- '<strong>use</strong>_iptc_mapping must be totally different.';
- $cond = true;
- $confk = 'use_iptc';
- break;
-
- Case 31 :
- $adv[] = 'How to deal with IPTC:';
- $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' .
- '<br />2 - Rename it as sample.jpg.' .
- '<br />3 - Run ./tools/metadata.php' .
- '<br />4 - Analyse results to determine which IPTC fields ' .
- 'could be used to override database fields.';
- $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;';
- $adv[] = 'Advanced users make documentation efforts prior ' .
- 'to upload their pictures.';
- $adv[] = 'Take care of mentionned fields in metadata synchronization.' .
- '<br />Mentionned fields would be rewrited with IPTC values ' .
- ' even those ones are NOT empty.';
- $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' .
- '<strong>use</strong>_iptc_mapping must be totally different.';
- $cond = true;
- $confk = 'use_iptc_mapping';
- break;
-
- Case 32 :
- $adv[] = 'Current value: ' . ( ( $conf['show_exif'] ) ? 'true':'false' )
- . '.';
- $adv[] = 'Should be true, some information from your camera ' .
- 'can be displayed.';
- $adv[] = 'Think about EXIF information could be different depending ' .
- 'on camera models.<br />' .
- 'If you change your camera these fields could be ' .
- 'partly different.';
- $adv[] = 'Many professional photographers choose false, ' .
- 'their reasons are to protect their knowledge.' ;
- $adv[] = 'Do NOT confuse between <strong>show</strong>_exif and ' .
- '<strong>use</strong>_exif (have a look on metadata page ' .
- 'on our wiki).';
- $cond = true;
- $confk = 'show_exif';
- break;
-
- Case 33 :
- $adv[] = 'How to deal with EXIF:';
- $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' .
- '<br />2 - Rename it as sample.jpg.' .
- '<br />3 - Run ./tools/metadata.php' .
- '<br />4 - Analyse results to determine which EXIF fields ' .
- 'could be used to override database fields.';
- $adv[] = 'Beginners would prefer to let default values.';
- $adv[] = 'Advanced users would take care of $lang values and ' .
- 'impacts on templates.';
- $adv[] = 'In any case, <strong>show</strong>_exif_fields and ' .
- '<strong>use</strong>_exif_mapping must be totally different.';
- $cond = true;
- $confk = 'show_exif_fields';
- break;
-
- Case 34 :
- $adv[] = 'Current value: ' . ( ( $conf['use_exif'] ) ? 'true':'false' )
- . '.';
- $adv[] = 'Documentalists and professionnal photographers would ' .
- 'set it true, but beginners should leave the default value.';
- $adv[] = 'Take care of mentionned fields in metadata synchronization.' .
- '<br />Mentionned fields would be rewrited with EXIF values ' .
- ' even those ones are NOT empty.';
- $adv[] = 'Do NOT confuse between <strong>show</strong>_exif and ' .
- '<strong>use</strong>_exif (have a look on metadata page ' .
- 'on our wiki).';
- $cond = true;
- $confk = 'use_exif';
- break;
-
- Case 35 :
- $adv[] = 'How to deal with EXIF:';
- $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' .
- '<br />2 - Rename it as sample.jpg.' .
- '<br />3 - Run ./tools/metadata.php' .
- '<br />4 - Analyse results to determine which EXIF fields ' .
- 'could be used to override database fields.';
- $adv[] = 'Beginners would prefer to let default values.';
- $adv[] = 'Advanced users would carefully chose overrided fields ' .
- 'prior to synchronize.';
- $adv[] = 'Take care of mentionned fields in metadata synchronization.' .
- '<br />Mentionned fields would be rewrited with EXIF values ' .
- ' even those ones are NOT empty.';
- $adv[] = 'In any case, <strong>show</strong>_exif_fields and ' .
- '<strong>use</strong>_exif_mapping must be totally different.';
- $cond = true;
- $confk = 'use_exif_mapping';
- break;
- }
-}
-
-?>
+<?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 | +// +-----------------------------------------------------------------------+ +//$lang_info['language_name'] = 'English'; +//$lang_info['country'] = ''Great Britain'; +//$lang_info['charset'] = 'iso-8859-1'; +//$lang_info['direction'] = 'ltr'; +//$lang_info['code'] = 'en'; +global $lang; +$lang['An_advice_about'] = 'A new advice about'; +$lang['Metadata'] = 'Metadata'; + +foreach ($conf as $key => $value) +{ + if ( is_string($value) ) + { + $bool = ($value == 'false') ? false : $value; + $bool = ($value == 'true') ? true : $bool; + $conf[$key] = $bool; + } +} + +// +// Don't forget to update range for new advices +// +$cases = range(1,35); +srand ((double) microtime() * 10000000); +shuffle($cases); + +$cond = false; +foreach ($cases as $id_adv) +{ + if ($cond) break; + $adv = array(); + switch ($id_adv) { + Case 1 : + $adv[] = 'Current value: public. '; + $adv[] = 'Try $conf[\'newcat_default_status\'] = \'private\';'; + $adv[] = 'You will have more time to describe and check your pictures.'; + $adv[] = 'Time to decide between private and public status.'; + $adv[] = 'If you choose private, time to distribute authorization.'; + $adv[] = 'Your new category will be well prepared.'; + $cond = ($conf['newcat_default_status'] !== 'public'); + $confk = 'newcat_default_status'; + break; + + Case 2 : + $adv[] = 'Current value: ' . (string) $conf['slideshow_period'] . '.'; + $adv[] = 'This value could be too small for low band connections.'; + $adv[] = 'Think about higher value like 4.'; + $cond = ( $conf['slideshow_period'] < 4 ); + $confk = 'slideshow_period'; + break; + + Case 3 : + $adv[] = 'Current value: ' . implode(', ', $conf['file_ext']) . '. '; + $adv[] = 'Should never contains extensions which can be executed'; + $adv[] = 'on the server side like *.php, *.PHP, *.asp, ...'; + $cond = ( in_array('php',$conf['file_ext']) ); + $confk = 'file_ext'; + break; + + Case 4 : + $adv[] = 'Show IPTC Data from your picture:'; + $adv[] = ' 1 - Copy one of your jpg pictures (a public one)' . + ' in ./tools/<br />' . + ' 2 - Rename it as sample.jpg.<br />' . + ' 3 - Run ./tools/metadata.php<br />' . + ' 4 - Analyse results to determine which IPTC fields could be' . + ' useful for your visitors.'; + $adv[] = 'Beginners would prefer to keep $conf[\'show_iptc\'] = false;'; + $adv[] = 'Advanced users would take care of $lang values and impacts' . + ' on templates.'; + $cond = true; + $confk = 'show_iptc_mapping'; + break; + + Case 5 : + $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.'; + $adv[] = 'This value is maybe too high for low connections, ' . + 'think about 25-50 depending on your thumbnail sizes.'; + $cond = ( $conf['top_number'] > 50 ); + $confk = 'top_number'; + break; + + Case 6 : + $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.'; + $adv[] = 'One? It could be too low for random pictures, ' . + 'think about 5-10 depending on your thumbnail sizes.'; + $cond = ( $conf['top_number'] < 2 ) ? true : false; + $confk = 'top_number'; + break; + + Case 7 : + $adv[] = 'Current value: ' . (string) $conf['anti-flood_time'] . '.'; + $adv[] = 'For normal flow processing, your value is probably too high. ' . + 'Reasonable value is 60 (default).' ; + $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false; + $confk = 'anti-flood_time'; + break; + + Case 8 : + $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; + $adv[] = 'Authorized values are ' . + "'date_creation' or 'date_available'" . + ', otherwise you can get unpredictable results.' ; + $cond = ( !in_array($conf['calendar_datefield'], + array('date_creation','date_available')) ); + $confk = 'calendar_datefield'; + break; + + Case 9 : + // If (iptc or exif) are used and date_creation is updated + // Then it's Ok, you can use date_creation by default for calendar + // else ... Advice + $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; + $adv[] = "'date_creation'" . ' is NOT filled by ' . + 'any activated use metadata mapping fields.'; + $adv[] = 'So activate metadata usage <strong>or</strong> change to ' . + '$conf[\'calendar_datefield\'] = \'date_available\''; + $adv[] = 'Activate metadata usage as you want: <br />' . + '1 - $conf[\'use_iptc\'] = true; or $conf[\'use_exif\'] = true; ' . + 'each way will be correct.<br />' . + '2 - And respectively map:<br />' . + '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' . + '=> \'2#055\', ...<br />' . + 'or/and:<br />' . + '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' . + '=> \'DateTimeOriginal\', ...<br />' . + '3 - Finally, a new task is up to you: Metadata synchronization.' ; + $cond2 = ( $conf['use_exif'] and + isset($conf['use_exif_mapping']['date_creation']) ); + $cond3 = ( $conf['use_iptc'] and + isset($conf['use_iptc_mapping']['date_creation']) ); + $cond = ( $conf['calendar_datefield'] == 'date_creation' ); + $cond = ( ($cond2 or $cond3) and $cond ) ? false : true; + $confk = 'calendar_datefield'; + break; + + Case 10 : + $adv[] = 'Current value: false.'; + $adv[] = 'Not useful, private status is better, so code ' . + '$conf[\'newcat_default_visible\'] = true;' ; + $cond = !$conf['newcat_default_visible']; + $confk = 'newcat_default_visible'; + break; + + Case 11 : + $adv[] = 'Current value: true.'; + $adv[] = 'Any new subscriber has access to High Resolution pictures. ' . + 'Is it what you want? No, so try ' . + '$conf[\'newuser_default_enabled_high\'] = false;' ; + $cond = $conf['newuser_default_enabled_high']; + $confk = 'newuser_default_enabled_high'; + break; + + Case 12 : + $adv[] = 'Current value: ' . (string) $conf['level_separator'] . '.'; + $adv[] = 'Try something else like $conf[\'level_separator\'] = \'+ \';'; + $cond = ( $conf['level_separator'] == ' / ' ); + $confk = 'level_separator'; + break; + + Case 13 : + $adv[] = 'Current value: ' . (string) $conf['paginate_pages_around'] . '.'; + $adv[] = 'Usual range is between 2 and 5. To be light, choose ' . + '$conf[\'paginate_pages_around\'] = 2; <br />' . + 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7;'; + $cond = (($conf['paginate_pages_around'] < 2) + or ($conf['paginate_pages_around'] > 12)); + $confk = 'paginate_pages_around'; + break; + + Case 14 : + $adv[] = 'Current value: ' . (string) $conf['tn_width'] . '.'; + $adv[] = 'Should be a close value to your thumbnail width.' . + $adv[] = 'Usual range is between 96 and 150, ' . + 'about $conf[\'tn_width\'] = 128;'; + $cond = (($conf['tn_width'] < 66) + or ($conf['tn_width'] > 180)); + $confk = 'tn_width'; + break; + + Case 15 : + $adv[] = 'Current value: ' . (string) $conf['tn_height'] . '.'; + $adv[] = 'Should be a close value to your thumbnail height.' . + $adv[] = 'Usual range is between 96 and 150, ' . + 'about $conf[\'tn_height\'] = 128;'; + $cond = (($conf['tn_height'] < 66) + or ($conf['tn_height'] > 180)); + $confk = 'tn_height'; + break; + + Case 16 : + $adv[] = 'Thumbnail height and width have to be equal.'; + $adv[] = 'Choose $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] . + ';<br />' . + 'or $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';'; + $cond = ( $conf['tn_height'] !== $conf['tn_width'] ); + $confk = 'tn_height'; + break; + + Case 17 : + $adv[] = 'Current value: true.'; + $adv[] = 'For security reason, please set ' . + '$conf[\'show_version\'] = false;'; + $cond = $conf['show_version']; + $confk = 'show_version'; + break; + + Case 18 : + $adv[] = 'Current value: true.'; + $adv[] = 'For a lighter gallery just have a look to ' . + '$conf[\'show_thumbnail_caption\'] = false;'; + $cond = $conf['show_thumbnail_caption']; + $confk = 'show_thumbnail_caption'; + break; + + Case 19 : + $adv[] = 'Current value: true.'; + $adv[] = 'For a lighter gallery just have a look to ' . + '$conf[\'show_picture_name_on_title\'] = false;'; + $cond = $conf['show_picture_name_on_title']; + $confk = 'show_picture_name_on_title'; + break; + + Case 20 : + $adv[] = 'Current value: true.'; + $adv[] = 'If you do NOT have any category descriptions just have ' . + 'a look to $conf[\'subcatify\'] = false;'; + $cond = $conf['subcatify']; + $confk = 'subcatify'; + break; + + Case 21 : + $adv[] = 'Current value: true.'; + $adv[] = 'Leave $conf[\'allow_random_representative\'] = true; <br />' . + 'but analyze if you can avoid for performance reasons.' ; + $cond = $conf['allow_random_representative']; + $confk = 'allow_random_representative'; + break; + + Case 22 : + $adv[] = 'Current value: ' . (string) $conf['prefix_thumbnail'] . '.'; + $adv[] = 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.'; + $adv[] = 'Do NOT change it except if your thumbnails are NOT visible.'; + $adv[] = 'Distant site may use a different prefix but ' . + 'create_listing_file.php must be modified.<br />' . + 'You will get a warning message during synchronization in ' . + 'that case.'; + $adv[] = 'Try to keep the same prefix thru all your sites either ' . + 'local or distants.'; + $adv[] = 'Keep this parameter in your ./include/config_'. + '<strong>local.inc.php</strong>. <br />'. + 'See our wiki configuration page for more information about ' . + './include/config_<strong>local.inc.php</strong>.'; + $cond = ( $conf['prefix_thumbnail'] !== 'TN-' ); + $confk = 'prefix_thumbnail'; + break; + + Case 23 : + $adv[] = 'Current value: ' . (string) $conf['users_page'] . '.'; + $adv[] = 'Unless you have a low band connection, you can draw up ' . + '$conf[\'users_page\'] to a higher value ' . + 'if you have more than 20 members.'; + $cond = ( $conf['users_page'] < 21 ); + $confk = 'users_page'; + break; + + Case 24 : + $adv[] = 'Current value: true.'; + $adv[] = 'Should be false, only few webmasters have to set ' . + '$conf[\'mail_options\'] = true; <br />' . + 'A specific advice you can get from an advanced ' . + 'user on our forum in some mailing issues.' ; + $cond = $conf['mail_options']; + $confk = 'mail_options'; + break; + + Case 25 : + $adv[] = 'Current value: true.'; + $adv[] = 'Should be false, only PWG dev Team have to set ' . + '$conf[\'check_upgrade_feed\'] = true; for test purpose.' ; + $cond = $conf['check_upgrade_feed']; + $confk = 'check_upgrade_feed'; + break; + + Case 26 : + $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) + . 'items.'; + $adv[] = 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.'; + $cond = ( count($conf['rate_items']) < 4 ); + $confk = 'rate_items'; + break; + + Case 27 : + $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) + . 'items.'; + $adv[] = 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.'; + $adv[] = 'Check your best rated pictures prior to remove some values.' . + '<br />Reduce excessive rating and change your ' . + '$conf[\'rate_items\'].'; + $cond = ( count($conf['rate_items']) > 6 ); + $confk = 'rate_items'; + break; + + Case 28 : + $adv[] = 'Current value: true.'; + $adv[] = 'Could be true, think about $conf[\'show_iptc\'] = false;' + . '<br />Some Professional photographers choose false ' . + 'their reasons are not really professional.' ; + $adv[] = 'Do NOT confuse between <strong>show</strong>_iptc and ' . + '<strong>use</strong>_iptc (have a look on metadata page ' . + 'on our wiki).'; + $cond = $conf['show_iptc']; + $confk = 'show_iptc'; + break; + + Case 29 : + $adv[] = 'Current value: true.'; + $adv[] = 'Documentalists and professionnal photographers would ' . + 'set it true, but beginners should leave it ' . + 'as $conf[\'use_iptc\'] = false;'; + $adv[] = 'Take care of mentionned fields in metadata synchronization.' . + '<br />Mentionned fields would be rewrited with IPTC values ' . + ' even those ones are NOT empty.'; + $adv[] = 'Do NOT confuse between <strong>show</strong>_iptc and ' . + '<strong>use</strong>_iptc (have a look on metadata page ' . + 'on our wiki).'; + $cond = $conf['use_iptc']; + $confk = 'use_iptc'; + break; + + Case 30 : + $adv[] = 'How to deal with IPTC:'; + $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . + '<br />2 - Rename it as sample.jpg.' . + '<br />3 - Run ./tools/metadata.php' . + '<br />4 - Analyse results to determine which IPTC fields ' . + 'could be used to override database fields.'; + $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; + $adv[] = 'Advanced users make documentation efforts prior ' . + 'to upload their pictures.<br />' . + 'IPTC fields have to be described in ' . + '$conf[\'use_iptc_mapping\']'; + $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' . + '<strong>use</strong>_iptc_mapping must be totally different.'; + $cond = true; + $confk = 'use_iptc'; + break; + + Case 31 : + $adv[] = 'How to deal with IPTC:'; + $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . + '<br />2 - Rename it as sample.jpg.' . + '<br />3 - Run ./tools/metadata.php' . + '<br />4 - Analyse results to determine which IPTC fields ' . + 'could be used to override database fields.'; + $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; + $adv[] = 'Advanced users make documentation efforts prior ' . + 'to upload their pictures.'; + $adv[] = 'Take care of mentionned fields in metadata synchronization.' . + '<br />Mentionned fields would be rewrited with IPTC values ' . + ' even those ones are NOT empty.'; + $adv[] = 'In any case, <strong>show</strong>_iptc_mapping and ' . + '<strong>use</strong>_iptc_mapping must be totally different.'; + $cond = true; + $confk = 'use_iptc_mapping'; + break; + + Case 32 : + $adv[] = 'Current value: ' . ( ( $conf['show_exif'] ) ? 'true':'false' ) + . '.'; + $adv[] = 'Should be true, some information from your camera ' . + 'can be displayed.'; + $adv[] = 'Think about EXIF information could be different depending ' . + 'on camera models.<br />' . + 'If you change your camera these fields could be ' . + 'partly different.'; + $adv[] = 'Many professional photographers choose false, ' . + 'their reasons are to protect their knowledge.' ; + $adv[] = 'Do NOT confuse between <strong>show</strong>_exif and ' . + '<strong>use</strong>_exif (have a look on metadata page ' . + 'on our wiki).'; + $cond = true; + $confk = 'show_exif'; + break; + + Case 33 : + $adv[] = 'How to deal with EXIF:'; + $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . + '<br />2 - Rename it as sample.jpg.' . + '<br />3 - Run ./tools/metadata.php' . + '<br />4 - Analyse results to determine which EXIF fields ' . + 'could be used to override database fields.'; + $adv[] = 'Beginners would prefer to let default values.'; + $adv[] = 'Advanced users would take care of $lang values and ' . + 'impacts on templates.'; + $adv[] = 'In any case, <strong>show</strong>_exif_fields and ' . + '<strong>use</strong>_exif_mapping must be totally different.'; + $cond = true; + $confk = 'show_exif_fields'; + break; + + Case 34 : + $adv[] = 'Current value: ' . ( ( $conf['use_exif'] ) ? 'true':'false' ) + . '.'; + $adv[] = 'Documentalists and professionnal photographers would ' . + 'set it true, but beginners should leave the default value.'; + $adv[] = 'Take care of mentionned fields in metadata synchronization.' . + '<br />Mentionned fields would be rewrited with EXIF values ' . + ' even those ones are NOT empty.'; + $adv[] = 'Do NOT confuse between <strong>show</strong>_exif and ' . + '<strong>use</strong>_exif (have a look on metadata page ' . + 'on our wiki).'; + $cond = true; + $confk = 'use_exif'; + break; + + Case 35 : + $adv[] = 'How to deal with EXIF:'; + $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . + '<br />2 - Rename it as sample.jpg.' . + '<br />3 - Run ./tools/metadata.php' . + '<br />4 - Analyse results to determine which EXIF fields ' . + 'could be used to override database fields.'; + $adv[] = 'Beginners would prefer to let default values.'; + $adv[] = 'Advanced users would carefully chose overrided fields ' . + 'prior to synchronize.'; + $adv[] = 'Take care of mentionned fields in metadata synchronization.' . + '<br />Mentionned fields would be rewrited with EXIF values ' . + ' even those ones are NOT empty.'; + $adv[] = 'In any case, <strong>show</strong>_exif_fields and ' . + '<strong>use</strong>_exif_mapping must be totally different.'; + $cond = true; + $confk = 'use_exif_mapping'; + break; + } +} + +?> diff --git a/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php b/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php index e6a6a6cc6..d7399333c 100644 --- a/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php +++ b/plugins/admin_advices/fr_FR.iso-8859-1/lang.adv.php @@ -1,479 +1,479 @@ -<?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 |
-// +-----------------------------------------------------------------------+
-//$lang_info['language_name'] = 'Français';
-//$lang_info['country'] = 'France';
-//$lang_info['charset'] = 'iso-8859-1';
-//$lang_info['direction'] = 'ltr';
-//$lang_info['code'] = 'fr';
-global $lang;
-$lang['An_advice_about'] = 'Un nouveau conseil à propos de ';
-$lang['Metadata'] = 'Méta-données';
-
-foreach ($conf as $key => $value)
-{
- if ( is_string($value) )
- {
- $bool = ($value == 'false') ? false : $value;
- $bool = ($value == 'true') ? true : $bool;
- $conf[$key] = $bool;
- }
-}
-
-//
-// Don't forget to update range for new advices
-//
-$cases = range(1,35);
-srand ((double) microtime() * 10000000);
-shuffle($cases);
-
-$cond = false;
-foreach ($cases as $id_adv)
-{
- if ($cond) break;
- $adv = array();
- switch ($id_adv) {
- Case 1 :
- $adv[] = 'Valeur actuelle : public. ';
- $adv[] = 'Essayez $conf[\'newcat_default_status\'] = \'private\';';
- $adv[] = 'Vous aurez plus de temps pour décrire et contrôler vos images. '
- . 'Du temps pour vous décider entre un statut privé ou public.';
- $adv[] = 'Si vous choisissez de rester privé, vous passerez directement '
- . 'à l\'attribution des autorisations. <br />'
- . 'Vos nouvelles catégories seront préparées plus facilement.';
- $cond = ($conf['newcat_default_status'] !== 'public');
- $confk = 'newcat_default_status';
- break;
-
- Case 2 :
- $adv[] = 'Valeur actuelle : ' . (string) $conf['slideshow_period'] . '.';
- $adv[] = 'Ce délai pourrait être trop petit pour les connexions '
- . 'en bas débit.';
- $adv[] = 'Pensez à une valeur supérieure comme 4.';
- $cond = ( $conf['slideshow_period'] < 4 );
- $confk = 'slideshow_period';
- break;
-
- Case 3 :
- $adv[] = 'Valeur actuelle : ' . implode(', ', $conf['file_ext']) . '. ';
- $adv[] = 'Ne devrait jamais contenir des extensions pouvant être ';
- $adv[] = 'exécutées sur le serveur comme *.php, *.PHP, *.asp, ...';
- $cond = ( in_array('php',$conf['file_ext']) );
- $confk = 'file_ext';
- break;
-
- Case 4 :
- $adv[] = 'Comment gérer les IPTC:';
- $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />'
- . ' 2 - Renommez celle-ci en sample.jpg.<br />'
- . ' 3 - Lancez ./tools/metadata.php<br />'
- . ' 4 - Analysez les résultats pour déterminer quels champs '
- . 'IPTC pourraient intéresser vos visiteurs.';
- $adv[] = 'Les débutants laisseront $conf[\'show_iptc\'] = false;';
- $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau '
- . '$lang; voire même à l\'impact possible sur les templates.';
- $cond = true;
- $confk = 'show_iptc_mapping';
- break;
-
- Case 5 :
- $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.';
- $adv[] = 'Cette valeur pourrait être trop grande pour des connexions '
- . 'bas débit.<br /> Pensez à une valeur située entre 25-50 '
- . 'en fonction de la taille de vos minitures.';
- $cond = ( $conf['top_number'] > 50 );
- $confk = 'top_number';
- break;
-
- Case 6 :
- $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.';
- $adv[] = 'Une seule? Au moins pour les images aléatoires, pensez '
- . 'autour de 5-10 selon la tailles de vos miniatures.';
- $cond = ( $conf['top_number'] < 2 ) ? true : false;
- $confk = 'top_number';
- break;
-
- Case 7 :
- $adv[] = 'Valeur actuelle : ' . (string) $conf['anti-flood_time'] . '.';
- $adv[] = 'Pour un traitement fluide, votre valeur est sans doute trop '
- . 'grande. Une valeur raisonnable serait 60 (valeur par défaut).' ;
- $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false;
- $confk = 'anti-flood_time';
- break;
-
- Case 8 :
- $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.';
- $adv[] = 'Les valeurs admises sont '
- . "'date_creation' ou 'date_available'" . ', toute autre valeur'
- . 'peut aboutir à des résultats imprévisibles.' ;
- $cond = ( !in_array($conf['calendar_datefield'],
- array('date_creation','date_available')) );
- $confk = 'calendar_datefield';
- break;
-
- Case 9 :
- // If (iptc or exif) are used and date_creation is updated
- // Then it's Ok, you can use date_creation by default for calendar
- // else ... Advise
- $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.';
- $adv[] = "La 'date_creation'" . ' n\'est pas renseignée. Aucun champ '
- . 'des méta-données (use_) n\'actualise la base.';
- $adv[] = 'Soit vous activez l\'usage des méta-données <strong>ou'
- . '</strong> changez pour '
- . '$conf[\'calendar_datefield\'] = \'date_available\'';
- $adv[] = 'Activez l\'usage des méta-données simplement par: <br />'
- . '1 - $conf[\'use_iptc\'] = true; ou $conf[\'use_exif\'] = true; '
- . 'au choix, les 2 sont valables.<br />'
- . '2 - Respectivement à chacune faire la modif:<br />'
- . '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' '
- . '=> \'2#055\', ...<br />'
- . 'et/ou:<br />'
- . '$conf[\'use_exif_mapping\'] = array(\'date_creation\' '
- . '=> \'DateTimeOriginal\', ...<br />'
- . '3 - Enfin une nouvelle tache vous est destinée: '
- . 'la synchronisation des méta-données.' ;
- $cond2 = ( $conf['use_exif'] and
- isset($conf['use_exif_mapping']['date_creation']) );
- $cond3 = ( $conf['use_iptc'] and
- isset($conf['use_iptc_mapping']['date_creation']) );
- $cond = ( $conf['calendar_datefield'] == 'date_creation' );
- $cond = ( ($cond2 or $cond3) and $cond ) ? false : true;
- $confk = 'calendar_datefield';
- break;
-
- Case 10 :
- $adv[] = 'Valeur actuelle : false.';
- $adv[] = 'C\'est une erreur, un statut "private" est plus simple, '
- . 'alors choisissez $conf[\'newcat_default_visible\'] = true;' ;
- $cond = !$conf['newcat_default_visible'];
- $confk = 'newcat_default_visible';
- break;
-
- Case 11 :
- $adv[] = 'Valeur actuelle : true.';
- $adv[] = 'Il suffit de s\'inscrire pour avoir accès aux images en Haute '
- . 'résolution. Même les visiteurs occasionnels ont cet accès. '
- . '<br />C\'est bien ce que vous voulez, n\'est-ce pas? '
- . 'Non? Alors essayez ceci:<br />' .
- '$conf[\'newuser_default_enabled_high\'] = false;' ;
- $cond = $conf['newuser_default_enabled_high'];
- $confk = 'newuser_default_enabled_high';
- break;
-
- Case 12 :
- $adv[] = 'Valeur actuelle : ' . (string) $conf['level_separator'] . '.';
- $adv[] = 'Vous pouvez toujours essayer un autre séparateur commme :'
- . '<br />$conf[\'level_separator\'] = \'+ \';';
- $cond = ( $conf['level_separator'] == ' / ' );
- $confk = 'level_separator';
- break;
-
- Case 13 :
- $adv[] = 'Valeur actuelle : ' . (string) $conf['paginate_pages_around']
- . '.';
- $adv[] = 'Les valeurs habituelles se situent entre 2 et 5.'
- . 'Pour un site avec une interface légère, on choisira : <br />'
- . '$conf[\'paginate_pages_around\'] = 2; <br />'
- . 'Afin de proposer plus d\'accès directs, on choisira : <br />'
- . '$conf[\'paginate_pages_around\'] = 7;';
- $cond = (($conf['paginate_pages_around'] < 2)
- or ($conf['paginate_pages_around'] > 12));
- $confk = 'paginate_pages_around';
- break;
-
- Case 14 :
- $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_width'] . '.';
- $adv[] = 'Doit être une valeur proche de la largeur de vos miniatures.';
- $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, '
- . 'comme $conf[\'tn_width\'] = 128;';
- $cond = (($conf['tn_width'] < 66)
- or ($conf['tn_width'] > 180));
- $confk = 'tn_width';
- break;
-
- Case 15 :
- $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_height'] . '.';
- $adv[] = 'Doit être une valeur proche de la hauteur de vos miniatures.';
- $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, '
- . 'comme $conf[\'tn_height\'] = 128;';
- $cond = (($conf['tn_height'] < 66)
- or ($conf['tn_height'] > 180));
- $confk = 'tn_height';
- break;
-
- Case 16 :
- $adv[] = 'Il n\'y a aucune raison pour que la largeur maximale soit '
- . 'différente de la hauteur maximale. Pourquoi les ajouts en '
- . 'portrait afficheraient des miniatures dans une résolution '
- . 'différente de celle des miniatures en paysage?';
- $adv[] = 'Essayez $conf[\'tn_height\'] = ' . (string) $conf['tn_width']
- . ';<br />'
- . 'ou $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';';
- $cond = ( $conf['tn_height'] !== $conf['tn_width'] );
- $confk = 'tn_height';
- break;
-
- Case 17 :
- $adv[] = 'Valeur actuelle : true.';
- $adv[] = 'Pour des raisons de sécurité de votre galerie, préférez '
- . '$conf[\'show_version\'] = false;';
- $cond = $conf['show_version'];
- $confk = 'show_version';
- break;
-
- Case 18 :
- $adv[] = 'Valeur actuelle : true.';
- $adv[] = 'Pour une galerie moins chargée, faites le test de '
- . '$conf[\'show_thumbnail_caption\'] = false;';
- $cond = $conf['show_thumbnail_caption'];
- $confk = 'show_thumbnail_caption';
- break;
-
- Case 19 :
- $adv[] = 'Valeur actuelle : true.';
- $adv[] = 'Pour une galerie moins chargée, faites le test de '
- . '$conf[\'show_picture_name_on_title\'] = false;';
- $cond = $conf['show_picture_name_on_title'];
- $confk = 'show_picture_name_on_title';
- break;
-
- Case 20 :
- $adv[] = 'Valeur actuelle : true.';
- $adv[] = 'Aucune de vos catégories ne possède de descriptions alors '
- . 'essayez $conf[\'subcatify\'] = false;';
- $cond = $conf['subcatify'];
- $confk = 'subcatify';
- break;
-
- Case 21 :
- $adv[] = 'Valeur actuelle : true.';
- $adv[] = 'Laissez $conf[\'allow_random_representative\'] = true; <br />'
- . 'mais étudiez comment vous pouvez l\'éviter pour des raisons '
- . 'de performance.' ;
- $cond = $conf['allow_random_representative'];
- $confk = 'allow_random_representative';
- break;
-
- Case 22 :
- $adv[] = 'Valeur actuelle : ' . (string) $conf['prefix_thumbnail'] . '.';
- $adv[] = 'Attention, votre $conf[\'prefix_thumbnail\'] n\'est pas '
- . 'standard.';
- $adv[] = 'Ne pas changer votre préfixe sauf si vos miniatures ont un '
- . 'problème d\'affichage.';
- $adv[] = 'Un site distant peut avoir un préfixe différent, le '
- . 'create_listing_file.php devra être modifié.<br />'
- . 'Vous devriez avoir un message d\'avertissement pendant la '
- . 'synchronisation dans ce cas.';
- $adv[] = 'Try to keep the same prefix thru all your sites either '
- . 'local or distants.';
- $adv[] = 'Conservez ce paramètre dans votre ./include/config_'
- . '<strong>local.inc.php</strong>. <br />'
- . 'Voir la page sur la configuration dans le Wiki pour plus '
- . 'd\'informations à propos de '
- . './include/config_<strong>local.inc.php</strong>.';
- $cond = ( $conf['prefix_thumbnail'] !== 'TN-' );
- $confk = 'prefix_thumbnail';
- break;
-
- Case 23 :
- $adv[] = 'Valeur actuelle : ' . (string) $conf['users_page'] . '.';
- $adv[] = 'A moins d\'avoir une connexion bas débit, vous pouvez '
- . 'augmenter largement $conf[\'users_page\'] '
- . 'surtout si vous avez plus de 20 membres.';
- $cond = ( $conf['users_page'] < 21 );
- $confk = 'users_page';
- break;
-
- Case 24 :
- $adv[] = 'Valeur actuelle : true.';
- $adv[] = 'Devrait être à false, seulement quelques webmasters devront '
- . 'indiquer $conf[\'mail_options\'] = true; <br />'
- . 'Un utilisateur avancé de notre forum les aura conseillé '
- . 'dans un seul cas de problème d\'email.' ;
- $cond = $conf['mail_options'];
- $confk = 'mail_options';
- break;
-
- Case 25 :
- $adv[] = 'Valeur actuelle : true.';
- $adv[] = 'Devrait être à false, seuls les membres de l\'équipe PWG '
- . 'codent $conf[\'check_upgrade_feed\'] = true; pour leurs tests.';
- $cond = $conf['check_upgrade_feed'];
- $confk = 'check_upgrade_feed';
- break;
-
- Case 26 :
- $adv[] = '$conf[\'rate_items\'] dispose de ' . count($conf['rate_items'])
- . 'éléments.';
- $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments '
- . 'mais pas moins.';
- $cond = ( count($conf['rate_items']) < 4 );
- $confk = 'rate_items';
- break;
-
- Case 27 :
- $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items'])
- . 'items.';
- $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments '
- . 'mais pas plus.';
- $adv[] = 'Contrôlez vos images les mieux notées avant de retirer '
- . ' certaines valeurs.'
- . '<br />Réduire les valeurs excessives et modifiez votre '
- . '$conf[\'rate_items\'].';
- $cond = ( count($conf['rate_items']) > 6 );
- $confk = 'rate_items';
- break;
-
- Case 28 :
- $adv[] = 'Valeur actuelle : true.';
- $adv[] = 'Peut être effectivement à true, éventuellement choisissez '
- . '$conf[\'show_iptc\'] = false;'
- . '<br />Comme quelques photographes professionnels choisissez '
- . 'false bien que leurs raisons ne soient guère professionnelles.';
- $adv[] = 'Ne confondez pas <strong>show</strong>_iptc et '
- . '<strong>use</strong>_iptc (consultez la pages de métadonnées '
- . 'sur notre wiki).';
- $cond = $conf['show_iptc'];
- $confk = 'show_iptc';
- break;
-
- Case 29 :
- $adv[] = 'Valeur actuelle : true.';
- $adv[] = 'Les documentalistes et photographes professionnels choisiront '
- . 'cette valeur true, mais les débutants devraient laisser '
- . '$conf[\'use_iptc\'] = false;';
- $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation '
- . 'des métadonnées.<br />Les champs indiqués pourront être '
- . 'écrasés par des valeurs de champs IPTC quand bien même ces '
- . 'champs ne seraient pas vides.';
- $adv[] = 'Ne confondez pas <strong>show</strong>_iptc et '
- . '<strong>use</strong>_iptc (consultez la pages de métadonnées '
- . 'sur notre wiki).';
- $cond = $conf['use_iptc'];
- $confk = 'use_iptc';
- break;
-
- Case 30 :
- $adv[] = 'Comment gérer les IPTC:';
- $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />'
- . ' 2 - Renommez celle-ci en sample.jpg.<br />'
- . ' 3 - Lancez ./tools/metadata.php<br />'
- . ' 4 - Analysez les résultats pour déterminer quels champs '
- . 'IPTC pourraient intéresser vos visiteurs.';
- $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;';
- $adv[] = 'Les utilisateurs avancés feront des efforts de documentation '
- . 'avant de transférer leurs images.<br />'
- . 'Les champs IPTC doivent être décrits par '
- . '$conf[\'use_iptc_mapping\']';
- $adv[] = 'Dans tous les cas, <strong>show</strong>_iptc_mapping et '
- . '<strong>use</strong>_iptc_mapping seront '
- . 'totalement différents.';
- $cond = true;
- $confk = 'use_iptc';
- break;
-
- Case 31 :
- $adv[] = 'Comment gérer les IPTC:';
- $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />'
- . ' 2 - Renommez celle-ci en sample.jpg.<br />'
- . ' 3 - Lancez ./tools/metadata.php<br />'
- . ' 4 - Analysez les résultats pour déterminer quels champs '
- . 'IPTC pourraient intéresser vos visiteurs.';
- $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;';
- $adv[] = 'Les utilisateurs avancés feront des efforts de documentation '
- . 'avant de transférer leurs images.<br />'
- . 'Les champs IPTC doivent être décrits par '
- . '$conf[\'use_iptc_mapping\']';
- $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation '
- . 'des métadonnées.<br />Les champs indiqués pourront être '
- . 'écrasés par des valeurs de champs IPTC quand bien même ces '
- . 'champs ne seraient pas vides.';
- $adv[] = 'Dans tous les cas, <strong>show</strong>_iptc_mapping et '
- . '<strong>use</strong>_iptc_mapping seront '
- . 'totalement différents.';
- $cond = true;
- $confk = 'use_iptc_mapping';
- break;
-
- Case 32 :
- $adv[] = 'Valeur actuelle : '
- . ( ( $conf['show_exif'] ) ? 'true':'false' ) . '.';
- $adv[] = 'Devrait être à true, certaines informations propres à votre '
- . 'appareil pourront être affichées.';
- $adv[] = 'Pensez au fait que les informations EXIF peuvent être '
- . 'différentes suivant les modèles d\'appareil.<br />'
- . 'Si vous changez votre appareil ces champs pourraient en '
- . 'partie differents.';
- $adv[] = 'Beaucoup de photographes professionnels choissent false, '
- . 'ceci afin de protéger leur savoir-faire.' ;
- $adv[] = 'Ne confondez pas <strong>show</strong>_exif et '
- . '<strong>use</strong>_exif (consultez la pages de métadonnées '
- . 'sur notre wiki).';
- $cond = true;
- $confk = 'show_exif';
- break;
-
- Case 33 :
- $adv[] = 'Comment gérer les EXIF:';
- $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />'
- . ' 2 - Renommez celle-ci en sample.jpg.<br />'
- . ' 3 - Lancez ./tools/metadata.php<br />'
- . ' 4 - Analysez les résultats pour déterminer quels champs '
- . 'EXIF pourraient intéresser vos visiteurs.';
- $adv[] = 'Les débutants laisseront la valeur par défaut.';
- $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau '
- . '$lang; voire même à l\'impact possible sur les templates.';
- $adv[] = 'Dans tous les cas, <strong>show</strong>_exif_fields et '
- . '<strong>use</strong>_exif_mapping seront '
- . 'totalement différents.';
- $cond = true;
- $confk = 'show_exif_fields';
- break;
-
- Case 34 :
- $adv[] = 'Valeur actuelle : ' . ( ( $conf['use_exif'] ) ? 'true':'false' )
- . '.';
- $adv[] = 'Les documentalistes et photographes professionnels choisiront '
- . 'cette valeur true, mais les débutants devraient laisser '
- . 'la valeur par défaut.';
- $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation '
- . 'des métadonnées.<br />Les champs indiqués pourront être '
- . 'écrasés par des valeurs de champs EXIF quand bien même ces '
- . 'champs ne seraient pas vides.';
- $adv[] = 'Ne confondez pas <strong>show</strong>_exif et '
- . '<strong>use</strong>_exif (consultez la pages de métadonnées '
- . 'sur notre wiki).';
- $cond = true;
- $confk = 'use_exif';
- break;
-
- Case 35 :
- $adv[] = 'Comment gérer les EXIF:';
- $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />'
- . ' 2 - Renommez celle-ci en sample.jpg.<br />'
- . ' 3 - Lancez ./tools/metadata.php<br />'
- . ' 4 - Analysez les résultats pour déterminer quels champs '
- . 'EXIF pourraient intéresser vos visiteurs.';
- $adv[] = 'Les débutants laisseront la valeur par défaut.';
- $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau '
- . '$lang; voire même à l\'impact possible sur les templates.';
- $adv[] = 'Les débutants laisseront $conf[\'use_exif\'] = false;';
- $adv[] = 'Les utilisateurs avancés feront très attention aux champs '
- . 'sélectionnés et modifiés par la synchronisation.';
- $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation '
- . 'des métadonnées.<br />Ces champs pourront être '
- . 'écrasés par des valeurs de champs EXIF quand bien même ces '
- . 'champs ne seraient pas vides.';
- $adv[] = 'Dans tous les cas, <strong>show</strong>_exif_fields et '
- . '<strong>use</strong>_exif_mapping seront '
- . 'totalement différents.';
- $cond = true;
- $confk = 'use_exif_mapping';
- break;
- }
-}
-
-?>
+<?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 | +// +-----------------------------------------------------------------------+ +//$lang_info['language_name'] = 'Français'; +//$lang_info['country'] = 'France'; +//$lang_info['charset'] = 'iso-8859-1'; +//$lang_info['direction'] = 'ltr'; +//$lang_info['code'] = 'fr'; +global $lang; +$lang['An_advice_about'] = 'Un nouveau conseil à propos de '; +$lang['Metadata'] = 'Méta-données'; + +foreach ($conf as $key => $value) +{ + if ( is_string($value) ) + { + $bool = ($value == 'false') ? false : $value; + $bool = ($value == 'true') ? true : $bool; + $conf[$key] = $bool; + } +} + +// +// Don't forget to update range for new advices +// +$cases = range(1,35); +srand ((double) microtime() * 10000000); +shuffle($cases); + +$cond = false; +foreach ($cases as $id_adv) +{ + if ($cond) break; + $adv = array(); + switch ($id_adv) { + Case 1 : + $adv[] = 'Valeur actuelle : public. '; + $adv[] = 'Essayez $conf[\'newcat_default_status\'] = \'private\';'; + $adv[] = 'Vous aurez plus de temps pour décrire et contrôler vos images. ' + . 'Du temps pour vous décider entre un statut privé ou public.'; + $adv[] = 'Si vous choisissez de rester privé, vous passerez directement ' + . 'à l\'attribution des autorisations. <br />' + . 'Vos nouvelles catégories seront préparées plus facilement.'; + $cond = ($conf['newcat_default_status'] !== 'public'); + $confk = 'newcat_default_status'; + break; + + Case 2 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['slideshow_period'] . '.'; + $adv[] = 'Ce délai pourrait être trop petit pour les connexions ' + . 'en bas débit.'; + $adv[] = 'Pensez à une valeur supérieure comme 4.'; + $cond = ( $conf['slideshow_period'] < 4 ); + $confk = 'slideshow_period'; + break; + + Case 3 : + $adv[] = 'Valeur actuelle : ' . implode(', ', $conf['file_ext']) . '. '; + $adv[] = 'Ne devrait jamais contenir des extensions pouvant être '; + $adv[] = 'exécutées sur le serveur comme *.php, *.PHP, *.asp, ...'; + $cond = ( in_array('php',$conf['file_ext']) ); + $confk = 'file_ext'; + break; + + Case 4 : + $adv[] = 'Comment gérer les IPTC:'; + $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' + . ' 2 - Renommez celle-ci en sample.jpg.<br />' + . ' 3 - Lancez ./tools/metadata.php<br />' + . ' 4 - Analysez les résultats pour déterminer quels champs ' + . 'IPTC pourraient intéresser vos visiteurs.'; + $adv[] = 'Les débutants laisseront $conf[\'show_iptc\'] = false;'; + $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' + . '$lang; voire même à l\'impact possible sur les templates.'; + $cond = true; + $confk = 'show_iptc_mapping'; + break; + + Case 5 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; + $adv[] = 'Cette valeur pourrait être trop grande pour des connexions ' + . 'bas débit.<br /> Pensez à une valeur située entre 25-50 ' + . 'en fonction de la taille de vos minitures.'; + $cond = ( $conf['top_number'] > 50 ); + $confk = 'top_number'; + break; + + Case 6 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; + $adv[] = 'Une seule? Au moins pour les images aléatoires, pensez ' + . 'autour de 5-10 selon la tailles de vos miniatures.'; + $cond = ( $conf['top_number'] < 2 ) ? true : false; + $confk = 'top_number'; + break; + + Case 7 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['anti-flood_time'] . '.'; + $adv[] = 'Pour un traitement fluide, votre valeur est sans doute trop ' + . 'grande. Une valeur raisonnable serait 60 (valeur par défaut).' ; + $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false; + $confk = 'anti-flood_time'; + break; + + Case 8 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.'; + $adv[] = 'Les valeurs admises sont ' + . "'date_creation' ou 'date_available'" . ', toute autre valeur' + . 'peut aboutir à des résultats imprévisibles.' ; + $cond = ( !in_array($conf['calendar_datefield'], + array('date_creation','date_available')) ); + $confk = 'calendar_datefield'; + break; + + Case 9 : + // If (iptc or exif) are used and date_creation is updated + // Then it's Ok, you can use date_creation by default for calendar + // else ... Advise + $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.'; + $adv[] = "La 'date_creation'" . ' n\'est pas renseignée. Aucun champ ' + . 'des méta-données (use_) n\'actualise la base.'; + $adv[] = 'Soit vous activez l\'usage des méta-données <strong>ou' + . '</strong> changez pour ' + . '$conf[\'calendar_datefield\'] = \'date_available\''; + $adv[] = 'Activez l\'usage des méta-données simplement par: <br />' + . '1 - $conf[\'use_iptc\'] = true; ou $conf[\'use_exif\'] = true; ' + . 'au choix, les 2 sont valables.<br />' + . '2 - Respectivement à chacune faire la modif:<br />' + . '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' + . '=> \'2#055\', ...<br />' + . 'et/ou:<br />' + . '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' + . '=> \'DateTimeOriginal\', ...<br />' + . '3 - Enfin une nouvelle tache vous est destinée: ' + . 'la synchronisation des méta-données.' ; + $cond2 = ( $conf['use_exif'] and + isset($conf['use_exif_mapping']['date_creation']) ); + $cond3 = ( $conf['use_iptc'] and + isset($conf['use_iptc_mapping']['date_creation']) ); + $cond = ( $conf['calendar_datefield'] == 'date_creation' ); + $cond = ( ($cond2 or $cond3) and $cond ) ? false : true; + $confk = 'calendar_datefield'; + break; + + Case 10 : + $adv[] = 'Valeur actuelle : false.'; + $adv[] = 'C\'est une erreur, un statut "private" est plus simple, ' + . 'alors choisissez $conf[\'newcat_default_visible\'] = true;' ; + $cond = !$conf['newcat_default_visible']; + $confk = 'newcat_default_visible'; + break; + + Case 11 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Il suffit de s\'inscrire pour avoir accès aux images en Haute ' + . 'résolution. Même les visiteurs occasionnels ont cet accès. ' + . '<br />C\'est bien ce que vous voulez, n\'est-ce pas? ' + . 'Non? Alors essayez ceci:<br />' . + '$conf[\'newuser_default_enabled_high\'] = false;' ; + $cond = $conf['newuser_default_enabled_high']; + $confk = 'newuser_default_enabled_high'; + break; + + Case 12 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['level_separator'] . '.'; + $adv[] = 'Vous pouvez toujours essayer un autre séparateur commme :' + . '<br />$conf[\'level_separator\'] = \'+ \';'; + $cond = ( $conf['level_separator'] == ' / ' ); + $confk = 'level_separator'; + break; + + Case 13 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['paginate_pages_around'] + . '.'; + $adv[] = 'Les valeurs habituelles se situent entre 2 et 5.' + . 'Pour un site avec une interface légère, on choisira : <br />' + . '$conf[\'paginate_pages_around\'] = 2; <br />' + . 'Afin de proposer plus d\'accès directs, on choisira : <br />' + . '$conf[\'paginate_pages_around\'] = 7;'; + $cond = (($conf['paginate_pages_around'] < 2) + or ($conf['paginate_pages_around'] > 12)); + $confk = 'paginate_pages_around'; + break; + + Case 14 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_width'] . '.'; + $adv[] = 'Doit être une valeur proche de la largeur de vos miniatures.'; + $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' + . 'comme $conf[\'tn_width\'] = 128;'; + $cond = (($conf['tn_width'] < 66) + or ($conf['tn_width'] > 180)); + $confk = 'tn_width'; + break; + + Case 15 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_height'] . '.'; + $adv[] = 'Doit être une valeur proche de la hauteur de vos miniatures.'; + $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' + . 'comme $conf[\'tn_height\'] = 128;'; + $cond = (($conf['tn_height'] < 66) + or ($conf['tn_height'] > 180)); + $confk = 'tn_height'; + break; + + Case 16 : + $adv[] = 'Il n\'y a aucune raison pour que la largeur maximale soit ' + . 'différente de la hauteur maximale. Pourquoi les ajouts en ' + . 'portrait afficheraient des miniatures dans une résolution ' + . 'différente de celle des miniatures en paysage?'; + $adv[] = 'Essayez $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] + . ';<br />' + . 'ou $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';'; + $cond = ( $conf['tn_height'] !== $conf['tn_width'] ); + $confk = 'tn_height'; + break; + + Case 17 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Pour des raisons de sécurité de votre galerie, préférez ' + . '$conf[\'show_version\'] = false;'; + $cond = $conf['show_version']; + $confk = 'show_version'; + break; + + Case 18 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Pour une galerie moins chargée, faites le test de ' + . '$conf[\'show_thumbnail_caption\'] = false;'; + $cond = $conf['show_thumbnail_caption']; + $confk = 'show_thumbnail_caption'; + break; + + Case 19 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Pour une galerie moins chargée, faites le test de ' + . '$conf[\'show_picture_name_on_title\'] = false;'; + $cond = $conf['show_picture_name_on_title']; + $confk = 'show_picture_name_on_title'; + break; + + Case 20 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Aucune de vos catégories ne possède de descriptions alors ' + . 'essayez $conf[\'subcatify\'] = false;'; + $cond = $conf['subcatify']; + $confk = 'subcatify'; + break; + + Case 21 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Laissez $conf[\'allow_random_representative\'] = true; <br />' + . 'mais étudiez comment vous pouvez l\'éviter pour des raisons ' + . 'de performance.' ; + $cond = $conf['allow_random_representative']; + $confk = 'allow_random_representative'; + break; + + Case 22 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['prefix_thumbnail'] . '.'; + $adv[] = 'Attention, votre $conf[\'prefix_thumbnail\'] n\'est pas ' + . 'standard.'; + $adv[] = 'Ne pas changer votre préfixe sauf si vos miniatures ont un ' + . 'problème d\'affichage.'; + $adv[] = 'Un site distant peut avoir un préfixe différent, le ' + . 'create_listing_file.php devra être modifié.<br />' + . 'Vous devriez avoir un message d\'avertissement pendant la ' + . 'synchronisation dans ce cas.'; + $adv[] = 'Try to keep the same prefix thru all your sites either ' + . 'local or distants.'; + $adv[] = 'Conservez ce paramètre dans votre ./include/config_' + . '<strong>local.inc.php</strong>. <br />' + . 'Voir la page sur la configuration dans le Wiki pour plus ' + . 'd\'informations à propos de ' + . './include/config_<strong>local.inc.php</strong>.'; + $cond = ( $conf['prefix_thumbnail'] !== 'TN-' ); + $confk = 'prefix_thumbnail'; + break; + + Case 23 : + $adv[] = 'Valeur actuelle : ' . (string) $conf['users_page'] . '.'; + $adv[] = 'A moins d\'avoir une connexion bas débit, vous pouvez ' + . 'augmenter largement $conf[\'users_page\'] ' + . 'surtout si vous avez plus de 20 membres.'; + $cond = ( $conf['users_page'] < 21 ); + $confk = 'users_page'; + break; + + Case 24 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Devrait être à false, seulement quelques webmasters devront ' + . 'indiquer $conf[\'mail_options\'] = true; <br />' + . 'Un utilisateur avancé de notre forum les aura conseillé ' + . 'dans un seul cas de problème d\'email.' ; + $cond = $conf['mail_options']; + $confk = 'mail_options'; + break; + + Case 25 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Devrait être à false, seuls les membres de l\'équipe PWG ' + . 'codent $conf[\'check_upgrade_feed\'] = true; pour leurs tests.'; + $cond = $conf['check_upgrade_feed']; + $confk = 'check_upgrade_feed'; + break; + + Case 26 : + $adv[] = '$conf[\'rate_items\'] dispose de ' . count($conf['rate_items']) + . 'éléments.'; + $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments ' + . 'mais pas moins.'; + $cond = ( count($conf['rate_items']) < 4 ); + $confk = 'rate_items'; + break; + + Case 27 : + $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) + . 'items.'; + $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments ' + . 'mais pas plus.'; + $adv[] = 'Contrôlez vos images les mieux notées avant de retirer ' + . ' certaines valeurs.' + . '<br />Réduire les valeurs excessives et modifiez votre ' + . '$conf[\'rate_items\'].'; + $cond = ( count($conf['rate_items']) > 6 ); + $confk = 'rate_items'; + break; + + Case 28 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Peut être effectivement à true, éventuellement choisissez ' + . '$conf[\'show_iptc\'] = false;' + . '<br />Comme quelques photographes professionnels choisissez ' + . 'false bien que leurs raisons ne soient guère professionnelles.'; + $adv[] = 'Ne confondez pas <strong>show</strong>_iptc et ' + . '<strong>use</strong>_iptc (consultez la pages de métadonnées ' + . 'sur notre wiki).'; + $cond = $conf['show_iptc']; + $confk = 'show_iptc'; + break; + + Case 29 : + $adv[] = 'Valeur actuelle : true.'; + $adv[] = 'Les documentalistes et photographes professionnels choisiront ' + . 'cette valeur true, mais les débutants devraient laisser ' + . '$conf[\'use_iptc\'] = false;'; + $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' + . 'des métadonnées.<br />Les champs indiqués pourront être ' + . 'écrasés par des valeurs de champs IPTC quand bien même ces ' + . 'champs ne seraient pas vides.'; + $adv[] = 'Ne confondez pas <strong>show</strong>_iptc et ' + . '<strong>use</strong>_iptc (consultez la pages de métadonnées ' + . 'sur notre wiki).'; + $cond = $conf['use_iptc']; + $confk = 'use_iptc'; + break; + + Case 30 : + $adv[] = 'Comment gérer les IPTC:'; + $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' + . ' 2 - Renommez celle-ci en sample.jpg.<br />' + . ' 3 - Lancez ./tools/metadata.php<br />' + . ' 4 - Analysez les résultats pour déterminer quels champs ' + . 'IPTC pourraient intéresser vos visiteurs.'; + $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;'; + $adv[] = 'Les utilisateurs avancés feront des efforts de documentation ' + . 'avant de transférer leurs images.<br />' + . 'Les champs IPTC doivent être décrits par ' + . '$conf[\'use_iptc_mapping\']'; + $adv[] = 'Dans tous les cas, <strong>show</strong>_iptc_mapping et ' + . '<strong>use</strong>_iptc_mapping seront ' + . 'totalement différents.'; + $cond = true; + $confk = 'use_iptc'; + break; + + Case 31 : + $adv[] = 'Comment gérer les IPTC:'; + $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' + . ' 2 - Renommez celle-ci en sample.jpg.<br />' + . ' 3 - Lancez ./tools/metadata.php<br />' + . ' 4 - Analysez les résultats pour déterminer quels champs ' + . 'IPTC pourraient intéresser vos visiteurs.'; + $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;'; + $adv[] = 'Les utilisateurs avancés feront des efforts de documentation ' + . 'avant de transférer leurs images.<br />' + . 'Les champs IPTC doivent être décrits par ' + . '$conf[\'use_iptc_mapping\']'; + $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' + . 'des métadonnées.<br />Les champs indiqués pourront être ' + . 'écrasés par des valeurs de champs IPTC quand bien même ces ' + . 'champs ne seraient pas vides.'; + $adv[] = 'Dans tous les cas, <strong>show</strong>_iptc_mapping et ' + . '<strong>use</strong>_iptc_mapping seront ' + . 'totalement différents.'; + $cond = true; + $confk = 'use_iptc_mapping'; + break; + + Case 32 : + $adv[] = 'Valeur actuelle : ' + . ( ( $conf['show_exif'] ) ? 'true':'false' ) . '.'; + $adv[] = 'Devrait être à true, certaines informations propres à votre ' + . 'appareil pourront être affichées.'; + $adv[] = 'Pensez au fait que les informations EXIF peuvent être ' + . 'différentes suivant les modèles d\'appareil.<br />' + . 'Si vous changez votre appareil ces champs pourraient en ' + . 'partie differents.'; + $adv[] = 'Beaucoup de photographes professionnels choissent false, ' + . 'ceci afin de protéger leur savoir-faire.' ; + $adv[] = 'Ne confondez pas <strong>show</strong>_exif et ' + . '<strong>use</strong>_exif (consultez la pages de métadonnées ' + . 'sur notre wiki).'; + $cond = true; + $confk = 'show_exif'; + break; + + Case 33 : + $adv[] = 'Comment gérer les EXIF:'; + $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' + . ' 2 - Renommez celle-ci en sample.jpg.<br />' + . ' 3 - Lancez ./tools/metadata.php<br />' + . ' 4 - Analysez les résultats pour déterminer quels champs ' + . 'EXIF pourraient intéresser vos visiteurs.'; + $adv[] = 'Les débutants laisseront la valeur par défaut.'; + $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' + . '$lang; voire même à l\'impact possible sur les templates.'; + $adv[] = 'Dans tous les cas, <strong>show</strong>_exif_fields et ' + . '<strong>use</strong>_exif_mapping seront ' + . 'totalement différents.'; + $cond = true; + $confk = 'show_exif_fields'; + break; + + Case 34 : + $adv[] = 'Valeur actuelle : ' . ( ( $conf['use_exif'] ) ? 'true':'false' ) + . '.'; + $adv[] = 'Les documentalistes et photographes professionnels choisiront ' + . 'cette valeur true, mais les débutants devraient laisser ' + . 'la valeur par défaut.'; + $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' + . 'des métadonnées.<br />Les champs indiqués pourront être ' + . 'écrasés par des valeurs de champs EXIF quand bien même ces ' + . 'champs ne seraient pas vides.'; + $adv[] = 'Ne confondez pas <strong>show</strong>_exif et ' + . '<strong>use</strong>_exif (consultez la pages de métadonnées ' + . 'sur notre wiki).'; + $cond = true; + $confk = 'use_exif'; + break; + + Case 35 : + $adv[] = 'Comment gérer les EXIF:'; + $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/<br />' + . ' 2 - Renommez celle-ci en sample.jpg.<br />' + . ' 3 - Lancez ./tools/metadata.php<br />' + . ' 4 - Analysez les résultats pour déterminer quels champs ' + . 'EXIF pourraient intéresser vos visiteurs.'; + $adv[] = 'Les débutants laisseront la valeur par défaut.'; + $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' + . '$lang; voire même à l\'impact possible sur les templates.'; + $adv[] = 'Les débutants laisseront $conf[\'use_exif\'] = false;'; + $adv[] = 'Les utilisateurs avancés feront très attention aux champs ' + . 'sélectionnés et modifiés par la synchronisation.'; + $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' + . 'des métadonnées.<br />Ces champs pourront être ' + . 'écrasés par des valeurs de champs EXIF quand bien même ces ' + . 'champs ne seraient pas vides.'; + $adv[] = 'Dans tous les cas, <strong>show</strong>_exif_fields et ' + . '<strong>use</strong>_exif_mapping seront ' + . 'totalement différents.'; + $cond = true; + $confk = 'use_exif_mapping'; + break; + } +} + +?> diff --git a/plugins/admin_advices/main.inc.php b/plugins/admin_advices/main.inc.php index 6db9b358a..18600e4b1 100644 --- a/plugins/admin_advices/main.inc.php +++ b/plugins/admin_advices/main.inc.php @@ -1,119 +1,119 @@ -<?php /*
-Plugin Name: Admin Advices
-Version: 1.0
-Description: Give you an advice on the administration page.
-Plugin URI: http://www.phpwebgallery.net
-Author: PhpWebGallery team
-Author URI: http://www.phpwebgallery.net
-*/
-
-add_event_handler('loc_end_page_header', 'set_admin_advice_add_css' );
-
-// Add a XHTML tag in HEAD section
-function set_admin_advice_add_css()
-{
- global $template, $page;
- if ( isset($page['body_id']) and $page['body_id']=='theAdminPage'
- and $page['page'] == 'intro'
- )
- {// This Plugin works only on the Admin page
- $template->assign_block_vars(
- 'head_element',
- array(
- 'CONTENT' => '<link rel="stylesheet" type="text/css" '
- . 'href="'.PHPWG_PLUGINS_PATH.'admin_advices/default-layout.css">',
- )
- );
- add_event_handler('loc_begin_page_tail', 'set_admin_advice' );
- }
-}
-
-// Build an advice on the Admin Intro page
-function set_admin_advice()
-{
- global $page, $user, $template, $conf;
-
-// Setup Advice Language (Maybe there is already a variable)
- $advlang = ( isset($user['language']) ) ?
- $user['language'] : $conf['default_language']; // en_UK.iso-8859-1
- $my_path = dirname(__FILE__).'/';
- $adv = array();
- if ( !@file_exists($my_path."$advlang/lang.adv.php") )
- {
- $advlang = 'en_UK.iso-8859-1';
- }
-// Include language advices
- @include_once( $my_path."$advlang/lang.adv.php" );
-
-// If there is an advice
- if ( $cond )
- {
- $template->set_filenames(array(
- 'admin_advice' => $my_path.'admin_advices.tpl')
- );
-
-// Random Thumbnail
- $query = '
-SELECT *
-FROM '.IMAGES_TABLE.'
-ORDER BY RAND(NOW())
-LIMIT 0, 1
-;';
- $result = pwg_query($query);
- $row = mysql_fetch_assoc($result);
- if ( is_array($row) )
- {
- $url_modify = get_root_url().'admin.php?page=picture_modify'
- .'&image_id='.$row['id'];
- $url_check = get_themeconf('icon_dir').'/';
- $url_uncheck = $url_check . 'uncheck';
- $url_check .= 'check';
- $picture_id = $row['id'];
- $query = '
-SELECT * FROM '.IMAGE_TAG_TABLE.'
-WHERE image_id = ' . $picture_id .'
-;';
- $tag_count = mysql_num_rows(mysql_query($query));
- $template->assign_block_vars(
- 'thumbnail',
- array(
- 'IMAGE' => get_thumbnail_url($row),
- 'IMAGE_ALT' => $row['file'],
- 'IMAGE_TITLE' => $row['name'],
- 'METADATA' => (empty($row['date_metadata_update'])) ?
- $url_uncheck : $url_check,
- 'NAME' => (empty($row['name'])) ?
- $url_uncheck : $url_check,
- 'COMMENT' => (empty($row['comment'])) ?
- $url_uncheck : $url_check,
- 'AUTHOR' => (empty($row['author'])) ?
- $url_uncheck : $url_check,
- 'CREATE_DATE' => (empty($row['date_creation'])) ?
- $url_uncheck : $url_check,
- 'TAGS' => ($tag_count == 0) ?
- $url_uncheck : $url_check,
- 'NUM_TAGS' => (string) $tag_count,
- 'U_MODIFY' => $url_modify,
- )
- );
- }
- $advice_text = array_shift($adv);
- $template->assign_vars(
- array(
- 'ADVICE_ABOUT' => '$conf[' . "'$confk'] ",
- 'ADVICE_TEXT' => $advice_text,
- )
- );
- foreach ($adv as $advice)
- {
- $template->assign_block_vars(
- 'More',
- array(
- 'ADVICE' => $advice
- )
- );
- }
- $template->parse('admin_advice');
- }
-}
-?>
+<?php /* +Plugin Name: Admin Advices +Version: 1.0 +Description: Give you an advice on the administration page. +Plugin URI: http://www.phpwebgallery.net +Author: PhpWebGallery team +Author URI: http://www.phpwebgallery.net +*/ + +add_event_handler('loc_end_page_header', 'set_admin_advice_add_css' ); + +// Add a XHTML tag in HEAD section +function set_admin_advice_add_css() +{ + global $template, $page; + if ( isset($page['body_id']) and $page['body_id']=='theAdminPage' + and $page['page'] == 'intro' + ) + {// This Plugin works only on the Admin page + $template->assign_block_vars( + 'head_element', + array( + 'CONTENT' => '<link rel="stylesheet" type="text/css" ' + . 'href="'.PHPWG_PLUGINS_PATH.'admin_advices/default-layout.css">', + ) + ); + add_event_handler('loc_begin_page_tail', 'set_admin_advice' ); + } +} + +// Build an advice on the Admin Intro page +function set_admin_advice() +{ + global $page, $user, $template, $conf; + +// Setup Advice Language (Maybe there is already a variable) + $advlang = ( isset($user['language']) ) ? + $user['language'] : $conf['default_language']; // en_UK.iso-8859-1 + $my_path = dirname(__FILE__).'/'; + $adv = array(); + if ( !@file_exists($my_path."$advlang/lang.adv.php") ) + { + $advlang = 'en_UK.iso-8859-1'; + } +// Include language advices + @include_once( $my_path."$advlang/lang.adv.php" ); + +// If there is an advice + if ( $cond ) + { + $template->set_filenames(array( + 'admin_advice' => $my_path.'admin_advices.tpl') + ); + +// Random Thumbnail + $query = ' +SELECT * +FROM '.IMAGES_TABLE.' +ORDER BY RAND(NOW()) +LIMIT 0, 1 +;'; + $result = pwg_query($query); + $row = mysql_fetch_assoc($result); + if ( is_array($row) ) + { + $url_modify = get_root_url().'admin.php?page=picture_modify' + .'&image_id='.$row['id']; + $url_check = get_themeconf('icon_dir').'/'; + $url_uncheck = $url_check . 'uncheck'; + $url_check .= 'check'; + $picture_id = $row['id']; + $query = ' +SELECT * FROM '.IMAGE_TAG_TABLE.' +WHERE image_id = ' . $picture_id .' +;'; + $tag_count = mysql_num_rows(mysql_query($query)); + $template->assign_block_vars( + 'thumbnail', + array( + 'IMAGE' => get_thumbnail_url($row), + 'IMAGE_ALT' => $row['file'], + 'IMAGE_TITLE' => $row['name'], + 'METADATA' => (empty($row['date_metadata_update'])) ? + $url_uncheck : $url_check, + 'NAME' => (empty($row['name'])) ? + $url_uncheck : $url_check, + 'COMMENT' => (empty($row['comment'])) ? + $url_uncheck : $url_check, + 'AUTHOR' => (empty($row['author'])) ? + $url_uncheck : $url_check, + 'CREATE_DATE' => (empty($row['date_creation'])) ? + $url_uncheck : $url_check, + 'TAGS' => ($tag_count == 0) ? + $url_uncheck : $url_check, + 'NUM_TAGS' => (string) $tag_count, + 'U_MODIFY' => $url_modify, + ) + ); + } + $advice_text = array_shift($adv); + $template->assign_vars( + array( + 'ADVICE_ABOUT' => '$conf[' . "'$confk'] ", + 'ADVICE_TEXT' => $advice_text, + ) + ); + foreach ($adv as $advice) + { + $template->assign_block_vars( + 'More', + array( + 'ADVICE' => $advice + ) + ); + } + $template->parse('admin_advice'); + } +} +?> |