X-Git-Url: http://git.pjr.cc/?p=glcas.git;a=blobdiff_plain;f=www%2Findex.php;fp=www%2Findex.php;h=621c61d1326445a321290343a909b35a363b7fa9;hp=bf3bc2c938bfa3b561602d1827fb8dd08a54a06a;hb=62980aceef653f7e9651e3deb7da783e857db2fd;hpb=257eeb932340f510db9b92c3760ae79bed924989 diff --git a/www/index.php b/www/index.php index bf3bc2c..621c61d 100644 --- a/www/index.php +++ b/www/index.php @@ -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 "
";
 echo "BASEURL: $BASE_URL\n";