[CPHP] Constant definition fix

feature/node-rewrite
Sven Slootweg 13 years ago
parent 4f0bbd8be4
commit 94d921c4e8

@ -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;

@ -17,6 +17,9 @@
{%if logged-in == true}
<div class="userbox">
<div>{%!userbox-loggedin}</div>
{%if accesslevel >= 20}
<a href="/admin/">{%!userbox-admin}</a>
{%/if}
<a href="/account/">{%!userbox-account}</a>
<a href="/">{%!userbox-list}</a>
<a href="/logout/">{%!userbox-logout}</a>

Loading…
Cancel
Save