Minor bugs correction

git-svn-id: http://piwigo.org/svn/trunk@519 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
gweltas 2004-09-07 20:10:36 +00:00
parent 47a1e49c1e
commit eaad1d61d7
10 changed files with 35 additions and 26 deletions

View file

@ -45,7 +45,7 @@ $conf['nb_image_row'] = array(4,5,6,7,8);
$conf['nb_row_page'] = array(2,3,4,5,6,7,10,20,1000);
$conf['slideshow_period'] = array(2,5,10);
$conf['last_days'] = array(1,2,3,10,30,365);
$conf['version'] = 'BSF';
// $conf['file_ext'] lists all extensions (case insensitive) allowed for
// your PhpWebGallery installation
$conf['file_ext'] = array('jpg','JPG','png','PNG','gif','GIF'

View file

@ -25,8 +25,11 @@
// | USA. |
// +-----------------------------------------------------------------------+
// Default Language
// Default settings
define('DEFAULT_LANGUAGE', 'en_UK.iso-8859-1');
define('PHPWG_VERSION', 'BSF');
define('PHPWG_URL', 'http://www.phpwebgallery.net');
define('PHPWG_FORUM_URL', 'http://forum.phpwebgallery.net');
// Debug Level
define('DEBUG', 1); // Debugging on

View file

@ -277,7 +277,7 @@ function get_languages()
if (is_dir($path) and !is_link($path) and file_exists($path.'/iso.txt'))
{
list($language_name) = @file($path.'/iso.txt');
$languages[$file] = $language_name;
$languages[$language_name] = $file;
}
}
closedir($dir);
@ -354,16 +354,6 @@ function pwg_log( $file, $category, $picture = '' )
}
}
function templatize_array( $array, $global_array_name, $handle )
{
global $vtp, $lang, $page, $user, $conf;
foreach ( $array as $value ) {
if (isset(${$global_array_name}[$value]))
$vtp->setGlobalVar( $handle, $value, ${$global_array_name}[$value] );
}
}
// format_date returns a formatted date for display. The date given in
// argument can be a unixdate (number of seconds since the 01.01.1970) or an
// american format (2003-09-15). By option, you can show the time. The

View file

@ -133,13 +133,15 @@ function style_select($default_style, $select_name = "style")
{
$templates = get_templates();
$style_selected = '<select name="' . $select_name . '" >';
foreach ($templates as $template)
{
$selected = ( $template == $default_style ) ? ' selected="selected"' : '';
$style_select.= '<option value="'.$template.'"'.$selected.'>';
$style_select.= $template.'</option>';
$style_selected.= '<option value="'.$template.'"'.$selected.'>';
$style_selected.= $template.'</option>';
}
return $style_select;
$style_selected .= '</select>';
return $style_selected;
}
// The function get_cat_display_name returns a string containing the list

View file

@ -33,7 +33,7 @@ $time = get_elapsed_time( $t2, get_moment() );
$template->assign_vars(
array(
'TIME' => $time,
'VERSION' => $conf['version'],
'VERSION' => PHPWG_VERSION,
'MAIL'=>$conf['mail_webmaster'],
'L_GEN_TIME' => $lang['generation_time'],

View file

@ -320,8 +320,8 @@ $template->assign_vars(array(
'L_ADMIN_PASSWORD_INFO'=>$lang['step2_pwd_info'],
'L_ADMIN_CONFIRM_PASSWORD'=>$lang['step2_pwd_conf'],
'L_ADMIN_CONFIRM_PASSWORD_INFO'=>$lang['step2_pwd_conf_info'],
'L_ADMIN_EMAIL'=>$lang['install_mail_webmaster'],
'L_ADMIN_EMAIL_INFO'=>$lang['install_mail_webmaster_info'],
'L_ADMIN_EMAIL'=>$lang['conf_general_mail_webmaster'],
'L_ADMIN_EMAIL_INFO'=>$lang['conf_general_mail_webmaster_info'],
'L_SUBMIT'=>$lang['Start_Install'],
'L_HELP'=>$lang['install_help'],
'L_ERR_COPY'=>$lang['step1_err_copy'],

View file

@ -257,7 +257,7 @@ $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="http://forum.phpwebgallery.net" style="text-decoration:underline">forum</a> (message board) is available on the presentation site of PhpWebGallery.';
$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="'.PHPWG_FORUM_URL.'" style="text-decoration:underline">forum</a> (message board) is available on the presentation site of PhpWebGallery.';
// Image informations
$lang['infoimage_general'] = 'General options for the category';

View file

@ -53,6 +53,8 @@ $lang['filesize'] = 'Filesize';
$lang['file'] = 'File';
$lang['keywords'] = 'Keywords';
$lang['default'] = 'Default';
$lang['send_mail'] = 'Contact';
$lang['webmaster'] = 'Webmaster';
//Properties
$lang['registration_date'] = 'Registered on';
@ -144,8 +146,7 @@ $lang['previous_page'] = 'Previous';
$lang['next_page'] = 'Next';
$lang['recent_image'] = 'Image within the';
$lang['days'] = 'days';
$lang['send_mail'] = 'Contact';
$lang['webmaster'] = 'webmaster';
$lang['title_send_mail'] = 'A comment on your site';
$lang['sub-cat'] = 'subcategories';
$lang['images_available'] = 'images in this category';
@ -158,9 +159,9 @@ $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="http://www.phpwebgallery.net" style="text-decoration:underline">PhpWebGallery</a>. PhpWebGallery is a web application giving you the possibility to create an online images gallery easily.</li>
<li>This website uses the version '.PHPWG_VERSION.' of "<a href="'.PHPWG_URL.'" style="text-decoration:underline">PhpWebGallery</a>. 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="http://www.phpwebgallery.net" style="text-decoration:underline">PhpWebGallery</a> official site, and its dedicated <a href="http://forum.phpwebgallery.net" style="text-decoration:underline">forum</a>.</li>
<li>If you have any suggestions or comments, please visit <a href="'.PHPWG_URL.'" style="text-decoration:underline">PhpWebGallery</a> official site, and its dedicated <a href="'.PHPWG_FORUM_URL.'" style="text-decoration:underline">forum</a>.</li>
</ul>';
$lang['about_return'] = 'Back';
$lang['ident_page_title'] = 'Identification';

View file

@ -32,17 +32,20 @@ $lang['step1_title'] = 'Database configuration';
$lang['step2_title'] = 'Admin configuration';
$lang['Start_Install'] = 'Start Install';
$lang['reg_err_mail_address'] = 'mail address must be like xxx@yyy.eee (example : jack@altern.org)';
$lang['mail_webmaster'] = 'Webmaster mail adress';
$lang['mail_webmaster_info'] = 'Visitors will be able to contact site administrator with this mail';
$lang['reg_err_mail_address'] = 'e-mail address refused, it must be like name@server.com';
$lang['install_webmaster'] = 'webmaster login';
$lang['install_webmaster_info'] = 'It will be shown to the visitors. It is necessary for website administration';
$lang['install_mail_webmaster'] = $lang['conf_general_mail_webmaster'];
$lang['install_mail_webmaster_info'] = $lang['conf_general_mail_webmaster_info'];
$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_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['step1_host'] = 'MySQL host';
$lang['step1_host_info'] = 'localhost, sql.multimania.com, toto.freesurf.fr';
$lang['step1_user'] = 'user';

View file

@ -144,6 +144,16 @@ ul.menu {
border-collapse:collapse;
}
.row1,.row2 {
text-align:left;
padding:5px 0px 5px 0px;
height:20px;
}
.row1 {
background-color:#505050;
}
.throw {
color:#FFFFCC;
background-color:#3F3F3F;