From f68c026b1a1c90c4d3b34c62654fdd9471f024eb Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Fri, 22 Feb 2002 05:29:05 +0000 Subject: [PATCH] hmm. debugging info. --- lib/auth.php | 2 +- lib/news.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/auth.php b/lib/auth.php index e7401a8..4aaa89b 100644 --- a/lib/auth.php +++ b/lib/auth.php @@ -148,7 +148,7 @@ CREATE TABLE members ( " WHERE u_username='$userName'" . " AND u_password=ENCRYPT('$password','$userName')"; $result = @mysql_fetch_array (@mysql_db_query (sqlDB, $query)); - + if ($result[auth]) { authCreateSecret ($userName, $result[u_password]); } else { diff --git a/lib/news.php b/lib/news.php index 8935b88..b3e2881 100644 --- a/lib/news.php +++ b/lib/news.php @@ -170,7 +170,7 @@ if ($conn) { $query = 'SELECT n_date, n_user, n_news FROM news_main' . ' ORDER BY n_date DESC'; - $result = @mysql_db_query (sqlDB, $query, $conn); + $result = mysql_db_query (sqlDB, $query, $conn); if ($result) { $numRows = @mysql_num_rows ($result); if ($numRows) { @@ -209,7 +209,7 @@ $date = sprintf ("%04d-%02d", $year, $month); if (sqlAvail) { - $conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass); + $conn = mysql_pconnect (sqlHost, sqlUser, sqlPass); if ($conn) { $query = 'SELECT n_date, n_user, n_news FROM news_main' . " WHERE n_date BETWEEN '$date-00 00:00:00'" .