###############################################################################
# Debug.pl #
###############################################################################
# YaBB: Yet another Bulletin Board #
# Open-Source Community Software for Webmasters #
# Version: YaBB 3.0 Beta #
# Packaged: October 05, 2010 #
# Distributed by: http://www.yabbforum.com #
# =========================================================================== #
# Copyright (c) 2000-2010 YaBB (www.yabbforum.com) - All Rights Reserved. #
# Software by: The YaBB Development Team #
# with assistance from the YaBB community. #
###############################################################################
$debugplver = 'YaBB 3.0 Beta $Revision: 328 $';
sub Debug {
if ($debug == 1 or ($debug == 2 && $iamadmin)) {
$yyfileactions = "$debug_txt{'opened'} $file_open $debug_txt{'closed'} $file_close $debug_txt{'equal'}";
my $yytimeclock;
my $time_running = time - $START_TIME;
if ($time_running == int($time_running)) {
$yytimeclock = "$debug_txt{'nohires'} Time::Hires $debug_txt{'nomodule'}
";
} else {
$time_running = sprintf("%.4f", $time_running);
}
$yytimeclock .= "$debug_txt{'pagespeed'} $time_running $debug_txt{'loaded'}.";
&ToHTML($openfiles);
$openfiles =~ s/\n/
/g;
$yydebug = qq~