aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freenas/www
diff options
context:
space:
mode:
authorDaniel Stefan Haischt <dsh@pfsense.org>2006-08-17 04:39:15 +0000
committerDaniel Stefan Haischt <dsh@pfsense.org>2006-08-17 04:39:15 +0000
commit0248a1809d2c1e2b5a4afeef9a9ffc66e9e62abb (patch)
tree9fb0166b5b9397c1e99de2db82d862f03798f85a /packages/freenas/www
parentebbd99ff36043e6fd4428bb0a520ff40dddeb3b4 (diff)
downloadpfsense-packages-0248a1809d2c1e2b5a4afeef9a9ffc66e9e62abb.tar.gz
pfsense-packages-0248a1809d2c1e2b5a4afeef9a9ffc66e9e62abb.tar.bz2
pfsense-packages-0248a1809d2c1e2b5a4afeef9a9ffc66e9e62abb.zip
bugfixing
Diffstat (limited to 'packages/freenas/www')
-rw-r--r--packages/freenas/www/diag_ad_infos.php1
-rw-r--r--packages/freenas/www/diag_ataidle_infos.php1
-rw-r--r--packages/freenas/www/diag_disk_infos.php1
-rw-r--r--packages/freenas/www/diag_fn_logs_daemon.php3
-rw-r--r--packages/freenas/www/diag_fn_logs_ftp.php3
-rw-r--r--packages/freenas/www/diag_fn_logs_rsyncd.php3
-rw-r--r--packages/freenas/www/diag_fn_logs_samba.php3
-rw-r--r--packages/freenas/www/diag_fn_logs_settings.php3
-rw-r--r--packages/freenas/www/diag_fn_logs_smartd.php3
-rw-r--r--packages/freenas/www/diag_fn_logs_sshd.php3
-rw-r--r--packages/freenas/www/diag_iscsi_infos.php1
-rw-r--r--packages/freenas/www/diag_mounts_infos.php1
-rw-r--r--packages/freenas/www/diag_part_infos.php1
-rw-r--r--packages/freenas/www/diag_raid_infos.php1
-rw-r--r--packages/freenas/www/diag_smart_infos.php1
-rw-r--r--packages/freenas/www/diag_space_infos.php1
-rw-r--r--packages/freenas/www/disks_manage.php1
-rw-r--r--packages/freenas/www/disks_manage_edit.php1
-rw-r--r--packages/freenas/www/disks_manage_init.php1
-rw-r--r--packages/freenas/www/disks_manage_iscsi.php3
-rw-r--r--packages/freenas/www/disks_mount.php1
-rw-r--r--packages/freenas/www/disks_mount_edit.php1
-rw-r--r--packages/freenas/www/disks_raid_gmirror.php1
-rw-r--r--packages/freenas/www/disks_raid_gmirror_edit.php1
-rw-r--r--packages/freenas/www/disks_raid_gmirror_infos.php8
-rw-r--r--packages/freenas/www/disks_raid_gmirror_init.php1
-rw-r--r--packages/freenas/www/disks_raid_gmirror_tools.php1
-rw-r--r--packages/freenas/www/disks_raid_gvinum.php1
-rw-r--r--packages/freenas/www/disks_raid_gvinum_edit.php1
-rw-r--r--packages/freenas/www/disks_raid_gvinum_infos.php1
-rw-r--r--packages/freenas/www/disks_raid_gvinum_init.php1
-rw-r--r--packages/freenas/www/disks_raid_gvinum_tools.php3
-rw-r--r--packages/freenas/www/services_afp.php1
-rw-r--r--packages/freenas/www/services_ftp.php1
-rw-r--r--packages/freenas/www/services_nfs.php1
-rw-r--r--packages/freenas/www/services_rsyncd.php1
-rw-r--r--packages/freenas/www/services_rsyncd_client.php1
-rw-r--r--packages/freenas/www/services_samba.php1
38 files changed, 50 insertions, 13 deletions
diff --git a/packages/freenas/www/diag_ad_infos.php b/packages/freenas/www/diag_ad_infos.php
index b877c514..60ab806b 100644
--- a/packages/freenas/www/diag_ad_infos.php
+++ b/packages/freenas/www/diag_ad_infos.php
@@ -35,6 +35,7 @@
$pgtitle = array(gettext("Diagnostics"),
gettext("Active Directory Infos"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_ataidle_infos.php b/packages/freenas/www/diag_ataidle_infos.php
index cffccc8f..7d98a368 100644
--- a/packages/freenas/www/diag_ataidle_infos.php
+++ b/packages/freenas/www/diag_ataidle_infos.php
@@ -35,6 +35,7 @@
$pgtitle = array(gettext("Diagnostics"),
gettext("ATAidle Infos"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_disk_infos.php b/packages/freenas/www/diag_disk_infos.php
index 7cf1d71a..71a8d4c3 100644
--- a/packages/freenas/www/diag_disk_infos.php
+++ b/packages/freenas/www/diag_disk_infos.php
@@ -35,6 +35,7 @@
$pgtitle = array(gettext("Diagnostics"),
gettext("Disk Infos"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_fn_logs_daemon.php b/packages/freenas/www/diag_fn_logs_daemon.php
index d320caa9..de767763 100644
--- a/packages/freenas/www/diag_fn_logs_daemon.php
+++ b/packages/freenas/www/diag_fn_logs_daemon.php
@@ -35,7 +35,8 @@ $pgtitle = array(gettext("Diagnostics"),
gettext("System logs"),
gettext("Daemon"));
-require("guiconfig.inc");
+require_once("freenas_config.inc");
+require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_fn_logs_ftp.php b/packages/freenas/www/diag_fn_logs_ftp.php
index 6f29e986..608a326c 100644
--- a/packages/freenas/www/diag_fn_logs_ftp.php
+++ b/packages/freenas/www/diag_fn_logs_ftp.php
@@ -35,7 +35,8 @@ $pgtitle = array(gettext("Diagnostics"),
gettext("System logs"),
gettext("FTP"));
-require("guiconfig.inc");
+require_once("freenas_config.inc");
+require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_fn_logs_rsyncd.php b/packages/freenas/www/diag_fn_logs_rsyncd.php
index ac3b458a..230d492f 100644
--- a/packages/freenas/www/diag_fn_logs_rsyncd.php
+++ b/packages/freenas/www/diag_fn_logs_rsyncd.php
@@ -35,7 +35,8 @@ $pgtitle = array(gettext("Diagnostics"),
gettext("System logs"),
gettext("RSYNCD"));
-require("guiconfig.inc");
+require_once("freenas_config.inc");
+require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_fn_logs_samba.php b/packages/freenas/www/diag_fn_logs_samba.php
index 679c8826..df69d2c6 100644
--- a/packages/freenas/www/diag_fn_logs_samba.php
+++ b/packages/freenas/www/diag_fn_logs_samba.php
@@ -35,7 +35,8 @@ $pgtitle = array(gettext("Diagnostics"),
gettext("System logs"),
gettext("Samba"));
-require("guiconfig.inc");
+require_once("freenas_config.inc");
+require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_fn_logs_settings.php b/packages/freenas/www/diag_fn_logs_settings.php
index 1f4ada67..dcc45c40 100644
--- a/packages/freenas/www/diag_fn_logs_settings.php
+++ b/packages/freenas/www/diag_fn_logs_settings.php
@@ -35,7 +35,8 @@ $pgtitle = array(gettext("Diagnostics"),
gettext("System logs"),
gettext("Settings"));
-require("guiconfig.inc");
+require_once("freenas_config.inc");
+require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_fn_logs_smartd.php b/packages/freenas/www/diag_fn_logs_smartd.php
index c5e9cb88..568327e9 100644
--- a/packages/freenas/www/diag_fn_logs_smartd.php
+++ b/packages/freenas/www/diag_fn_logs_smartd.php
@@ -35,7 +35,8 @@ $pgtitle = array(gettext("Diagnostics"),
gettext("System logs"),
gettext("SMARTD"));
-require("guiconfig.inc");
+require_once("freenas_config.inc");
+require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_fn_logs_sshd.php b/packages/freenas/www/diag_fn_logs_sshd.php
index 56c6147a..77721ef4 100644
--- a/packages/freenas/www/diag_fn_logs_sshd.php
+++ b/packages/freenas/www/diag_fn_logs_sshd.php
@@ -35,7 +35,8 @@ $pgtitle = array(gettext("Diagnostics"),
gettext("System logs"),
gettext("SSHD"));
-require("guiconfig.inc");
+require_once("freenas_config.inc");
+require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_iscsi_infos.php b/packages/freenas/www/diag_iscsi_infos.php
index e90bf8ed..bbe11f0e 100644
--- a/packages/freenas/www/diag_iscsi_infos.php
+++ b/packages/freenas/www/diag_iscsi_infos.php
@@ -35,6 +35,7 @@
$pgtitle = array(gettext("Diagnostics"),
gettext("iSCSI Infos"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_mounts_infos.php b/packages/freenas/www/diag_mounts_infos.php
index 36bbec52..b3f39a74 100644
--- a/packages/freenas/www/diag_mounts_infos.php
+++ b/packages/freenas/www/diag_mounts_infos.php
@@ -35,6 +35,7 @@
$pgtitle = array(gettext("Diagnostics"),
gettext("Mount Infos"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_part_infos.php b/packages/freenas/www/diag_part_infos.php
index 7201f11c..a4a4332e 100644
--- a/packages/freenas/www/diag_part_infos.php
+++ b/packages/freenas/www/diag_part_infos.php
@@ -35,6 +35,7 @@
$pgtitle = array(gettext("Diagnostics"),
gettext("Partition Infos"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_raid_infos.php b/packages/freenas/www/diag_raid_infos.php
index b469aa52..2be95287 100644
--- a/packages/freenas/www/diag_raid_infos.php
+++ b/packages/freenas/www/diag_raid_infos.php
@@ -35,6 +35,7 @@
$pgtitle = array(gettext("Diagnostics"),
gettext("RAID Infos"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_smart_infos.php b/packages/freenas/www/diag_smart_infos.php
index 9a43e210..8ff1bf18 100644
--- a/packages/freenas/www/diag_smart_infos.php
+++ b/packages/freenas/www/diag_smart_infos.php
@@ -35,6 +35,7 @@
$pgtitle = array(gettext("Diagnostics"),
gettext("SMART Infos"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/diag_space_infos.php b/packages/freenas/www/diag_space_infos.php
index f30688e1..14ed437b 100644
--- a/packages/freenas/www/diag_space_infos.php
+++ b/packages/freenas/www/diag_space_infos.php
@@ -35,6 +35,7 @@
$pgtitle = array(gettext("Diagnostics"),
gettext("Space Infos"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_manage.php b/packages/freenas/www/disks_manage.php
index ee2e6dc0..d521ca2e 100644
--- a/packages/freenas/www/disks_manage.php
+++ b/packages/freenas/www/disks_manage.php
@@ -40,6 +40,7 @@ $pgtitle = array(gettext("System"),
gettext("Disks"),
gettext("Management"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_manage_edit.php b/packages/freenas/www/disks_manage_edit.php
index 416d9bc6..fedaba9b 100644
--- a/packages/freenas/www/disks_manage_edit.php
+++ b/packages/freenas/www/disks_manage_edit.php
@@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"),
gettext("Management"),
gettext("Edit"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_manage_init.php b/packages/freenas/www/disks_manage_init.php
index b6fce877..be7ec5f8 100644
--- a/packages/freenas/www/disks_manage_init.php
+++ b/packages/freenas/www/disks_manage_init.php
@@ -36,6 +36,7 @@ $pgtitle = array(gettext("System"),
gettext("Disks"),
gettext("Initialize"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_manage_iscsi.php b/packages/freenas/www/disks_manage_iscsi.php
index 4a156ee7..2aaf5cb9 100644
--- a/packages/freenas/www/disks_manage_iscsi.php
+++ b/packages/freenas/www/disks_manage_iscsi.php
@@ -36,13 +36,14 @@ $pgtitle = array(gettext("System"),
gettext("Disks"),
gettext("iSCSI Initiator"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
if (! is_array($freenas_config['iscsi']))
{
- $freenas_config['iscsi'] = array();
+ $freenas_config['iscsi'] = array();
}
$pconfig['enable'] = isset($freenas_config['iscsi']['enable']);
diff --git a/packages/freenas/www/disks_mount.php b/packages/freenas/www/disks_mount.php
index c5bd6f2b..c2cf2ea4 100644
--- a/packages/freenas/www/disks_mount.php
+++ b/packages/freenas/www/disks_mount.php
@@ -36,6 +36,7 @@ $pgtitle = array(gettext("System"),
gettext("Disks"),
gettext("Mount Point"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_mount_edit.php b/packages/freenas/www/disks_mount_edit.php
index 31221570..89fbc747 100644
--- a/packages/freenas/www/disks_mount_edit.php
+++ b/packages/freenas/www/disks_mount_edit.php
@@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"),
gettext("Mount Point"),
gettext("Edit"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_raid_gmirror.php b/packages/freenas/www/disks_raid_gmirror.php
index 4d51ba0f..ec926558 100644
--- a/packages/freenas/www/disks_raid_gmirror.php
+++ b/packages/freenas/www/disks_raid_gmirror.php
@@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"),
gettext("GEOM Mirror"),
gettext("RAID"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_raid_gmirror_edit.php b/packages/freenas/www/disks_raid_gmirror_edit.php
index 4fba1242..e3ce6a2a 100644
--- a/packages/freenas/www/disks_raid_gmirror_edit.php
+++ b/packages/freenas/www/disks_raid_gmirror_edit.php
@@ -38,6 +38,7 @@ $pgtitle = array(gettext("System"),
gettext("RAID"),
gettext("Edit"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_raid_gmirror_infos.php b/packages/freenas/www/disks_raid_gmirror_infos.php
index e6b208e7..92614e89 100644
--- a/packages/freenas/www/disks_raid_gmirror_infos.php
+++ b/packages/freenas/www/disks_raid_gmirror_infos.php
@@ -92,10 +92,10 @@ echo $pfSenseHead->getHTML();
<td class="tabnavtbl">
<?php
$tab_array = array();
- $tab_array[0] = array(gettext("Manage RAID"), false, "disks_raid_gvinum.php");
- $tab_array[1] = array(gettext("Format RAID"), false, "disks_raid_gvinum_init.php");
- $tab_array[2] = array(gettext("Tools"), false, "disks_raid_gvinum_tools.php");
- $tab_array[3] = array(gettext("Information"), true, "disks_raid_gvinum_infos.php");
+ $tab_array[0] = array(gettext("Manage RAID"), false, "disks_raid_gmirror.php");
+ $tab_array[1] = array(gettext("Format RAID"), false, "disks_raid_gmirror_init.php");
+ $tab_array[2] = array(gettext("Tools"), false, "disks_raid_gmirror_tools.php");
+ $tab_array[3] = array(gettext("Information"), true, "disks_raid_gmirror_infos.php");
display_top_tabs($tab_array);
?>
</td>
diff --git a/packages/freenas/www/disks_raid_gmirror_init.php b/packages/freenas/www/disks_raid_gmirror_init.php
index c849be52..bb9a379a 100644
--- a/packages/freenas/www/disks_raid_gmirror_init.php
+++ b/packages/freenas/www/disks_raid_gmirror_init.php
@@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"),
gettext("GEOM Mirror"),
gettext("Initialize"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_raid_gmirror_tools.php b/packages/freenas/www/disks_raid_gmirror_tools.php
index 714dea7f..35f9c5a9 100644
--- a/packages/freenas/www/disks_raid_gmirror_tools.php
+++ b/packages/freenas/www/disks_raid_gmirror_tools.php
@@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"),
gettext("GEOM Mirror"),
gettext("Tools"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_raid_gvinum.php b/packages/freenas/www/disks_raid_gvinum.php
index 260fae14..47258f65 100644
--- a/packages/freenas/www/disks_raid_gvinum.php
+++ b/packages/freenas/www/disks_raid_gvinum.php
@@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"),
gettext("GEOM Vinum"),
gettext("RAID"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_raid_gvinum_edit.php b/packages/freenas/www/disks_raid_gvinum_edit.php
index 45cbac88..dbf8ce1d 100644
--- a/packages/freenas/www/disks_raid_gvinum_edit.php
+++ b/packages/freenas/www/disks_raid_gvinum_edit.php
@@ -38,6 +38,7 @@ $pgtitle = array(gettext("System"),
gettext("RAID"),
gettext("Edit"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_raid_gvinum_infos.php b/packages/freenas/www/disks_raid_gvinum_infos.php
index 7b9cfcb2..eceb63be 100644
--- a/packages/freenas/www/disks_raid_gvinum_infos.php
+++ b/packages/freenas/www/disks_raid_gvinum_infos.php
@@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"),
gettext("GEOM Vinum"),
gettext("Information"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_raid_gvinum_init.php b/packages/freenas/www/disks_raid_gvinum_init.php
index 2befcaa0..8b899dff 100644
--- a/packages/freenas/www/disks_raid_gvinum_init.php
+++ b/packages/freenas/www/disks_raid_gvinum_init.php
@@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"),
gettext("GEOM Vinum"),
gettext("Initialize"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/disks_raid_gvinum_tools.php b/packages/freenas/www/disks_raid_gvinum_tools.php
index 97853e29..375c0224 100644
--- a/packages/freenas/www/disks_raid_gvinum_tools.php
+++ b/packages/freenas/www/disks_raid_gvinum_tools.php
@@ -37,6 +37,7 @@ $pgtitle = array(gettext("System"),
gettext("GEOM Vinum"),
gettext("Tools"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
@@ -174,7 +175,7 @@ echo $pfSenseHead->getHTML();
/* Force object state up */
system("/sbin/gvinum setstate -f up " . escapeshellarg($object));
break;
- case "saveconfig":
+ case "saveconfig":
/* Save config */
system("/sbin/gvinum saveconfig");
break;
diff --git a/packages/freenas/www/services_afp.php b/packages/freenas/www/services_afp.php
index c3648b9f..deee46f0 100644
--- a/packages/freenas/www/services_afp.php
+++ b/packages/freenas/www/services_afp.php
@@ -35,6 +35,7 @@
$pgtitle = array(gettext("Services"),
gettext("AFP"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/services_ftp.php b/packages/freenas/www/services_ftp.php
index da144349..3da55786 100644
--- a/packages/freenas/www/services_ftp.php
+++ b/packages/freenas/www/services_ftp.php
@@ -35,6 +35,7 @@
$pgtitle = array(gettext("Services"),
gettext("FTP"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/services_nfs.php b/packages/freenas/www/services_nfs.php
index 403ea17c..3ad897e2 100644
--- a/packages/freenas/www/services_nfs.php
+++ b/packages/freenas/www/services_nfs.php
@@ -35,6 +35,7 @@
$pgtitle = array(gettext("Services"),
gettext("NFS"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/services_rsyncd.php b/packages/freenas/www/services_rsyncd.php
index b28bca34..e4b744b7 100644
--- a/packages/freenas/www/services_rsyncd.php
+++ b/packages/freenas/www/services_rsyncd.php
@@ -36,6 +36,7 @@ $pgtitle = array(gettext("Services"),
gettext("RSYNCD"),
gettext("Server"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/services_rsyncd_client.php b/packages/freenas/www/services_rsyncd_client.php
index f5e86e07..ab54f562 100644
--- a/packages/freenas/www/services_rsyncd_client.php
+++ b/packages/freenas/www/services_rsyncd_client.php
@@ -36,6 +36,7 @@ $pgtitle = array(gettext("Services"),
gettext("RSYNCD"),
gettext("Client"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");
diff --git a/packages/freenas/www/services_samba.php b/packages/freenas/www/services_samba.php
index 1703b645..9486f8fc 100644
--- a/packages/freenas/www/services_samba.php
+++ b/packages/freenas/www/services_samba.php
@@ -35,6 +35,7 @@
$pgtitle = array(gettext("Services"),
gettext("CIFS"));
+require_once("freenas_config.inc");
require_once("guiconfig.inc");
require_once("freenas_guiconfig.inc");
require_once("freenas_functions.inc");