global $SEC_CHARS;
// Compile constants
- $code = str_replace("{--", '".', str_replace("--}", '."', $code));
+ $code = str_replace('{--', '".', str_replace('--}', '."', $code));
// Compile QUOT and other non-HTML codes
foreach ($SEC_CHARS['to'] as $k=>$from)
}
// But keep simple quotes for later use
- if ($simple) $code = str_replace("'", "{QUOT}", $code);
+ if ($simple) $code = str_replace("'", '{QUOT}', $code);
// Return compiled code
return $code;
{
// The local file does exists so we load it. :)
$tmpl_file = implode("", file($file));
- $tmpl_file = str_replace("'", "{QUOT}", $tmpl_file);
+ $tmpl_file = str_replace("'", '{QUOT}', $tmpl_file);
// Compile and run code
$ret = COMPILE_CODE(addslashes($tmpl_file), false, true);