From fed13c8f63caa97620ff8e82698fa46ff508ae92 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Thu, 14 Feb 2013 07:29:37 +0100 Subject: [PATCH] engine debugging and test.php added --- web/Obj/brisk.phh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 94086cc..45b583c 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -77,6 +77,7 @@ define('DBG_CRIT', 0x0400); define('DBG_LMOP', 0x0800); define('DBG_TRAC', 0x1000); define('DBG_SHME', 0x2000); +define('DBG_ENGI', 0x4000); // NOTE: BRISK DEBUG must be a numerical constant, not the result of operations on symbols define('BRISK_DEBUG', 0x0800); @@ -2283,7 +2284,14 @@ class Room return FALSE; break; - + case 'test.php': + if (!(BRISK_DEBUG & DBG_ENGI)) + return (FALSE); + fprintf(STDERR, "TEST.PHP running\n"); + $content = "OK"; + $s_a_p->pendpage_try_addflush($new_socket, 20, $enc, $header_out, $content); + return TRUE; + break; default: /* FAR TODO: move all into an array of registered sub-apps */ $subs = "briskin5/"; -- 2.17.1