-
Notifications
You must be signed in to change notification settings - Fork 12
/
ex7.php
executable file
·34 lines (25 loc) · 862 Bytes
/
ex7.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* example 7
* demonstrates file includes
*
* @package XTemplate_Examples
* @author Barnabas Debreceni [cranx@users.sourceforge.net]
* @copyright Barnabas Debreceni 2000-2001
* @author Jeremy Coates [cocomp@users.sourceforge.net]
* @copyright Jeremy Coates 2002-2007
* @see license.txt LGPL / BSD license
* @link $HeadURL: https://xtpl.svn.sourceforge.net/svnroot/xtpl/trunk/ex7.php $
* @version $Id: ex7.php 16 2007-01-11 03:02:49Z cocomp $
*/
include_once('./xtemplate.class.php');
$xtpl = new XTemplate('ex7.xtpl');
$xtpl->assign('FILENAME', 'ex7-inc.xtpl');
// Language is set to English
$xtpl->assign_file('LANGUAGE', 'ex7-inc-eng.xtpl');
// Uncomment the line below to set language to German
//$xtpl->assign_file('LANGUAGE', 'ex7-inc-de.xtpl');
$xtpl->rparse('main.inc');
$xtpl->parse('main');
$xtpl->out('main');
?>