break; case E_WARNING: $el = SB_T('Warning'); break; default: $el = SB_T('Unknown'); } echo "<p>"; if ($fulldetails) { echo $el . ": "; } echo $err[1]; } } function log($prefix, $data = null) { if (SB_DEBUGGING) { $this->useHandler(false); Debug::fireLog($prefix . ": " . $data); $this->useHandler(); } return $data; } function dump($expr, $inscript = 0) { Debug::fireDump($expr); } } $SB_ErrorHandler_obj = new SB_ErrorHandler(); $SB_ErrorHandler_obj->useHandler();
function connect($host, $user, $pass) { $this->sw->cont(); SB_ErrorHandler::useHandler(false); $ret = @mysql_connect($host, $user, $pass); SB_ErrorHandler::useHandler(true); $this->sw->pause(); return $ret; }