added some flow stuff
authorpaulr <me@pjr.cc>
Wed, 30 Mar 2011 15:31:56 +0000 (02:31 +1100)
committerpaulr <me@pjr.cc>
Wed, 30 Mar 2011 15:31:56 +0000 (02:31 +1100)
lib/plugins/www.php [new file with mode: 0644]
www/index.php

diff --git a/lib/plugins/www.php b/lib/plugins/www.php
new file mode 100644 (file)
index 0000000..4ef4c99
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+global $preWebComponents, $webComponents, $postWebComponents;
+
+
+function goWebProcessor()
+{
+       global $preWebComponents, $webComponents, $postWebComponents;
+       
+       foreach($preWebComponents as $function) {
+               if(function_exists($function)) $function();
+       }
+       
+       foreach($webComponents as $function) {
+               if(function_exists($function)) $function();
+       }
+       
+       foreach($postWebComponents as $function) {
+               if(function_exists($function)) $function();
+       }
+}
+?>
\ No newline at end of file
index be74178..4a873a4 100644 (file)
@@ -2,13 +2,14 @@
 
 require_once("../lib/lib.php");
 
+if(function_exists("goWebProcessor")) {
+       goWebProcessor();
+       exit(0);
+}
+
 ?>
 <html>
-<pre>
-<?php 
-print_r($GLOBALS);
-print_r($_REQUEST);
-print_r($_SERVER);
-?>
-</pre>
-</html>
\ No newline at end of file
+<body>
+No Web Component Installed
+</body>
+</html>