summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-12 19:37:46 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-12 19:37:46 +0000
commit37f36cdaad48387d2d1c915c91e2c52ea6eb208b (patch)
tree8f8c60876a3169bed84843b359e175b1fc401029
parentfe39586a31d0568d399944230784d2b97e2c1c70 (diff)
downloadpfsense-37f36cdaad48387d2d1c915c91e2c52ea6eb208b.zip
pfsense-37f36cdaad48387d2d1c915c91e2c52ea6eb208b.tar.gz
Read in tabcontrols.php and properly eval()
-rw-r--r--etc/inc/pfsense-utils.inc8
1 files 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 "<table cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n";
$tabscounter = 0;
OpenPOWER on IntegriCloud