|
@@ -539,6 +539,13 @@ function cwp7_enableSSL($params) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function cwp7_renewSSL($params) {
|
|
function cwp7_renewSSL($params) {
|
|
|
|
|
+ logModuleCall(
|
|
|
|
|
+ 'cwp7',
|
|
|
|
|
+ __FUNCTION__,
|
|
|
|
|
+ $_POST,
|
|
|
|
|
+ 'debug custom',
|
|
|
|
|
+ $params
|
|
|
|
|
+ );
|
|
|
if(!filter_var($_POST['d'], FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)){
|
|
if(!filter_var($_POST['d'], FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)){
|
|
|
return 'Error: invalid domain name';
|
|
return 'Error: invalid domain name';
|
|
|
}
|
|
}
|
|
@@ -546,13 +553,6 @@ function cwp7_renewSSL($params) {
|
|
|
$vars['name'] = $_POST['d'];
|
|
$vars['name'] = $_POST['d'];
|
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
|
|
|
$response = $cwp7->updateAutoSSL($vars);
|
|
$response = $cwp7->updateAutoSSL($vars);
|
|
|
- logModuleCall(
|
|
|
|
|
- 'cwp7',
|
|
|
|
|
- __FUNCTION__,
|
|
|
|
|
- $_POST,
|
|
|
|
|
- 'debug custom',
|
|
|
|
|
- $response
|
|
|
|
|
- );
|
|
|
|
|
if($response['status'] != 'OK') {
|
|
if($response['status'] != 'OK') {
|
|
|
return 'Error: ' . $response['msj'];
|
|
return 'Error: ' . $response['msj'];
|
|
|
}
|
|
}
|