You could change the function error in announce.php to something like:
function error($msg){
if($msg==='Database error') $msg.=': '.mysql_error().' '.__LINE__;
header('Content-Type: text/plain; charset=ISO-8859');
header('Pragma: no-cache');
die('d14:failure reason'.strlen($msg).':'.$msg.'e');
}
This would output the message "Database error: " followed by the error as reported by mysql and the line number.
Because the error message may be longer than uT wants to display, you should log it with a packet sniffer.
http://www.analogx.com/contents/down...twork/pmon.htm is a nice simple one.
Bookmarks