-
Notifications
You must be signed in to change notification settings - Fork 1
/
launchReportBug.php
79 lines (60 loc) · 1.97 KB
/
launchReportBug.php
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML XMLNS:IE>
<HEAD>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<TITLE>Launching report Bug</TITLE></HEAD>
<BODY onLoad="" onUnload="" >
<SCRIPT LANGUAGE="JavaScript">
<!--
var agt=navigator.userAgent.toLowerCase();
var InternetExplorer = (navigator.appName.indexOf("Microsoft") != -1);
var IsWindows = (agt.indexOf("win")!=-1);
// removes everything after the last "/"
function stripFilename(p) {
index = p.lastIndexOf("/");
if ((index == -1) || (index == 0)) return "";
return p.substring(0,index+1);
}
// make sure the string does not start with "/"
function unPreSlashify(p) {
while ((p.length > 0) && (p.charAt(0) == "/")) {
p = p.substring(1, p.length);
}
return p;
}
function getThisServerURL() {
// determine server URL from this page's URL
return location.protocol + "//" +
location.host + "/" +
unPreSlashify(stripFilename(location.pathname));
}
function openReportBug() {
if ((!InternetExplorer)||(!IsWindows)) {
alert("Please use Internet Explorer on Windows to report bugs.");
history.back()
return;
}
var url = getThisServerURL() + "showReportBug.php" + location.search;
var newWindow = window.open(url, "");
if((!newWindow) || newWindow.closed) {
headtext.innerText="Failed to Open Report-Problem Page";
}
if (!newWindow.opener) {
newWindow.opener = self;
}
}
openReportBug();
//-->
</SCRIPT>
<table cellspacing="0" cellpadding="0" border="0" width="434" valign="top">
<tr><td><br></td></tr>
<tr>
<td><font face="arial,helvetica" size="2">
<h2 id=headtext>Starting Report-Problem Page...</h2>
Make sure all Internet Explorer popup-window stopper software is disabled before attempting to start Toontown or make a problem report! If a new window fails to open, this is likely the cause.
</td>
</tr>
</table>
</BODY></HTML>