* @package Documentation * @subpackage Viewer * @version 1.0 * */ // controller **************************************************************/ if(!isset($_GET['sample']) || !file_exists('all/'.$_GET['sample'].'/'.$_GET['sample'].'.php')) die('Error: `'.$_GET['sample'].'` sample not exist !'); $title = str_replace('_', ' ', $_GET['sample']); $title = ucwords($title); $php_code = file_get_contents('all/'.$_GET['sample'].'/'.$_GET['sample'].'.php'); $php_code = str_replace("include('../headers.inc.php');", "include('TPLN/TPLN.php');", $php_code); $php_code = trim($php_code); $php_code = highlight_string($php_code, true); include('../../../x_includes/www/func.inc.php'); $tpl = file_get_contents('all/'.$_GET['sample'].'/'.$_GET['sample'].'.html'); $tpl = str_replace(" ", '  ', $tpl); $tpl = highlight_template($tpl); ?>

Sample>