This commit is contained in:
@@ -259,7 +259,7 @@ function confirm_uninstall(additional) {
|
||||
}
|
||||
|
||||
function request_letsencrypt(domain) {
|
||||
var url = 'scan.php?op=letsencrypt&domain='+domain;
|
||||
var url = 'scan.php?op=request_letsencrypt&domain='+domain;
|
||||
jQuery.get(url, function(data) {
|
||||
console.log('letsencrypt '+domain);
|
||||
if (data!="") {
|
||||
|
6
scan.php
6
scan.php
@@ -263,12 +263,12 @@ switch ($_GET["op"]) {
|
||||
else echo ""; // no deployment, finished
|
||||
}
|
||||
break;
|
||||
case "letsencrypt":
|
||||
case "request_letsencrypt":
|
||||
$domain = $_GET["domain"];
|
||||
$arr = array($domain => array("status" => "requested"));
|
||||
$arr = array($domain => array("date" => date("Y-m-d H:i:s"), "status" => "requested"));
|
||||
$json = json_encode($arr, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT);
|
||||
|
||||
if (set_output("letsencrypt",$json)) echo "LETSENCRYPT in progress for {$domain}.<br><br>";
|
||||
if (set_output("request_letsencrypt",$json)) echo "LETSENCRYPT in progress for {$domain}.<br><br>";
|
||||
else echo "ERROR";
|
||||
break;
|
||||
case "check_letsencrypt":
|
||||
|
Reference in New Issue
Block a user