From 37f36cdaad48387d2d1c915c91e2c52ea6eb208b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 12 Oct 2008 19:37:46 +0000 Subject: Read in tabcontrols.php and properly eval() --- etc/inc/pfsense-utils.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index b8e0342..afc4bef 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -2326,9 +2326,11 @@ function display_top_tabs(& $tab_array) { /* if tabcontrols.php exist for a theme, allow it to be overriden */ $themename = $config['theme']; $filename = "/usr/local/www/themes/{$themename}/tabcontrols.php"; - if(file_exists($filename)) - eval($filename); - + if(file_exists($filename)) { + $eval_code = file_get_contents($filename); + eval($eval_code); + } + echo "\n"; echo " \n"; $tabscounter = 0; -- cgit v1.1