enableDebugging( false );
}
function enableDebugging( $switch )
{
if( $switch == true ) $this->debug_switch = true;
else $this->debug_switch = false;
}
function debugBuffer( $str, $level )
{
if( $level == 1 && $this->debug_switch ) echo "//$str
";
if( $level == 2 && $this->debug_switch ) trigger_error( "//$str
" );
else if( $level == 3 && $this->debug_switch ) die( "//DYING: $str
" );
else return;
}
}
?>