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