core = $core; } function loadTemplate($templatename){ } function parseif($template){ $reg = "/\{IF (.+?)\}(.+?)\{ENDIF\}/"; preg_match_all($reg,$template,$submatches); } } $template = ' Cefas -{PAGETITLE}
Cefas logo
{IF PERMISSIONS.canadduser} {ENDIF}
'; $reg = "/\{IF (.+?)\}/"; preg_match_all($reg,$template,$submatches); print_r($submatches);