$timestamp, 'data' => $data ); } } function cphp_debug_dump() { global $cphp_debug_log; return json_encode($cphp_debug_log); } function cphp_debug_display($data) { /* We can't use the templater for this, because that would make this function unusable if the * templater itself were to ever be the subject of the debugging. */ ?> CPHP Debuglog Viewer