mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-27 22:42:57 +00:00
hmm. debugging info.
This commit is contained in:
parent
858008ab0f
commit
f68c026b1a
2 changed files with 3 additions and 3 deletions
|
@ -148,7 +148,7 @@ CREATE TABLE members (
|
||||||
" WHERE u_username='$userName'" .
|
" WHERE u_username='$userName'" .
|
||||||
" AND u_password=ENCRYPT('$password','$userName')";
|
" AND u_password=ENCRYPT('$password','$userName')";
|
||||||
$result = @mysql_fetch_array (@mysql_db_query (sqlDB, $query));
|
$result = @mysql_fetch_array (@mysql_db_query (sqlDB, $query));
|
||||||
|
|
||||||
if ($result[auth]) {
|
if ($result[auth]) {
|
||||||
authCreateSecret ($userName, $result[u_password]);
|
authCreateSecret ($userName, $result[u_password]);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -170,7 +170,7 @@
|
||||||
if ($conn) {
|
if ($conn) {
|
||||||
$query = 'SELECT n_date, n_user, n_news FROM news_main' .
|
$query = 'SELECT n_date, n_user, n_news FROM news_main' .
|
||||||
' ORDER BY n_date DESC';
|
' ORDER BY n_date DESC';
|
||||||
$result = @mysql_db_query (sqlDB, $query, $conn);
|
$result = mysql_db_query (sqlDB, $query, $conn);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$numRows = @mysql_num_rows ($result);
|
$numRows = @mysql_num_rows ($result);
|
||||||
if ($numRows) {
|
if ($numRows) {
|
||||||
|
@ -209,7 +209,7 @@
|
||||||
$date = sprintf ("%04d-%02d", $year, $month);
|
$date = sprintf ("%04d-%02d", $year, $month);
|
||||||
|
|
||||||
if (sqlAvail) {
|
if (sqlAvail) {
|
||||||
$conn = @mysql_pconnect (sqlHost, sqlUser, sqlPass);
|
$conn = mysql_pconnect (sqlHost, sqlUser, sqlPass);
|
||||||
if ($conn) {
|
if ($conn) {
|
||||||
$query = 'SELECT n_date, n_user, n_news FROM news_main' .
|
$query = 'SELECT n_date, n_user, n_news FROM news_main' .
|
||||||
" WHERE n_date BETWEEN '$date-00 00:00:00'" .
|
" WHERE n_date BETWEEN '$date-00 00:00:00'" .
|
||||||
|
|
Loading…
Reference in a new issue