diff options
Diffstat (limited to 'config/nut')
-rw-r--r-- | config/nut/nut.inc | 6 | ||||
-rw-r--r-- | config/nut/nut.xml | 10 | ||||
-rw-r--r-- | config/nut/status_nut.php | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/config/nut/nut.inc b/config/nut/nut.inc index 46c5741e..11fb4b26 100644 --- a/config/nut/nut.inc +++ b/config/nut/nut.inc @@ -1,7 +1,7 @@ <?php /* nut.inc - part of pfSense (http://www.pfsense.com/) + part of pfSense (https://www.pfsense.org/) Copyright (C) 2007 Ryan Wagoner <rswagoner@gmail.com>. All rights reserved. @@ -97,7 +97,7 @@ return true; } - function before_form_nut($pkg) { + function before_form_nut(&$pkg) { /* return available serial ports */ $serial_types = array("sio", "cua", "tty"); @@ -136,7 +136,7 @@ $field['options']['option'][] = array('name' => $names[$i], 'value' => $values[$i]); } - function validate_form_nut($post, $input_errors) { + function validate_form_nut($post, &$input_errors) { global $config; /* monitor remote validation */ diff --git a/config/nut/nut.xml b/config/nut/nut.xml index fcfbdfe6..210d7b82 100644 --- a/config/nut/nut.xml +++ b/config/nut/nut.xml @@ -46,7 +46,7 @@ <requirements>Describe your package requirements here</requirements> <faq>Currently there are no FAQ items provided.</faq> <name>nut</name> - <version>2.6.4 pkg 2.0</version> + <version>2.6.5_1 pkg 2.0.1</version> <title>Services: NUT</title> <savetext>Change</savetext> <aftersaveredirect>/status_nut.php</aftersaveredirect> @@ -77,12 +77,12 @@ <additional_files_needed> <prefix>/usr/local/pkg/</prefix> <chmod>0755</chmod> - <item>http://www.pfsense.com/packages/config/nut/nut.inc</item> + <item>https://packages.pfsense.org/packages/config/nut/nut.inc</item> </additional_files_needed> <additional_files_needed> <prefix>/usr/local/www/</prefix> <chmod>0755</chmod> - <item>http://www.pfsense.com/packages/config/nut/status_nut.php</item> + <item>https://packages.pfsense.org/packages/config/nut/status_nut.php</item> </additional_files_needed> <fields> <field> @@ -646,10 +646,10 @@ </field> </fields> <custom_php_command_before_form> - before_form_nut(&$pkg); + before_form_nut($pkg); </custom_php_command_before_form> <custom_php_validation_command> - validate_form_nut($_POST, &$input_errors); + validate_form_nut($_POST, $input_errors); </custom_php_validation_command> <custom_php_resync_config_command> sync_package_nut(); diff --git a/config/nut/status_nut.php b/config/nut/status_nut.php index 3bee0ba0..0bb1145c 100644 --- a/config/nut/status_nut.php +++ b/config/nut/status_nut.php @@ -1,7 +1,7 @@ <?php /* status_nut.php - part of pfSense (http://www.pfsense.com/) + part of pfSense (https://www.pfsense.org/) Copyright (C) 2007 Ryan Wagoner <rswagoner@gmail.com>. All rights reserved. |