1

(14 replies, posted in PunBB 1.2 troubleshooting)

Why not just MOD the footer to see just the milliseconds info without enabling Pun Debug mode?  Would that not solve the safety issue.

Changes /footer.php in the punbb root (do save a backup first PLEASE!)

Look for:

// Display debug info (if enabled/defined)
if (defined('PUN_DEBUG'))
{
    // Calculate script generation time
    list($usec, $sec) = explode(' ', microtime());
    $time_diff = sprintf('%.3f', ((float)$usec + (float)$sec) - $pun_start);

    echo "\t\t\t\t\t\t".'<br>[ <span class="punclosed">Generated in '.$time_diff.' seconds, '.$db->get_num_queries().' queries executed</span> ]'."\n";
}

Change to:

// Display debug info (if enabled/defined)
// if (defined('PUN_DEBUG'))
// {
    // Calculate script generation time
    list($usec, $sec) = explode(' ', microtime());
    $time_diff = sprintf('%.3f', ((float)$usec + (float)$sec) - $pun_start);

    echo "\t\t\t\t\t\t".'<br>[ <span class="punclosed">Generated in '.$time_diff.' seconds, '.$db->get_num_queries().' queries executed</span> ]'."\n";
// }

In text: I've commented out (using '//') the check for debug mode... if you have your backup, you could also just remove the commented lines in the replacement code.