All pastes #557693 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-06-11 02:14 UTC
rendered paste body
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