Changeset 463 for trunk


Ignore:
Timestamp:
Jul 28, 2004, 7:21:58 PM (20 years ago)
Author:
gweltas
Message:

Installation procedure update

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/constants.php

    r423 r463  
    2525// | USA.                                                                  |
    2626// +-----------------------------------------------------------------------+
     27
     28// Default Language
     29define('DEFAULT_LANGUAGE', 'en_UK.iso-8859-1');
    2730
    2831// Debug Level
  • trunk/include/functions_user.inc.php

    r452 r463  
    219219  if ( !file_exists(@realpath(PHPWG_ROOT_PATH . 'language/' . $language . '/common.lang.php')) )
    220220  {
    221     $language = 'en_EN';
     221    $language = DEFAULT_LANGUAGE;
    222222  }
    223223  include_once(PHPWG_ROOT_PATH . 'language/' . $language . '/common.lang.php');
     
    228228    if ( !file_exists(@realpath(PHPWG_ROOT_PATH . 'language/' . $language. '/admin.lang.php')) )
    229229    {
    230       $language = 'en_EN';
     230      $language = DEFAULT_LANGUAGE;
    231231    }
    232232  include_once(PHPWG_ROOT_PATH . 'language/' . $language . '/admin.lang.php');
  • trunk/include/user.inc.php

    r452 r463  
    3636                'template', 'forbidden_categories' );
    3737
    38 $query_user = 'SELECT '.implode( ',', $infos );
    39 $query_user.= ' FROM '.USERS_TABLE;
     38$query_user = 'SELECT * FROM '.USERS_TABLE;
    4039$query_done = false;
    4140$user['is_the_guest'] = false;
  • trunk/install.php

    r405 r463  
    3232function guess_lang()
    3333{
     34  return 'en_UK.iso-8859-1';
    3435  global $_SERVER;
    3536  $languages = array();
     
    256257   
    257258    // tables creation, based on phpwebgallery_structure.sql
    258     execute_sqlfile( './install/phpwebgallery_structure.sql'
     259    execute_sqlfile( PHPWG_ROOT_PATH.'install/phpwebgallery_structure.sql'
    259260                     , 'phpwebgallery_'
    260261                     , $table_prefix );
    261262    // We fill the tables with basic informations
    262     execute_sqlfile( './install/config.sql'
     263    execute_sqlfile( PHPWG_ROOT_PATH.'install/config.sql'
    263264                     , 'phpwebgallery_'
    264265                     , $table_prefix );
     
    283284   
    284285    $query = 'INSERT INTO '.SITES_TABLE;
    285     $query.= " (id,galleries_url) VALUES (1, './galleries/');";
     286    $query.= " (id,galleries_url) VALUES (1, ".PHPWG_ROOT_PATH."'galleries/');";
    286287    mysql_query( $query );
    287288   
  • trunk/install/config.sql

    r452 r463  
    44INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('webmaster','','webmaster login');
    55INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('mail_webmaster','','webmaster mail');
    6 INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('default_lang','en_EN','Default gallery language');
     6INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('default_lang','en_UK.iso-8859-1','Default gallery language');
    77INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('default_style','default','Default gallery style');
    88INSERT INTO phpwebgallery_config (param,value,comment) VALUES ('access','free','access type to your gallery (free|restricted)');
Note: See TracChangeset for help on using the changeset viewer.