From 55b6ad84bb898c20f30cdf5d4c94c04cb21ebd22 Mon Sep 17 00:00:00 2001 From: Daniel Stefan Haischt Date: Thu, 4 Jan 2007 14:39:23 +0000 Subject: * bug fixing * issues not fixed: services_samba.php and disks_manage_tools.php do have layouting issues --- packages/freenas/pkg/freenas_disks.inc | 2 +- packages/freenas/pkg/freenas_guiconfig.inc | 12 ++++++------ packages/freenas/www/disks_mount.php | 2 +- packages/freenas/www/disks_mount_tools.php | 4 ++-- packages/freenas/www/disks_raid_gmirror_tools.php | 2 +- packages/freenas/www/services_ftp.php | 2 ++ packages/freenas/www/services_rsyncd.php | 4 ++-- packages/freenas/www/services_rsyncd_client.php | 4 ++-- packages/freenas/www/services_rsyncd_local.php | 4 ++-- 9 files changed, 19 insertions(+), 17 deletions(-) (limited to 'packages') diff --git a/packages/freenas/pkg/freenas_disks.inc b/packages/freenas/pkg/freenas_disks.inc index 3f0dd694..0a19524e 100644 --- a/packages/freenas/pkg/freenas_disks.inc +++ b/packages/freenas/pkg/freenas_disks.inc @@ -130,7 +130,7 @@ function disks_mount($mount) { case "ntfs": if (mwexec("/sbin/mount_ntfs -u ftp -g ftp -m 777 $devname /mnt/$mountname") == 0) { $result = 0; - else { + } else { /* Not OK, remove the directory, prevent writing on RAM disk */ @rmdir ("/mnt/$mountname"); $result = 1; diff --git a/packages/freenas/pkg/freenas_guiconfig.inc b/packages/freenas/pkg/freenas_guiconfig.inc index 7dd5ec47..08dc7e8d 100644 --- a/packages/freenas/pkg/freenas_guiconfig.inc +++ b/packages/freenas/pkg/freenas_guiconfig.inc @@ -83,35 +83,35 @@ function gmirror_sort() { } function gconcat_sort() { - global $g, $config; + global $g, $freenas_cconfig; function gconcatcmp($a, $b) { return strcmp($a['name'], $b['name']); } - usort($config['gconcat']['vdisk'], "gconcatcmp"); + usort($freenas_cconfig['gconcat']['vdisk'], "gconcatcmp"); } function gstripe_sort() { - global $g, $config; + global $g, $freenas_cconfig; function gstripecmp($a, $b) { return strcmp($a['name'], $b['name']); } - usort($config['gstripe']['vdisk'], "gstripecmp"); + usort($freenas_cconfig['gstripe']['vdisk'], "gstripecmp"); } function graid5_sort() { - global $g, $config; + global $g, $freenas_cconfig; function graid5cmp($a, $b) { return strcmp($a['name'], $b['name']); } - usort($config['graid5']['vdisk'], "graid5cmp"); + usort($freenas_cconfig['graid5']['vdisk'], "graid5cmp"); } diff --git a/packages/freenas/www/disks_mount.php b/packages/freenas/www/disks_mount.php index 9a6a2a63..e8c7d4d5 100644 --- a/packages/freenas/www/disks_mount.php +++ b/packages/freenas/www/disks_mount.php @@ -141,7 +141,7 @@ echo $pfSenseHead->getHTML(); diff --git a/packages/freenas/www/disks_mount_tools.php b/packages/freenas/www/disks_mount_tools.php index 472b11b1..6c3710d5 100644 --- a/packages/freenas/www/disks_mount_tools.php +++ b/packages/freenas/www/disks_mount_tools.php @@ -127,8 +127,8 @@ echo $pfSenseHead->getHTML(); diff --git a/packages/freenas/www/disks_raid_gmirror_tools.php b/packages/freenas/www/disks_raid_gmirror_tools.php index 9aae8c2d..0fe99576 100644 --- a/packages/freenas/www/disks_raid_gmirror_tools.php +++ b/packages/freenas/www/disks_raid_gmirror_tools.php @@ -115,7 +115,7 @@ echo $pfSenseHead->getHTML(); $tab_array = array(); $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[1] = array(gettext("Tools"), false, "disks_raid_gmirror_tools.php"); + $tab_array[1] = array(gettext("Tools"), true, "disks_raid_gmirror_tools.php"); $tab_array[2] = array(gettext("Information"), false, "disks_raid_gmirror_infos.php"); display_top_tabs($tab_array); ?> diff --git a/packages/freenas/www/services_ftp.php b/packages/freenas/www/services_ftp.php index e096befb..050361e5 100644 --- a/packages/freenas/www/services_ftp.php +++ b/packages/freenas/www/services_ftp.php @@ -196,6 +196,7 @@ function enable_change(enable_change) { endis ? color = '#D4D0C8' : color = '#FFFFFF'; document.iform.port.disabled = endis; + document.iform.authbackend.disabled = endis; document.iform.timeout.disabled = endis; document.iform.numberclients.disabled = endis; document.iform.maxconperip.disabled = endis; @@ -209,6 +210,7 @@ function enable_change(enable_change) { document.iform.pasv_min_port.disabled = endis; /* color adjustments */ document.iform.port.style.backgroundColor = color; + document.iform.authbackend.backgroundColor = color; document.iform.timeout.style.backgroundColor = color; document.iform.numberclients.style.backgroundColor = color; document.iform.maxconperip.style.backgroundColor = color; diff --git a/packages/freenas/www/services_rsyncd.php b/packages/freenas/www/services_rsyncd.php index 39a581be..e95cbb8c 100644 --- a/packages/freenas/www/services_rsyncd.php +++ b/packages/freenas/www/services_rsyncd.php @@ -231,14 +231,14 @@ echo $pfSenseHead->getHTML(); - +
- +
diff --git a/packages/freenas/www/services_rsyncd_client.php b/packages/freenas/www/services_rsyncd_client.php index c1ade277..d3304caf 100644 --- a/packages/freenas/www/services_rsyncd_client.php +++ b/packages/freenas/www/services_rsyncd_client.php @@ -232,7 +232,7 @@ $jscriptstr .= <<