]> git.entuzijast.net Git - freeradius-dialup-admin.git/commitdiff
In debug, output the sql queries in italic. Refer to enabling debugging in the FAQ
authorkkalev <kkalev>
Sat, 11 Jan 2003 18:45:32 +0000 (18:45 +0000)
committerkkalev <kkalev>
Sat, 11 Jan 2003 18:45:32 +0000 (18:45 +0000)
Changelog
FAQ
lib/sql/drivers/mysql/functions.php3
lib/sql/drivers/pg/functions.php3

index 275255a4c06a9d734a5ae563f06ef96847fb5acf..19d6715e29b138afe2d75d02e25afc53f906bec7 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -24,9 +24,10 @@ Ver 1.62:
 * In log_badlogins create a separate sql input file for each sql server and append sql commands to it. If the
   sql command succeeds we delete the corresponding input file. That way if an sql server is down we store the
   accounting info in the input file and then send it all when it comes back up.
-* Add a directive sql_debug. Add debuging statements in the sql library
-* Add a directive ldap_debug. Add debuging statements in the ldap library
+* Add a directive sql_debug. Add debugging statements in the sql library
+* Add a directive ldap_debug. Add debugging statements in the ldap library
 * Add debug statements in the pg driver
+* In debug, output the sql queries in italic. Refer to enabling debugging in the FAQ
 Ver 1.61:
 * Add a string encoder for greek
 * If general_decode_normal_attributes is set then encode attributes in lib/ldap/change_info. In the near future
diff --git a/FAQ b/FAQ
index 3864b0c5147e48c07cd4c0a313f93ae2074a2ad3..8a729e347256bcd4aed8faa031573f841a946c98 100644 (file)
--- a/FAQ
+++ b/FAQ
@@ -64,5 +64,7 @@ Check that the register_globals in php.ini is set to on. As of PHP 4.2.0 this is
 versions of dialup_admin will work even if register_globals is set to off if the php version is > 4.1.0
 (Thanks to Evren Yurtesen <eyurtese@turkuamk.fi> for the suggestion).
 
+In latest versions you can also enable sql debug (sql_debug: true) and ldap debug (ldap_debug: true)
+
 --
 kkalev
index e558f2c0a5d83920c70fd24cbd1ef9c7f8a6b4c0..78fe0a52bada02970ace0a0a99e0514a4b94b631 100644 (file)
@@ -28,7 +28,7 @@ function da_sql_close($link,$config)
 function da_sql_query($link,$config,$query)
 {
        if ($config[sql_debug] == 'true')
-               print "<b>DEBUG(SQL,MYSQL DRIVER): Query: $query</b><br>\n";
+               print "<b>DEBUG(SQL,MYSQL DRIVER): Query: <i>$query</i></b><br>\n";
        return @mysql_db_query($config[sql_database],$query,$link);
 }
 
index d0f885a747b8a08beb5f28176f197a8ca8e96d5f..4c5a10b88502f933fa3df5b8d03d9c1f401fcd42 100644 (file)
@@ -30,7 +30,7 @@ function da_sql_close($link,$config)
 function da_sql_query($link,$config,$query)
 {
        if ($config[sql_debug] == 'true')
-               print "<b>DEBUG(SQL,PG DRIVER): Query: $query</b><br>\n";
+               print "<b>DEBUG(SQL,PG DRIVER): Query: <i>$query</i></b><br>\n";
        return @pg_exec($link,$query);
 }