engine debugging and test.php added
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 14 Feb 2013 06:29:37 +0000 (07:29 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Thu, 14 Feb 2013 06:29:37 +0000 (07:29 +0100)
web/Obj/brisk.phh

index 94086cc..45b583c 100644 (file)
@@ -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 = "<html><body>OK</body></html>";
+          $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/";