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