Missing files from commit

This commit is contained in:
Denny Page
2016-07-25 23:33:14 -07:00
parent 6f51427a9c
commit 2e43e0165e
7 changed files with 30 additions and 669 deletions
+9 -6
View File
@@ -1,8 +1,10 @@
<?php
/*
nut.priv.inc
part of pfSense (http://www.pfSense.org/)
Copyright (C) 2015 ESF, LLC
Copyright (C) 2016 Denny Page
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -15,7 +17,7 @@
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,
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,
@@ -26,15 +28,16 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
global $priv_list;
$priv_list['page-services-nut'] = array();
$priv_list['page-services-nut']['name'] = "WebCfg - Services: NUT package";
$priv_list['page-services-nut']['descr'] = "Allow access to NUT package GUI";
$priv_list['page-services-nut']['name'] = "WebCfg - Services: UPS";
$priv_list['page-services-nut']['descr'] = "Allow access to NUT UPS package gui";
$priv_list['page-services-nut']['match'] = array();
$priv_list['page-services-nut']['match'][] = "pkg_edit.php?xml=nut.xml*";
$priv_list['page-services-nut']['match'][] = "ups_status.php*";
$priv_list['page-services-nut']['match'][] = "ups_status.widget.php*";
$priv_list['page-services-nut']['match'][] = "nut_status.php*";
$priv_list['page-services-nut']['match'][] = "nut_settings.php*";
$priv_list['page-services-nut']['match'][] = "nut_status.widget.php*";
?>
View File
View File
+10 -627
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -3,6 +3,7 @@
<package>
<name>nut</name>
<descr><![CDATA[Network UPS Tools]]></descr>
<pkginfolink>https://forum.pfsense.org/index.php?topic=115349.0</pkginfolink>
<version>%%PKGVERSION%%</version>
<configurationfile>nut.xml</configurationfile>
</package>
+3 -30
View File
@@ -1,36 +1,9 @@
<?php
/*
pkg_nut.inc
part of pfSense (https://www.pfsense.org/)
Copyright (C) 2016 Sander Peterse
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.
*/
global $shortcuts;
$shortcuts['nut'] = array();
$shortcuts['nut']['main'] = "/ups_status.php";
$shortcuts['nut']['status'] = "/status_services.php";
$shortcuts['nut']['main'] = "nut_settings.php";
$shortcuts['nut']['status'] = "nut_status.php";
$shortcuts['nut']['service'] = "nut";
?>
?>
+7 -6
View File
@@ -1,10 +1,11 @@
pkg/nut.xml
pkg/nut.inc
pkg/nut/nut.inc
pkg/nut/nut_email.php
/etc/inc/priv/nut.priv.inc
www/ups_status.php
www/nut_settings.php
www/nut_status.php
www/shortcuts/pkg_nut.inc
www/widgets/javascript/ups_status.js
www/widgets/widgets/ups_status.widget.php
www/widgets/include/ups_status.inc
www/widgets/include/nut_status.inc
www/widgets/widgets/nut_status.widget.php
%%DATADIR%%/info.xml
@dir /etc/inc/priv
@dir /etc/inc/priv