php/texy/http/index.php
changeset 196 27b751390163
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/php/texy/http/index.php	Mon Nov 07 20:31:08 2011 +0100
     1.3 @@ -0,0 +1,14 @@
     1.4 +<?php
     1.5 +
     1.6 +$vstup = urldecode(file_get_contents('php://input'));
     1.7 +
     1.8 +require_once "texy-2.1/texy/texy.php";
     1.9 +$texy = new Texy();
    1.10 +$texy->encoding = "UTF-8";
    1.11 +$texy->setOutputMode(Texy::XHTML1_STRICT);
    1.12 +$texy->process(NULL); //advertisingNotice nepotřebujeme: <!-- by Texy2! -->
    1.13 +$vysledek = $texy->process($vstup);
    1.14 +
    1.15 +echo($vysledek);
    1.16 +
    1.17 +?>