| Server IP : 104.21.37.246 / Your IP : 104.23.243.32 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/2388321/cwd/unprotected/ |
Upload File : |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>cPanel & WHM OAuth2 Callback</title>
</head>
<body>
<p>Finishing authentication...</p>
<script language="javascript">
var hasCallback = window.opener.oauth2Callback ? true : false;
// Figure out the correct port
var port = location.port;
if (!port && hasCallback) {
// Only do this further resolution for the
// newer code paths via callback. It breaks the
// older code path used in the redirect for
// Grant cPanel Support.
if (location.protocol === "https:") {
port = 443;
} else if (location.protocol === "http:") {
port = 80;
}
}
// Build the redirect URI
var redirectUri = location.protocol + "//" + location.hostname +
":" + port + location.pathname;
// Build the whole search
var search = location.search.substring(1) + "&redirect_uri=" + redirectUri;
if(hasCallback) {
// For the ticket wizard callback and
// other users of the cjt2 based tools/
window.opener.oauth2Callback(search);
} else {
// For the grant cPanel support application which
// does not use a callback method.
if (window.opener.location.search.substring(1)) {
search += "&" + window.opener.location.search.substring(1);
}
window.opener.location.search = "?" + search;
}
window.close();
</script>
</body>
</html>