not entirely sure, think its all the messaging components
[glcas.git] / www / index.php
index bf3bc2c..621c61d 100644 (file)
@@ -31,11 +31,23 @@ if($configpath == false) {
 }
 
 $glconfig = new GLCASConfig();
+global $glconfig;
 $glconfig->loadConfig($configpath);
+
+// the global action handler
+if(isset($_REQUEST["glcasbasesendmsg"])) {
+       GLCASAddMessage($_REQUEST["msglev"], $_REQUEST["message"]);
+       header("Location: ".$_SERVER["HTTP_REFERER"]);
+       return;
+}
+
+// step up to the web responder
 $webResponder = new GLCASWeb($glconfig);
 $webResponder->go($URL_HANDLERS);
 
 
+
+
 /*
 echo "<pre>";
 echo "BASEURL: $BASE_URL\n";