diff options
author | z0rglub <z0rglub@piwigo.org> | 2003-07-01 09:27:20 +0000 |
---|---|---|
committer | z0rglub <z0rglub@piwigo.org> | 2003-07-01 09:27:20 +0000 |
commit | 0ec91d8b4834d63c65dcbef6ac49ab5a8f68ddd1 (patch) | |
tree | b21ebe1713021f8f783f10b948acdb03878d5223 /include/functions.inc.php | |
parent | 1080c51deb551ec63677adb842025065fa0999ba (diff) |
*** empty log message ***
git-svn-id: http://piwigo.org/svn/trunk@21 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions.inc.php | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php index eb8571e86..ec9081dce 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -18,6 +18,7 @@ include( 'functions_user.inc.php' ); include( 'functions_session.inc.php' ); include( 'functions_category.inc.php' ); include( 'functions_xml.inc.php' ); +include( 'functions_group.inc.php' ); //----------------------------------------------------------- generic functions @@ -319,22 +320,22 @@ function replace_search( $string, $search ) function database_connection() { - // $cfgHote,$cfgUser,$cfgPassword,$cfgBase; +// $xml_content = getXmlCode( PREFIXE_INCLUDE.'./include/database_config.xml' ); +// $mysql_conf = getChild( $xml_content, 'mysql' ); - $xml_content = getXmlCode( PREFIXE_INCLUDE.'./include/database_config.xml' ); - $mysql_conf = getChild( $xml_content, 'mysql' ); +// $cfgHote = getAttribute( $mysql_conf, 'host' ); +// $cfgUser = getAttribute( $mysql_conf, 'user' ); +// $cfgPassword = getAttribute( $mysql_conf, 'password' ); +// $cfgBase = getAttribute( $mysql_conf, 'base' ); +// define( PREFIX_TABLE, getAttribute( $mysql_conf, 'tablePrefix' ) ); - $cfgHote = getAttribute( $mysql_conf, 'host' ); - $cfgUser = getAttribute( $mysql_conf, 'user' ); - $cfgPassword = getAttribute( $mysql_conf, 'password' ); - $cfgBase = getAttribute( $mysql_conf, 'base' ); + include( PREFIX_INCLUDE.'./include/mysql.inc.php' ); + define( PREFIX_TABLE, $prefix_table ); @mysql_connect( $cfgHote, $cfgUser, $cfgPassword ) or die ( "Could not connect to server" ); @mysql_select_db( $cfgBase ) or die ( "Could not connect to database" ); - - define( PREFIX_TABLE, getAttribute( $mysql_conf, 'tablePrefix' ) ); } function pwg_log( $file, $category, $picture = '' ) |