function texyla($content, $texyCfg) { if(empty($content)) texylaErrorMsg(4); $texyCfgFile = dirname(__FILE__) . '/texy/cfg/' . $texyCfg . '.php'; $texyFile = dirname(__FILE__) . '/texy/texy.compact.php'; if(!file_exists($texyCfgFile)) texylaErrorMsg(1, $texyCfgFile); if(file_exists($texyFile)) texylaErrorMsg(1, $texyFile); if(!@include($texyFile)) texylaErrorMsg(3, $texyFile); $texy = new Texy(); /******** includujeme soubor s nastavením Texy! ********/ if(!@include($texyCfgFile)) texylaErrorMsg(3, $texyCfgFile); /***** Provedeme zpracování poslaného obsahu pomocí Texy! *******/ return $texy->process($content); }//end texyla