rendered paste body<?phpclass cDebug{ //Redone private $debug_switch; private $debug_location; function __construct() { $this->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<br>"; if( $level == 2 && $this->debug_switch ) trigger_error( "//$str<br>" ); else if( $level == 3 && $this->debug_switch ) die( "//<b><font color='red'>DYING</font></b>: $str<br>" ); else return; }}?>