-
Notifications
You must be signed in to change notification settings - Fork 340
Expand file tree
/
Copy patherror.jsp
More file actions
60 lines (53 loc) · 2.37 KB
/
Copy patherror.jsp
File metadata and controls
60 lines (53 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<%--
Mango - Open Source M2M - http://mango.serotoninsoftware.com
Copyright (C) 2006-2011 Serotonin Software Technologies Inc.
@author Matthew Lohbihler
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
--%>
<%@ page isErrorPage="true" %>
<%@ include file="/WEB-INF/jsp/include/tech.jsp" %>
<%@ include file="/WEB-INF/jsp/include/log.jsp" %>
<tag:page onload="hideAlarmsAndShowTimestamp">
<div style="text-align: center;">
<br/>
<span class="bigTitle">System exception!</span><br/>
<br/>
The server has experienced an exception processing your last request. The exception has been logged, and
system administrators will be notified of this problem. You may continue to use the site.
We apologize for the inconvenience.<br/>
<br/>
Please provide the following code to the administrator to identify the problem:
<div id="errorTimestamp" style="margin-top:5px; font-size: 20px; color:#333333; margin-bottom:20px;"></div>
<script type="text/javascript">
function hideAlarmsAndShowTimestamp() {
document.getElementById("eventsRow").style.display = "none";
var today = new Date();
var ms = today.getMilliseconds();
var sc = today.getSeconds();
var mn = today.getMinutes();
var hr = today.getHours();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
if(ms<10) ms = '0' + ms;
if(ms<100) ms = '0' + ms;
if(sc<10) sc = '0' + sc;
if(mn<10) mn = '0' + mn;
if(hr<10) hr = '0' + hr;
if(dd<10) dd = '0' + dd;
if(mm<10) mm = '0' + mm;
var date = yyyy + mm + dd + hr + mn + sc + ms;
document.getElementById("errorTimestamp").innerHTML = date;
}
</script>
</div>
</tag:page>