fix(plg): remove redirect on key install

This commit is contained in:
Eric Schultz
2020-05-01 23:45:44 -05:00
parent f60b2cd48f
commit a4d00e2480

View File

@@ -853,7 +853,6 @@ function handleMessage(e) {
hideRegWizard(function (){
$.get('/webGui/include/InstallKey.php', {url: data.license}, function() {
console.log('New license key installed: ' + data.license);
setTimeout(function(){ location = '/Main'; }, 1000);
}).fail(function() {
console.error('Failed to license new key: ' + data.license);
});
@@ -940,8 +939,8 @@ $arr['flashproduct'] = $var['flashProduct'];
$arr['flashvendor'] = $var['flashVendor'];
$arr['servername'] = $var['NAME'];
$arr['serverip'] = $_SERVER['SERVER_ADDR'];
//$arr['internalport'] = $_SERVER['SERVER_PORT'];
//$arr['protocol'] = $_SERVER['REQUEST_SCHEME'];
$arr['internalport'] = $_SERVER['SERVER_PORT'];
$arr['protocol'] = $_SERVER['REQUEST_SCHEME'];
echo json_encode($arr);
?>