mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Read in tabcontrols.php and properly eval()
This commit is contained in:
parent
fe39586a31
commit
37f36cdaad
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user