diff --git a/lib/auth.php b/lib/auth.php index 5b286b6..9aaeb52 100644 --- a/lib/auth.php +++ b/lib/auth.php @@ -26,7 +26,12 @@ */ have ('auth'); need ('table'); - + + if (!defined ('_SQLCONSTS_')) { + define ('_SQLCONSTS_', 1); + require siteHome . '/../etc/sql.conf'; + } + /* SQL definition for member list table CREATE TABLE members ( u_key int DEFAULT '0' NOT NULL auto_increment PRIMARY KEY, @@ -110,6 +115,7 @@ CREATE TABLE members ( } // Initialization + echo sqlHost . sqlUser . sqlPass; $db = @mysql_connect (sqlHost, sqlUser, sqlPass); if ($loginInfo) {