From: Roland Häder Date: Sun, 6 Jun 2010 17:42:26 +0000 (+0000) Subject: Rewrite for eval() command X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=146d2e01f0ac11489e40a398dd79d5e3946f42ac;p=mailer.git Rewrite for eval() command --- diff --git a/inc/functions.php b/inc/functions.php index 305ee3f8aa..254a29a17e 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -324,9 +324,6 @@ function loadTemplate ($template, $return = false, $content = array()) { // Cache the eval() command here $GLOBALS['template_eval'][$template] = $eval; - - // Eval the code - eval($GLOBALS['template_eval'][$template]); } elseif ((isAdmin()) || ((isInstalling()) && (!isInstalled()))) { // Only admins shall see this warning or when installation mode is active $ret = '
{--TEMPLATE_404--}
@@ -341,10 +338,13 @@ function loadTemplate ($template, $return = false, $content = array()) { // No file! $GLOBALS['template_eval'][$template] = '404'; } - } else { + } + + // Code set? + if ((isset($GLOBALS['template_eval'][$template])) && ($GLOBALS['template_eval'][$template] != '404')) { // Eval the code eval($GLOBALS['template_eval'][$template]); - } + } // END - if // Do we have some content to output or return? if (!empty($ret)) {