Changeset 4280 for trunk/include
- Timestamp:
- Nov 16, 2009, 8:17:01 PM (14 years ago)
- Location:
- trunk/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/common.inc.php
r4047 r4280 71 71 $filter = array(); 72 72 73 @include(PHPWG_ROOT_PATH .'include/ mysql.inc.php');73 @include(PHPWG_ROOT_PATH .'include/config_database.inc.php'); 74 74 if (!defined('PHPWG_INSTALLED')) 75 75 { … … 105 105 106 106 // Database connection 107 @mysql_connect( $c fgHote, $cfgUser, $cfgPassword) or my_error( 'mysql_connect', true );108 @mysql_select_db( $c fgBase) or my_error( 'mysql_select_db', true );107 @mysql_connect( $conf['db_host'], $conf['db_user'], $conf['db_password'] ) or my_error( 'mysql_connect', true ); 108 @mysql_select_db( $conf['db_base'] ) or my_error( 'mysql_select_db', true ); 109 109 110 110 defined('PWG_CHARSET') and defined('DB_CHARSET') -
trunk/include/config_default.inc.php
r3938 r4280 495 495 // All informations contained in these tables and column are related to 496 496 // piwigo_users table. 497 $conf['users_table'] = $prefixeTable.'users'; 497 // 498 // You can use a different table for users, if you define associated constant 499 // default configuration : 500 // define('USERS_TABLE', $prefixeTable.'users'); 498 501 499 502 // Other tables can be changed, if you define associated constants -
trunk/include/constants.php
r3282 r4280 69 69 define('USER_GROUP_TABLE', $prefixeTable.'user_group'); 70 70 if (!defined('USERS_TABLE')) 71 define('USERS_TABLE', $ conf['users_table']);71 define('USERS_TABLE', $prefixeTable.'users'); 72 72 if (!defined('USER_INFOS_TABLE')) 73 73 define('USER_INFOS_TABLE', $prefixeTable.'user_infos');
Note: See TracChangeset
for help on using the changeset viewer.