Quellcode durchsuchen

test function terminateuser

andre vor 3 Jahren
Ursprung
Commit
0e0f5db32c
1 geänderte Dateien mit 10 neuen und 16 gelöschten Zeilen
  1. 10 16
      cwp7.php

+ 10 - 16
cwp7.php

@@ -131,22 +131,16 @@ function cwp7_CreateAccount($params) {
 }
 
 function cwp7_TerminateAccount($params) {
-/*	if ($params["server"] == 1) {
-		$postvars = array('key' => $params["serveraccesshash"],'action' => 'del','user' => $params["username"]);
-		$postdata = http_build_query($postvars);
-		$curl = curl_init();
-		curl_setopt($curl, CURLOPT_URL, 'https://' . $params["serverhostname"] . ':2304/v1/account');
-		curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
-		curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
-		curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
-		curl_setopt($curl, CURLOPT_POST, true);
-		curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata);
-		$answer = curl_exec($curl);
-		logModuleCall('cwpwhmcs','TerminateAccount','https://' . $params["serverhostname"] . ':2304/v1/account/'.$postdata,$answer);
-	}
-	if(strpos($answer,"OK")!==false){$result='success';}else{$result=json_decode($answer,true); $result=$result['msj'];}
-	return $result; */
-	return 'success';
+	logModuleCall(
+		'cwp7',
+		__FUNCTION__,
+		$params,
+		'Debug',
+		''
+		);
+	return 'Error: debug';
+
+//	return 'success';
 }
 function cwp7_SuspendAccount($params) {
 /*	if ($params["server"] == 1) {