gaim/www

(08:51:27) Faceprint: i think maybe we should update gdb.php to say "bt
full" instead of just "bt"
(08:51:32) Luke: okay
(08:51:35) Luke: that's easily done
(08:51:40) Faceprint: you agree?
(08:51:51) Luke: I'd never heard of bt full until last week
(08:51:54) Faceprint: that way we get the more useful backtrace the first
time
(08:52:12) Luke: *nods*
<?
function build_section_name($section)
{
$newstr = str_replace("/", "_", $section);
$newstr = str_replace(" ", "_", $newstr);
$newstr = str_replace("(", "_", $newstr);
$newstr = str_replace(")", "_", $newstr);
$newstr = str_replace("!", "_", $newstr);
return $newstr;
}
function start_q()
{
global $qa, $anchor;
print " <dt class=\"faq-question\" id=\"q" . $qa . "\">\n";
if ($anchor != "")
{
print "<a name=\"" . $anchor . "\"></a>\n";
$anchor = "";
}
}
function end_q() {
print " </dt>\n";
}
function start_a()
{
print " <dd class=\"faq-answer\">\n";
}
function end_a()
{
print "</dd>\n";
}
function check_in_qa()
{
global $in_question;
global $in_answer;
if ($in_question)
{
end_q();
$in_question = 0;
}
elseif ($in_answer)
{
end_a();
$in_answer = 0;
}
}
?>