1
|
<?php
|
2
|
/*
|
3
|
* copynotice.inc
|
4
|
*
|
5
|
* part of pfSense (https://www.pfsense.org)
|
6
|
* Copyright (c) 2004-2013 BSD Perimeter
|
7
|
* Copyright (c) 2013-2016 Electric Sheep Fencing
|
8
|
* Copyright (c) 2014-2020 Rubicon Communications, LLC (Netgate)
|
9
|
* All rights reserved.
|
10
|
*
|
11
|
* originally based on m0n0wall (http://m0n0.ch/wall)
|
12
|
* Copyright (c) 2003-2004 Manuel Kasper <mk@neon1.net>.
|
13
|
* All rights reserved.
|
14
|
*
|
15
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
16
|
* you may not use this file except in compliance with the License.
|
17
|
* You may obtain a copy of the License at
|
18
|
*
|
19
|
* http://www.apache.org/licenses/LICENSE-2.0
|
20
|
*
|
21
|
* Unless required by applicable law or agreed to in writing, software
|
22
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
23
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
24
|
* See the License for the specific language governing permissions and
|
25
|
* limitations under the License.
|
26
|
*/
|
27
|
|
28
|
##|+PRIV
|
29
|
##|*IDENT=page-system-copyright
|
30
|
##|*NAME=System: Upgrade notice
|
31
|
##|*DESCR=Optional upgrade notice notice.
|
32
|
##|*MATCH=upgrnotice.inc*
|
33
|
##|-PRIV
|
34
|
|
35
|
$logincssfile = "#1e3f75";
|
36
|
|
37
|
if (isset($user_settings['webgui']['logincss']) && strlen($user_settings['webgui']['logincss']) == 6) {
|
38
|
$logincssfile = "#" . $user_settings['webgui']['logincss'];
|
39
|
}
|
40
|
|
41
|
?>
|
42
|
<div id="upgrnotice" class="modal fade" role="dialog">
|
43
|
<div class="modal-dialog">
|
44
|
<div class="modal-content">
|
45
|
|
46
|
<div class="modal-body" style="background-color:<?=$logincssfile?>; color:white;">
|
47
|
<?php
|
48
|
print("<div align=\"center\" style=\"font-size:24px;\"><strong>NOTICE</strong></div><br>");
|
49
|
print(file_get_contents("/tmp/package_ui_notice"));
|
50
|
?>
|
51
|
</div>
|
52
|
<div class="modal-footer" style="background-color:<?=$logincssfile?>; color:white;">
|
53
|
<button type="button" class="btn btn-xs btn-success" data-dismiss="modal" aria-label="Close">
|
54
|
<span aria-hidden="true">Accept</span>
|
55
|
</button>
|
56
|
</div>
|
57
|
</div>
|
58
|
</div>
|
59
|
</div>
|
60
|
|
61
|
|
62
|
<script type="text/javascript">
|
63
|
//<![CDATA[
|
64
|
events.push(function() {
|
65
|
$('#upgrnotice').modal({backdrop: 'static', keyboard: false});
|
66
|
$('#upgrnotice').modal('show');
|
67
|
});
|
68
|
//]]>
|
69
|
</script>
|