X-Git-Url: http://git.pjr.cc/?p=glcas.git;a=blobdiff_plain;f=www%2Findex.php;h=621c61d1326445a321290343a909b35a363b7fa9;hp=4657e529f43a926bbfc3eb6981108ebb8a4f0d16;hb=HEAD;hpb=17d5412ef5bdde749ce57dbdd627243eb0d701a8 diff --git a/www/index.php b/www/index.php index 4657e52..621c61d 100644 --- a/www/index.php +++ b/www/index.php @@ -1,8 +1,9 @@ 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";
+echo "CUSTOM\n";
+print_r($_SERVER);
+
 $vars = get_defined_vars();
 foreach($vars as $var => $vkey) {
 	echo "VAR $var is:\n";