A holistic microclimate model

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

apps:licmanaging [2019/02/19 10:52]
enviadmin created
apps:licmanaging [2019/05/06 16:33] (current)
Line 1: Line 1:
-a+<​html>​ 
 +<​head>​ 
 +  <​title>​Manage license</​title>​ 
 + <​script ​ src="​jquery-3.3.1.min.js">​ </​script>​ 
 +  <​script>​ 
 +    $(document).ready(function(){ //​WVZL-ILWA-HUEW-SSWY-WGKO 
 + $("​body"​).on("​click",​ "#​btn",​ function(){ 
 + var tRemove = []; 
 + $('#​checkBox :​checked'​).each(function(){ 
 + tRemove.push($(this).val());​ 
 + }); 
 + //​alert(tRemove.join('​\n'​));​ //​Weglassen,​ oder? Brauch den User ja nicht zu interessieren (sind die Values der gewählten Checkboxen). 
 +  
 + if(typeof tRemove != "​undefined"​ && tRemove != null && tRemove.length != null && tRemove.length > 0){ //Check ob Array(Remove) leer ist oder nicht. 
 + $.post("​licRemove.php",​ 
 + {remove: tRemove}, 
 + function(response,​status){ 
 + if(status){ 
 + $("​.checkbox input:​checked"​).parent().remove();​ 
 + $("​p#​response"​).text("​Your public key has been found and de-registered"​);​ //selector wählt das Objekt Paragraph mit der ID=Response und verändert den Inhalt || Der Paragraph ist in der licDeRegister.php zu finden. 
 + //​alert("​Success! Response: "​+response);​ 
 + }else{ 
 + $("​p#​response"​).text("​Your public key has not been found and de-registered"​);​  
 + //​alert("​Failure! Response: "​+response);​ 
 +
 + }); 
 + }else{ 
 + $("​p#​response"​).text("​Please select ​key to de-register!"​);​  
 +
 + }); 
 + }); 
 +  
 + function loadRegMachines() 
 +
 + var elem = document.getElementById("​para1"​);​ 
 + var priKey = document.getElementById("​priKey"​);​ 
 + var xmlhttp; 
 + if (window.XMLHttpRequest) 
 +   {// code for IE7+, Firefox, Chrome, Opera, Safari 
 +   xmlhttp=new XMLHttpRequest();​ 
 +   } 
 + else 
 +   {// code for IE6, IE5 
 +   xmlhttp=new ActiveXObject("​Microsoft.XMLHTTP"​);​ 
 +   } 
 + // xmlhttp.open("​GET","​https://​www.envi-met.net/​hg2e/​licV2/​licDeRegister.php?​privateKey="​+aGUID+"",​false);​ 
 + xmlhttp.open("​GET","​http://​www.envi-met.info/​licDeRegister.php?​rndPriKey="​+priKey.value+"",​false);​ 
 + xmlhttp.send();​ 
 + // document.getElementById("​myDiv2"​).innerHTML=xmlhttp.responseText;​ 
 + elem.innerHTML=xmlhttp.responseText;​ 
 + }   
 +  </​script>​ 
 +</​head>​ 
 +<​body>​ 
 +  Please enter your license key (userKey) from your validation e-mail: 
 +  <​br>​ 
 +  <input id="​priKey"​ name="​privateKey">​ 
 +   
 +  <button onclick="​loadRegMachines();">​send</​button>​ 
 +  <p id="​para1">​-</​p> ​  
 +</​body>​ 
 +</​html>​