diff --git a/node/lib/sherpa/interfaces/NodeJs.js b/node/lib/sherpa/interfaces/NodeJs.js index fb78c5c..9e7e308 100644 --- a/node/lib/sherpa/interfaces/NodeJs.js +++ b/node/lib/sherpa/interfaces/NodeJs.js @@ -11,7 +11,8 @@ NodeJs.prototype = { var router = new Sherpa.Router(); var notFound = function(req, res) { res.writeHead(404, {}); - res.close(); + res.end(); // FIXED: TypeError: Object # has no method 'close' +// res.close(); // res.sendHeader(404, {}); // res.finish(); } diff --git a/www/_app.php b/www/_app.php index 40935d8..c2398f8 100644 --- a/www/_app.php +++ b/www/_app.php @@ -5,7 +5,7 @@ ?>

- / + /

 
diff --git a/www/_head.php b/www/_head.php index ebd5b80..d9cbecb 100644 --- a/www/_head.php +++ b/www/_head.php @@ -1,10 +1,10 @@ <?php echo $_SERVER['SERVER_NAME'] ?>/<?php echo $_GET['room']?> - - - + + + - + - - - + + + diff --git a/www/index.php b/www/index.php index fe55e8c..c6949d1 100644 --- a/www/index.php +++ b/www/index.php @@ -1,39 +1,105 @@ -port; + if (strstr($_SERVER['QUERY_STRING'], '&logout')) { + header('Location: http://' . $_SERVER['SERVER_NAME'] . '/' . $_GET['room']); - } - include '_config.php' ?> + + } + + + +?> + + + + +

+ + + + +