Changeset 21 for trunk/include/functions.inc.php
- Timestamp:
- Jul 1, 2003, 11:27:20 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions.inc.php
r17 r21 19 19 include( 'functions_category.inc.php' ); 20 20 include( 'functions_xml.inc.php' ); 21 include( 'functions_group.inc.php' ); 21 22 22 23 //----------------------------------------------------------- generic functions … … 320 321 function database_connection() 321 322 { 322 // $cfgHote,$cfgUser,$cfgPassword,$cfgBase; 323 324 $xml_content = getXmlCode( PREFIXE_INCLUDE.'./include/database_config.xml' ); 325 $mysql_conf = getChild( $xml_content, 'mysql' ); 326 327 $cfgHote = getAttribute( $mysql_conf, 'host' ); 328 $cfgUser = getAttribute( $mysql_conf, 'user' ); 329 $cfgPassword = getAttribute( $mysql_conf, 'password' ); 330 $cfgBase = getAttribute( $mysql_conf, 'base' ); 323 // $xml_content = getXmlCode( PREFIXE_INCLUDE.'./include/database_config.xml' ); 324 // $mysql_conf = getChild( $xml_content, 'mysql' ); 325 326 // $cfgHote = getAttribute( $mysql_conf, 'host' ); 327 // $cfgUser = getAttribute( $mysql_conf, 'user' ); 328 // $cfgPassword = getAttribute( $mysql_conf, 'password' ); 329 // $cfgBase = getAttribute( $mysql_conf, 'base' ); 330 // define( PREFIX_TABLE, getAttribute( $mysql_conf, 'tablePrefix' ) ); 331 332 include( PREFIX_INCLUDE.'./include/mysql.inc.php' ); 333 define( PREFIX_TABLE, $prefix_table ); 331 334 332 335 @mysql_connect( $cfgHote, $cfgUser, $cfgPassword ) … … 334 337 @mysql_select_db( $cfgBase ) 335 338 or die ( "Could not connect to database" ); 336 337 define( PREFIX_TABLE, getAttribute( $mysql_conf, 'tablePrefix' ) );338 339 } 339 340
Note: See TracChangeset
for help on using the changeset viewer.