From 07cf2c4b20230ddedee1bf9dddc1e7cd407385f5 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 5 Feb 2015 10:02:24 -0200 Subject: Packages repo cleanup: - Drop support for pfSense < 2 - Remove archive/, old files can be reached using git - Remove old and unused packages - Move stale files from config subdir to a package subdir --- config/archive/freenas/www/diag_ad_infos.php | 159 ----- config/archive/freenas/www/diag_ataidle_infos.php | 149 ---- config/archive/freenas/www/diag_disk_infos.php | 143 ---- config/archive/freenas/www/diag_fn_logs_daemon.php | 119 ---- config/archive/freenas/www/diag_fn_logs_ftp.php | 118 ---- config/archive/freenas/www/diag_fn_logs_rsyncd.php | 117 --- config/archive/freenas/www/diag_fn_logs_samba.php | 174 ----- .../archive/freenas/www/diag_fn_logs_settings.php | 313 -------- config/archive/freenas/www/diag_fn_logs_smartd.php | 118 ---- config/archive/freenas/www/diag_fn_logs_sshd.php | 117 --- config/archive/freenas/www/diag_iscsi_infos.php | 142 ---- config/archive/freenas/www/diag_mounts_infos.php | 137 ---- config/archive/freenas/www/diag_part_infos.php | 141 ---- config/archive/freenas/www/diag_raid_infos.php | 163 ----- config/archive/freenas/www/diag_smart_infos.php | 141 ---- config/archive/freenas/www/diag_space_infos.php | 136 ---- config/archive/freenas/www/disks_manage.php | 208 ------ config/archive/freenas/www/disks_manage_edit.php | 275 -------- config/archive/freenas/www/disks_manage_init.php | 511 -------------- config/archive/freenas/www/disks_manage_iscsi.php | 209 ------ config/archive/freenas/www/disks_manage_tools.php | 331 --------- config/archive/freenas/www/disks_mount.php | 235 ------- config/archive/freenas/www/disks_mount_edit.php | 307 -------- config/archive/freenas/www/disks_mount_tools.php | 233 ------ config/archive/freenas/www/disks_raid_gconcat.php | 236 ------- .../freenas/www/disks_raid_gconcat_edit.php | 256 ------- .../freenas/www/disks_raid_gconcat_infos.php | 143 ---- .../freenas/www/disks_raid_gconcat_tools.php | 187 ----- config/archive/freenas/www/disks_raid_gmirror.php | 236 ------- .../freenas/www/disks_raid_gmirror_edit.php | 277 -------- .../freenas/www/disks_raid_gmirror_infos.php | 143 ---- .../freenas/www/disks_raid_gmirror_init.php | 179 ----- .../freenas/www/disks_raid_gmirror_tools.php | 191 ----- config/archive/freenas/www/disks_raid_graid5.php | 236 ------- .../archive/freenas/www/disks_raid_graid5_edit.php | 258 ------- .../freenas/www/disks_raid_graid5_infos.php | 143 ---- .../freenas/www/disks_raid_graid5_tools.php | 190 ----- config/archive/freenas/www/disks_raid_gstripe.php | 236 ------- .../freenas/www/disks_raid_gstripe_edit.php | 258 ------- .../freenas/www/disks_raid_gstripe_infos.php | 143 ---- .../freenas/www/disks_raid_gstripe_tools.php | 187 ----- config/archive/freenas/www/disks_raid_gvinum.php | 235 ------- .../archive/freenas/www/disks_raid_gvinum_edit.php | 277 -------- .../freenas/www/disks_raid_gvinum_infos.php | 144 ---- .../archive/freenas/www/disks_raid_gvinum_init.php | 181 ----- .../freenas/www/disks_raid_gvinum_tools.php | 220 ------ config/archive/freenas/www/services_afp.php | 199 ------ config/archive/freenas/www/services_ftp.php | 392 ----------- config/archive/freenas/www/services_nfs.php | 243 ------- config/archive/freenas/www/services_nfs_export.php | 165 ----- .../freenas/www/services_nfs_export_edit.php | 783 --------------------- config/archive/freenas/www/services_rsyncd.php | 277 -------- .../archive/freenas/www/services_rsyncd_client.php | 585 --------------- .../archive/freenas/www/services_rsyncd_local.php | 579 --------------- config/archive/freenas/www/services_samba.php | 431 ------------ .../archive/freenas/www/services_samba_share.php | 165 ----- .../freenas/www/services_samba_share_edit.php | 157 ----- config/archive/freenas/www/services_unison.php | 249 ------- config/archive/freenas/www/status_disks.php | 127 ---- 59 files changed, 13604 deletions(-) delete mode 100644 config/archive/freenas/www/diag_ad_infos.php delete mode 100644 config/archive/freenas/www/diag_ataidle_infos.php delete mode 100644 config/archive/freenas/www/diag_disk_infos.php delete mode 100644 config/archive/freenas/www/diag_fn_logs_daemon.php delete mode 100644 config/archive/freenas/www/diag_fn_logs_ftp.php delete mode 100644 config/archive/freenas/www/diag_fn_logs_rsyncd.php delete mode 100644 config/archive/freenas/www/diag_fn_logs_samba.php delete mode 100644 config/archive/freenas/www/diag_fn_logs_settings.php delete mode 100644 config/archive/freenas/www/diag_fn_logs_smartd.php delete mode 100644 config/archive/freenas/www/diag_fn_logs_sshd.php delete mode 100644 config/archive/freenas/www/diag_iscsi_infos.php delete mode 100644 config/archive/freenas/www/diag_mounts_infos.php delete mode 100644 config/archive/freenas/www/diag_part_infos.php delete mode 100644 config/archive/freenas/www/diag_raid_infos.php delete mode 100644 config/archive/freenas/www/diag_smart_infos.php delete mode 100644 config/archive/freenas/www/diag_space_infos.php delete mode 100644 config/archive/freenas/www/disks_manage.php delete mode 100644 config/archive/freenas/www/disks_manage_edit.php delete mode 100644 config/archive/freenas/www/disks_manage_init.php delete mode 100644 config/archive/freenas/www/disks_manage_iscsi.php delete mode 100644 config/archive/freenas/www/disks_manage_tools.php delete mode 100644 config/archive/freenas/www/disks_mount.php delete mode 100644 config/archive/freenas/www/disks_mount_edit.php delete mode 100644 config/archive/freenas/www/disks_mount_tools.php delete mode 100644 config/archive/freenas/www/disks_raid_gconcat.php delete mode 100644 config/archive/freenas/www/disks_raid_gconcat_edit.php delete mode 100644 config/archive/freenas/www/disks_raid_gconcat_infos.php delete mode 100644 config/archive/freenas/www/disks_raid_gconcat_tools.php delete mode 100644 config/archive/freenas/www/disks_raid_gmirror.php delete mode 100644 config/archive/freenas/www/disks_raid_gmirror_edit.php delete mode 100644 config/archive/freenas/www/disks_raid_gmirror_infos.php delete mode 100644 config/archive/freenas/www/disks_raid_gmirror_init.php delete mode 100644 config/archive/freenas/www/disks_raid_gmirror_tools.php delete mode 100644 config/archive/freenas/www/disks_raid_graid5.php delete mode 100644 config/archive/freenas/www/disks_raid_graid5_edit.php delete mode 100644 config/archive/freenas/www/disks_raid_graid5_infos.php delete mode 100644 config/archive/freenas/www/disks_raid_graid5_tools.php delete mode 100644 config/archive/freenas/www/disks_raid_gstripe.php delete mode 100644 config/archive/freenas/www/disks_raid_gstripe_edit.php delete mode 100644 config/archive/freenas/www/disks_raid_gstripe_infos.php delete mode 100644 config/archive/freenas/www/disks_raid_gstripe_tools.php delete mode 100644 config/archive/freenas/www/disks_raid_gvinum.php delete mode 100644 config/archive/freenas/www/disks_raid_gvinum_edit.php delete mode 100644 config/archive/freenas/www/disks_raid_gvinum_infos.php delete mode 100644 config/archive/freenas/www/disks_raid_gvinum_init.php delete mode 100644 config/archive/freenas/www/disks_raid_gvinum_tools.php delete mode 100644 config/archive/freenas/www/services_afp.php delete mode 100644 config/archive/freenas/www/services_ftp.php delete mode 100644 config/archive/freenas/www/services_nfs.php delete mode 100644 config/archive/freenas/www/services_nfs_export.php delete mode 100644 config/archive/freenas/www/services_nfs_export_edit.php delete mode 100644 config/archive/freenas/www/services_rsyncd.php delete mode 100644 config/archive/freenas/www/services_rsyncd_client.php delete mode 100644 config/archive/freenas/www/services_rsyncd_local.php delete mode 100644 config/archive/freenas/www/services_samba.php delete mode 100644 config/archive/freenas/www/services_samba_share.php delete mode 100644 config/archive/freenas/www/services_samba_share_edit.php delete mode 100644 config/archive/freenas/www/services_unison.php delete mode 100644 config/archive/freenas/www/status_disks.php (limited to 'config/archive/freenas/www') diff --git a/config/archive/freenas/www/diag_ad_infos.php b/config/archive/freenas/www/diag_ad_infos.php deleted file mode 100644 index e9882a70..00000000 --- a/config/archive/freenas/www/diag_ad_infos.php +++ /dev/null @@ -1,159 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$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"); - -if (! empty($_POST)) -{ - /* hash */ - unset($error_bucket); - /* simple error list */ - unset($input_errors); - - if (is_array($error_bucket)) - foreach($error_bucket as $elem) - $input_errors[] =& $elem["error"]; - - /* if this is an AJAX caller then handle via JSON */ - if(isAjax() && is_array($error_bucket)) { - input_errors2Ajax(NULL, $error_bucket); - exit; - } -} - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> - -"> - - - - -
- -
- - - - - - - - - - -
- -
- -
-
- - - - -
- AD Authentication disable
"; - } else { - echo "
";
-              echo "Accessiblity test to MS domain:
"; - echo htmlspecialchars("Results for net rpc testjoin:") . "
"; - exec("/usr/local/bin/net rpc testjoin",$rawdata); - foreach ($rawdata as $line) - { - echo htmlspecialchars($line) . "
"; - } - unset ($rawdata); - echo "
"; - echo htmlspecialchars("Ping winbindd to see if it is alive:") . "
"; - exec("/usr/local/bin/wbinfo -p",$rawdata); - foreach ($rawdata as $line) - { - echo htmlspecialchars($line) . "
"; - } - unset ($rawdata); - echo "
"; - echo htmlspecialchars("Check shared secret:") . "
"; - exec("/usr/local/bin/wbinfo -t",$rawdata); - foreach ($rawdata as $line) - { - echo htmlspecialchars($line) . "
"; - } - unset ($rawdata); - echo "
"; - echo "
"; - } - ?> -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_ataidle_infos.php b/config/archive/freenas/www/diag_ataidle_infos.php deleted file mode 100644 index 7ba6c737..00000000 --- a/config/archive/freenas/www/diag_ataidle_infos.php +++ /dev/null @@ -1,149 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$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"); - -if (! empty($_POST)) -{ - /* hash */ - unset($error_bucket); - /* simple error list */ - unset($input_errors); - - if (is_array($error_bucket)) - foreach($error_bucket as $elem) - $input_errors[] =& $elem["error"]; - - /* if this is an AJAX caller then handle via JSON */ - if(isAjax() && is_array($error_bucket)) { - input_errors2Ajax(NULL, $error_bucket); - exit; - } -} - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> - -"> - - - - -
- -
- - - - - - - - - - -
- -
- -
-
- - - - -
- "; - $disklist=get_ata_disks_list(); - echo "List of Advanced ATA capabilities on all ATA disk:
"; - foreach ($disklist as $disknamek => $disknamev) - { - /* Found the channel and device number from the /dev name */ - /* Divise the number by 2, the interger is the channel number, the rest is the device */ - echo htmlspecialchars("Results for $disknamek:") . "
"; - $value=trim($disknamek,'ad'); - $value=intval($value); - $channel = $value/2; - $device=$value % 2; - $channel=intval($channel); - exec("/usr/local/sbin/ataidle $channel $device",$rawdata); - foreach ($rawdata as $line) - { - echo htmlspecialchars($line) . "
"; - } - unset ($rawdata); - } - echo ""; - ?> -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_disk_infos.php b/config/archive/freenas/www/diag_disk_infos.php deleted file mode 100644 index 31419040..00000000 --- a/config/archive/freenas/www/diag_disk_infos.php +++ /dev/null @@ -1,143 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$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"); - -if (! empty($_POST)) -{ - /* hash */ - unset($error_bucket); - /* simple error list */ - unset($input_errors); - - if (is_array($error_bucket)) - foreach($error_bucket as $elem) - $input_errors[] =& $elem["error"]; - - /* if this is an AJAX caller then handle via JSON */ - if(isAjax() && is_array($error_bucket)) { - input_errors2Ajax(NULL, $error_bucket); - exit; - } -} - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> - -"> - - - - -
- -
- - - - - - - - - - -
- -
- -
-
- - - - -
- "; - echo "List of detected ATA disks:
"; - foreach ($iderawdata as $line) - { - echo htmlspecialchars($line) . "
"; - } - unset ($line); - exec("/sbin/camcontrol devlist",$scsirawdata); - echo "List of detected SCSI disks:
"; - foreach ($scsirawdata as $line) - { - echo htmlspecialchars($line) . "
"; - } - echo ""; - ?> -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_fn_logs_daemon.php b/config/archive/freenas/www/diag_fn_logs_daemon.php deleted file mode 100644 index 1eaa1f0f..00000000 --- a/config/archive/freenas/www/diag_fn_logs_daemon.php +++ /dev/null @@ -1,119 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$pgtitle = array(gettext("Diagnostics"), - gettext("System logs"), - gettext("Daemon")); - -require_once("freenas_config.inc"); -require_once("guiconfig.inc"); -require_once("freenas_guiconfig.inc"); -require_once("freenas_functions.inc"); - -$nentries = $config['syslog']['nentries']; -if (!$nentries) - $nentries = 50; - -if ($_POST['clear']) -{ - exec("/usr/sbin/clog -i -s 262144 /var/log/daemon.log"); - /* redirect to avoid reposting form data on refresh */ - pfSenseHeader("diag_fn_logs_daemon.php"); - exit; -} - -/* if ajax is calling, give them an update message */ -if(isAjax()) - print_info_box_np($savemsg); - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> -"> - -
-
- - - - - - - -
- -
-
- - - - - - - - - - - -
- Last Daemon log entries -
 
- -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_fn_logs_ftp.php b/config/archive/freenas/www/diag_fn_logs_ftp.php deleted file mode 100644 index 21d8cfb2..00000000 --- a/config/archive/freenas/www/diag_fn_logs_ftp.php +++ /dev/null @@ -1,118 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$pgtitle = array(gettext("Diagnostics"), - gettext("System logs"), - gettext("FTP")); - -require_once("freenas_config.inc"); -require_once("guiconfig.inc"); -require_once("freenas_guiconfig.inc"); -require_once("freenas_functions.inc"); - -$nentries = $config['syslog']['nentries']; -if (!$nentries) { $nentries = 50; } - -if ($_POST['clear']) -{ - exec("/usr/sbin/clog -i -s 262144 /var/log/ftp.log"); - /* redirect to avoid reposting form data on refresh */ - pfSenseHeader("diag_fn_logs_ftp.php"); - exit; -} - -/* if ajax is calling, give them an update message */ -if(isAjax()) - print_info_box_np($savemsg); - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> -"> - -
-
- - - - - - - -
- -
-
- - - - - - - - - - - -
- Last FTP log entries -
 
- -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_fn_logs_rsyncd.php b/config/archive/freenas/www/diag_fn_logs_rsyncd.php deleted file mode 100644 index 44ab3d85..00000000 --- a/config/archive/freenas/www/diag_fn_logs_rsyncd.php +++ /dev/null @@ -1,117 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$pgtitle = array(gettext("Diagnostics"), - gettext("System logs"), - gettext("RSYNCD")); - -require_once("freenas_config.inc"); -require_once("guiconfig.inc"); -require_once("freenas_guiconfig.inc"); -require_once("freenas_functions.inc"); - -$nentries = $config['syslog']['nentries']; -if (!$nentries) { $nentries = 50; } - -if ($_POST['clear']) { - exec("/usr/sbin/clog -i -s 262144 /var/log/rsyncd.log"); - /* redirect to avoid reposting form data on refresh */ - pfSenseHeader("diag_fn_logs_rsyncd.php"); - exit; -} - -/* if ajax is calling, give them an update message */ -if(isAjax()) - print_info_box_np($savemsg); - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> -"> - -
-
- - - - - - - -
- -
-
- - - - - - - - - - - -
- Last RSYNCD log entries -
 
- -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_fn_logs_samba.php b/config/archive/freenas/www/diag_fn_logs_samba.php deleted file mode 100644 index 436de12d..00000000 --- a/config/archive/freenas/www/diag_fn_logs_samba.php +++ /dev/null @@ -1,174 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$pgtitle = array(gettext("Diagnostics"), - gettext("System logs"), - gettext("Samba")); - -require_once("freenas_config.inc"); -require_once("guiconfig.inc"); -require_once("freenas_guiconfig.inc"); -require_once("freenas_functions.inc"); - -$nentries = $config['syslog']['nentries']; -if (!$nentries) { $nentries = 50; } - -if ($_POST['clear']) { - exec("/bin/cp /dev/null /var/log/samba/log.nmbd"); - exec("/bin/cp /dev/null /var/log/samba/log.smbd"); - exec("/bin/cp /dev/null /var/log/samba/log.winbindd"); - /* redirect to avoid reposting form data on refresh */ - pfSenseHeader("diag_fn_logs_samba.php"); - exit; -} - -/* if ajax is calling, give them an update message */ -if(isAjax()) - print_info_box_np($savemsg); - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> -"> - -
-
- - - - - - - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Last nmbd service log entries -
-
-
 
- Last smbd service log entries -
-
-
 
- Last winbindd service log entries -
-
-
 
- -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_fn_logs_settings.php b/config/archive/freenas/www/diag_fn_logs_settings.php deleted file mode 100644 index 9ac2823d..00000000 --- a/config/archive/freenas/www/diag_fn_logs_settings.php +++ /dev/null @@ -1,313 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$pgtitle = array(gettext("Diagnostics"), - gettext("System logs"), - gettext("Settings")); - -require_once("freenas_config.inc"); -require_once("guiconfig.inc"); -require_once("freenas_guiconfig.inc"); -require_once("freenas_functions.inc"); - -if(!function_exists("filter_configure")) - require_once("filter.inc"); - -$pconfig['reverse'] = isset($config['syslog']['reverse']); -$pconfig['nentries'] = $config['syslog']['nentries']; -$pconfig['remoteserver'] = $config['syslog']['remoteserver']; -$pconfig['filter'] = isset($config['syslog']['filter']); -$pconfig['dhcp'] = isset($config['syslog']['dhcp']); -$pconfig['portalauth'] = isset($config['syslog']['portalauth']); -$pconfig['vpn'] = isset($config['syslog']['vpn']); -$pconfig['system'] = isset($config['syslog']['system']); -$pconfig['enable'] = isset($config['syslog']['enable']); -$pconfig['logdefaultblock'] = !isset($config['syslog']['nologdefaultblock']); -$pconfig['rawfilter'] = isset($config['syslog']['rawfilter']); -$pconfig['disablelocallogging'] = isset($config['syslog']['disablelocallogging']); -$pconfig['webservlogs'] = isset($config['syslog']['webservlogs']); - -$pconfig['sshd'] = isset($config['syslog']['sshd']); -$pconfig['ftp'] = isset($config['syslog']['ftp']); -$pconfig['rsyncd'] = isset($config['syslog']['rsyncd']); -$pconfig['smartd'] = isset($config['syslog']['smartd']); -$pconfig['daemon'] = isset($config['syslog']['daemon']); - -if (!$pconfig['nentries']) { $pconfig['nentries'] = 50; } - -if ($_POST) { - unset($input_errors); - $pconfig = $_POST; - - /* input validation */ - if ($_POST['enable'] && !is_ipaddr($_POST['remoteserver'])) { - $input_errors[] = gettext("A valid IP address must be specified."); - } - if (($_POST['nentries'] < 5) || ($_POST['nentries'] > 2000)) { - $input_errors[] = gettext("Number of log entries to show must be between 5 and 2000."); - } - - if (!$input_errors) { - $config['syslog']['reverse'] = $_POST['reverse'] ? true : false; - $config['syslog']['nentries'] = (int)$_POST['nentries']; - $config['syslog']['remoteserver'] = $_POST['remoteserver']; - $config['syslog']['filter'] = $_POST['filter'] ? true : false; - $config['syslog']['dhcp'] = $_POST['dhcp'] ? true : false; - $config['syslog']['portalauth'] = $_POST['portalauth'] ? true : false; - $config['syslog']['vpn'] = $_POST['vpn'] ? true : false; - $config['syslog']['system'] = $_POST['system'] ? true : false; - $config['syslog']['disablelocallogging'] = $_POST['disablelocallogging'] ? true : false; - $config['syslog']['enable'] = $_POST['enable'] ? true : false; - $oldnologdefaultblock = isset($config['syslog']['nologdefaultblock']); - $config['syslog']['nologdefaultblock'] = $_POST['logdefaultblock'] ? false : true; - $config['syslog']['rawfilter'] = $_POST['rawfilter'] ? true : false; - $config['syslog']['webservlogs'] = $_POST['webservlogs'] ? true : false; - $config['syslog']['sshd'] = $_POST['sshd'] ? true : false; - $config['syslog']['ftp'] = $_POST['ftp'] ? true : false; - $config['syslog']['rsyncd'] = $_POST['rsyncd'] ? true : false; - $config['syslog']['smartd'] = $_POST['smartd'] ? true : false; - $config['syslog']['daemon'] = $_POST['daemon'] ? true : false; - if($config['syslog']['enable'] == false) - unset($config['syslog']['remoteserver']); - - write_config(); - - $retval = 0; - config_lock(); - $retval = system_syslogd_start(); - if ($oldnologdefaultblock !== isset($config['syslog']['nologdefaultblock'])) - $retval |= filter_configure(); - config_unlock(); - $savemsg = get_std_save_message($retval); - } -} - -/* if ajax is calling, give them an update message */ -if(isAjax()) - print_info_box_np($savemsg); - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ - -$jscriptstr = << - - - -EOD; - -$pfSenseHead->addScript($jscriptstr); -echo $pfSenseHead->getHTML(); - -?> -"> - -
-
- - - - - - - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  /> - -
 : - -
  /> -
- -
  /> -
- -
  onclick="enable_change(false)" /> - -
  onclick="enable_change(false)" /> - -
Remote syslog server - -
-

- /> -
- /> -
- /> -
- /> -
- /> -
- /> -
- /> -
- /> -
- /> -
- /> -
- /> -
-
  - -
 :
- -
-
-
-
- - - - diff --git a/config/archive/freenas/www/diag_fn_logs_smartd.php b/config/archive/freenas/www/diag_fn_logs_smartd.php deleted file mode 100644 index 7e57d543..00000000 --- a/config/archive/freenas/www/diag_fn_logs_smartd.php +++ /dev/null @@ -1,118 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$pgtitle = array(gettext("Diagnostics"), - gettext("System logs"), - gettext("SMARTD")); - -require_once("freenas_config.inc"); -require_once("guiconfig.inc"); -require_once("freenas_guiconfig.inc"); -require_once("freenas_functions.inc"); - -$nentries = $config['syslog']['nentries']; -if (!$nentries) { $nentries = 50; } - -if ($_POST['clear']) -{ - exec("/usr/sbin/clog -i -s 262144 /var/log/smartd.log"); - /* redirect to avoid reposting form data on refresh */ - pfSenseHeader("diag_fn_logs_smartd.php"); - exit; -} - -/* if ajax is calling, give them an update message */ -if(isAjax()) - print_info_box_np($savemsg); - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> -"> - -
-
- - - - - - - -
- -
-
- - - - - - - - - - - -
- Last SmartD log entries -
 
- -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_fn_logs_sshd.php b/config/archive/freenas/www/diag_fn_logs_sshd.php deleted file mode 100644 index bc61d57f..00000000 --- a/config/archive/freenas/www/diag_fn_logs_sshd.php +++ /dev/null @@ -1,117 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$pgtitle = array(gettext("Diagnostics"), - gettext("System logs"), - gettext("SSHD")); - -require_once("freenas_config.inc"); -require_once("guiconfig.inc"); -require_once("freenas_guiconfig.inc"); -require_once("freenas_functions.inc"); - -$nentries = $config['syslog']['nentries']; -if (!$nentries) { $nentries = 50; } - -if ($_POST['clear']) { - exec("/usr/sbin/clog -i -s 262144 /var/log/sshd.log"); - /* redirect to avoid reposting form data on refresh */ - pfSenseHeader("diag_fn_logs_sshd.php"); - exit; -} - -/* if ajax is calling, give them an update message */ -if(isAjax()) - print_info_box_np($savemsg); - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> -"> - -
-
- - - - - - - -
- -
-
- - - - - - - - - - - -
- Last SSHD log entries -
 
- -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_iscsi_infos.php b/config/archive/freenas/www/diag_iscsi_infos.php deleted file mode 100644 index 05c136e8..00000000 --- a/config/archive/freenas/www/diag_iscsi_infos.php +++ /dev/null @@ -1,142 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$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"); - -if (! empty($_POST)) -{ - /* hash */ - unset($error_bucket); - /* simple error list */ - unset($input_errors); - - if (is_array($error_bucket)) - foreach($error_bucket as $elem) - $input_errors[] =& $elem["error"]; - - /* if this is an AJAX caller then handle via JSON */ - if(isAjax() && is_array($error_bucket)) { - input_errors2Ajax(NULL, $error_bucket); - exit; - } -} - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> - -"> - - - - -
- -
- - - - - - - - - - -
- -
- -
-
- - - - -
- iSCSI initiator disabled
"; - } else { - echo "
";
-              echo "Show the list of available target Name on the iSCSI target
"; - - exec("/usr/local/sbin/iscontrol -d targetaddress={$freenas_config['iscsi']['targetaddress']}",$rawdata); - foreach ($rawdata as $line) - { - echo htmlspecialchars($line) . "
"; - } - unset ($rawdata); - echo "
"; - } - ?> -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_mounts_infos.php b/config/archive/freenas/www/diag_mounts_infos.php deleted file mode 100644 index 29eb49f5..00000000 --- a/config/archive/freenas/www/diag_mounts_infos.php +++ /dev/null @@ -1,137 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$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"); - -if (! empty($_POST)) -{ - /* hash */ - unset($error_bucket); - /* simple error list */ - unset($input_errors); - - if (is_array($error_bucket)) - foreach($error_bucket as $elem) - $input_errors[] =& $elem["error"]; - - /* if this is an AJAX caller then handle via JSON */ - if(isAjax() && is_array($error_bucket)) { - input_errors2Ajax(NULL, $error_bucket); - exit; - } -} - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> - -"> - - - - -
- -
- - - - - - - - - - -
- -
- -
-
- - - - -
- "; - echo "List of mounted point:
"; - exec("/sbin/mount",$mountrawdata); - foreach ($mountrawdata as $line) - { - echo htmlspecialchars($line) . "
"; - } - unset ($line); - echo ""; - ?> -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_part_infos.php b/config/archive/freenas/www/diag_part_infos.php deleted file mode 100644 index 011a771c..00000000 --- a/config/archive/freenas/www/diag_part_infos.php +++ /dev/null @@ -1,141 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$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"); - -if (! empty($_POST)) -{ - /* hash */ - unset($error_bucket); - /* simple error list */ - unset($input_errors); - - if (is_array($error_bucket)) - foreach($error_bucket as $elem) - $input_errors[] =& $elem["error"]; - - /* if this is an AJAX caller then handle via JSON */ - if(isAjax() && is_array($error_bucket)) { - input_errors2Ajax(NULL, $error_bucket); - exit; - } -} - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> - -"> - - - - -
- -
- - - - - - - - - - -
- -
- -
-
- - - - -
- "; - $disklist = get_physical_disks_list(); - echo "List of partition on all detected disk:
"; - foreach ($disklist as $disknamek => $disknamev) - { - exec("/sbin/fdisk $disknamek",$fdiskrawdata); - foreach ($fdiskrawdata as $line) - { - echo htmlspecialchars($line) . "
"; - } - unset ($fdiskrawdata); - } - echo ""; - ?> -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_raid_infos.php b/config/archive/freenas/www/diag_raid_infos.php deleted file mode 100644 index ad1621c1..00000000 --- a/config/archive/freenas/www/diag_raid_infos.php +++ /dev/null @@ -1,163 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$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"); - -if (! empty($_POST)) -{ - /* hash */ - unset($error_bucket); - /* simple error list */ - unset($input_errors); - - if (is_array($error_bucket)) - foreach($error_bucket as $elem) - $input_errors[] =& $elem["error"]; - - /* if this is an AJAX caller then handle via JSON */ - if(isAjax() && is_array($error_bucket)) { - input_errors2Ajax(NULL, $error_bucket); - exit; - } -} - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> - -"> - - - - -
- -
- - - - - - - - - - -
- -
- -
-
- - - - -
- "; - echo "" . gettext("Software RAID") . " - " . gettext("Geom Mirror") . ":

"; - exec("/sbin/gmirror list",$rawdata); - foreach ($rawdata as $line) { - echo htmlspecialchars($line) . "
"; - } - unset ($line); - unset ($rawdata); - echo "" . gettext("Software RAID") . " - " . gettext("Geom Vinum") . ":

"; - exec("/sbin/gvinum list",$rawdata); - foreach ($rawdata as $line) { - echo htmlspecialchars($line) . "
"; - } - unset ($line); - unset ($rawdata); - echo "" . gettext("Software RAID") . " - " . gettext("Geom Concat") . ":

"; - exec("/sbin/gconcat list",$rawdata); - foreach ($rawdata as $line) { - echo htmlspecialchars($line) . "
"; - } - unset ($line); - unset ($rawdata); - echo "" . gettext("Software RAID") . " - " . gettext("Geom Stripe") . ":

"; - exec("/sbin/gstripe list",$rawdata); - foreach ($rawdata as $line) { - echo htmlspecialchars($line) . "
"; - } - unset ($line); - unset ($rawdata); - echo "" . gettext("Software RAID") . " - " . gettext("Geom Raid5") . ":

"; - exec("/sbin/graid5 list",$rawdata); - foreach ($rawdata as $line) { - echo htmlspecialchars($line) . "
"; - } - echo ""; - ?> -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_smart_infos.php b/config/archive/freenas/www/diag_smart_infos.php deleted file mode 100644 index d265d1b7..00000000 --- a/config/archive/freenas/www/diag_smart_infos.php +++ /dev/null @@ -1,141 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$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"); - -if (! empty($_POST)) -{ - /* hash */ - unset($error_bucket); - /* simple error list */ - unset($input_errors); - - if (is_array($error_bucket)) - foreach($error_bucket as $elem) - $input_errors[] =& $elem["error"]; - - /* if this is an AJAX caller then handle via JSON */ - if(isAjax() && is_array($error_bucket)) { - input_errors2Ajax(NULL, $error_bucket); - exit; - } -} - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> - -"> - - - - -
- -
- - - - - - - - - - -
- -
- -
-
- - - - -
- "; - $disklist = get_physical_disks_list(); - echo "List of SMART capabilities on all detected disk:
"; - foreach ($disklist as $disknamek => $disknamev) - { - exec("/usr/local/sbin/smartctl -a /dev/$disknamek",$fdiskrawdata); - foreach ($fdiskrawdata as $line) - { - echo htmlspecialchars($line) . "
"; - } - unset ($fdiskrawdata); - } - echo ""; - ?> -
-
-
-
- - - diff --git a/config/archive/freenas/www/diag_space_infos.php b/config/archive/freenas/www/diag_space_infos.php deleted file mode 100644 index e0726b07..00000000 --- a/config/archive/freenas/www/diag_space_infos.php +++ /dev/null @@ -1,136 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$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"); - -if (! empty($_POST)) -{ - /* hash */ - unset($error_bucket); - /* simple error list */ - unset($input_errors); - - if (is_array($error_bucket)) - foreach($error_bucket as $elem) - $input_errors[] =& $elem["error"]; - - /* if this is an AJAX caller then handle via JSON */ - if(isAjax() && is_array($error_bucket)) { - input_errors2Ajax(NULL, $error_bucket); - exit; - } -} - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> - -"> - - - - -
- -
- - - - - - - - - - -
- -
- -
-
- - - - -
- "; - exec("/bin/df -h",$rawdata); - echo "Free Space:
"; - foreach ($rawdata as $line) - { - echo htmlspecialchars($line) . "
"; - } - echo ""; - ?> -
-
-
-
- - - diff --git a/config/archive/freenas/www/disks_manage.php b/config/archive/freenas/www/disks_manage.php deleted file mode 100644 index b6dece05..00000000 --- a/config/archive/freenas/www/disks_manage.php +++ /dev/null @@ -1,208 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$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"); - -if (!is_array($freenas_config['disks']['disk'])) - $freenas_config['disks']['disk'] = array(); - -disks_sort(); - -$a_disk_conf = &$freenas_config['disks']['disk']; - -if ($_POST) { - unset($input_errors); - - /* input validation */ - - if ($_POST['apply']) { - $retval = 0; - if (! file_exists($d_sysrebootreqd_path)) { - config_lock(); - /* reload all components that mount disk */ - // disks_mount_all(); - /* Is formated?: If not create FS */ - /* $retval = disk_disks_create_ufs(); */ - - config_unlock(); - } - $savemsg = get_std_save_message($retval); - if ($retval == 0) { - if (file_exists($d_diskdirty_path)) { - unlink($d_diskdirty_path); - } - } - } - - /* if this is an AJAX caller then handle via JSON */ - if(isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - - if (!$input_errors) { - /* No errors detected, so update the config */ - } -} - -if ($_GET['act'] == "del") { - if ($a_disk_conf[$_GET['id']]) { - unset($a_disk_conf[$_GET['id']]); - write_config(); - touch($d_diskdirty_path); - pfSenseHeader("disks_manage.php"); - exit; - } -} - -/* if ajax is calling, give them an update message */ -if(isAjax()) - print_info_box_np($savemsg); - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> - -"> - - - - -
- -" . - gettext("You must apply the changes in order for them to take effect."));?> - - -
- - - - - -
- -
- -
-
- - - diff --git a/config/archive/freenas/www/disks_manage_edit.php b/config/archive/freenas/www/disks_manage_edit.php deleted file mode 100644 index 80e11ef3..00000000 --- a/config/archive/freenas/www/disks_manage_edit.php +++ /dev/null @@ -1,275 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$pgtitle = array(gettext("System"), - gettext("Disks"), - gettext("Management"), - gettext("Edit")); - -require_once("freenas_config.inc"); -require_once("guiconfig.inc"); -require_once("freenas_guiconfig.inc"); -require_once("freenas_functions.inc"); - -$id = $_GET['id']; -if (isset($_POST['id'])) - $id = $_POST['id']; - -/* get disk list (without CDROM) */ -$disklist = get_physical_disks_list(); - -if (!is_array($freenas_config['disks']['disk'])) - $freenas_config['disks']['disk'] = array(); - -disks_sort(); - -$a_disk = &$freenas_config['disks']['disk']; - -if (isset($id) && $a_disk[$id]) -{ - $pconfig['name'] = $a_disk[$id]['name']; - $pconfig['harddiskstandby'] = $a_disk[$id]['harddiskstandby']; - $pconfig['acoustic'] = $a_disk[$id]['acoustic']; - $pconfig['fstype'] = $a_disk[$id]['fstype']; - $pconfig['apm'] = $a_disk[$id]['apm']; - $pconfig['udma'] = $a_disk[$id]['udma']; - $pconfig['fullname'] = $a_disk[$id]['fullname']; -} - -if (! empty($_POST)) -{ - /* hash */ - unset($error_bucket); - /* simple error list */ - unset($input_errors); - $pconfig = $_POST; - - /* input validation */ - $reqdfields = split(" ", "name"); - $reqdfieldsn = split(",", "Name"); - - do_input_validation_new($_POST, $reqdfields, $reqdfieldsn, &$error_bucket); - $pconfig = $_POST; - - /* check for name conflicts */ - foreach ($a_disk as $disk) - { - if (isset($id) && ($a_disk[$id]) && ($a_disk[$id] === $disk)) { continue; } - - if ($disk['name'] == $_POST['name']) - { - $error_bucket[] = array("error" => gettext("This disk already exists in the disk list."), - "field" => "name"); - break; - } - } - - if (is_array($error_bucket)) - foreach($error_bucket as $elem) - $input_errors[] =& $elem["error"]; - - /* if this is an AJAX caller then handle via JSON */ - if(isAjax() && is_array($error_bucket)) { - input_errors2Ajax(NULL, $error_bucket); - exit; - } - - if (!$input_errors) - { - $disks = array(); - - $devname = $_POST['name']; - $devharddiskstandby = $_POST['harddiskstandby']; - $harddiskacoustic = $_POST['acoustic']; - $harddiskapm = $_POST['apm']; - $harddiskudma = $_POST['udma']; - $harddiskfstype = $_POST['fstype']; - - $disks['name'] = $devname; - $disks['fullname'] = "/dev/$devname"; - $disks['harddiskstandby'] = $devharddiskstandby ; - $disks['acoustic'] = $harddiskacoustic ; - if ($harddiskfstype) { $disks['fstype'] = $harddiskfstype; } - $disks['apm'] = $harddiskapm ; - $disks['udma'] = $harddiskudma ; - $disks['type'] = $disklist[$devname]['type']; - $disks['desc'] = $disklist[$devname]['desc']; - $disks['size'] = $disklist[$devname]['size']; - - if (isset($id) && $a_disk[$id]) { - $a_disk[$id] = $disks; - } else { - $a_disk[] = $disks; - } - - touch($d_diskdirty_path); - - disks_set_ataidle(); - write_config(); - - pfSenseHeader("disks_manage.php"); - exit; - } -} - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> - -"> - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- -
- -
- Do not set this for CF cards."); ?> -
- -
- Do not set this for CF cards."); ?> -
- -
- Do not set this for CF cards."); ?> -
- -
- - Leave \"unformated\" for unformated disk and then use Format menu."); ?> -
  - " /> - - - -
-
- - - - diff --git a/config/archive/freenas/www/disks_manage_init.php b/config/archive/freenas/www/disks_manage_init.php deleted file mode 100644 index e8d939d3..00000000 --- a/config/archive/freenas/www/disks_manage_init.php +++ /dev/null @@ -1,511 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$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"); - -define("DISK_DETAILS_PARA", " -

- Disk initialization details (use the toggle icon to unveil detailed infos): -

- "); - -function create_format_output($disk, $type, $notinitmbr) { - $ddetails = DISK_DETAILS_PARA; - - ob_end_flush(); - - $retvalue =<< -
{$diskinit_str}
- - -EOD; - } // end if - - switch ($type) { - case "ufs": - $button = create_toggle_button("Creating one partition", "ufs_fdisk_out"); - /* Initialize disk */ - $cmd = "/sbin/fdisk -I -b /boot/mbr " . escapeshellarg($disk); - $out = create_cmdout_container("ufs_fdisk_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Initializing partition", "ufs_dd_out"); - /* Initialise the partition (optional) */ - $cmd = "/bin/dd if=/dev/zero of=" . escapeshellarg($disk) . "s1 bs=32k count=16"; - $out = create_cmdout_container("ufs_dd_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Creating BSD label", "ufs_label_out"); - /* Create s1 label */ - $cmd = "/sbin/bsdlabel -w " . escapeshellarg($disk) . "s1 auto"; - $out = create_cmdout_container("ufs_label_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Creating Filesystem", "ufs_newfs_out"); - /* Create filesystem */ - $cmd = "/sbin/newfs -U " . escapeshellarg($disk) . "s1"; - $out = create_cmdout_container("ufs_newfs_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - break; // end case "ufs": - case "ufs_no_su": - $button = create_toggle_button("Creating one partition", "ufsn_fdisk_out"); - /* Initialize disk */ - $cmd = "/sbin/fdisk -I -b /boot/mbr " . escapeshellarg($disk); - $out = create_cmdout_container("ufsn_fdisk_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Initializing partition", "ufsn_dd_out"); - /* Initialise the partition (optional) */ - $cmd = "/bin/dd if=/dev/zero of=" . escapeshellarg($disk) . "s1 bs=32k count=16"; - $out = create_cmdout_container("ufsn_dd_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Creating BSD label", "ufsn_label_out"); - /* Create s1 label */ - $cmd = "/sbin/bsdlabel -w " . escapeshellarg($disk) . "s1 auto"; - $out = create_cmdout_container("ufsn_label_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Creating Filesystem", "ufsn_newfs_out"); - /* Create filesystem */ - $cmd = "/sbin/newfs -m 0 " . escapeshellarg($disk) . "s1"; - $out = create_cmdout_container("ufsn_newfs_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - break; // end ufs_no_su - case "ufsgpt": - $button = create_toggle_button("Destroying old GTP information", "ufsg_gptd_out"); - /* Destroy GPT partition table */ - $cmd = "/sbin/gpt destroy " . escapeshellarg($disk); - $out = create_cmdout_container("ufsg_gptd_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Creating GPT partition", "ufsg_gptc_out"); - /* Create GPT partition table */ - $cmd = array("/sbin/gpt create -f " . escapeshellarg($disk), - "/sbin/gpt add -t ufs " . escapeshellarg($disk)); - $out = create_cmdout_container("ufsg_gptc_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Creating Filesystem with Soft Updates", "ufsg_newfs_out"); - /* Create filesystem */ - $cmd = "/sbin/newfs -U " . escapeshellarg($disk) . "p1"; - $out = create_cmdout_container("ufsg_newfs_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - break; // end case "ufsgpt": - case "ufsgpt_no_su": - $button = create_toggle_button("Destroying old GTP information", "ufsgn_gpt_out"); - /* Destroy GPT partition table */ - $cmd = "/sbin/gpt destroy " . escapeshellarg($disk); - $out = create_cmdout_container("ufsgn_gpt_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Creating GPT partition", "ufsgn_gptc_out"); - /* Create GPT partition table */ - $cmd = array("/sbin/gpt create -f " . escapeshellarg($disk), - "/sbin/gpt add -t ufs " . escapeshellarg($disk)); - $out = create_cmdout_container("ufsgn_gptc_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Creating Filesystem without Soft Updates", "ufsgn_newfs_out"); - /* Create filesystem */ - $cmd = "/sbin/newfs -m 0 " . escapeshellarg($disk) . "p1"; - $out = create_cmdout_container("ufsgn_newfs_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - break; // end case "ufsgpt_no_su": - case "softraid": - $button = create_toggle_button("Initializing disk", "softr_fdisk_out"); - /* Initialize disk */ - $cmd = "/sbin/fdisk -I -b /boot/mbr " . escapeshellarg($disk); - $out = create_cmdout_container("softr_fdisk_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Initializing partition", "softr_dd_out"); - /* Initialise the partition (optional) */ - $cmd = "/bin/dd if=/dev/zero of=" . escapeshellarg($disk) . "s1 bs=32k count=16"; - $out = create_cmdout_container("softr_dd_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Delete old gmirror information", "softr_dd_out"); - /* Delete old gmirror information */ - $cmd = "/sbin/gmirror clear " . escapeshellarg($disk); - $out = create_cmdout_container("softr_dd_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - break; // end case "softraid": - case "msdos": - $button = create_toggle_button("Initialize disk", "dos_fdisk_out"); - /* Initialize disk */ - $cmd = "/sbin/fdisk -I -b /boot/mbr " . escapeshellarg($disk); - $out = create_cmdout_container("dos_fdisk_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Initialize partion", "dos_dd_out"); - /* Initialise the partition (optional) */ - $cmd = "/bin/dd if=/dev/zero of=" . escapeshellarg($disk) . "s1 bs=32k count=16"; - $out = create_cmdout_container("dos_dd_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Creating BSD label", "dos_label_out"); - /* Initialise the partition (optional) */ - $cmd = "/sbin/bsdlabel -w " . escapeshellarg($disk) . "s1 auto"; - $out = create_cmdout_container("dos_label_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - - $button = create_toggle_button("Creating Filesystem", "dos_newfs_out"); - /* Initialise the partition (optional) */ - $a_out = "/sbin/newfs_msdos -F 32 " . escapeshellarg($disk) . "s1"; - $out = create_cmdout_container("dos_newfs_out", $cmd); - $retvalue .= assemble_cmdout($button, $out, true); - - break; // end case "msdos": - } // end switch - - return $retvalue; -} - -if (!is_array($freenas_config['disks']['disk'])) - $freenas_config['disks']['disk'] = array(); - -disks_sort(); - -if (!is_array($freenas_config['gconcat']['vdisk'])) - $freenas_config['gconcat']['vdisk'] = array(); - -gconcat_sort(); - -if (!is_array($freenas_config['gmirror']['vdisk'])) - $freenas_config['gmirror']['vdisk'] = array(); - -gmirror_sort(); - -if (!is_array($freenas_config['graid5']['vdisk'])) - $freenas_config['graid5']['vdisk'] = array(); - -graid5_sort(); - -if (!is_array($freenas_config['gstripe']['vdisk'])) - $freenas_config['gstripe']['vdisk'] = array(); - -gstripe_sort(); - -if (!is_array($freenas_config['gvinum']['vdisk'])) - $freenas_config['gvinum']['vdisk'] = array(); - -gvinum_sort(); - -// Get all fstype supported by FreeNAS -$a_fst = get_fstype_list(); -// Remove NTFS: can't format on NTFS under FreeNAS -unset($a_fst['ntfs']); -// Remove the first blank line 'unknown' -$a_fst = array_slice($a_fst, 1); - -$a_disk = &$freenas_config['disks']['disk']; -$a_gconcat = &$freenas_config['gconcat']['vdisk']; -$a_gmirror = &$freenas_config['gmirror']['vdisk']; -$a_gstripe = &$freenas_config['gstripe']['vdisk']; -$a_graid5 = &$freenas_config['graid5']['vdisk']; -$a_gvinum = &$freenas_config['gvinum']['vdisk']; - $a_alldisk = array_merge($a_disk, - $a_gconcat, - $a_gmirror, - $a_gstripe, - $a_graid5, - $a_gvinum); - -if (! empty($_POST)) -{ - /* hash */ - unset($error_bucket); - /* simple error list */ - unset($input_errors); - unset($do_format); - $pconfig = $_POST; - - /* input validation */ - $reqdfields = explode(" ", "disk type"); - $reqdfieldsn = explode(",", "Disk,Type"); - - do_input_validation_new($_POST, $reqdfields, $reqdfieldsn, &$error_bucket); - - if (is_array($error_bucket)) - foreach($error_bucket as $elem) - $input_errors[] =& $elem["error"]; - - /* if this is an AJAX caller then handle via JSON */ - if(isAjax() && is_array($error_bucket)) { - input_errors2Ajax(NULL, $error_bucket); - exit; - } - - if (!$input_errors) - { - $do_format = true; - $disk = $_POST['disk']; - $type = $_POST['type']; - $notinitmbr= $_POST['notinitmbr']; - - /* Check if disk is mounted. */ - if(isAjax() && disks_check_mount_fullname($disk)) { - $statustxt = sprintf(gettext("The disk is currently mounted! Unmount this disk first before proceeding."), "disks_mount_tools.php?disk={$disk}&action=umount"); - - $divcontents = "
"; - $divcontents .= "
"; - $divcontents .= ""; - $divcontents .= "
  The following errors have occured:

    "; - $divcontents .= "
  • " . $statustxt . "
  • "; - $divcontents .= "

"; - - header("HTTP/1.0 500 Internal Server Error"); - header("Status: 500 Internal Server Error. {$statustxt}"); - echo $divcontents; - exit; - } else if (disks_check_mount_fullname($disk)) { - $errormsg = sprintf(gettext("The disk is currently mounted! Unmount this disk first before proceeding."), "disks_mount_tools.php?disk={$disk}&action=umount"); - $do_format = false; - } - - if($do_format) { - /* Get the id of the disk array entry. */ - $NotFound = 1; - $id = array_search_ex($disk, $a_disk, "fullname"); - - if ($id) { - /* Set new filesystem type. */ - $a_disk[$id]['fstype'] = $type; - $NotFound = 0; - } - else { - $id = array_search_ex($disk, $a_gmirror, "fullname"); - } - if (($id !== false) && $NotFound) { - /* Set new filesystem type. */ - $a_gmirror[$id]['fstype'] = $type; - $NotFound = 0; - } - else { - $id = array_search_ex($disk, $a_gstripe, "fullname"); - } - if (($id !== false) && $NotFound) { - /* Set new filesystem type. */ - $a_gstripe[$id]['fstype'] = $type; - $NotFound = 0; - } - else { - $id = array_search_ex($disk, $a_gconcat, "fullname"); - } - if (($id !== false) && $NotFound) { - /* Set new filesystem type. */ - $a_gconcat[$id]['fstype'] = $type; - $NotFound = 0; - } - else { - $id = array_search_ex($disk, $a_graid5, "fullname"); - } - if (($id !== false) && $NotFound) { - /* Set new filesystem type. */ - $a_graid5[$id]['fstype'] = $type; - $NotFound = 0; - } - else { - $id = array_search_ex($disk, $a_gvinum, "fullname"); - } - if (($id !== false) && $NotFound) { - /* Set new filesystem type. */ - $a_gvinum[$id]['fstype'] = $type; - $NotFound = 0; - } - - write_config(); - - echo create_format_output($disk, $type, $notinitmbr); - exit; // cause of Ajax - } - } -} - -if (!isset($do_format)) -{ - $do_format = false; - $disk = ''; - $type = ''; -} - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -$pfSenseHead->setCloseHead(false); -echo $pfSenseHead->getHTML(); - -?> - - - -"> - - - - - -
- - - - - - - -
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
-
- -
  - " onclick="execCMD();" /> -
- - WARNING: - -
- - - -
-
-
-
- - - - diff --git a/config/archive/freenas/www/disks_manage_iscsi.php b/config/archive/freenas/www/disks_manage_iscsi.php deleted file mode 100644 index 5180fc1a..00000000 --- a/config/archive/freenas/www/disks_manage_iscsi.php +++ /dev/null @@ -1,209 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$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(); -} - -$pconfig['enable'] = isset($freenas_config['iscsi']['enable']); -$pconfig['targetaddress'] = $freenas_config['iscsi']['targetaddress']; -$pconfig['targetname'] = $freenas_config['iscsi']['targetname']; - -if (! empty($_POST)) -{ - /* hash */ - unset($error_bucket); - /* simple error list */ - unset($input_errors); - - $pconfig = $_POST; - - /* input validation */ - if ($_POST['enable']) - { - $reqdfields = array_merge($reqdfields, explode(" ", "targetaddress targetname")); - $reqdfieldsn = array_merge($reqdfieldsn, explode(",", "targetaddress,targetname")); - } - - do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); - - if ($_POST['enable'] && !is_ipaddr($_POST['targetaddress'])){ - $error_bucket[] = array("error" => gettext("A valid IP address must be specified."), - "field" => "targetaddress"); - } - - if (is_array($error_bucket)) - foreach($error_bucket as $elem) - $input_errors[] =& $elem["error"]; - - /* if this is an AJAX caller then handle via JSON */ - if(isAjax() && is_array($error_bucket)) { - input_errors2Ajax(NULL, $error_bucket); - exit; - } - - if (!$input_errors) - { - $freenas_config['iscsi']['enable'] = $_POST['enable'] ? true : false; - $freenas_config['iscsi']['targetaddress'] = $_POST['targetaddress']; - $freenas_config['iscsi']['targetname'] = $_POST['targetname']; - - write_config(); - - $retval = 0; - if (! file_exists($d_sysrebootreqd_path)) - { - /* nuke the cache file */ - config_lock(); - services_iscsi_configure(); - config_unlock(); - } - $savemsg = get_std_save_message($retval); - } -} - -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ - -$jscriptstr = << - - - -EOD; - -$pfSenseHead->addScript($jscriptstr); -echo $pfSenseHead->getHTML(); - -?> - -"> - - - - -
- - - - - - - -
- -
-
-
- - - - - - - - - - - - - - - - -
- - - onClick="enable_change(false)" />  - -
- -
-
- -
-
  - " /> -
-
-
-
- - - - - diff --git a/config/archive/freenas/www/disks_manage_tools.php b/config/archive/freenas/www/disks_manage_tools.php deleted file mode 100644 index d851f65c..00000000 --- a/config/archive/freenas/www/disks_manage_tools.php +++ /dev/null @@ -1,331 +0,0 @@ - - All rights reserved. - - Based on FreeNAS (http://www.freenas.org) - Copyright (C) 2005-2006 Olivier Cochard-Labbé . - All rights reserved. - - Based on m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2006 Manuel Kasper . - All rights reserved. - */ -/* ========================================================================== */ -/* - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. - */ -/* ========================================================================== */ - -$pgtitle = array(gettext("System"), - gettext("Disks"), - gettext("Tools")); - -require_once("freenas_config.inc"); -require_once("guiconfig.inc"); -require_once("freenas_guiconfig.inc"); -require_once("freenas_functions.inc"); - -function create_cmd_output(&$action, &$a_disk, &$disk, &$partition, &$umount) { - $cmdout = CMDOUT_PARA; - - ob_end_flush(); - - $retvalue =<< " . gettext("The disk is currently mounted! The mount point will be removed temporary to perform selected command.") . "

"; - $retvalue .=<< -
{$diskinit_str}
- - -EOD; - - disks_umount_fullname($disk.$partition); - } - - switch($type) - { - case "": - case "ufs": - case "ufs_no_su": - case "ufsgpt": - case "ufsgpt_no_su": - $button = create_toggle_button("Checking disk", "ufsgn_fsck_out"); - $cmd = "/sbin/fsck_ufs -y -f " . escapeshellarg($disk . $partition); - $out = create_cmdout_container("ufsgn_fsck_out", $cmd); - $retvalue .= assemble_cmdout($button, $out); - break; - case "gmirror": - case "gvinum": - case "graid5": - $diskinit_str = sprintf(gettext("Use RAID tools for this disk!"), "disks_raid_{$type}_tools.php"); - $retvalue .=<<