From 2875c19a5de34ddc20f4f2140842a3a20e152237 Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Fri, 22 Feb 2002 07:22:34 +0000 Subject: [PATCH] SQL file issues. --- lib/auth.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) {