diff --git a/rest.php b/rest.php new file mode 100644 index 0000000..daadc4b --- /dev/null +++ b/rest.php @@ -0,0 +1,28 @@ +codetext ($code); + header ($_SERVER["SERVER_PROTOCOL"]." $code $text"); + $type = reset ($this->allowedtypes); + if (isset ($_SERVER["HTTP_ACCEPT"])) + { + $type = $http->bestChoice ($_SERVER["HTTP_ACCEPT"], $this->allowedtypes, + $type); + } + + require_once ("domframework/output$type.php"); + $constr = "output$type"; + $method = "out"; + $obj = new $constr (); + $obj->$method ($message); + } +}