* 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
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
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);
}
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);
}