|
|
|
@ -16,6 +16,16 @@ if($_CPHP !== true) { die(); }
|
|
|
|
|
$template_cache = array();
|
|
|
|
|
$template_global_vars = array();
|
|
|
|
|
|
|
|
|
|
define("CPHP_TEMPLATER_SWITCH_NONE", 1);
|
|
|
|
|
define("CPHP_TEMPLATER_SWITCH_TAG_OPEN", 2);
|
|
|
|
|
define("CPHP_TEMPLATER_SWITCH_TAG_SYNTAX", 3);
|
|
|
|
|
define("CPHP_TEMPLATER_SWITCH_TAG_IDENTIFIER", 4);
|
|
|
|
|
define("CPHP_TEMPLATER_SWITCH_TAG_STATEMENT", 5);
|
|
|
|
|
define("CPHP_TEMPLATER_SWITCH_TAG_VARNAME", 6);
|
|
|
|
|
define("CPHP_TEMPLATER_TYPE_TAG_NONE", 10);
|
|
|
|
|
define("CPHP_TEMPLATER_TYPE_TAG_OPEN", 11);
|
|
|
|
|
define("CPHP_TEMPLATER_TYPE_TAG_CLOSE", 12);
|
|
|
|
|
|
|
|
|
|
class Templater
|
|
|
|
|
{
|
|
|
|
|
public $basedir = "templates/";
|
|
|
|
@ -306,16 +316,6 @@ class Templater
|
|
|
|
|
$tag_end = 0;
|
|
|
|
|
$text_block = "";
|
|
|
|
|
|
|
|
|
|
define("CPHP_TEMPLATER_SWITCH_NONE", 1);
|
|
|
|
|
define("CPHP_TEMPLATER_SWITCH_TAG_OPEN", 2);
|
|
|
|
|
define("CPHP_TEMPLATER_SWITCH_TAG_SYNTAX", 3);
|
|
|
|
|
define("CPHP_TEMPLATER_SWITCH_TAG_IDENTIFIER", 4);
|
|
|
|
|
define("CPHP_TEMPLATER_SWITCH_TAG_STATEMENT", 5);
|
|
|
|
|
define("CPHP_TEMPLATER_SWITCH_TAG_VARNAME", 6);
|
|
|
|
|
define("CPHP_TEMPLATER_TYPE_TAG_NONE", 10);
|
|
|
|
|
define("CPHP_TEMPLATER_TYPE_TAG_OPEN", 11);
|
|
|
|
|
define("CPHP_TEMPLATER_TYPE_TAG_CLOSE", 12);
|
|
|
|
|
|
|
|
|
|
$switch = CPHP_TEMPLATER_SWITCH_NONE;
|
|
|
|
|
$type = CPHP_TEMPLATER_TYPE_TAG_NONE;
|
|
|
|
|
|
|
|
|
|