Ignore:
Timestamp:
Jul 1, 2003, 11:27:20 AM (21 years ago)
Author:
z0rglub
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r17 r21  
    1919include( 'functions_category.inc.php' );
    2020include( 'functions_xml.inc.php' );
     21include( 'functions_group.inc.php' );
    2122
    2223//----------------------------------------------------------- generic functions
     
    320321function database_connection()
    321322{
    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 );
    331334
    332335  @mysql_connect( $cfgHote, $cfgUser, $cfgPassword )
     
    334337  @mysql_select_db( $cfgBase )
    335338    or die ( "Could not connect to database" );
    336 
    337   define( PREFIX_TABLE, getAttribute( $mysql_conf, 'tablePrefix' ) );
    338339}
    339340
Note: See TracChangeset for help on using the changeset viewer.