This looks like a relic from back when freetrade was using variables
rather than defines for the database host, name, and passwords
The current code:
//establish persistent connection
$DatabaseLink = mysql_pconnect(DATABASE_HOST, DATABASE_USER,
DATABASE_PASSWORD);
if(!$DatabaseLink)
{
print("<P><B>Unable to connect to \"$DatabaseMachine\" in order to " .
"use the \"$Database\" database. Perhaps the database is not " .
"running, or perhaps the admin needs to change a few variables in ".
"modules/include/global_settings in order to point to the correct ".
"database.</B><BR>\n");
print("<!--mysql_pconnect " .
mysql_errno() . ": " .
mysql_error() . "-->\n");
}
Should be changed to:
//establish persistent connection
$DatabaseLink = mysql_pconnect(DATABASE_HOST, DATABASE_USER,
DATABASE_PASSWORD);
if(!$DatabaseLink)
{
print("<P><B>Unable to connect to \"" . DATABASE_HOST . "\" in order
to " .
"use the \"" . DATABASE_NAME . "\" database. Perhaps the database is
not " .
"running, or perhaps the admin needs to change a few variables in ".
"modules/include/global_settings in order to point to the correct ".
"database.</B><BR>\n");
print("<!--mysql_pconnect " .
mysql_errno() . ": " .
mysql_error() . "-->\n");
}
Thanks,
Leif
--
-----------------------------------------------
Leif Mortenson
Silver Egg Technology
Kondo Ebisu Bldg. 802
1-20-8 Ebisu-nishi
Shibuya-ku, Tokyo 150-0021 JAPAN
Tel: 03-5456-8044
Fax: 03-3462-5045
Email: [EMAIL PROTECTED]
URL: http://www.silveregg.co.jp
-----------------------------------------------
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]