Index: /trunk/about.php
===================================================================
--- /trunk/about.php	(revision 363)
+++ /trunk/about.php	(revision 364)
@@ -27,6 +27,6 @@
 
 //----------------------------------------------------------- include
-$phpwg_root_path = './';
-include_once( $phpwg_root_path.'include/common.inc.php' );
+define('PHPWG_ROOT_PATH','./');
+include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
 //----------------------------------------------------- template initialization
 //
Index: /trunk/admin.php
===================================================================
--- /trunk/admin.php	(revision 363)
+++ /trunk/admin.php	(revision 364)
@@ -27,6 +27,6 @@
 
 //----------------------------------------------------------- include
-$phpwg_root_path = './';
-include_once( $phpwg_root_path.'include/common.inc.php' );
+define('PHPWG_ROOT_PATH','./');
+include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
 include_once( './admin/include/isadmin.inc.php' );
 //----------------------------------------------------- template initialization
@@ -55,5 +55,5 @@
    if ( !is_numeric( $_GET['user_id'] ) ) $_GET['user_id'] = -1;
    $query = 'SELECT status,username';
-   $query.= ' FROM '.PREFIX_TABLE.'users';
+   $query.= ' FROM '.USERS_TABLE;
    $query.= ' WHERE id = '.$_GET['user_id'];
    $query.= ';';
Index: /trunk/admin/cat_modify.php
===================================================================
--- /trunk/admin/cat_modify.php	(revision 363)
+++ /trunk/admin/cat_modify.php	(revision 364)
@@ -100,5 +100,5 @@
   // checking users favorites
   $query = 'SELECT id';
-  $query.= ' FROM '.PREFIX_TABLE.'users';
+  $query.= ' FROM '.USERS_TABLE;
   $query.= ';';
   $result = mysql_query( $query );
Index: /trunk/admin/cat_perm.php
===================================================================
--- /trunk/admin/cat_perm.php	(revision 363)
+++ /trunk/admin/cat_perm.php	(revision 364)
@@ -76,5 +76,5 @@
   mysql_query( $query );
   $query = 'SELECT id';
-  $query.= ' FROM '.PREFIX_TABLE.'users';
+  $query.= ' FROM '.USERS_TABLE;
   $query.= ';';
   $result = mysql_query( $query );
@@ -138,5 +138,5 @@
 //----------------------------------------------------------------------- users
 $query = 'SELECT id,username,status';
-$query.= ' FROM '.PREFIX_TABLE.'users';
+$query.= ' FROM '.USERS_TABLE;
 // only the webmaster can modify webmaster's permissions
 if ( $user['username'] != $conf['webmaster'] )
Index: /trunk/admin/configuration.php
===================================================================
--- /trunk/admin/configuration.php	(revision 363)
+++ /trunk/admin/configuration.php	(revision 364)
@@ -218,5 +218,5 @@
     mysql_query( $query );
 
-    $query = 'UPDATE '.PREFIX_TABLE.'users';
+    $query = 'UPDATE '.USERS_TABLE;
     $query.= ' SET';
     foreach ( $default_user_infos as $i => $default_user_info ) {
@@ -258,5 +258,5 @@
 
   $query  = 'SELECT '.implode( ',', $default_user_infos );
-  $query.= ' FROM '.PREFIX_TABLE.'users';
+  $query.= ' FROM '.USERS_TABLE;
   $query.= " WHERE username = 'guest'";
   $query.= ';';
Index: /trunk/admin/group_perm.php
===================================================================
--- /trunk/admin/group_perm.php	(revision 363)
+++ /trunk/admin/group_perm.php	(revision 364)
@@ -62,5 +62,5 @@
   // checking users favorites
   $query = 'SELECT id';
-  $query.= ' FROM '.PREFIX_TABLE.'users';
+  $query.= ' FROM '.USERS_TABLE;
   $query.= ';';
   $result = mysql_query( $query );
Index: /trunk/admin/include/functions.php
===================================================================
--- /trunk/admin/include/functions.php	(revision 363)
+++ /trunk/admin/include/functions.php	(revision 364)
@@ -283,5 +283,5 @@
 
   // destruction of the user
-  $query = 'DELETE FROM '.PREFIX_TABLE.'users';
+  $query = 'DELETE FROM '.USERS_TABLE;
   $query.= ' WHERE id = '.$user_id;
   $query.= ';';
@@ -323,5 +323,5 @@
 {
   $query = 'SELECT status,forbidden_categories';
-  $query.= ' FROM '.PREFIX_TABLE.'users';
+  $query.= ' FROM '.USERS_TABLE;
   $query.= ' WHERE id = '.$user_id;
   $query.= ';';
@@ -853,5 +853,5 @@
   
   $query = 'SELECT id';
-  $query.= ' FROM '.PREFIX_TABLE.'users';
+  $query.= ' FROM '.USERS_TABLE;
   $query.= ';';
   $result = mysql_query( $query );
@@ -902,5 +902,5 @@
   
   $query = 'SELECT id';
-  $query.= ' FROM '.PREFIX_TABLE.'users';
+  $query.= ' FROM '.USERS_TABLE;
   $query.= ', '.PREFIX_TABLE.'user_group';
   $query.= ' WHERE group_id = '.$group_id;
@@ -927,5 +927,5 @@
 
   // update the users.forbidden_categories in database
-  $query = 'UPDATE '.PREFIX_TABLE.'users';
+  $query = 'UPDATE '.USERS_TABLE;
   $query.= ' SET forbidden_categories = ';
   if ( count( $restrictions ) > 0 )
@@ -951,5 +951,5 @@
   
   $query = 'SELECT status';
-  $query.= ' FROM '.PREFIX_TABLE.'users';
+  $query.= ' FROM '.USERS_TABLE;
   $query.= ' WHERE id = '.$user_id;
   $query.= ';';
Index: /trunk/admin/include/isadmin.inc.php
===================================================================
--- /trunk/admin/include/isadmin.inc.php	(revision 363)
+++ /trunk/admin/include/isadmin.inc.php	(revision 364)
@@ -29,6 +29,4 @@
 
 $isadmin = true;
-include_once( './language/'.$user['language'].'/lang_admin.php' );
-
 if ( $user['status'] != 'admin' )
 {
Index: /trunk/admin/user_list.php
===================================================================
--- /trunk/admin/user_list.php	(revision 363)
+++ /trunk/admin/user_list.php	(revision 364)
@@ -62,5 +62,5 @@
 {
   $query = 'SELECT username';
-  $query.= ' FROM '.PREFIX_TABLE.'users';
+  $query.= ' FROM '.USERS_TABLE;
   $query.= ' WHERE id = '.$_GET['delete'];
   $query.= ';';
@@ -86,5 +86,5 @@
     {
       $query = 'SELECT COUNT(*) AS nb_result';
-      $query.= ' FROM '.PREFIX_TABLE.'users';
+      $query.= ' FROM '.USERS_TABLE;
       $query.= ' WHERE id = '.$_GET['delete'];
       $query.= ';';
@@ -132,5 +132,5 @@
 
   $query = 'SELECT id,username,status,mail_address';
-  $query.= ' FROM '.PREFIX_TABLE.'users';
+  $query.= ' FROM '.USERS_TABLE;
   $query.= ' ORDER BY status ASC, username ASC';
   $query.= ';';
@@ -234,5 +234,5 @@
     $mails = array();
     $query = 'SELECT id,mail_address';
-    $query.= ' FROM '.PREFIX_TABLE.'users';
+    $query.= ' FROM '.USERS_TABLE;
     $query.= ';';
     $result = mysql_query( $query );
Index: /trunk/admin/user_modify.php
===================================================================
--- /trunk/admin/user_modify.php	(revision 363)
+++ /trunk/admin/user_modify.php	(revision 364)
@@ -42,5 +42,5 @@
 $query = 'select';
 $query.= ' username,status,mail_address';
-$query.= ' from '.PREFIX_TABLE.'users';
+$query.= ' from '.USERS_TABLE;
 $query.= ' where id = '.$_GET['user_id'];
 $query.= ';';
Index: /trunk/category.php
===================================================================
--- /trunk/category.php	(revision 363)
+++ /trunk/category.php	(revision 364)
@@ -27,6 +27,6 @@
 
 //--------------------------------------------------------------------- include
-$phpwg_root_path = './';
-include_once( $phpwg_root_path.'include/common.inc.php' );
+define('PHPWG_ROOT_PATH','./');
+include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
 //---------------------------------------------------------------------- logout
 if ( isset( $_GET['act'] )
@@ -190,5 +190,5 @@
 }
 
-// favorites management
+// authentification mode management
 if ( !$user['is_the_guest'] )
 {
@@ -199,4 +199,5 @@
   $row = mysql_fetch_array( $result );
   $template->assign_block_vars('favorites', array ('NB_FAV'=>$row['count']) );
+  $template->assign_block_vars('username', array());
 }
 //--------------------------------------------------------------------- summary
Index: /trunk/comments.php
===================================================================
--- /trunk/comments.php	(revision 363)
+++ /trunk/comments.php	(revision 364)
@@ -27,6 +27,6 @@
 
 //----------------------------------------------------------- include
-$phpwg_root_path = './';
-include_once( $phpwg_root_path.'include/common.inc.php' );
+define('PHPWG_ROOT_PATH','./');
+include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
 
 //--------------------------------------------------- number of days to display
Index: /trunk/identification.php
===================================================================
--- /trunk/identification.php	(revision 363)
+++ /trunk/identification.php	(revision 364)
@@ -27,6 +27,6 @@
 
 //----------------------------------------------------------- include
-$phpwg_root_path = './';
-include_once( $phpwg_root_path.'include/common.inc.php' );
+define('PHPWG_ROOT_PATH','./');
+include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
 
 //-------------------------------------------------------------- identification
Index: /trunk/include/common.inc.php
===================================================================
--- /trunk/include/common.inc.php	(revision 363)
+++ /trunk/include/common.inc.php	(revision 364)
@@ -25,7 +25,9 @@
 // | USA.                                                                  |
 // +-----------------------------------------------------------------------+
-
-// determine the initial instant to indicate the generation time of this
-// page
+if( !defined("PHPWG_ROOT_PATH") )
+{
+	die ("Hacking attempt!");
+}
+// determine the initial instant to indicate the generation time of this page
 $t1 = explode( ' ', microtime() );
 $t2 = explode( '.', $t1[0] );
@@ -110,4 +112,6 @@
 $lang = array();
 
+
+include(PHPWG_ROOT_PATH .'config.php');
 if( !defined("PHPWG_INSTALLED") )
 {
@@ -116,9 +120,10 @@
 }
 
-include( $phpwg_root_path.'include/constants.php' );
-include( $phpwg_root_path.'include/functions.inc.php' );
-include( $phpwg_root_path.'include/template.php' );
-include( $phpwg_root_path.'include/vtemplate.class.php' );
-include( $phpwg_root_path.'include/config.inc.php' );
+
+include(PHPWG_ROOT_PATH . 'include/constants.php');
+include(PHPWG_ROOT_PATH . 'include/functions.inc.php');
+include(PHPWG_ROOT_PATH . 'include/template.php');
+include(PHPWG_ROOT_PATH . 'include/vtemplate.class.php');
+include(PHPWG_ROOT_PATH . 'include/config.inc.php');
 
 //
@@ -198,5 +203,5 @@
 //---------------
 
-include($phpwg_root_path . 'include/user.inc.php');
+include(PHPWG_ROOT_PATH . 'include/user.inc.php');
 
 // displaying the username in the language of the connected user, instead of
Index: /trunk/include/config.inc.php
===================================================================
--- /trunk/include/config.inc.php	(revision 363)
+++ /trunk/include/config.inc.php	(revision 364)
@@ -55,5 +55,5 @@
 $conf['max_LOV_categories'] = 50;
 
-$conf['default_lang'] = 'francais';
+$conf['default_lang'] = 'fr_FR';
 $conf['default_style'] = 'default';
 
Index: /trunk/include/functions.inc.php
===================================================================
--- /trunk/include/functions.inc.php	(revision 363)
+++ /trunk/include/functions.inc.php	(revision 364)
@@ -261,4 +261,5 @@
 function get_languages( $rep_language )
 {
+  global $lang;
   $languages = array();
   $i = 0;
@@ -267,7 +268,7 @@
     while ( $file = readdir ( $opendir ) )
     {
-      if ( is_dir ( $rep_language.$file )&& !substr_count($file,'.') )
+      if ( is_dir ( $rep_language.$file )&& !substr_count($file,'.') && isset($lang['lang'][$file]))
       {
-        $languages[$i++] =$file;
+        $languages[$i++] =$lang['lang'][$file];
       }
     }
@@ -388,5 +389,5 @@
   // retrieving all administrators
   $query = 'SELECT username,mail_address,language';
-  $query.= ' FROM '.PREFIX_TABLE.'users';
+  $query.= ' FROM '.USERS_TABLE;
   $query.= " WHERE status = 'admin'";
   $query.= ' AND mail_address IS NOT NULL';
@@ -461,56 +462,3 @@
 }
 
-//
-// Initialise user settings on page load
-function init_userprefs($userdata)
-{
-	global $conf, $template, $lang, $phpwg_root_path;
-	
-	$style = $conf['default_style'];
-	if ( !$userdata['is_the_guest'] )
-	{
-		if ( !empty($userdata['language']))
-		{
-			$conf['default_lang'] = $userdata['language'];
-		}
-		if ( !empty($userdata['template']))
-		{
-			$style = $userdata['template'];
-		}
-	}
-
-	if ( !file_exists(@realpath($phpwg_root_path . 'language/' . $conf['default_lang'] . '/lang_main.php')) )
-	{
-		$conf['default_lang'] = 'english';
-	}
-	
-	include_once($phpwg_root_path . 'language/' . $conf['default_lang'] . '/lang_main.php');
-	$template= setup_style($style);
-
-	return;
-}
-
-function setup_style($style)
-{
-	global $phpwg_root_path;
-
-	$template_path = 'template/' ;
-	$template_name = $style ;
-
-	$template = new Template($phpwg_root_path . $template_path . $template_name);
-	return $template;
-}
-
-function encode_ip($dotquad_ip)
-{
-	$ip_sep = explode('.', $dotquad_ip);
-	return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]);
-}
-
-function decode_ip($int_ip)
-{
-	$hexipbang = explode('.', chunk_split($int_ip, 2, '.'));
-	return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]);
-}
-
 ?>
Index: /trunk/include/functions_session.inc.php
===================================================================
--- /trunk/include/functions_session.inc.php	(revision 363)
+++ /trunk/include/functions_session.inc.php	(revision 364)
@@ -76,5 +76,5 @@
   // 2. retrieving id of the username given in parameter
   $query = 'select id';
-  $query.= ' from '.PREFIX_TABLE.'users';
+  $query.= ' from '.USERS_TABLE;
   $query.= " where username = '".$username."';";
   $row = mysql_fetch_array( mysql_query( $query ) );
Index: /trunk/include/functions_user.inc.php
===================================================================
--- /trunk/include/functions_user.inc.php	(revision 363)
+++ /trunk/include/functions_user.inc.php	(revision 364)
@@ -67,5 +67,5 @@
   {
     $query = 'SELECT id';
-    $query.= ' FROM '.PREFIX_TABLE.'users';
+    $query.= ' FROM '.USERS_TABLE;
     $query.= " WHERE username = '".$login."'";
     $query.= ';';
@@ -93,10 +93,10 @@
       $query.= $infos[$i];
     }
-    $query.= ' FROM '.PREFIX_TABLE.'users';
+    $query.= ' FROM '.USERS_TABLE;
     $query.= " WHERE username = 'guest'";
     $query.= ';';
     $row = mysql_fetch_array( mysql_query( $query ) );
     // 2. adding new user
-    $query = 'INSERT INTO '.PREFIX_TABLE.'users';
+    $query = 'INSERT INTO '.USERS_TABLE;
     $query.= ' (';
     $query.= ' username,password,mail_address,status';
@@ -120,5 +120,5 @@
     // 3. retrieving the id of the newly created user
     $query = 'SELECT id';
-    $query.= ' FROM '.PREFIX_TABLE.'users';
+    $query.= ' FROM '.USERS_TABLE;
     $query.= " WHERE username = '".$login."';";
     $row = mysql_fetch_array( mysql_query( $query ) );
@@ -189,5 +189,5 @@
   if ( sizeof( $error ) == 0 )
   {
-    $query = 'UPDATE '.PREFIX_TABLE.'users';
+    $query = 'UPDATE '.USERS_TABLE;
     $query.= " SET status = '".$status."'";
     if ( $use_new_password )
@@ -225,3 +225,68 @@
   }
 }
+
+//
+// Initialise user settings on page load
+function init_userprefs($userdata)
+{
+  global $conf, $template, $lang, $lang_mapping;
+  $style = $conf['default_style'];
+  if ( !$userdata['is_the_guest'] )
+  {
+    if ( !empty($userdata['language']))
+    {
+      $conf['default_lang'] = $userdata['language'];
+    }
+    if ( !empty($userdata['template']))
+    {
+      $style = $userdata['template'];
+    }
+  }
+
+  if ( !file_exists(@realpath(PHPWG_ROOT_PATH . 'language/' . $conf['default_lang'] . '/common.lang.php')) )
+  {
+    $conf['default_lang'] = 'en_EN';
+  }
+  include_once(PHPWG_ROOT_PATH . 'language/' . $conf['default_lang'] . '/common.lang.php');
+  
+  if ( !file_exists(@realpath(PHPWG_ROOT_PATH . 'language/' . $conf['default_lang'] . '/lang.lang.php')) )
+  {
+    $conf['default_lang'] = 'en_EN';
+  }
+  include_once(PHPWG_ROOT_PATH . 'language/' . $conf['default_lang'] . '/lang.lang.php');
+  
+  if ($userdata['status'] == 'admin')
+  {
+    $admin_lang = $userdata['language'];
+    if ( !file_exists(@realpath(PHPWG_ROOT_PATH . 'language/' . $conf['default_lang'] . '/admin.lang.php')) )
+    {
+      $admin_lang = 'en_EN';
+    }
+	include_once(PHPWG_ROOT_PATH . 'language/' . $admin_lang . '/admin.lang.php');
+  }
+
+  $template= setup_style($style);
+  return;
+}
+
+function setup_style($style)
+{
+	$template_path = 'template/' ;
+	$template_name = $style ;
+
+	$template = new Template(PHPWG_ROOT_PATH . $template_path . $template_name);
+	return $template;
+}
+
+function encode_ip($dotquad_ip)
+{
+	$ip_sep = explode('.', $dotquad_ip);
+	return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]);
+}
+
+function decode_ip($int_ip)
+{
+	$hexipbang = explode('.', chunk_split($int_ip, 2, '.'));
+	return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]);
+}
 ?>
Index: /trunk/index.php
===================================================================
--- /trunk/index.php	(revision 363)
+++ /trunk/index.php	(revision 364)
@@ -27,6 +27,6 @@
 
 //----------------------------------------------------------- include
-$phpwg_root_path = './';
-include_once( $phpwg_root_path.'include/common.inc.php' );
+define('PHPWG_ROOT_PATH','./');
+include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
 if ( $conf['access'] == 'restricted' )
 {
Index: /trunk/language/en_UK.iso-8859-1/admin.lang.php
===================================================================
--- /trunk/language/en_UK.iso-8859-1/admin.lang.php	(revision 364)
+++ /trunk/language/en_UK.iso-8859-1/admin.lang.php	(revision 364)
@@ -0,0 +1,308 @@
+<?php
+// +-----------------------------------------------------------------------+
+// |                           en_EN/common.lang.php                           |
+// +-----------------------------------------------------------------------+
+// | application   : PhpWebGallery <http://phpwebgallery.net>              |
+// | branch        : 1.4                                                   |
+// +-----------------------------------------------------------------------+
+// | file          : $RCSfile$
+// | last update   : $Date$
+// | last modifier : $Author$
+// | revision      : $Revision$
+// +-----------------------------------------------------------------------+
+// | 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['title_liste_users'] = 'Users list';
+$lang['title_history'] = 'History';
+$lang['title_update'] = 'Database update';
+$lang['title_configuration'] = 'PhpWebGallery configuration';
+$lang['title_instructions'] = 'Instructions';
+$lang['title_categories'] = 'Categories management';
+$lang['title_edit_cat'] = 'Edit a category';
+$lang['title_info_images'] = 'Modify category\'s image information';
+$lang['title_thumbnails'] = 'Thumbnail creation';
+$lang['title_thumbnails_2'] = 'for';
+$lang['title_default'] = 'PhpWebGallery administration';
+$lang['menu_title'] = 'Administration';
+$lang['menu_config'] = 'Configuration';
+$lang['menu_users'] = 'Users';
+$lang['menu_add_user'] = 'add';
+$lang['menu_list_user'] = 'list';
+$lang['menu_categories'] = 'Categories';
+$lang['menu_update'] = 'Database update';
+$lang['menu_thumbnails'] = 'Thumbnails';
+$lang['menu_history'] = 'History';
+$lang['menu_instructions'] = 'Instructions';
+$lang['menu_back'] = 'Back to galleries';
+$lang['title_waiting'] = 'Pictures waiting for validation';
+$lang['menu_waiting'] = 'Waiting';
+$lang['default_message'] = 'PhpWebGallery administration panel';
+$lang['conf_err_prefixe'] = 'thumbnail\'s prefix mustn\'t contain any accentued character';
+$lang['conf_err_mail'] = 'e-mail address refused, it must be like name@server.com';
+$lang['conf_err_sid_size'] = 'the session identifier size must be an integer value between 4 and 50';
+$lang['conf_err_sid_time'] = 'the session time must be an integer value between 5 and 60';
+$lang['conf_err_max_user_listbox'] = 'the max user listbox number must be an integer value between 0 and 255';
+$lang['conf_confirmation'] = 'Information data registered in database';
+$lang['conf_general_title'] = 'Main configuration';
+$lang['conf_general_webmaster'] = 'webmaster login';
+$lang['conf_general_webmaster_info'] = 'It will be shown to the visitors. It is necessary for website administration';
+$lang['conf_general_mail'] = 'webmaster mail adress';
+$lang['conf_general_mail_info'] = 'Visitors will be able to contact by this mail';
+$lang['conf_general_prefix'] = 'thumbnail prefix';
+$lang['conf_general_prefix_info'] = 'Thumbnails use this prefix. Do not fill if your not sure.';
+$lang['conf_general_access'] = 'access type';
+$lang['conf_general_access_1'] = 'free';
+$lang['conf_general_access_2'] = 'restricted';
+$lang['conf_general_access_info'] = '- free : anyone can enter the site, any visitor can create an account in order to customize the appareance of the website<br />- restricted : the webmaster create accounts. Only registered users can enter the site';
+$lang['conf_general_max_user_listbox'] = 'max listbox users number';
+$lang['conf_general_max_user_listbox_info'] = '- this is the number maximum of users for which PhpWebGallery display a listbox instead of a simple text box on the identification page<br />- enter a number between 0 and 255, 0 means that you want to display the listbox';
+$lang['conf_comments'] = 'users comments';
+$lang['conf_comments_title'] = 'Configuration of '.$lang['conf_comments'];
+$lang['conf_comments_show_comments'] = $lang['conf_comments'];
+$lang['conf_comments_show_comments_info'] = 'display the users comments under each picture ?';
+$lang['conf_comments_comments_number'] = 'number of comments per page';
+$lang['conf_comments_comments_number_info'] = 'number of comments to display on each page. This number is unlimited for a picture. Enter a number between 5 and 50.';
+$lang['conf_err_comment_number'] = 'The number of comments a page must be between 5 and 50 included.';
+$lang['conf_remote_site_delete_info'] = 'Deleting a remote server will delete all the image and the categories in relation with this server.';
+$lang['conf_upload_title'] = 'Configuration of the users upload';
+$lang['conf_upload_available'] = 'authorized the upload of pictures';
+$lang['conf_upload_maxfilesize'] = 'maximum filesize';
+$lang['conf_upload_maxfilesize_info'] = 'Maximum filesize for the uploaded pictures. Must be a number between 10 and 1000 KB.';
+$lang['conf_err_upload_maxfilesize'] = 'Maximum filesize for the uploaded pictures must be a number between 10 and 1000 KB.';
+$lang['conf_upload_maxwidth'] = 'maximum width';
+$lang['conf_upload_maxwidth_info'] = 'Maximum width authorized for the uploaded images. Must be a number superior to 10 pixels';
+$lang['conf_err_upload_maxwidth'] = 'maximum width authorized for the uploaded images must be a number superior to 10 pixels.';
+$lang['conf_upload_maxheight'] = 'maximum height';
+$lang['conf_upload_maxheight_info'] = 'Maximum height authorized for the uploaded images. Must be a number superior to 10 pixels';
+$lang['conf_err_upload_maxwidth'] = 'maximum height authorized for the uploaded images must be a number superior to 10 pixels.';
+$lang['conf_upload_maxwidth_thumbnail'] = 'thumbnails maximum width';
+$lang['conf_upload_maxwidth_thumbnail_info'] = 'Maximum width authorized for the uploaded thumbnails. Must be a number superior to 10 pixels';
+$lang['conf_err_upload_maxwidth_thumbnail'] = 'Maximum width authorized for the uploaded thumbnails must be a number superior to 10 pixels.';
+$lang['conf_upload_maxheight_thumbnail'] = 'thumbnails maximum height';
+$lang['conf_upload_maxheight_thumbnail_info'] = 'Maximum height authorized for the uploaded thumbnails. Must be a number superior to 10 pixels';
+$lang['conf_err_upload_maxheight_thumbnail'] = 'Maximum height authorized for the uploaded thumbnails must be a number superior to 10 pixels.';
+$lang['conf_default_title'] = 'Default display properties for unregistered visitors and new accounts';
+$lang['conf_default_language_info'] = 'default language';
+$lang['conf_default_theme_info'] = 'default theme';
+$lang['conf_session_title'] = 'Sessions configuration';
+$lang['conf_session_size'] = 'identifier size';
+$lang['conf_session_size_info'] = '- the longer your identifier is, the more secure your site is<br />- enter a number between 4 and 50';
+$lang['conf_session_time'] = 'validity period';
+$lang['conf_session_time_info'] = '- the shorter the validity period is, the more secure your site is<br />- enter a number between 5 and 60, in minutes';
+$lang['conf_session_key'] = 'keyword';
+$lang['conf_session_key_info'] = '- the session keyword improve the encoding of the session identifier<br />- enter any sentence shorter than 255 caracters';
+$lang['conf_session_delete'] = 'delete out-of-date sessions';
+$lang['conf_session_delete_info'] = 'it is recommanded to empty the database table of session, because out-of-date sessions remains in the database (but it doesn\'t make any security trouble)';
+$lang['user_err_modify'] = 'This user can\'t be modified or deleted';
+$lang['user_err_unknown'] = 'This user doesn\'t exist in the database';
+$lang['adduser_info_message'] = 'Informations registered in the database for user ';
+$lang['adduser_info_password_updated'] = '(password updated)';
+$lang['adduser_info_back'] = 'back to the users list';
+$lang['adduser_fill_form'] = 'Please fill the following form';
+$lang['adduser_unmodify'] = 'unmodifiable';
+$lang['adduser_status'] = 'status';
+$lang['adduser_status_admin'] = 'admin';
+$lang['adduser_status_guest'] = 'guest';
+$lang['permuser_info_message'] = 'Permissions registered';
+$lang['permuser_title'] = 'Restrictions for user';
+$lang['permuser_warning'] = 'Warning : a "<span style="font-weight:bold;">forbidden access</span>" to the root of a category prevent from accessing the whole category';
+$lang['permuser_authorized'] = 'authorized';
+$lang['permuser_forbidden'] = 'forbidden';
+$lang['permuser_parent_forbidden'] = 'parent category forbidden';
+$lang['listuser_confirm'] = 'Do you really want to delete this user';
+$lang['listuser_info_deletion'] = 'was removed from database';
+$lang['listuser_user_group'] = 'Users group';
+$lang['listuser_modify'] = 'modify';
+$lang['listuser_modify_hint'] = 'modify informations of';
+$lang['listuser_permission'] = 'permissions';
+$lang['listuser_permission_hint'] = 'modify permissions of';
+$lang['listuser_delete'] = 'delete';
+$lang['listuser_delete_hint'] = 'delete user';
+$lang['listuser_button_all'] = 'all';
+$lang['listuser_button_invert'] = 'invert';
+$lang['listuser_button_create_address'] = 'create mail address';
+$lang['cat_invisible'] = 'invisible';
+$lang['cat_edit'] = 'Edit';
+$lang['cat_up'] = 'Move up';
+$lang['cat_down'] = 'Move down';
+$lang['cat_image_info'] = 'Images info';
+$lang['cat_total'] = 'total';
+$lang['editcat_confirm'] = 'Information registered in the database';
+$lang['editcat_back'] = 'categories';
+$lang['editcat_title1'] = 'Options for the';
+$lang['editcat_name'] = 'Name';
+$lang['editcat_comment'] = 'Comment';
+$lang['editcat_status'] = 'Status';
+$lang['infoimage_general'] = 'General options for the category';
+$lang['infoimage_useforall'] = 'use for all pictures ?';
+$lang['infoimage_creation_date'] = 'creation date';
+$lang['infoimage_detailed'] = 'Option for each picture';
+$lang['infoimage_title'] = 'title';
+$lang['infoimage_comment'] = 'comment';
+$lang['update_missing_tn'] = 'the thumbnail is missing for';
+$lang['update_disappeared_tn'] = 'the thumbnail disapeared';
+$lang['update_disappeared'] = 'doesn\'t exist';
+$lang['update_part_deletion'] = 'Deletion of images that have no thumbnail or that doesn\'t exist';
+$lang['update_deletion_conclusion'] = 'pictures removed from database';
+$lang['update_part_research'] = 'Search for new images in the directories';
+$lang['update_research_added'] = 'added';
+$lang['update_research_tn_ext'] = 'thumbnail in';
+$lang['update_research_conclusion'] = 'pictures added to the database';
+$lang['update_default_title'] = 'Choose an option';
+$lang['update_only_cat'] = 'update categories, not pictures';
+$lang['update_all'] = 'update all';
+$lang['tn_width'] = 'width';
+$lang['tn_height'] = 'height';
+$lang['tn_no_support'] = 'Picture unreachable or no support';
+$lang['tn_format'] = 'for the file format';
+$lang['tn_thisformat'] = 'for this file format';
+$lang['tn_err_width'] = 'width must be a number superior to';
+$lang['tn_err_height'] = 'height must be a number superior to';
+$lang['tn_results_title'] = 'Results of miniaturization';
+$lang['tn_picture'] = 'picture';
+$lang['tn_results_gen_time'] = 'generated in';
+$lang['tn_stats'] = 'General statistics';
+$lang['tn_stats_nb'] = 'number of miniaturized pictures';
+$lang['tn_stats_total'] = 'total time';
+$lang['tn_stats_max'] = 'max time';
+$lang['tn_stats_min'] = 'min time';
+$lang['tn_stats_mean'] = 'average time';
+$lang['tn_err'] = 'You made mistakes';
+$lang['tn_params_title'] = 'Miniaturization parameters';
+$lang['tn_params_GD'] = 'GD version';
+$lang['tn_params_GD_info'] = '- GD is the picture manipulating library for PHP<br />-choose the version installed on your server. If you choose the wrong, you\'ll just have errors messages, come back with your browser and choose the other version. If no version works, it means your server doesn\'t support GD.';
+$lang['tn_params_width_info'] = 'maximum width that thumbnails can take';
+$lang['tn_params_height_info'] = 'maximum height that thumbnails can take';
+$lang['tn_params_create'] = 'create';
+$lang['tn_params_create_info'] = 'Do not try to miniaturize too many pictures in the same time.<br />Indeed, miniaturization uses a lot of CPU. If you installed PhpWebGallery on a free provider, a too high CPU load can sometime lead to the deletion of your website.';
+$lang['tn_params_format'] = 'file format';
+$lang['tn_params_format_info'] = 'only jpeg file format is supported for thumbnail creation';
+$lang['tn_alone_title'] = 'pictures without thumbnail (jpeg and png only)';
+$lang['tn_dirs_title'] = 'Directories list';
+$lang['tn_dirs_alone'] = 'pictures without thumbnail';
+$lang['help_images_title'] = 'Adding pictures';
+$lang['help_images_intro'] = 'How to place pictures in your directories';
+$lang['help_images'][0] = 'in the directory "galleries", create directories that will represent your categories';
+$lang['help_images'][1] = 'in each directory, you can create as many sub-level directories as you wish.';
+$lang['help_images'][2] = 'you can create as many categories and sub-categories for each category as you wish';
+$lang['help_images'][3] = 'picture files must have jpeg format (extension jpg or JPG), gif format (extension gif or GIF) or png format (extension png or PNG).';
+$lang['help_images'][4] = 'try not to use blank space " " or hyphen "-" in picture files, I advise you to use underscore "_" character which is managed by PhpWebGallery and will provide better results';
+$lang['help_thumbnails_title'] = 'Thumbnails';
+$lang['help_thumbnails'][0] = 'in each directory containing picture to display on your site, there is a sub-directory nammed "thumbnail", if it doesn\'t exist, create it to place your thumbnails into it.';
+$lang['help_thumbnails'][1] = 'thumbnails don\'t need to have the same extension as their associated picture (a picture with .jpg extension can have a thumbnail in .GIF extention for instance).';
+$lang['help_thumbnails'][2] = 'the thumbnail associated to a picture must be prefixed with the prefix given on the configuration page(image.jpg -> TN_image.GIF for instance).';
+$lang['help_thumbnails'][3] = 'I advise you to use the module for windows downloadable on the presentation site of PhpWebGallery for thumbnails management.';
+$lang['help_thumbnails'][4] = 'you can use the thumbnail creation page integrated in PhpWebGallery, but I don\'t advice you so, because thumbnail quality may be poor and it uses a high CPU load which can be a problem if you use free web hosting.';
+$lang['help_thumbnails'][5] = 'if you choose to use your hosting provider to create thumbnails, you must give 775 rights on "galleries" folder and all its sub-folders.';
+$lang['help_database_title'] = 'Updating database';
+$lang['help_database'][0] = 'once pictures files and thumbnails correctly placed in the directories, clic on "database update" in the menu of the administration panel.';
+$lang['help_infos_title'] = 'Miscellanous informations';
+$lang['help_infos'][1] = 'As soon as you created your gallery, go in the user list and modify permissions for user "visiteur". Indeed, every new registered users will have by default the same permissions as "visiteur" user.';
+$lang['help_remote_title'] = 'Remote site';
+$lang['help_remote'][0] = 'PhpWebGallery offers the possibility to use several servers to store the images which will compose your gallery. It can be useful if your gallery is installed on one limited space and that you have a big quantity of images to be shown. Please , follow this procedure : ';
+$lang['help_remote'][1] = '1. edit file "create_listing_file.php" (you will find it in the directory "admin"), by modifying the line "$prefix_thumbnail = "TN-";" if the prefix for your thumbnails is not "TN-".';
+$lang['help_remote'][2] = '2. place file "create_listing_file.php" modified on your distant website, in the root directory of your directories of images  (as the directory "galleries" of this website) by ftp.';
+$lang['help_remote'][3] = '3. launch script using the url http://domaineDistant/repGalerie/create_listing_file.php, a file listing.xml has just been created.';
+$lang['help_remote'][4] = '4. get back file listing.xml from your distant website to place it in directory "admin" of this website.';
+$lang['help_remote'][5] = '5. please , launch an update of the data of images by the interface of administration, once the listing.xml used file, kill it from the directory "admin".';
+$lang['help_remote'][6] = 'You can update the contents of a distant website by redoing the described manipulation. You can also kill a distant website by choosing the option in the configuration section of the administration panel.';
+$lang['help_upload_title'] = 'Added images by users';
+$lang['help_upload'][0] = 'PhpWebGallery offers the possibility for users to upload images. in order to do it :';
+$lang['help_upload'][1] = '1. authorize the option in the configuration zone of the administration panel';
+$lang['help_upload'][2] = '2. authorize the rights in writing in the images directories';
+$lang['remote_site'] = 'Remote site';
+$lang['title_add'] = 'Add a user';
+$lang['title_modify'] = 'Modify a user';
+$lang['title_groups'] = 'Groups management';
+$lang['title_user_perm'] = 'Modify permission for user';
+$lang['title_cat_perm'] = 'Modify permissions for category';
+$lang['title_group_perm'] = 'Modify permissions for group';
+$lang['title_picmod'] = 'Modify informations about a picture';
+$lang['menu_groups'] = 'Groups';
+$lang['menu_comments'] = 'Comments';
+$lang['conf_general_log'] = 'history';
+$lang['conf_general_log_info'] = 'Keep an history of visits on your website ? Visits will be shown in the history section of the administration panel';
+$lang['conf_general_mail_notification'] = 'Mail notification';
+$lang['conf_general_mail_notification_info'] = 'Automated mail notification for adminsitrators (and only for them) when a user add a comment or upload a picture.';
+$lang['conf_comments_validation'] = 'validation';
+$lang['conf_comments_validation_info'] = 'An administrator validate users posted comments before the becom visible on the site';
+$lang['conf_comments_forall'] = 'for all ?';
+$lang['conf_comments_forall_info'] = 'Even guest not registered can post comments';
+$lang['conf_default_nb_image_per_row_info'] = 'number of pictures for each row by default';
+$lang['conf_default_nb_row_per_page_info'] = 'number of rows by page by default';
+$lang['conf_default_short_period_info'] = 'By days. Period within a picture is shown with a red mark. The short period must be superior to 1 day.';
+$lang['conf_default_long_period_info'] = 'By days. Period within a picture is shown with a green mark. The long period must be superior to the short period.';
+$lang['conf_default_expand_info'] = 'expand all categories by default in the menu ?';
+$lang['conf_default_show_nb_comments_info'] = 'show the number of comments for each picture on the thumbnails page';
+$lang['conf_default_maxwidth_info'] = 'Maximum width for display pictures : picture will have a new width only for display, picture files won\'t be changed. Let empty if you don\'t wish to have a limit.';
+$lang['conf_default_maxheight_info'] = 'Just as the maximum width, but for the height';
+$lang['conf_session_cookie'] = 'authorize cookies';
+$lang['conf_session_cookie_info'] = 'users won\'t have to log on each visit any more. Less secure.';
+$lang['adduser_associate'] = 'Associate to group';
+$lang['group_add'] = 'Add a group';
+$lang['group_add_error1'] = 'The name of a group must not contain " or \'';
+$lang['group_add_error2'] = 'This name is already used by another group';
+$lang['group_confirm'] = 'Are you sure you want to remove this group ?';
+$lang['group_list_title'] = 'List of existing groups';
+$lang['group_err_unknown'] = 'This group doesn\'t exist in the database';
+$lang['cat_permission'] = 'permissions';
+$lang['cat_update'] = 'update';
+$lang['cat_add'] = 'Add a virtual category';
+$lang['cat_parent'] = 'parent category';
+$lang['cat_error_name'] = 'The name of a category mustn\'t be empty';
+$lang['cat_virtual'] = 'virtual';
+$lang['cat_first'] = 'Move first';
+$lang['cat_last'] = 'Move last';
+$lang['editcat_visible_info'] = '(invisible but for administrators)';
+$lang['editcat_visible'] = 'Visible';
+$lang['editcat_uploadable'] = 'Upload available';
+$lang['infoimage_keyword_separation'] = '(separate with coma ",")';
+$lang['infoimage_addtoall'] = 'add to all';
+$lang['infoimage_removefromall'] = 'remove from all';
+$lang['infoimage_associate'] = 'Associate to the category';
+$lang['update_wrong_dirname'] = 'The name of directories and files must be composed of letters, figures, "-", "_" or "."';
+$lang['stats_pages_seen'] = 'pages seen';
+$lang['stats_visitors'] = 'guests';
+$lang['stats_empty'] = 'empty history';
+$lang['stats_pages_seen_graph_title'] = 'Number of pages seen by day';
+$lang['stats_visitors_graph_title'] = 'Number of guests by day';
+$lang['comments_last_title'] = 'Last comments';
+$lang['comments_non_validated_title'] = 'Comments waiting for validation';
+$lang['help_database'][1] = 'In order to avoid the update of too many pictures in a single update, I advise to start by updating only categories, then on the categories section of the administration panel, update each category thanks to the link "update"';
+$lang['help_upload'][3] = 'The category must have upload available itself for upload.';
+$lang['help_upload'][4] = 'Uploaded images by the users are not directly visible on the website, they must be validated by an administrator.  For that purpose, an administrator must go on the page "en attente" of the administration panel, to validate or to refuse the images proposed, then launch an update of the images data.';
+$lang['help_virtual_title'] = 'Links between pictures and categories and virtual categories';
+$lang['help_virtual'][0] = 'PhpWebGallery is able to dissociate categories where pictures are stored and categories where pictures are shown.';
+$lang['help_virtual'][1] = 'By default, pictures are shown only in their real categories : the ones corresponding to directories on the web server.';
+$lang['help_virtual'][2] = 'To link a picture to a category, you just have to make the association on the page of picture informations or on the informations of all pictures of a category.';
+$lang['help_virtual'][3] = 'Using this principle, it is possible to create virtual categories in PhpWebGallery : no real directory coresponds to this category. You just have to create this category on the section "categories" of the admin panel.';
+$lang['help_groups_title'] = 'Users Groups';
+$lang['help_groups'][0] = 'PhpWebGallery is able to manage groups of users. It can be very useful to have common permission access for private categories.';
+$lang['help_groups'][1] = '1. Create the group "family" on the section "Groups" of admin panel.';
+$lang['help_groups'][2] = '2. On the section "Users", edit on of them and associate him to the group "family".';
+$lang['help_groups'][3] = '3. By modifying the permissions for a category or for a group, you\'ll see that all categories accessible for a group are accessible for its members.';
+$lang['help_groups'][4] = 'A user can belong to several groups. The authorization is stronger than prohibition : if a user "jack" belongs to the group "family" and "friends", and that only group "family" can see category "Christmas 2003", "jack" will be able to see "Christmas 2003".';
+$lang['help_access_title'] = 'Access authorization';
+$lang['help_access'][0] = 'PhpWebGallery is able to forbid access to categories. Categories can be "public" or "private". In order to forbid access to a category :';
+$lang['help_access'][1] = '1. Modify category informations (from the "categories" section in tha admin panel) and make it "private".';
+$lang['help_access'][2] = '2. On the page of permissions (for a group or a user) the private category will be shown and you\'ll be able to authorize access or not.';
+$lang['help_infos'][2] = 'If you have any question, do not hesitate to take a look at the forum or ask a question there. The <a href="'.$conf['forum_url'].'" style="text-decoration:underline">forum</a> (message board) is available on the presentation site of PhpWebGallery.';
+$lang['step1_err_copy'] = 'Copy the text between hyphens and paste it into the file "include/mysql.inc.php"(Warning : mysql.inc.php must only contain what is in blue, no line return or space character)';
+$lang['permuser_only_private'] = 'Only private categories are shown';
+$lang['waiting_update'] = 'Validated pictures will be displayed only once pictures database updated';
+$lang['conf_upload_available_info'] = 'Authorizing the upload of pictures by users on the categories of the website (not on a remote server). This is general parameter, it is needed to authorize upload category by category, by default, no category is "uploadable".';
+$lang['cat_unknown_id'] = 'This category is unknown in the database';
+ ?>
Index: /trunk/language/en_UK.iso-8859-1/common.lang.php
===================================================================
--- /trunk/language/en_UK.iso-8859-1/common.lang.php	(revision 364)
+++ /trunk/language/en_UK.iso-8859-1/common.lang.php	(revision 364)
@@ -0,0 +1,236 @@
+<?php
+// +-----------------------------------------------------------------------+
+// |                           en_EN/common.lang.php                           |
+// +-----------------------------------------------------------------------+
+// | application   : PhpWebGallery <http://phpwebgallery.net>              |
+// | branch        : 1.4                                                   |
+// +-----------------------------------------------------------------------+
+// | file          : $RCSfile$
+// | last update   : $Date$
+// | last modifier : $Author$
+// | revision      : $Revision$
+// +-----------------------------------------------------------------------+
+// | 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['only_members'] = 'Only members can access this page';
+$lang['invalid_pwd'] = 'Invalid password!';
+$lang['access_forbiden'] = 'You are not authorized to access this page';
+$lang['submit'] = 'Submit';
+$lang['login'] = 'login';
+$lang['password'] = 'password';
+$lang['new'] = 'new';
+$lang['delete'] = 'delete';
+$lang['category'] = 'category';
+$lang['thumbnail'] = 'thumbnail';
+$lang['date'] = 'date';
+$lang['diapo_default_page_title'] = 'No category selected';
+$lang['thumbnails'] = 'Thumbnails';
+$lang['categories'] = 'Categories';
+$lang['hint_category'] = 'shows images at the root of this categry';
+$lang['total_images'] = 'total';
+$lang['title_menu'] = 'Menu';
+$lang['change_login'] = 'change login';
+$lang['login'] = 'login';
+$lang['hint_login'] = 'identification enables site\'s appareance customization';
+$lang['logout'] = 'logout';
+$lang['customize'] = 'customize';
+$lang['hint_customize'] = 'customize the appareance of the gallery';
+$lang['hint_search'] = 'search';
+$lang['search'] = 'search';
+$lang['favorite_cat'] = 'favorites';
+$lang['favorite_cat_hint'] = 'display your favorites';
+$lang['about'] = 'about';
+$lang['hint_about'] = 'more informations on PhpWebGallery...';
+$lang['admin'] = 'admin';
+$lang['hint_admin'] = 'available for administrators only';
+$lang['no_category'] = 'No category selected<br />please select it in the menu';
+$lang['page_number'] = 'page number';
+$lang['previous_page'] = 'Previous';
+$lang['next_page'] = 'Next';
+$lang['nb_image_category'] = 'number of images in this category';
+$lang['recent_image'] = 'image within the';
+$lang['days'] = 'days';
+$lang['send_mail'] = 'Any comment? Send me an e-mail';
+$lang['title_send_mail'] = 'A comment on your site';
+$lang['sub-cat'] = 'subcategories';
+$lang['images_available'] = 'images in this category';
+$lang['total'] = 'images';
+$lang['upload_picture'] = 'Upload a picture';
+$lang['registration_date'] = 'registered on';
+$lang['creation_date'] = 'created on';
+$lang['comment'] = 'comment';
+$lang['author'] = 'author';
+$lang['size'] = 'size';
+$lang['filesize'] = 'filesize';
+$lang['file'] = 'file';
+$lang['generation_time'] = 'Page generated in';
+$lang['favorites'] = 'Favorites';
+$lang['search_result'] = 'Search results';
+$lang['about_page_title'] = 'About PhpWebGallery';
+$lang['about_title'] = 'About...';
+$lang['about_message'] = '<div style="text-align:center;font-weigh:bold;">Information about PhpWebGallery</div>
+<ul>
+  <li>This website uses <a href="'.$conf['site_url'].'" style="text-decoration:underline">PhpWebGallery</a> release '.$conf['version'].'. PhpWebGallery is a web application giving you the possibility to create an online images gallery easily.</li>
+  <li>Technicaly, PhpWebGallery is fully developped with PHP (the elePHPant) with a MySQL database (the SQuirreL).</li>
+  <li>If you have any suggestions or comments, please visit <a href="'.$conf['site_url'].'" style="text-decoration:underline">PhpWebGallery</a> official site, and its dedicated <a href="'.$conf['forum_url'].'" style="text-decoration:underline">forum</a>.</li>
+</ul>';
+$lang['about_return'] = 'Back';
+$lang['ident_page_title'] = 'Identification';
+$lang['ident_title'] = 'Identification';
+$lang['ident_register'] = 'Register';
+$lang['ident_forgotten_password'] = 'Forget your password ?';
+$lang['ident_guest_visit'] = 'Go through the gallery as a visitor';
+$lang['customize_page_title'] = 'Customization';
+$lang['customize_title'] = 'Customization';
+$lang['customize_nb_image_per_row'] = 'number of images per row';
+$lang['customize_nb_row_per_page'] = 'number of rows per page';
+$lang['customize_language'] = 'language';
+$lang['maxwidth'] = 'maximum width of the pictures';
+$lang['maxheight'] = 'maximum height of the pictures';
+$lang['err_maxwidth'] = 'maximum width must be a number superior to 50';
+$lang['err_maxheight'] = 'maximum height must be a number superior to 50';
+$lang['previous_image'] = 'Previous';
+$lang['next_image'] = 'Next';
+$lang['back'] = 'Click on the image to go back to the thumbnails page';
+$lang['info_image_title'] = 'Image information';
+$lang['link_info_image'] = 'Modify information';
+$lang['true_size'] = 'Real size';
+$lang['comments_title'] = 'Comments from the users of the site';
+$lang['comments_del'] = 'delete this comment';
+$lang['comments_add'] = 'Add a comment';
+$lang['month'][1] = 'January';
+$lang['month'][2] = 'February';
+$lang['month'][3] = 'March';
+$lang['month'][4] = 'April';
+$lang['month'][5] = 'May';
+$lang['month'][6] = 'June';
+$lang['month'][7] = 'July';
+$lang['month'][8] = 'August';
+$lang['month'][9] = 'September';
+$lang['month'][10] = 'October';
+$lang['month'][11] = 'November';
+$lang['month'][12] = 'December';
+$lang['day'][0] = 'Sunday';
+$lang['day'][1] = 'Monday';
+$lang['day'][2] = 'Tuesday';
+$lang['day'][3] = 'Wednesday';
+$lang['day'][4] = 'Thursday';
+$lang['day'][5] = 'Friday';
+$lang['day'][6] = 'Saturday';
+$lang['add_favorites_alt'] = 'Add to favorites';
+$lang['add_favorites_hint'] = 'Add this picture to your favorites';
+$lang['del_favorites_alt'] = 'Delete from favorites';
+$lang['del_favorites_hint'] = 'Delete this picture from your favorites';
+$lang['register_page_title'] = 'Registration';
+$lang['register_title'] = 'Registration';
+$lang['reg_err_login1'] = 'Please, enter a login';
+$lang['reg_err_login2'] = 'login mustn\'t end with a space character';
+$lang['reg_err_login3'] = 'login mustn\'t start with a space character';
+$lang['reg_err_login4'] = 'login mustn\'t contain characters " and \'';
+$lang['reg_err_login5'] = 'this login is already used';
+$lang['reg_err_pass'] = 'please enter your password again';
+$lang['reg_confirm'] = 'confirm';
+$lang['reg_err_mail_address'] = 'mail address must be like xxx@yyy.eee (example : jack@altern.org)';
+$lang['search_title'] = 'Search';
+$lang['invalid_search'] = 'search must be done on 3 caracters or more';
+$lang['search_field_search'] = 'Search';
+$lang['search_return_main_page'] = 'Return to thumbnails page';
+$lang['upload_forbidden'] = 'You can\'t upload pictures in this category';
+$lang['upload_file_exists'] = 'A picture\'s name already used';
+$lang['upload_filenotfound'] = 'You must choose a picture fileformat for the image';
+$lang['upload_cannot_upload'] = 'can\'t upload the picture on the server';
+$lang['upload_title'] = 'Upload a picture';
+$lang['upload_advise'] = 'Choose an image to place in the category : ';
+$lang['upload_advise_thumbnail'] = 'Optional, but recommended : choose a thumbnail to associate to ';
+$lang['upload_advise_filesize'] = 'the filesize of the picture must not exceed : ';
+$lang['upload_advise_width'] = 'the width of the picture must not exceed : ';
+$lang['upload_advise_height'] = 'the height of the picture must not exceed : ';
+$lang['upload_advise_filetype'] = 'the picture must be to the fileformat jpg, gif or png';
+$lang['upload_err_username'] = 'the username must be given';
+$lang['upload_username'] = 'Username';
+$lang['upload_successful'] = 'Picture uploaded with success, an administrator will validate it as soon as possible';
+// new or modified in release 1.3
+$lang['charset'] = 'iso-8859-1';
+$lang['no'] = 'no';
+$lang['yes'] = 'yes';
+$lang['guest'] = 'guest';
+$lang['mail_address'] = 'mail address';
+$lang['public'] = 'public';
+$lang['private'] = 'private';
+$lang['add'] = 'add';
+$lang['dissociate'] = 'dissociate';
+$lang['mandatory'] = 'obligatory';
+$lang['err_date'] = 'wrong date';
+$lang['picture'] = 'picture';
+$lang['IP'] = 'IP';
+$lang['close'] = 'close';
+$lang['open'] = 'open';
+$lang['keywords'] = 'keywords';
+$lang['errors_title'] = 'Errors';
+$lang['infos_title'] = 'Informations';
+$lang['default'] = 'default';
+$lang['comments'] = 'comments';
+$lang['category_representative'] = 'representative';
+$lang['stats'] = 'statistics';
+$lang['most_visited_cat_hint'] = 'displays most visited pictures';
+$lang['most_visited_cat'] = 'most visited';
+$lang['best_rated_cat_hint'] = 'displays pictures best rated';
+$lang['best_rated_cat'] = 'best rated';
+$lang['recent_cat_hint'] = 'displays most recent pictures';
+$lang['recent_cat'] = 'most recent';
+$lang['recent_cat_title'] = 'Recent pictures';
+$lang['visited'] = 'visited';
+$lang['times'] = 'times';
+$lang['customize_theme'] = 'interface theme';
+$lang['customize_expand'] = 'expand all categories';
+$lang['customize_show_nb_comments'] = 'show number of comments';
+$lang['customize_short_period'] = 'short period';
+$lang['customize_long_period'] = 'long period';
+$lang['customize_template'] = 'template';
+$lang['err_periods'] = 'periods must be integer values';
+$lang['err_periods_2'] = 'periods must be superior to 0. The long period must be grater than the short period.';
+$lang['create_cookie'] = 'create a cookie';
+$lang['customize_day'] = 'day';
+$lang['customize_week'] = 'week';
+$lang['customize_month'] = 'month';
+$lang['customize_year'] = 'year';
+$lang['slideshow'] = 'slideshow';
+$lang['period_seconds'] = 'seconds per picture';
+$lang['slideshow_stop'] = 'stop the slideshow';
+$lang['comment_added'] = 'Your comment has been registered';
+$lang['comment_to_validate'] = 'An administrator must authorize your comment before it is visible.';
+$lang['comment_anti-flood'] = 'Anti-flood system : please wait for a moment before trying to post another comment';
+$lang['comment_user_exists'] = 'This login is already used by another user';
+$lang['invalid_search'] = 'Searched words must be grater than 3 characters and must not contain punctuation mark';
+$lang['search_mode_or'] = 'at least one word';
+$lang['search_mode_and'] = 'all the words';
+$lang['search_comments'] = 'separate different words with spaces';
+$lang['upload_name'] = 'Name of the picture';
+$lang['upload_author'] = 'Author (eg "Pierrick LE GALL")';
+$lang['upload_creation_date'] = 'Creation date (DD/MM/YYYY)';
+$lang['upload_comment'] = 'Comment';
+$lang['mail_hello'] = 'Hi,';
+$lang['mail_new_upload_subject'] = 'New picture on the website';
+$lang['mail_new_upload_content'] = 'A new picture has been uploaded on the gallery. It is waiting for your validation. Let\'s meet in the administration panel to authorize or refuse this picture.';
+$lang['mail_new_comment_subject'] = 'New comment on website';
+$lang['mail_new_comment_content'] = 'A new comment has been registered on the gallery. If you chose to validate each comment, you first have to validate this comment in the administration panel to make it visible in the gallery.'."\n\n".'You can see last comments in the administration panel';
+$lang['connected_user'] = 'connected user';
+$lang['title_comments'] = 'Users comments';
+$lang['stats_last_days'] = 'last days';
+$lang['hint_comments'] = 'See last users comments';
+$lang['menu_login'] = 'login';
+
+?>
Index: /trunk/language/en_UK.iso-8859-1/install.lang.php
===================================================================
--- /trunk/language/en_UK.iso-8859-1/install.lang.php	(revision 364)
+++ /trunk/language/en_UK.iso-8859-1/install.lang.php	(revision 364)
@@ -0,0 +1,65 @@
+<?php
+// +-----------------------------------------------------------------------+
+// |                           en_EN/install.lang.php                           |
+// +-----------------------------------------------------------------------+
+// | application   : PhpWebGallery <http://phpwebgallery.net>              |
+// | branch        : 1.4                                                   |
+// +-----------------------------------------------------------------------+
+// | file          : $RCSfile$
+// | last update   : $Date$
+// | last modifier : $Author$
+// | revision      : $Revision$
+// +-----------------------------------------------------------------------+
+// | 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['install_message'] = 'Message';
+$lang['step1_confirmation'] = 'Parameters are correct';
+$lang['step1_err_db'] = 'Connection to server succeed, but it was impossible to connect to database';
+$lang['step1_err_server'] = 'Can\'t connect to server';
+$lang['step1_err_copy_2'] = 'The next step of the installation is now possible';
+$lang['step1_err_copy_next'] = 'next step';
+$lang['step1_title'] = 'Step 1/2';
+$lang['step1_host'] = 'MySQL host';
+$lang['step1_host_info'] = 'localhost, sql.multimania.com, toto.freesurf.fr';
+$lang['step1_user'] = 'user';
+$lang['step1_user_info'] = 'user login given by your host provider';
+$lang['step1_pass'] = 'Password';
+$lang['step1_pass_info'] = 'user password given by your host provider';
+$lang['step1_database'] = 'Database name';
+$lang['step1_database_info'] = 'also given by your host provider';
+$lang['step1_prefix'] = 'Database table prefix';
+$lang['step1_prefix_info'] = 'database tables names will be prefixed with it (enables you to manage better your tables)';
+$lang['step2_err_login1'] = 'enter a login for webmaster';
+$lang['step2_err_login3'] = 'webmaster login can\'t contain characters \' or "';
+$lang['step2_err_pass'] = 'please enter your password again';
+$lang['step2_err_mail'] = $lang['conf_err_mail'];
+$lang['install_end_title'] = 'Installation finished';
+$lang['step2_title'] = 'Step 2/2';
+$lang['step2_pwd'] = 'webmaster password';
+$lang['step2_pwd_info'] = 'Keep it confidential, it enables you to access administration panel';
+$lang['step2_pwd_conf'] = 'confirm password';
+$lang['step2_pwd_conf_info'] = 'verification';
+$lang['install_help'] = 'Need help ? Ask your question on <a href="http://forum.phpwebgallery.net">PhpWebGallery message board</a>.';
+$lang['install_end_message'] = 'The configuration of PhpWebGallery is finished, here is the next step<br /><br />
+For security reason, please delete file "install.php"<br />
+Once this file deleted , follow this instructions :
+<ul>
+<li>go to the identification page : [ <a href="../identification.php">identification</a> ] and use the login/password given for webmaster</li>
+<li>this login will enable you to access to the administration panel and to the instructions in order to place pictures in your directories</li>
+</ul>';
+$lang['install_warning'] = 'The file "install.php" is still present. Please remove it from your server. It is not secure to keep it.';
+
+?>
Index: /trunk/language/en_UK.iso-8859-1/lang.lang.php
===================================================================
--- /trunk/language/en_UK.iso-8859-1/lang.lang.php	(revision 364)
+++ /trunk/language/en_UK.iso-8859-1/lang.lang.php	(revision 364)
@@ -0,0 +1,40 @@
+<?php
+// +-----------------------------------------------------------------------+
+// |                           index.lang.php                           |
+// +-----------------------------------------------------------------------+
+// | application   : PhpWebGallery <http://phpwebgallery.net>              |
+// | branch        : 1.4                                                   |
+// +-----------------------------------------------------------------------+
+// | file          : $RCSfile$
+// | last update   : $Date$
+// | last modifier : $Author$
+// | revision      : $Revision$
+// +-----------------------------------------------------------------------+
+// | 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['lang'] = array(
+  'fr_FR'=>'French',
+  'en_EN'=>'English',
+  'es_ES'=>'Spanish',
+  'de_DE'=>'German',
+  'ca'=>'Catalan',
+  'no'=>'Norsk',
+  'hu'=>'Hungarian',
+  'ja'=>'Japanese',
+  'sv'=>'Swedish'
+  );
+
+?>
Index: unk/language/english.php
===================================================================
--- /trunk/language/english.php	(revision 363)
+++ 	(revision )
@@ -1,560 +1,0 @@
-<?php
-// +-----------------------------------------------------------------------+
-// |                              english.php                              |
-// +-----------------------------------------------------------------------+
-// | application   : PhpWebGallery <http://phpwebgallery.net>              |
-// | branch        : BSF (Best So Far)                                     |
-// +-----------------------------------------------------------------------+
-// | file          : $RCSfile$
-// | last update   : $Date$
-// | last modifier : $Author$
-// | revision      : $Revision$
-// +-----------------------------------------------------------------------+
-// | 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['only_members'] = 'Only members can access this page';
-$lang['invalid_pwd'] = 'Invalid password!';
-$lang['access_forbiden'] = 'You are not authorized to access this page';
-$lang['submit'] = 'Submit';
-$lang['login'] = 'login';
-$lang['password'] = 'password';
-$lang['new'] = 'new';
-$lang['delete'] = 'delete';
-$lang['category'] = 'category';
-$lang['thumbnail'] = 'thumbnail';
-$lang['date'] = 'date';
-$lang['diapo_default_page_title'] = 'No category selected';
-$lang['thumbnails'] = 'Thumbnails';
-$lang['categories'] = 'Categories';
-$lang['hint_category'] = 'shows images at the root of this categry';
-$lang['total_images'] = 'total';
-$lang['title_menu'] = 'Menu';
-$lang['change_login'] = 'change login';
-$lang['login'] = 'login';
-$lang['hint_login'] = 'identification enables site\'s appareance customization';
-$lang['logout'] = 'logout';
-$lang['customize'] = 'customize';
-$lang['hint_customize'] = 'customize the appareance of the gallery';
-$lang['hint_search'] = 'search';
-$lang['search'] = 'search';
-$lang['favorite_cat'] = 'favorites';
-$lang['favorite_cat_hint'] = 'display your favorites';
-$lang['about'] = 'about';
-$lang['hint_about'] = 'more informations on PhpWebGallery...';
-$lang['admin'] = 'admin';
-$lang['hint_admin'] = 'available for administrators only';
-$lang['no_category'] = 'No category selected<br />please select it in the menu';
-$lang['page_number'] = 'page number';
-$lang['previous_page'] = 'Previous';
-$lang['next_page'] = 'Next';
-$lang['nb_image_category'] = 'number of images in this category';
-$lang['recent_image'] = 'image within the';
-$lang['days'] = 'days';
-$lang['send_mail'] = 'Any comment? Send me an e-mail';
-$lang['title_send_mail'] = 'A comment on your site';
-$lang['sub-cat'] = 'subcategories';
-$lang['images_available'] = 'images in this category';
-$lang['total'] = 'images';
-$lang['upload_picture'] = 'Upload a picture';
-$lang['registration_date'] = 'registered on';
-$lang['creation_date'] = 'created on';
-$lang['comment'] = 'comment';
-$lang['author'] = 'author';
-$lang['size'] = 'size';
-$lang['filesize'] = 'filesize';
-$lang['file'] = 'file';
-$lang['generation_time'] = 'Page generated in';
-$lang['favorites'] = 'Favorites';
-$lang['search_result'] = 'Search results';
-$lang['about_page_title'] = 'About PhpWebGallery';
-$lang['about_title'] = 'About...';
-$lang['about_message'] = '<div style="text-align:center;font-weigh:bold;">Information about PhpWebGallery</div>
-<ul>
-  <li>This website uses <a href="'.$conf['site_url'].'" style="text-decoration:underline">PhpWebGallery</a> release '.$conf['version'].'. PhpWebGallery is a web application giving you the possibility to create an online images gallery easily.</li>
-  <li>Technicaly, PhpWebGallery is fully developped with PHP (the elePHPant) with a MySQL database (the SQuirreL).</li>
-  <li>If you have any suggestions or comments, please visit <a href="'.$conf['site_url'].'" style="text-decoration:underline">PhpWebGallery</a> official site, and its dedicated <a href="'.$conf['forum_url'].'" style="text-decoration:underline">forum</a>.</li>
-</ul>';
-$lang['about_return'] = 'Back';
-$lang['ident_page_title'] = 'Identification';
-$lang['ident_title'] = 'Identification';
-$lang['ident_register'] = 'Register';
-$lang['ident_forgotten_password'] = 'Forget your password ?';
-$lang['ident_guest_visit'] = 'Go through the gallery as a visitor';
-$lang['customize_page_title'] = 'Customization';
-$lang['customize_title'] = 'Customization';
-$lang['customize_nb_image_per_row'] = 'number of images per row';
-$lang['customize_nb_row_per_page'] = 'number of rows per page';
-$lang['customize_language'] = 'language';
-$lang['maxwidth'] = 'maximum width of the pictures';
-$lang['maxheight'] = 'maximum height of the pictures';
-$lang['err_maxwidth'] = 'maximum width must be a number superior to 50';
-$lang['err_maxheight'] = 'maximum height must be a number superior to 50';
-$lang['previous_image'] = 'Previous';
-$lang['next_image'] = 'Next';
-$lang['back'] = 'Click on the image to go back to the thumbnails page';
-$lang['info_image_title'] = 'Image information';
-$lang['link_info_image'] = 'Modify information';
-$lang['true_size'] = 'Real size';
-$lang['comments_title'] = 'Comments from the users of the site';
-$lang['comments_del'] = 'delete this comment';
-$lang['comments_add'] = 'Add a comment';
-$lang['month'][1] = 'January';
-$lang['month'][2] = 'February';
-$lang['month'][3] = 'March';
-$lang['month'][4] = 'April';
-$lang['month'][5] = 'May';
-$lang['month'][6] = 'June';
-$lang['month'][7] = 'July';
-$lang['month'][8] = 'August';
-$lang['month'][9] = 'September';
-$lang['month'][10] = 'October';
-$lang['month'][11] = 'November';
-$lang['month'][12] = 'December';
-$lang['day'][0] = 'Sunday';
-$lang['day'][1] = 'Monday';
-$lang['day'][2] = 'Tuesday';
-$lang['day'][3] = 'Wednesday';
-$lang['day'][4] = 'Thursday';
-$lang['day'][5] = 'Friday';
-$lang['day'][6] = 'Saturday';
-$lang['add_favorites_alt'] = 'Add to favorites';
-$lang['add_favorites_hint'] = 'Add this picture to your favorites';
-$lang['del_favorites_alt'] = 'Delete from favorites';
-$lang['del_favorites_hint'] = 'Delete this picture from your favorites';
-$lang['register_page_title'] = 'Registration';
-$lang['register_title'] = 'Registration';
-$lang['reg_err_login1'] = 'Please, enter a login';
-$lang['reg_err_login2'] = 'login mustn\'t end with a space character';
-$lang['reg_err_login3'] = 'login mustn\'t start with a space character';
-$lang['reg_err_login4'] = 'login mustn\'t contain characters " and \'';
-$lang['reg_err_login5'] = 'this login is already used';
-$lang['reg_err_pass'] = 'please enter your password again';
-$lang['reg_confirm'] = 'confirm';
-$lang['reg_err_mail_address'] = 'mail address must be like xxx@yyy.eee (example : jack@altern.org)';
-$lang['search_title'] = 'Search';
-$lang['invalid_search'] = 'search must be done on 3 caracters or more';
-$lang['search_field_search'] = 'Search';
-$lang['search_return_main_page'] = 'Return to thumbnails page';
-$lang['upload_forbidden'] = 'You can\'t upload pictures in this category';
-$lang['upload_file_exists'] = 'A picture\'s name already used';
-$lang['upload_filenotfound'] = 'You must choose a picture fileformat for the image';
-$lang['upload_cannot_upload'] = 'can\'t upload the picture on the server';
-$lang['upload_title'] = 'Upload a picture';
-$lang['upload_advise'] = 'Choose an image to place in the category : ';
-$lang['upload_advise_thumbnail'] = 'Optional, but recommended : choose a thumbnail to associate to ';
-$lang['upload_advise_filesize'] = 'the filesize of the picture must not exceed : ';
-$lang['upload_advise_width'] = 'the width of the picture must not exceed : ';
-$lang['upload_advise_height'] = 'the height of the picture must not exceed : ';
-$lang['upload_advise_filetype'] = 'the picture must be to the fileformat jpg, gif or png';
-$lang['upload_err_username'] = 'the username must be given';
-$lang['upload_username'] = 'Username';
-$lang['upload_successful'] = 'Picture uploaded with success, an administrator will validate it as soon as possible';
-// new or modified in release 1.3
-$lang['charset'] = 'iso-8859-1';
-$lang['no'] = 'no';
-$lang['yes'] = 'yes';
-$lang['guest'] = 'guest';
-$lang['mail_address'] = 'mail address';
-$lang['public'] = 'public';
-$lang['private'] = 'private';
-$lang['add'] = 'add';
-$lang['dissociate'] = 'dissociate';
-$lang['mandatory'] = 'obligatory';
-$lang['err_date'] = 'wrong date';
-$lang['picture'] = 'picture';
-$lang['IP'] = 'IP';
-$lang['close'] = 'close';
-$lang['open'] = 'open';
-$lang['keywords'] = 'keywords';
-$lang['errors_title'] = 'Errors';
-$lang['infos_title'] = 'Informations';
-$lang['default'] = 'default';
-$lang['comments'] = 'comments';
-$lang['category_representative'] = 'representative';
-$lang['stats'] = 'statistics';
-$lang['most_visited_cat_hint'] = 'displays most visited pictures';
-$lang['most_visited_cat'] = 'most visited';
-$lang['best_rated_cat_hint'] = 'displays pictures best rated';
-$lang['best_rated_cat'] = 'best rated';
-$lang['recent_cat_hint'] = 'displays most recent pictures';
-$lang['recent_cat'] = 'most recent';
-$lang['recent_cat_title'] = 'Recent pictures';
-$lang['visited'] = 'visited';
-$lang['times'] = 'times';
-$lang['customize_theme'] = 'interface theme';
-$lang['customize_expand'] = 'expand all categories';
-$lang['customize_show_nb_comments'] = 'show number of comments';
-$lang['customize_short_period'] = 'short period';
-$lang['customize_long_period'] = 'long period';
-$lang['customize_template'] = 'template';
-$lang['err_periods'] = 'periods must be integer values';
-$lang['err_periods_2'] = 'periods must be superior to 0. The long period must be grater than the short period.';
-$lang['create_cookie'] = 'create a cookie';
-$lang['customize_day'] = 'day';
-$lang['customize_week'] = 'week';
-$lang['customize_month'] = 'month';
-$lang['customize_year'] = 'year';
-$lang['slideshow'] = 'slideshow';
-$lang['period_seconds'] = 'seconds per picture';
-$lang['slideshow_stop'] = 'stop the slideshow';
-$lang['comment_added'] = 'Your comment has been registered';
-$lang['comment_to_validate'] = 'An administrator must authorize your comment before it is visible.';
-$lang['comment_anti-flood'] = 'Anti-flood system : please wait for a moment before trying to post another comment';
-$lang['comment_user_exists'] = 'This login is already used by another user';
-$lang['invalid_search'] = 'Searched words must be grater than 3 characters and must not contain punctuation mark';
-$lang['search_mode_or'] = 'at least one word';
-$lang['search_mode_and'] = 'all the words';
-$lang['search_comments'] = 'separate different words with spaces';
-$lang['upload_name'] = 'Name of the picture';
-$lang['upload_author'] = 'Author (eg "Pierrick LE GALL")';
-$lang['upload_creation_date'] = 'Creation date (DD/MM/YYYY)';
-$lang['upload_comment'] = 'Comment';
-$lang['mail_hello'] = 'Hi,';
-$lang['mail_new_upload_subject'] = 'New picture on the website';
-$lang['mail_new_upload_content'] = 'A new picture has been uploaded on the gallery. It is waiting for your validation. Let\'s meet in the administration panel to authorize or refuse this picture.';
-$lang['mail_new_comment_subject'] = 'New comment on website';
-$lang['mail_new_comment_content'] = 'A new comment has been registered on the gallery. If you chose to validate each comment, you first have to validate this comment in the administration panel to make it visible in the gallery.'."\n\n".'You can see last comments in the administration panel';
-$lang['connected_user'] = 'connected user';
-$lang['title_comments'] = 'Users comments';
-$lang['stats_last_days'] = 'last days';
-$lang['hint_comments'] = 'See last users comments';
-$lang['menu_login'] = 'login';
-//-------------------------------------------------------------- administration
-if ( $isadmin )
-{
-  $lang['title_liste_users'] = 'Users list';
-  $lang['title_history'] = 'History';
-  $lang['title_update'] = 'Database update';
-  $lang['title_configuration'] = 'PhpWebGallery configuration';
-  $lang['title_instructions'] = 'Instructions';
-  $lang['title_categories'] = 'Categories management';
-  $lang['title_edit_cat'] = 'Edit a category';
-  $lang['title_info_images'] = 'Modify category\'s image information';
-  $lang['title_thumbnails'] = 'Thumbnail creation';
-  $lang['title_thumbnails_2'] = 'for';
-  $lang['title_default'] = 'PhpWebGallery administration';
-  $lang['menu_title'] = 'Administration';
-  $lang['menu_config'] = 'Configuration';
-  $lang['menu_users'] = 'Users';
-  $lang['menu_add_user'] = 'add';
-  $lang['menu_list_user'] = 'list';
-  $lang['menu_categories'] = 'Categories';
-  $lang['menu_update'] = 'Database update';
-  $lang['menu_thumbnails'] = 'Thumbnails';
-  $lang['menu_history'] = 'History';
-  $lang['menu_instructions'] = 'Instructions';
-  $lang['menu_back'] = 'Back to galleries';
-  $lang['title_waiting'] = 'Pictures waiting for validation';
-  $lang['menu_waiting'] = 'Waiting';
-  $lang['default_message'] = 'PhpWebGallery administration panel';
-  $lang['conf_err_prefixe'] = 'thumbnail\'s prefix mustn\'t contain any accentued character';
-  $lang['conf_err_mail'] = 'e-mail address refused, it must be like name@server.com';
-  $lang['conf_err_sid_size'] = 'the session identifier size must be an integer value between 4 and 50';
-  $lang['conf_err_sid_time'] = 'the session time must be an integer value between 5 and 60';
-  $lang['conf_err_max_user_listbox'] = 'the max user listbox number must be an integer value between 0 and 255';
-  $lang['conf_confirmation'] = 'Information data registered in database';
-  $lang['conf_general_title'] = 'Main configuration';
-  $lang['conf_general_webmaster'] = 'webmaster login';
-  $lang['conf_general_webmaster_info'] = 'It will be shown to the visitors. It is necessary for website administration';
-  $lang['conf_general_mail'] = 'webmaster mail adress';
-  $lang['conf_general_mail_info'] = 'Visitors will be able to contact by this mail';
-  $lang['conf_general_prefix'] = 'thumbnail prefix';
-  $lang['conf_general_prefix_info'] = 'Thumbnails use this prefix. Do not fill if your not sure.';
-  $lang['conf_general_access'] = 'access type';
-  $lang['conf_general_access_1'] = 'free';
-  $lang['conf_general_access_2'] = 'restricted';
-  $lang['conf_general_access_info'] = '- free : anyone can enter the site, any visitor can create an account in order to customize the appareance of the website<br />- restricted : the webmaster create accounts. Only registered users can enter the site';
-  $lang['conf_general_max_user_listbox'] = 'max listbox users number';
-  $lang['conf_general_max_user_listbox_info'] = '- this is the number maximum of users for which PhpWebGallery display a listbox instead of a simple text box on the identification page<br />- enter a number between 0 and 255, 0 means that you want to display the listbox';
-  $lang['conf_comments'] = 'users comments';
-  $lang['conf_comments_title'] = 'Configuration of '.$lang['conf_comments'];
-  $lang['conf_comments_show_comments'] = $lang['conf_comments'];
-  $lang['conf_comments_show_comments_info'] = 'display the users comments under each picture ?';
-  $lang['conf_comments_comments_number'] = 'number of comments per page';
-  $lang['conf_comments_comments_number_info'] = 'number of comments to display on each page. This number is unlimited for a picture. Enter a number between 5 and 50.';
-  $lang['conf_err_comment_number'] = 'The number of comments a page must be between 5 and 50 included.';
-  $lang['conf_remote_site_delete_info'] = 'Deleting a remote server will delete all the image and the categories in relation with this server.';
-  $lang['conf_upload_title'] = 'Configuration of the users upload';
-  $lang['conf_upload_available'] = 'authorized the upload of pictures';
-  $lang['conf_upload_maxfilesize'] = 'maximum filesize';
-  $lang['conf_upload_maxfilesize_info'] = 'Maximum filesize for the uploaded pictures. Must be a number between 10 and 1000 KB.';
-  $lang['conf_err_upload_maxfilesize'] = 'Maximum filesize for the uploaded pictures must be a number between 10 and 1000 KB.';
-  $lang['conf_upload_maxwidth'] = 'maximum width';
-  $lang['conf_upload_maxwidth_info'] = 'Maximum width authorized for the uploaded images. Must be a number superior to 10 pixels';
-  $lang['conf_err_upload_maxwidth'] = 'maximum width authorized for the uploaded images must be a number superior to 10 pixels.';
-  $lang['conf_upload_maxheight'] = 'maximum height';
-  $lang['conf_upload_maxheight_info'] = 'Maximum height authorized for the uploaded images. Must be a number superior to 10 pixels';
-  $lang['conf_err_upload_maxwidth'] = 'maximum height authorized for the uploaded images must be a number superior to 10 pixels.';
-  $lang['conf_upload_maxwidth_thumbnail'] = 'thumbnails maximum width';
-  $lang['conf_upload_maxwidth_thumbnail_info'] = 'Maximum width authorized for the uploaded thumbnails. Must be a number superior to 10 pixels';
-  $lang['conf_err_upload_maxwidth_thumbnail'] = 'Maximum width authorized for the uploaded thumbnails must be a number superior to 10 pixels.';
-  $lang['conf_upload_maxheight_thumbnail'] = 'thumbnails maximum height';
-  $lang['conf_upload_maxheight_thumbnail_info'] = 'Maximum height authorized for the uploaded thumbnails. Must be a number superior to 10 pixels';
-  $lang['conf_err_upload_maxheight_thumbnail'] = 'Maximum height authorized for the uploaded thumbnails must be a number superior to 10 pixels.';
-  $lang['conf_default_title'] = 'Default display properties for unregistered visitors and new accounts';
-  $lang['conf_default_language_info'] = 'default language';
-  $lang['conf_default_theme_info'] = 'default theme';
-  $lang['conf_session_title'] = 'Sessions configuration';
-  $lang['conf_session_size'] = 'identifier size';
-  $lang['conf_session_size_info'] = '- the longer your identifier is, the more secure your site is<br />- enter a number between 4 and 50';
-  $lang['conf_session_time'] = 'validity period';
-  $lang['conf_session_time_info'] = '- the shorter the validity period is, the more secure your site is<br />- enter a number between 5 and 60, in minutes';
-  $lang['conf_session_key'] = 'keyword';
-  $lang['conf_session_key_info'] = '- the session keyword improve the encoding of the session identifier<br />- enter any sentence shorter than 255 caracters';
-  $lang['conf_session_delete'] = 'delete out-of-date sessions';
-  $lang['conf_session_delete_info'] = 'it is recommanded to empty the database table of session, because out-of-date sessions remains in the database (but it doesn\'t make any security trouble)';
-  $lang['user_err_modify'] = 'This user can\'t be modified or deleted';
-  $lang['user_err_unknown'] = 'This user doesn\'t exist in the database';
-  $lang['adduser_info_message'] = 'Informations registered in the database for user ';
-  $lang['adduser_info_password_updated'] = '(password updated)';
-  $lang['adduser_info_back'] = 'back to the users list';
-  $lang['adduser_fill_form'] = 'Please fill the following form';
-  $lang['adduser_unmodify'] = 'unmodifiable';
-  $lang['adduser_status'] = 'status';
-  $lang['adduser_status_admin'] = 'admin';
-  $lang['adduser_status_guest'] = 'guest';
-  $lang['permuser_info_message'] = 'Permissions registered';
-  $lang['permuser_title'] = 'Restrictions for user';
-  $lang['permuser_warning'] = 'Warning : a "<span style="font-weight:bold;">forbidden access</span>" to the root of a category prevent from accessing the whole category';
-  $lang['permuser_authorized'] = 'authorized';
-  $lang['permuser_forbidden'] = 'forbidden';
-  $lang['permuser_parent_forbidden'] = 'parent category forbidden';
-  $lang['listuser_confirm'] = 'Do you really want to delete this user';
-  $lang['listuser_info_deletion'] = 'was removed from database';
-  $lang['listuser_user_group'] = 'Users group';
-  $lang['listuser_modify'] = 'modify';
-  $lang['listuser_modify_hint'] = 'modify informations of';
-  $lang['listuser_permission'] = 'permissions';
-  $lang['listuser_permission_hint'] = 'modify permissions of';
-  $lang['listuser_delete'] = 'delete';
-  $lang['listuser_delete_hint'] = 'delete user';
-  $lang['listuser_button_all'] = 'all';
-  $lang['listuser_button_invert'] = 'invert';
-  $lang['listuser_button_create_address'] = 'create mail address';
-  $lang['cat_invisible'] = 'invisible';
-  $lang['cat_edit'] = 'Edit';
-  $lang['cat_up'] = 'Move up';
-  $lang['cat_down'] = 'Move down';
-  $lang['cat_image_info'] = 'Images info';
-  $lang['cat_total'] = 'total';
-  $lang['editcat_confirm'] = 'Information registered in the database';
-  $lang['editcat_back'] = 'categories';
-  $lang['editcat_title1'] = 'Options for the';
-  $lang['editcat_name'] = 'Name';
-  $lang['editcat_comment'] = 'Comment';
-  $lang['editcat_status'] = 'Status';
-  $lang['infoimage_general'] = 'General options for the category';
-  $lang['infoimage_useforall'] = 'use for all pictures ?';
-  $lang['infoimage_creation_date'] = 'creation date';
-  $lang['infoimage_detailed'] = 'Option for each picture';
-  $lang['infoimage_title'] = 'title';
-  $lang['infoimage_comment'] = 'comment';
-  $lang['update_missing_tn'] = 'the thumbnail is missing for';
-  $lang['update_disappeared_tn'] = 'the thumbnail disapeared';
-  $lang['update_disappeared'] = 'doesn\'t exist';
-  $lang['update_part_deletion'] = 'Deletion of images that have no thumbnail or that doesn\'t exist';
-  $lang['update_deletion_conclusion'] = 'pictures removed from database';
-  $lang['update_part_research'] = 'Search for new images in the directories';
-  $lang['update_research_added'] = 'added';
-  $lang['update_research_tn_ext'] = 'thumbnail in';
-  $lang['update_research_conclusion'] = 'pictures added to the database';
-  $lang['update_default_title'] = 'Choose an option';
-  $lang['update_only_cat'] = 'update categories, not pictures';
-  $lang['update_all'] = 'update all';
-  $lang['tn_width'] = 'width';
-  $lang['tn_height'] = 'height';
-  $lang['tn_no_support'] = 'Picture unreachable or no support';
-  $lang['tn_format'] = 'for the file format';
-  $lang['tn_thisformat'] = 'for this file format';
-  $lang['tn_err_width'] = 'width must be a number superior to';
-  $lang['tn_err_height'] = 'height must be a number superior to';
-  $lang['tn_results_title'] = 'Results of miniaturization';
-  $lang['tn_picture'] = 'picture';
-  $lang['tn_results_gen_time'] = 'generated in';
-  $lang['tn_stats'] = 'General statistics';
-  $lang['tn_stats_nb'] = 'number of miniaturized pictures';
-  $lang['tn_stats_total'] = 'total time';
-  $lang['tn_stats_max'] = 'max time';
-  $lang['tn_stats_min'] = 'min time';
-  $lang['tn_stats_mean'] = 'average time';
-  $lang['tn_err'] = 'You made mistakes';
-  $lang['tn_params_title'] = 'Miniaturization parameters';
-  $lang['tn_params_GD'] = 'GD version';
-  $lang['tn_params_GD_info'] = '- GD is the picture manipulating library for PHP<br />-choose the version installed on your server. If you choose the wrong, you\'ll just have errors messages, come back with your browser and choose the other version. If no version works, it means your server doesn\'t support GD.';
-  $lang['tn_params_width_info'] = 'maximum width that thumbnails can take';
-  $lang['tn_params_height_info'] = 'maximum height that thumbnails can take';
-  $lang['tn_params_create'] = 'create';
-  $lang['tn_params_create_info'] = 'Do not try to miniaturize too many pictures in the same time.<br />Indeed, miniaturization uses a lot of CPU. If you installed PhpWebGallery on a free provider, a too high CPU load can sometime lead to the deletion of your website.';
-  $lang['tn_params_format'] = 'file format';
-  $lang['tn_params_format_info'] = 'only jpeg file format is supported for thumbnail creation';
-  $lang['tn_alone_title'] = 'pictures without thumbnail (jpeg and png only)';
-  $lang['tn_dirs_title'] = 'Directories list';
-  $lang['tn_dirs_alone'] = 'pictures without thumbnail';
-  $lang['help_images_title'] = 'Adding pictures';
-  $lang['help_images_intro'] = 'How to place pictures in your directories';
-  $lang['help_images'][0] = 'in the directory "galleries", create directories that will represent your categories';
-  $lang['help_images'][1] = 'in each directory, you can create as many sub-level directories as you wish.';
-  $lang['help_images'][2] = 'you can create as many categories and sub-categories for each category as you wish';
-  $lang['help_images'][3] = 'picture files must have jpeg format (extension jpg or JPG), gif format (extension gif or GIF) or png format (extension png or PNG).';
-  $lang['help_images'][4] = 'try not to use blank space " " or hyphen "-" in picture files, I advise you to use underscore "_" character which is managed by PhpWebGallery and will provide better results';
-  $lang['help_thumbnails_title'] = 'Thumbnails';
-  $lang['help_thumbnails'][0] = 'in each directory containing picture to display on your site, there is a sub-directory nammed "thumbnail", if it doesn\'t exist, create it to place your thumbnails into it.';
-  $lang['help_thumbnails'][1] = 'thumbnails don\'t need to have the same extension as their associated picture (a picture with .jpg extension can have a thumbnail in .GIF extention for instance).';
-  $lang['help_thumbnails'][2] = 'the thumbnail associated to a picture must be prefixed with the prefix given on the configuration page(image.jpg -> TN_image.GIF for instance).';
-  $lang['help_thumbnails'][3] = 'I advise you to use the module for windows downloadable on the presentation site of PhpWebGallery for thumbnails management.';
-  $lang['help_thumbnails'][4] = 'you can use the thumbnail creation page integrated in PhpWebGallery, but I don\'t advice you so, because thumbnail quality may be poor and it uses a high CPU load which can be a problem if you use free web hosting.';
-  $lang['help_thumbnails'][5] = 'if you choose to use your hosting provider to create thumbnails, you must give 775 rights on "galleries" folder and all its sub-folders.';
-  $lang['help_database_title'] = 'Updating database';
-  $lang['help_database'][0] = 'once pictures files and thumbnails correctly placed in the directories, clic on "database update" in the menu of the administration panel.';
-  $lang['help_infos_title'] = 'Miscellanous informations';
-  $lang['help_infos'][1] = 'As soon as you created your gallery, go in the user list and modify permissions for user "visiteur". Indeed, every new registered users will have by default the same permissions as "visiteur" user.';
-  $lang['help_remote_title'] = 'Remote site';
-  $lang['help_remote'][0] = 'PhpWebGallery offers the possibility to use several servers to store the images which will compose your gallery. It can be useful if your gallery is installed on one limited space and that you have a big quantity of images to be shown. Please , follow this procedure : ';
-  $lang['help_remote'][1] = '1. edit file "create_listing_file.php" (you will find it in the directory "admin"), by modifying the line "$prefix_thumbnail = "TN-";" if the prefix for your thumbnails is not "TN-".';
-  $lang['help_remote'][2] = '2. place file "create_listing_file.php" modified on your distant website, in the root directory of your directories of images  (as the directory "galleries" of this website) by ftp.';
-  $lang['help_remote'][3] = '3. launch script using the url http://domaineDistant/repGalerie/create_listing_file.php, a file listing.xml has just been created.';
-  $lang['help_remote'][4] = '4. get back file listing.xml from your distant website to place it in directory "admin" of this website.';
-  $lang['help_remote'][5] = '5. please , launch an update of the data of images by the interface of administration, once the listing.xml used file, kill it from the directory "admin".';
-  $lang['help_remote'][6] = 'You can update the contents of a distant website by redoing the described manipulation. You can also kill a distant website by choosing the option in the configuration section of the administration panel.';
-  $lang['help_upload_title'] = 'Added images by users';
-  $lang['help_upload'][0] = 'PhpWebGallery offers the possibility for users to upload images. in order to do it :';
-  $lang['help_upload'][1] = '1. authorize the option in the configuration zone of the administration panel';
-  $lang['help_upload'][2] = '2. authorize the rights in writing in the images directories';
-  $lang['install_message'] = 'Message';
-  $lang['step1_confirmation'] = 'Parameters are correct';
-  $lang['step1_err_db'] = 'Connection to server succeed, but it was impossible to connect to database';
-  $lang['step1_err_server'] = 'Can\'t connect to server';
-  $lang['step1_err_copy_2'] = 'The next step of the installation is now possible';
-  $lang['step1_err_copy_next'] = 'next step';
-  $lang['step1_title'] = 'Step 1/2';
-  $lang['step1_host'] = 'MySQL host';
-  $lang['step1_host_info'] = 'localhost, sql.multimania.com, toto.freesurf.fr';
-  $lang['step1_user'] = 'user';
-  $lang['step1_user_info'] = 'user login given by your host provider';
-  $lang['step1_pass'] = 'Password';
-  $lang['step1_pass_info'] = 'user password given by your host provider';
-  $lang['step1_database'] = 'Database name';
-  $lang['step1_database_info'] = 'also given by your host provider';
-  $lang['step1_prefix'] = 'Database table prefix';
-  $lang['step1_prefix_info'] = 'database tables names will be prefixed with it (enables you to manage better your tables)';
-  $lang['step2_err_login1'] = 'enter a login for webmaster';
-  $lang['step2_err_login3'] = 'webmaster login can\'t contain characters \' or "';
-  $lang['step2_err_pass'] = 'please enter your password again';
-  $lang['step2_err_mail'] = $lang['conf_err_mail'];
-  $lang['install_end_title'] = 'Installation finished';
-  $lang['step2_title'] = 'Step 2/2';
-  $lang['step2_pwd'] = 'webmaster password';
-  $lang['step2_pwd_info'] = 'Keep it confidential, it enables you to access administration panel';
-  $lang['step2_pwd_conf'] = 'confirm password';
-  $lang['step2_pwd_conf_info'] = 'verification';
-  // new or modified in release 1.3
-  $lang['remote_site'] = 'Remote site';
-  $lang['title_add'] = 'Add a user';
-  $lang['title_modify'] = 'Modify a user';
-  $lang['title_groups'] = 'Groups management';
-  $lang['title_user_perm'] = 'Modify permission for user';
-  $lang['title_cat_perm'] = 'Modify permissions for category';
-  $lang['title_group_perm'] = 'Modify permissions for group';
-  $lang['title_picmod'] = 'Modify informations about a picture';
-  $lang['menu_groups'] = 'Groups';
-  $lang['menu_comments'] = 'Comments';
-  $lang['conf_general_log'] = 'history';
-  $lang['conf_general_log_info'] = 'Keep an history of visits on your website ? Visits will be shown in the history section of the administration panel';
-  $lang['conf_general_mail_notification'] = 'Mail notification';
-  $lang['conf_general_mail_notification_info'] = 'Automated mail notification for adminsitrators (and only for them) when a user add a comment or upload a picture.';
-  $lang['conf_comments_validation'] = 'validation';
-  $lang['conf_comments_validation_info'] = 'An administrator validate users posted comments before the becom visible on the site';
-  $lang['conf_comments_forall'] = 'for all ?';
-  $lang['conf_comments_forall_info'] = 'Even guest not registered can post comments';
-  $lang['conf_default_nb_image_per_row_info'] = 'number of pictures for each row by default';
-  $lang['conf_default_nb_row_per_page_info'] = 'number of rows by page by default';
-  $lang['conf_default_short_period_info'] = 'By days. Period within a picture is shown with a red mark. The short period must be superior to 1 day.';
-  $lang['conf_default_long_period_info'] = 'By days. Period within a picture is shown with a green mark. The long period must be superior to the short period.';
-  $lang['conf_default_expand_info'] = 'expand all categories by default in the menu ?';
-  $lang['conf_default_show_nb_comments_info'] = 'show the number of comments for each picture on the thumbnails page';
-  $lang['conf_default_maxwidth_info'] = 'Maximum width for display pictures : picture will have a new width only for display, picture files won\'t be changed. Let empty if you don\'t wish to have a limit.';
-  $lang['conf_default_maxheight_info'] = 'Just as the maximum width, but for the height';
-  $lang['conf_session_cookie'] = 'authorize cookies';
-  $lang['conf_session_cookie_info'] = 'users won\'t have to log on each visit any more. Less secure.';
-  $lang['adduser_associate'] = 'Associate to group';
-  $lang['group_add'] = 'Add a group';
-  $lang['group_add_error1'] = 'The name of a group must not contain " or \'';
-  $lang['group_add_error2'] = 'This name is already used by another group';
-  $lang['group_confirm'] = 'Are you sure you want to remove this group ?';
-  $lang['group_list_title'] = 'List of existing groups';
-  $lang['group_err_unknown'] = 'This group doesn\'t exist in the database';
-  $lang['cat_permission'] = 'permissions';
-  $lang['cat_update'] = 'update';
-  $lang['cat_add'] = 'Add a virtual category';
-  $lang['cat_parent'] = 'parent category';
-  $lang['cat_error_name'] = 'The name of a category mustn\'t be empty';
-  $lang['cat_virtual'] = 'virtual';
-  $lang['cat_first'] = 'Move first';
-  $lang['cat_last'] = 'Move last';
-  $lang['editcat_visible_info'] = '(invisible but for administrators)';
-  $lang['editcat_visible'] = 'Visible';
-  $lang['editcat_uploadable'] = 'Upload available';
-  $lang['infoimage_keyword_separation'] = '(separate with coma ",")';
-  $lang['infoimage_addtoall'] = 'add to all';
-  $lang['infoimage_removefromall'] = 'remove from all';
-  $lang['infoimage_associate'] = 'Associate to the category';
-  $lang['update_wrong_dirname'] = 'The name of directories and files must be composed of letters, figures, "-", "_" or "."';
-  $lang['stats_pages_seen'] = 'pages seen';
-  $lang['stats_visitors'] = 'guests';
-  $lang['stats_empty'] = 'empty history';
-  $lang['stats_pages_seen_graph_title'] = 'Number of pages seen by day';
-  $lang['stats_visitors_graph_title'] = 'Number of guests by day';
-  $lang['comments_last_title'] = 'Last comments';
-  $lang['comments_non_validated_title'] = 'Comments waiting for validation';
-  $lang['help_database'][1] = 'In order to avoid the update of too many pictures in a single update, I advise to start by updating only categories, then on the categories section of the administration panel, update each category thanks to the link "update"';
-  $lang['help_upload'][3] = 'The category must have upload available itself for upload.';
-  $lang['help_upload'][4] = 'Uploaded images by the users are not directly visible on the website, they must be validated by an administrator.  For that purpose, an administrator must go on the page "en attente" of the administration panel, to validate or to refuse the images proposed, then launch an update of the images data.';
-  $lang['help_virtual_title'] = 'Links between pictures and categories and virtual categories';
-  $lang['help_virtual'][0] = 'PhpWebGallery is able to dissociate categories where pictures are stored and categories where pictures are shown.';
-  $lang['help_virtual'][1] = 'By default, pictures are shown only in their real categories : the ones corresponding to directories on the web server.';
-  $lang['help_virtual'][2] = 'To link a picture to a category, you just have to make the association on the page of picture informations or on the informations of all pictures of a category.';
-  $lang['help_virtual'][3] = 'Using this principle, it is possible to create virtual categories in PhpWebGallery : no real directory coresponds to this category. You just have to create this category on the section "categories" of the admin panel.';
-  $lang['help_groups_title'] = 'Users Groups';
-  $lang['help_groups'][0] = 'PhpWebGallery is able to manage groups of users. It can be very useful to have common permission access for private categories.';
-  $lang['help_groups'][1] = '1. Create the group "family" on the section "Groups" of admin panel.';
-  $lang['help_groups'][2] = '2. On the section "Users", edit on of them and associate him to the group "family".';
-  $lang['help_groups'][3] = '3. By modifying the permissions for a category or for a group, you\'ll see that all categories accessible for a group are accessible for its members.';
-  $lang['help_groups'][4] = 'A user can belong to several groups. The authorization is stronger than prohibition : if a user "jack" belongs to the group "family" and "friends", and that only group "family" can see category "Christmas 2003", "jack" will be able to see "Christmas 2003".';
-  $lang['help_access_title'] = 'Access authorization';
-  $lang['help_access'][0] = 'PhpWebGallery is able to forbid access to categories. Categories can be "public" or "private". In order to forbid access to a category :';
-  $lang['help_access'][1] = '1. Modify category informations (from the "categories" section in tha admin panel) and make it "private".';
-  $lang['help_access'][2] = '2. On the page of permissions (for a group or a user) the private category will be shown and you\'ll be able to authorize access or not.';
-  $lang['help_infos'][2] = 'If you have any question, do not hesitate to take a look at the forum or ask a question there. The <a href="'.$conf['forum_url'].'" style="text-decoration:underline">forum</a> (message board) is available on the presentation site of PhpWebGallery.';
-  $lang['step1_err_copy'] = 'Copy the text between hyphens and paste it into the file "include/mysql.inc.php"(Warning : mysql.inc.php must only contain what is in blue, no line return or space character)';
-  $lang['permuser_only_private'] = 'Only private categories are shown';
-  $lang['waiting_update'] = 'Validated pictures will be displayed only once pictures database updated';
-  $lang['conf_upload_available_info'] = 'Authorizing the upload of pictures by users on the categories of the website (not on a remote server). This is general parameter, it is needed to authorize upload category by category, by default, no category is "uploadable".';
-  $lang['install_help'] = 'Need help ? Ask your question on <a href="http://forum.phpwebgallery.net">PhpWebGallery message board</a>.';
-  // new or modified in release 1.3.1
-  $lang['cat_unknown_id'] = 'This category is unknown in the database';
-}
-
-  // new or modified in release 1.4
-  $lang['install_end_message'] = 'The configuration of PhpWebGallery is finished, here is the next step<br /><br />
-For security reason, please delete file "install.php"<br />
-Once this file deleted , follow this instructions :
-<ul>
-  <li>go to the identification page : [ <a href="../identification.php">identification</a> ] and use the login/password given for webmaster</li>
-  <li>this login will enable you to access to the administration panel and to the instructions in order to place pictures in your directories</li>
-</ul>';
-  $lang['install_warning'] = 'The file "install.php" is still present. Please remove it from your server. It is not secure to keep it.';
-
-?>
Index: /trunk/picture.php
===================================================================
--- /trunk/picture.php	(revision 363)
+++ /trunk/picture.php	(revision 364)
@@ -26,6 +26,6 @@
 // +-----------------------------------------------------------------------+
 //----------------------------------------------------------- include
-$phpwg_root_path = './';
-include_once( $phpwg_root_path.'include/common.inc.php' );    
+define('PHPWG_ROOT_PATH','./');
+include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );    
 //-------------------------------------------------- access authorization check
 check_cat_id( $_GET['cat'] );
@@ -577,5 +577,5 @@
     {
       $query = 'SELECT COUNT(*) AS user_exists';
-      $query.= ' FROM '.PREFIX_TABLE.'users';
+      $query.= ' FROM '.USERS_TABLE;
       $query.= " WHERE username = '".$author."'";
       $query.= ';';
Index: /trunk/profile.php
===================================================================
--- /trunk/profile.php	(revision 363)
+++ /trunk/profile.php	(revision 364)
@@ -28,6 +28,6 @@
 // customize appearance of the site for a user
 //----------------------------------------------------------- include
-$phpwg_root_path = './';
-include_once( $phpwg_root_path.'include/common.inc.php' );
+define('PHPWG_ROOT_PATH','./');
+include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
 //-------------------------------------------------- access authorization check
 check_login_authorization();
@@ -86,5 +86,5 @@
   if ( count( $errors ) == 0 )
   {
-    $query = 'UPDATE '.PREFIX_TABLE.'users';
+    $query = 'UPDATE '.USERS_TABLE;
     $query.= ' SET ';
     foreach ( $infos as $i => $info ) {
@@ -101,5 +101,5 @@
     if ( isset( $_POST['use_new_pwd'] ) )
     {
-      $query = 'UPDATE '.PREFIX_TABLE.'users';
+      $query = 'UPDATE '.USERS_TABLE;
       $query.= " SET password = '".md5( $_POST['password'] )."'";
       $query.= ' WHERE id = '.$user['id'];
@@ -112,5 +112,5 @@
                  cookie_path() );
       // update the expiration date of the session
-      $query = 'UPDATE '.PREFIX_TABLE.'sessions';
+      $query = 'UPDATE '.SESSIONS_TABLE;
       $query.= ' SET expiration = '.$_POST['cookie_expiration'];
       $query.= " WHERE id = '".$page['session_id']."'";
@@ -134,222 +134,94 @@
 include('include/page_header.php');
 
-$handle = $vtp->Open( './template/'.$user['template'].'/profile.vtp' );
+$template->set_filenames(array('profile'=>'profile.tpl'));
 initialize_template();
-$tpl = array( 'customize_title','password','new',
-              'reg_confirm','submit','create_cookie' );
-templatize_array( $tpl, 'lang', $handle );
-//----------------------------------------------------------------- form action
-$url = './profile.php';
-$vtp->setGlobalVar( $handle, 'form_action', add_session_id( $url ) );
+
+$template->assign_vars(array(
+  'L_TITLE' => $lang['customize_title'],
+  'L_PASSWORD' => $lang['password'],
+  'L_NEW' =>  $lang['new'], 
+  'L_CONFIRM' =>  $lang['reg_confirm'], 
+  'L_SUBMIT' =>  $lang['submit'], 
+  'L_COOKIE' =>  $lang['create_cookie'],
+	
+  'F_ACTION' => add_session_id( './profile.php' ),
+
+  'U_RETURN' => add_session_id('./category.php?'.$_SERVER['QUERY_STRING'])
+  ));
+	
 //-------------------------------------------------------------- errors display
-if ( count( $errors ) != 0 )
-{
-  $vtp->addSession( $handle, 'errors' );
-  foreach ( $errors as $error ) {
-    $vtp->addSession( $handle, 'li' );
-    $vtp->setVar( $handle, 'li.li', $error );
-    $vtp->closeSession( $handle, 'li' );
-  }
-  $vtp->closeSession( $handle, 'errors' );
-}
-//---------------------------------------------------- number of images per row
-if ( in_array( 'nb_image_line', $infos ) )
-{
-  $vtp->addSession( $handle, 'line' );
-  $vtp->setVar( $handle, 'line.name', $lang['customize_nb_image_per_row'] );
-  $vtp->addSession( $handle, 'select' );
-  $vtp->setVar( $handle, 'select.name', 'nb_image_line' );
-  for ( $i = 0; $i < sizeof( $conf['nb_image_row'] ); $i++ )
-  {
-    $vtp->addSession( $handle, 'option' );
-    $vtp->setVar( $handle, 'option.option', $conf['nb_image_row'][$i] );
-    if ( $conf['nb_image_row'][$i] == $user['nb_image_line'] )
-    {
-      $vtp->setVar( $handle, 'option.selected', ' selected="selected"' );
-    }
-    $vtp->closeSession( $handle, 'option' );
-  }
-  $vtp->closeSession( $handle, 'select' );
-  $vtp->closeSession( $handle, 'line' );
-}
-//------------------------------------------------------ number of row per page
-if ( in_array( 'nb_line_page', $infos ) )
-{
-  $vtp->addSession( $handle, 'line' );
-  $vtp->setVar( $handle, 'line.name', $lang['customize_nb_row_per_page'] );
-  $vtp->addSession( $handle, 'select' );
-  $vtp->setVar( $handle, 'select.name', 'nb_line_page' );
-  for ( $i = 0; $i < sizeof( $conf['nb_row_page'] ); $i++ )
-  {
-    $vtp->addSession( $handle, 'option' );
-    $vtp->setVar( $handle, 'option.option', $conf['nb_row_page'][$i] );
-    if ( $conf['nb_row_page'][$i] == $user['nb_line_page'] )
-    {
-      $vtp->setVar( $handle, 'option.selected', ' selected="selected"' );
-    }
-    $vtp->closeSession( $handle, 'option' );
-  }
-  $vtp->closeSession( $handle, 'select' );
-  $vtp->closeSession( $handle, 'line' );
-}
-//-------------------------------------------------------------------- template
-if ( in_array( 'template', $infos ) )
-{
-  $vtp->addSession( $handle, 'line' );
-  $vtp->setVar( $handle, 'line.name', $lang['customize_template'] );
-  $vtp->addSession( $handle, 'select' );
-  $vtp->setVar( $handle, 'select.name', 'template' );
-  $option = get_dirs( './template' );
-  for ( $i = 0; $i < sizeof( $option ); $i++ )
-  {
-    $vtp->addSession( $handle, 'option' );
-    $vtp->setVar( $handle, 'option.option', $option[$i] );
-    if ( $option[$i] == $user['template'] )
-    {
-      $vtp->setVar( $handle, 'option.selected', ' selected="selected"' );
-    }
-    $vtp->closeSession( $handle, 'option' );
-  }
-  $vtp->closeSession( $handle, 'select' );
-  $vtp->closeSession( $handle, 'line' );
-}
-//-------------------------------------------------------------------- language
-if ( in_array( 'language', $infos ) )
-{
-  $vtp->addSession( $handle, 'line' );
-  $vtp->setVar( $handle, 'line.name', $lang['customize_language'] );
-  $vtp->addSession( $handle, 'select' );
-  $vtp->setVar( $handle, 'select.name', 'language' );
-  $option = get_languages( './language/' );
-  for ( $i = 0; $i < sizeof( $option ); $i++ )
-  {
-    $vtp->addSession( $handle, 'option' );
-    $vtp->setVar( $handle, 'option.option', $option[$i] );
-    if( $option[$i] == $user['language'] )
-    {
-      $vtp->setVar( $handle, 'option.selected', ' selected="selected"' );
-    }
-    $vtp->closeSession( $handle, 'option' );
-  }
-  $vtp->closeSession( $handle, 'select' );
-  $vtp->closeSession( $handle, 'line' );
-}
-//---------------------------------------------------------------- short period
-if ( in_array( 'short_period', $infos ) )
-{
-  $vtp->addSession( $handle, 'line' );
-  $vtp->setVar( $handle, 'line.name', $lang['customize_short_period'] );
-  $vtp->addSession( $handle, 'text' );
-  $vtp->setVar( $handle, 'text.name', 'short_period' );
-  $vtp->setVar( $handle, 'text.value', $user['short_period'] );
-  $vtp->closeSession( $handle, 'text' );
-  $vtp->closeSession( $handle, 'line' );
-}
-//----------------------------------------------------------------- long period
-if ( in_array( 'long_period', $infos ) )
-{
-  $vtp->addSession( $handle, 'line' );
-  $vtp->setVar( $handle, 'line.name', $lang['customize_long_period'] );
-  $vtp->addSession( $handle, 'text' );
-  $vtp->setVar( $handle, 'text.name', 'long_period' );
-  $vtp->setVar( $handle, 'text.value', $user['long_period'] );
-  $vtp->closeSession( $handle, 'text' );
-  $vtp->closeSession( $handle, 'line' );
-}
-//--------------------------------------------------------- max displayed width
-if ( in_array( 'maxwidth', $infos ) )
-{
-  $vtp->addSession( $handle, 'line' );
-  $vtp->setVar( $handle, 'line.name', $lang['maxwidth'] );
-  $vtp->addSession( $handle, 'text' );
-  $vtp->setVar( $handle, 'text.name', 'maxwidth' );
-  $vtp->setVar( $handle, 'text.value', $user['maxwidth'] );
-  $vtp->closeSession( $handle, 'text' );
-  $vtp->closeSession( $handle, 'line' );
-}
-//-------------------------------------------------------- max displayed height
-if ( in_array( 'maxheight', $infos ) )
-{
-  $vtp->addSession( $handle, 'line' );
-  $vtp->setVar( $handle, 'line.name', $lang['maxheight'] );
-  $vtp->addSession( $handle, 'text' );
-  $vtp->setVar( $handle, 'text.name', 'maxheight' );
-  $vtp->setVar( $handle, 'text.value', $user['maxheight'] );
-  $vtp->closeSession( $handle, 'text' );
-  $vtp->closeSession( $handle, 'line' );
-}
-//---------------------------------------------------------------- mail address
-if ( in_array( 'mail_address', $infos ) )
-{
-  $vtp->addSession( $handle, 'line' );
-  $vtp->setVar( $handle, 'line.name', $lang['mail_address'] );
-  $vtp->addSession( $handle, 'text' );
-  $vtp->setVar( $handle, 'text.name', 'mail_address' );
-  $vtp->setVar( $handle, 'text.value', $user['mail_address'] );
-  $vtp->closeSession( $handle, 'text' );
-  $vtp->closeSession( $handle, 'line' );
-}
-//----------------------------------------------------- expand all categories ?
-if ( in_array( 'expand', $infos ) )
-{
-  $vtp->addSession( $handle, 'line' );
-  $vtp->setVar( $handle, 'line.name', $lang['customize_expand'] );
-  $vtp->addSession( $handle, 'group' );
-  $vtp->addSession( $handle, 'radio' );
-  $vtp->setVar( $handle, 'radio.name', 'expand' );
-  $vtp->setVar( $handle, 'radio.value', 'true' );
-  $checked = '';
-  if ( $user['expand'] )
-  {
-    $checked = ' checked="checked"';
-  }
-  $vtp->setVar( $handle, 'radio.checked', $checked );
-  $vtp->setVar( $handle, 'radio.option', $lang['yes'] );
-  $vtp->closeSession( $handle, 'radio' );
-  $vtp->addSession( $handle, 'radio' );
-  $vtp->setVar( $handle, 'radio.name', 'expand' );
-  $vtp->setVar( $handle, 'radio.value', 'false' );
-  $checked = '';
-  if ( !$user['expand'] )
-  {
-    $checked = ' checked="checked"';
-  }
-  $vtp->setVar( $handle, 'radio.checked', $checked );
-  $vtp->setVar( $handle, 'radio.option', $lang['no'] );
-  $vtp->closeSession( $handle, 'radio' );
-  $vtp->closeSession( $handle, 'group' );
-  $vtp->closeSession( $handle, 'line' );
-}
-//---------------------------------- show number of comments on thumbnails page
-if ( in_array( 'show_nb_comments', $infos ) )
-{
-  $vtp->addSession( $handle, 'line' );
-  $vtp->setVar( $handle, 'line.name', $lang['customize_show_nb_comments'] );
-  $vtp->addSession( $handle, 'group' );
-  $vtp->addSession( $handle, 'radio' );
-  $vtp->setVar( $handle, 'radio.name', 'show_nb_comments' );
-  $vtp->setVar( $handle, 'radio.value', 'true' );
-  $checked = '';
-  if ( $user['show_nb_comments'] )
-  {
-    $checked = ' checked="checked"';
-  }
-  $vtp->setVar( $handle, 'radio.checked', $checked );
-  $vtp->setVar( $handle, 'radio.option', $lang['yes'] );
-  $vtp->closeSession( $handle, 'radio' );
-  $vtp->addSession( $handle, 'radio' );
-  $vtp->setVar( $handle, 'radio.name', 'show_nb_comments' );
-  $vtp->setVar( $handle, 'radio.value', 'false' );
-  $checked = '';
-  if ( !$user['show_nb_comments'] )
-  {
-    $checked = ' checked="checked"';
-  }
-  $vtp->setVar( $handle, 'radio.checked', $checked );
-  $vtp->setVar( $handle, 'radio.option', $lang['no'] );
-  $vtp->closeSession( $handle, 'radio' );
-  $vtp->closeSession( $handle, 'group' );
-  $vtp->closeSession( $handle, 'line' );
-}
+if ( sizeof( $errors ) != 0 )
+{
+  $template->assign_block_vars('errors',array());
+  for ( $i = 0; $i < sizeof( $errors ); $i++ )
+  {
+    $template->assign_block_vars('errors.error',array('ERROR'=>$errors[$i]));
+  }
+}
+
+$template->assign_block_vars('select',array(
+  'F_LABEL'=>$lang['customize_nb_image_per_row'],
+  'F_NAME'=>'nb_image_line',
+  'F_OPTIONS'=>make_jumpbox($conf['nb_image_row'], $user['nb_image_line'])
+  ));
+
+$template->assign_block_vars('select',array(
+  'F_LABEL'=>$lang['customize_nb_row_per_page'],
+  'F_NAME'=>'nb_line_page',
+  'F_OPTIONS'=>make_jumpbox($conf['nb_row_page'], $user['nb_line_page'])
+  ));
+
+$template->assign_block_vars('select',array(
+  'F_LABEL'=>$lang['customize_template'],
+  'F_NAME'=>'template',
+  'F_OPTIONS'=>make_jumpbox(get_dirs( './template' ), $user['template'])
+  ));
+
+$template->assign_block_vars('select',array(
+  'F_LABEL'=>$lang['customize_language'],
+  'F_NAME'=>'language',
+  'F_OPTIONS'=>make_jumpbox($lang['lang'], $user['language'], true)
+  ));
+
+$template->assign_block_vars('text',array(
+  'F_LABEL'=>$lang['customize_short_period'],
+  'F_NAME'=>'short_period',
+  'F_VALUE'=>$user['short_period']
+  ));
+
+$template->assign_block_vars('text',array(
+  'F_LABEL'=>$lang['customize_long_period'],
+  'F_NAME'=>'long_period',
+  'F_VALUE'=>$user['long_period']
+  ));
+
+$template->assign_block_vars('text',array(
+  'F_LABEL'=>$lang['maxwidth'],
+  'F_NAME'=>'maxwidth',
+  'F_VALUE'=>$user['maxwidth']
+  ));
+
+$template->assign_block_vars('text',array(
+  'F_LABEL'=>$lang['maxheight'],
+  'F_NAME'=>'maxheight',
+  'F_VALUE'=>$user['maxheight']
+  ));
+
+$template->assign_block_vars('text',array(
+  'F_LABEL'=>$lang['mail_address'],
+  'F_NAME'=>'mail_address',
+  'F_VALUE'=>$user['mail_address']
+  ));
+
+$template->assign_block_vars('radio',array(
+  'F_LABEL'=>$lang['customize_expand'],
+  'F_OPTIONS'=>make_radio('expand', array(true=>$lang['yes'], false=>$lang['no']), $user['expand'], true)
+  ));
+
+$template->assign_block_vars('radio',array(
+  'F_LABEL'=>$lang['customize_show_nb_comments'],
+  'F_OPTIONS'=>make_radio('show_nb_comments', array(true=>$lang['yes'], false=>$lang['no']), $user['show_nb_comments'], true)
+  ));
+
 //--------------------------------------------------------------- create cookie
 if ( $conf['authorize_cookies'] )
@@ -375,6 +247,5 @@
 }
 //----------------------------------------------------------- html code display
-$code = $vtp->Display( $handle, 0 );
-echo $code;
+$template->pparse('profile');
 include('include/page_tail.php');
 ?>
Index: /trunk/register.php
===================================================================
--- /trunk/register.php	(revision 363)
+++ /trunk/register.php	(revision 364)
@@ -27,6 +27,6 @@
 
 //----------------------------------------------------------- include
-$phpwg_root_path = './';
-include_once( $phpwg_root_path.'incelude/common.inc.php' );
+define('PHPWG_ROOT_PATH','./');
+include_once( PHPWG_ROOT_PATH.'incelude/common.inc.php' );
 //-------------------------------------------------- access authorization check
 if ( $conf['access'] == "restricted" )
Index: /trunk/search.php
===================================================================
--- /trunk/search.php	(revision 363)
+++ /trunk/search.php	(revision 364)
@@ -27,6 +27,6 @@
 
 //----------------------------------------------------------- include
-$phpwg_root_path = './';
-include_once( $phpwg_root_path.'include/common.inc.php' );
+define('PHPWG_ROOT_PATH','./');
+include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
 //-------------------------------------------------- access authorization check
 check_login_authorization();
Index: /trunk/template/default/about.tpl
===================================================================
--- /trunk/template/default/about.tpl	(revision 363)
+++ /trunk/template/default/about.tpl	(revision 364)
@@ -2,13 +2,13 @@
       <tr align="center" valign="middle">
         <td>
-          {F_START}1px{F_BEGIN}
+          {T_START}1px{T_BEGIN}
             <div class="titrePage">{PAGE_TITLE}</div>
-          {F_END}
+          {T_END}
           <div style="margin-bottom:5px;">&nbsp;</div>
-          {F_START}50%{F_BEGIN}
+          {T_START}50%{T_BEGIN}
             <div class="menu" style="white-space:normal;margin:10px;">
               {L_ABOUT}
             </div>
-          {F_END}
+          {T_END}
           <div style="text-align:center;margin:5px;">
             <a href="{U_RETURN}">{L_RETURN}</a>
Index: /trunk/template/default/category.tpl
===================================================================
--- /trunk/template/default/category.tpl	(revision 363)
+++ /trunk/template/default/category.tpl	(revision 364)
@@ -97,6 +97,8 @@
 			{T_START}1%{T_BEGIN}
 			  <div class="info">
+				<!-- BEGIN username -->
 				{L_USER}&nbsp;{USERNAME}<br />
-				{L_RECENT_IMG}&nbsp;{S_SHORT_PERIOD}&nbsp;{L_DAYS}
+				<!-- END username -->
+				{L_RECENT_IMAGE}&nbsp;{S_SHORT_PERIOD}&nbsp;{L_DAYS}
 				  {T_SHORT}<br />
 				{L_RECENT_IMAGE}&nbsp;{S_LONG_PERIOD}&nbsp;{L_DAYS}
Index: /trunk/template/default/htmlfunctions.inc.php
===================================================================
--- /trunk/template/default/htmlfunctions.inc.php	(revision 363)
+++ /trunk/template/default/htmlfunctions.inc.php	(revision 364)
@@ -233,3 +233,33 @@
   }
 }
+
+function make_jumpbox($value, $selected, $usekeys=false)
+{
+  $boxstring = '';
+  $nb = sizeof( $value);
+  $keys = ($usekeys?array_keys($value):$value);
+  $value = ($usekeys?array_values($value):$value);
+  for ( $i = 0; $i < $nb; $i++ )
+  {
+    $boxstring .= '<option value="'.$keys[$i].'"';
+    if ($selected == $keys[$i]) $boxstring .=' selected="selected"';
+    $boxstring .='>'.$value[$i].'</option>';
+  }
+  return $boxstring;
+}
+
+function make_radio($name, $value, $selected, $usekeys=false)
+{
+  $boxstring = '';
+  $nb = sizeof( $value);
+  $keys = ($usekeys?array_keys($value):$value);
+  $value = ($usekeys?array_values($value):$value);
+  for ( $i = 0; $i < $nb; $i++ )
+  {
+    $boxstring .= '<input type="radio" name="'.$name.'" value="'.$keys[$i].'"';
+    if ($selected == $keys[$i]) $boxstring .=' checked';
+    $boxstring .='/>'.$value[$i];
+  }
+  return $boxstring;
+}
 ?>
Index: unk/template/default/picture.vtp
===================================================================
--- /trunk/template/default/picture.vtp	(revision 363)
+++ 	(revision )
@@ -1,136 +1,0 @@
-    <!--VTP_information-->
-    <div class="information">{#content}</div>
-    <!--/VTP_information-->
-    <!--VTP_start_slideshow-->
-    <div style="text-align:center;margin-bottom:5px;">
-      [ {#slideshow} :
-      <!--VTP_second-->
-      <a href="{#url}" class="back" style="font-weight:bold;">{#option}</a>
-      <!--/VTP_second-->
-      {#period_seconds} ]
-    </div>
-    <!--/VTP_start_slideshow-->
-    <!--VTP_stop_slideshow-->
-    <div style="text-align:center;margin-bottom:5px;">
-      [ <a href="{#url}" class="back" style="font-weight:bold;">{#slideshow_stop}</a> ]
-    </div>
-    <!--/VTP_stop_slideshow-->
-    <table style="width:100%;height:100%;">
-      <tr align="center" valign="middle">
-        <td>
-          <!--VTP_previous-->
-          <a href="{#url}" title="{#title}">
-            <img src="{#src}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{#alt}"/>
-          </a>
-          <!--/VTP_previous-->
-          <!--VTP_previous_empty-->
-          &nbsp;
-          <!--/VTP_previous_empty-->
-        </td>
-        <td style="width:100%;">
-          {#frame_start}1%{#frame_begin}
-          <div class="titrePage">{#title}</div>
-          {#frame_end}
-          <div style="margin-bottom:5px">&nbsp;</div>
-          {#frame_start}1%{#frame_begin}
-          <a href="{#picture_link}">
-            <img class="imgLink" style="margin:10px;width:{#picture_width}px;height:{#picture_height}px;border:1px solid" src="{#picture_src}" alt="{#picture_alt}"/>
-          </a>
-          <div class="commentImage">{#picture_comment}</div>
-          <table style="width:100%;">   
-            <tr>
-              <td align="center">
-                <table style="margin:auto;margin-top:5px;margin-bottom:5px;">
-                  <!--VTP_info_line-->
-                  <tr>
-                     <td class="menu" style="font-weight:bold;">{#name}</td>
-                     <td class="menu" style="text-align:right;">{#content}</td>
-                  </tr>
-                  <!--/VTP_info_line-->
-                </table>
-              </td>
-            </tr>
-          </table>
-          <!--VTP_favorite-->
-          <div class="menu" style="text-align:center;margin:5px;">
-            <a href="{#link}" title="{#title}"><img src="{#src}" style="border:none;margin-left:5px;" alt=""/></a>
-            <a href="{#link}">{#alt}</a>
-          </div>
-          <!--/VTP_favorite-->
-          <!--VTP_modification-->
-          <div class="menu" style="text-align:center;margin:5px;">
-            [ <a href="{#link}">{#name}</a> ]
-          </div>
-          <!--/VTP_modification-->
-          {#frame_end}
-          <div style="text-align:center;">{#back}</div>
-        </td>
-        <td>
-          <!--VTP_next-->
-          <a href="{#url}" title="{#title}">
-            <img src="{#src}" class="imgLink" style="margin-right:10px;margin-left:5px;" alt="{#alt}"/>
-          </a>
-          <!--/VTP_next-->
-          <!--VTP_next_empty-->
-          &nbsp;
-          <!--/VTP_next_empty-->
-        </td>
-      </tr>
-      <!--VTP_comments-->
-      <tr align="center" valign="middle">
-        <td colspan="3">
-          {#frame_start}90%{#frame_begin}
-            <table style="width:100%;">
-              <tr align="center">
-                <td>
-                  <div class="commentsTitle">
-                    [{#nb_comments}] {#comments_title}
-                  </div>
-                  <div class="commentsNavigationBar">{#navigation_bar}</div>
-                  <!--VTP_comment-->
-                  <table class="tableComment">
-                    <tr>
-                      <td rowspan="2" valign="top" class="cellAuthor">
-                        <div class="commentsAuthor">{#author}</div>
-                      </td>
-                      <td align="right" class="cellInfo">
-                        <div class="commentsInfos">
-                          {#date}<!--VTP_delete--><a href="{#link}" title="{#comments_del}"><img src="./template/{#user_template}/theme/delete.gif" style="border:none;margin-left:5px;" alt="[{#delete}]"/></a><!--/VTP_delete-->
-                        </div>
-                      </td>
-                    </tr>
-                    <tr>
-                      <td>
-                        <div class="commentsContent">{#content}</div>
-                      </td>
-                    </tr>
-                  </table>
-                  <!--/VTP_comment-->
-                  <div class="commentsNavigationBar">{#navigation_bar}</div>
-                </td>
-              </tr>
-            </table>
-            <!--VTP_add_comment-->
-            <form method="post" action="{#form_action}">
-              <table style="width:100%;">
-                <tr align="center">
-                  <td>
-                    <div class="commentsTitle">{#comments_add}</div>
-                    <!--VTP_author_field-->
-                    <div class="menu">{#author} : <input type="text" name="author" style="margin-top:5px;"/></div>
-                    <!--/VTP_author_field-->
-                    <!--VTP_author_known-->
-                    <input type="hidden" name="author" value="{#value}" />
-                    <!--/VTP_author_known-->
-                    <textarea name="content" rows="10" cols="50" style="overflow:auto;width:450px;margin:10px;"></textarea><br />
-                    <input type="submit" value="{#submit}" style="margin:10px;"/>
-                  </td>
-                </tr>
-              </table>
-            </form>
-            <!--/VTP_add_comment-->
-          {#frame_end}
-        </td>
-      </tr>
-      <!--/VTP_comments-->
-    </table>
Index: /trunk/template/default/profile.tpl
===================================================================
--- /trunk/template/default/profile.tpl	(revision 364)
+++ /trunk/template/default/profile.tpl	(revision 364)
@@ -0,0 +1,95 @@
+    <table style="width:100%;height:100%">
+      <tr align="center" valign="middle">
+        <td>
+          {T_START}1px{T_BEGIN}
+            <div class="titrePage">{L_TITLE}</div>
+          {T_END}
+          <div style="margin-bottom:20px"></div>
+          {T_START}50%{T_BEGIN}
+            <form method="post" action="{F_ACTION}">
+              <table style="width:100%;margin-top:10px;margin-bottom:10px;">
+                <tr align="center" valign="middle">
+                  <td>
+                    <table width="80%">
+                      <!-- BEGIN errors -->
+                      <tr>
+                        <td colspan="2">
+                          <div class="errors">
+                            <ul>
+                              <!-- BEGIN error -->
+                              <li>{errors.error.ERROR}</li>
+                              <!-- END error -->
+                            </ul>
+                          </div>
+                        </td>
+                      </tr>
+                      <!-- END errors -->
+					  <!-- BEGIN select -->
+                      <tr>
+                        <td class="menu">{select.F_LABEL}</td>
+                        <td class="menu">
+                          <select name="{select.F_NAME}">
+                            {select.F_OPTIONS}
+                          </select>
+						</td>
+					  </tr>
+					  <!-- END select -->
+					  <!-- BEGIN text -->
+                      <tr>
+                        <td class="menu">{text.F_LABEL}</td>
+                        <td class="menu">
+                          <input type="text" name="{text.F_NAME}" value="{text.F_VALUE}" />
+						</td>
+					  </tr>
+					  <!-- END text -->
+					  <!-- BEGIN radio -->
+                      <tr>
+                        <td class="menu">{radio.F_LABEL}</td>
+                        <td class="menu">
+  						  {radio.F_OPTIONS}
+						</td>
+					  </tr>
+					  <!-- END radio -->
+                      <tr>
+                        <td colspan="2">&nbsp;</td>
+                      </tr>
+                      <tr>
+                        <td class="menu">{L_NEW} {L_PASSWORD} <input type="checkbox" name="use_new_pwd" value="1" /></td>
+                        <td class="menu"><input type="password" name="password" value="" /></td>
+                      </tr>
+                      <tr>
+                        <td class="menu">{L_CONFIRM}</td>
+                        <td class="menu"><input type="password" name="passwordConf" value="" /></td>
+                      </tr>
+                      <!-- BEGIN cookie -->
+                      <tr>
+                        <td colspan="2">&nbsp;</td>
+                      </tr>
+                      <tr>
+                        <td class="menu">{L_COOKIE} <input type="checkbox" name="create_cookie" value="1" /></td>
+                        <td class="menu">
+                          <select name="cookie_expiration">
+                          <!-- BEGIN expiration_option -->
+                            <option value="{#value}">{#option}</option>
+                          <!-- END expiration_option -->
+                          </select>
+                        </td>
+                      </tr>
+                      <!-- END cookie -->
+                      <tr>
+                        <td colspan="2">&nbsp;</td>
+                      </tr>
+                      <tr>
+                        <td colspan="2" align="center">
+                          <input type="submit" name="submit" value="{L_SUBMIT}" style="margin:5px;"/>
+                        </td>
+                      </tr>
+                    </table>
+                  </td>
+                </tr>
+              </table>
+            </form>
+          {T_END}
+</td>
+      </tr>
+    </table>
Index: /trunk/upload.php
===================================================================
--- /trunk/upload.php	(revision 363)
+++ /trunk/upload.php	(revision 364)
@@ -25,6 +25,6 @@
 // | USA.                                                                  |
 // +-----------------------------------------------------------------------+
-$phpwg_root_path = './';
-include_once( $phpwg_root_path.'include/common.inc.php' );
+define('PHPWG_ROOT_PATH','./');
+include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
 
 //------------------------------------------------------------------- functions
