diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-03-24 02:27:47 -0500 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2012-03-26 11:43:54 -0500 |
commit | 621d9e5c413e561293d7484b93882d985b3fe15f (patch) | |
tree | 638f3d75761c121d9a8fb50b52a12a6686c5ac5c /dogtag/tps-ui/shared/docroot/tokendb/selfTestResults.template | |
parent | 40d3643b8d91886bf210aa27f711731c81a11e49 (diff) | |
download | pki-621d9e5c413e561293d7484b93882d985b3fe15f.tar.gz pki-621d9e5c413e561293d7484b93882d985b3fe15f.tar.xz pki-621d9e5c413e561293d7484b93882d985b3fe15f.zip |
Removed unnecessary pki folder.
Previously the source code was located inside a pki folder.
This folder was created during svn migration and is no longer
needed. This folder has now been removed and the contents have
been moved up one level.
Ticket #131
Diffstat (limited to 'dogtag/tps-ui/shared/docroot/tokendb/selfTestResults.template')
-rw-r--r-- | dogtag/tps-ui/shared/docroot/tokendb/selfTestResults.template | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/dogtag/tps-ui/shared/docroot/tokendb/selfTestResults.template b/dogtag/tps-ui/shared/docroot/tokendb/selfTestResults.template new file mode 100644 index 000000000..3495abaf6 --- /dev/null +++ b/dogtag/tps-ui/shared/docroot/tokendb/selfTestResults.template @@ -0,0 +1,113 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + 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; version 2 of the License. + + 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, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + Copyright (C) 2007 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<HTML> +<meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8"> +<link rel="shortcut icon" href="/tps/admin/console/img/favicon.ico" /> +<HEAD> +<TITLE>TPS</Title> +</HEAD> + +<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#000080"> + <tr> + <td> + <table border="0" cellspacing="12" cellpadding="0"> + <tr> + <td><img src="/tps/admin/console/img/logo_header.gif"></td> + <td> </td> + <td><font size="+1" face="PrimaSans BT, Verdana, sans-serif" color="white"><b>Dogtag<sup><font color="#999999" size="-2">®</font></sup> TPS Services</b></font></td> + </tr> + </table> + </td> + </tr> +</table> +<p> + +<BODY> + +<CMS_TEMPLATE> + +<SCRIPT type="text/JavaScript"> +<!-- +var uri = ""; +if (typeof(uriBase) == "undefined") { + uri += "/tus"; +} else { + uri += uriBase; +} + +document.write("<font face=\"PrimaSans BT, Verdana, sans-serif\" size=\"+1\">"+ + "<a href=\""+uri+"\">Main Menu</a></font>\n"); +document.write("<table width=\"100%\"><tr><td align=\"right\">" + + "<b>UID:</b>" + + userid + "</td></tr></table>\n"); +document.write("<HR NOSHADE SIZE=1>\n"); + +if (typeof(result) == "undefined") { + document.write("<font face=\"PrimaSans BT, Verdana, sans-serif\" size=\"-1\">\n"); + document.write("Error: Missing self test results.</font>\n"); +} else { + if (typeof(test_list) == "undefined" || test_list.length == 0) { + document.write("<font face=\"PrimaSans BT, Verdana, sans-serif\" size=\"-1\">\n"); + document.write("Error: List of self tests is not available.</font>\n"); + } else { + var enabledTests = 0 + for (var i = 0, k = 1; i < test_list.length; i++) { + if ((typeof(enabled) != "undefined") && (enabled & k)) { + enabledTests++; + } + k *= 2; + } + document.write("<font face=\"PrimaSans BT, Verdana, sans-serif\" size=\"-1\">\n"); + if (enabledTests == 0) { + document.write("Self tests are not enabled."); + } else { + if (result == 0) { + document.write("Self test"+((enabledTests > 1)?"s ":" ")); + for (i = 0, k = 1, n = 0; i < test_list.length; i++) { + if ((typeof(enabled) != "undefined") && (enabled & k)) { + if (n > 0) { + document.write(", "); + } + document.write("\""+test_list[i]+"\""); + n++; + } + k *= 2; + } + document.write(((enabledTests > 1)?" are":" is")+" completed successfully.\n"); + } else if (result > -4 && result < 4) { + document.write("Self test \""+test_list[0]+"\" encounter "+((result < 0)?"critical":"")+" failure: "+result+"\n"); + if (result < 0) { + document.write("<br><b>Please stop the server immediately.</b>\n"); + } + } else { + document.write("Self test \""+test_list[1]+"\" encounter "+((result < 0)?"critical":"")+" failure: "+result+"\n"); + if (result < 0) { + document.write("<br><b>Please stop the server immediately.</b>\n"); + } + } + } + document.write("</font>\n"); + } +} +document.write("<BR>\n<HR NOSHADE SIZE=1>\n"); +//--> +</SCRIPT> + +</BODY> +</HTML> |