|
|
@@ -124,7 +124,7 @@ function cwp7_CreateAccount($params) {
|
|
|
return 'success';
|
|
|
}
|
|
|
function cwp7_TerminateAccount($params) {
|
|
|
- if ($params["server"] == 1) {
|
|
|
+/* if ($params["server"] == 1) {
|
|
|
$postvars = array('key' => $params["serveraccesshash"],'action' => 'del','user' => $params["username"]);
|
|
|
$postdata = http_build_query($postvars);
|
|
|
$curl = curl_init();
|
|
|
@@ -138,10 +138,11 @@ function cwp7_TerminateAccount($params) {
|
|
|
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 $result; */
|
|
|
+ return 'success';
|
|
|
}
|
|
|
function cwp7_SuspendAccount($params) {
|
|
|
- if ($params["server"] == 1) {
|
|
|
+/* if ($params["server"] == 1) {
|
|
|
$postvars = array('key' => $params["serveraccesshash"],'action' => 'susp','user' => $params["username"]);
|
|
|
$postdata = http_build_query($postvars);
|
|
|
$curl = curl_init();
|
|
|
@@ -155,10 +156,11 @@ function cwp7_SuspendAccount($params) {
|
|
|
}
|
|
|
if(strpos($answer,"OK")!==false){$result='success';}else{$result=json_decode($answer,true); $result=$result['msj'];}
|
|
|
logModuleCall('cwpwhmcs','SuspendAccount','https://' . $params["serverhostname"] . ':2304/v1/account/'.$postdata,$result);
|
|
|
- return $result;
|
|
|
+ return $result; */
|
|
|
+ return 'success';
|
|
|
}
|
|
|
function cwp7_UnsuspendAccount($params) {
|
|
|
- if ($params["server"] == 1) {
|
|
|
+/* if ($params["server"] == 1) {
|
|
|
$postvars = array('key' => $params["serveraccesshash"],'action' => 'unsp','user' => $params["username"]);
|
|
|
$postdata = http_build_query($postvars);
|
|
|
$curl = curl_init();
|
|
|
@@ -172,10 +174,11 @@ function cwp7_UnsuspendAccount($params) {
|
|
|
}
|
|
|
if(strpos($answer,"OK")!==false){$result='success';}else{$result=json_decode($answer,true); $result=$result['msj'];}
|
|
|
logModuleCall('cwpwhmcs','UnsuspendAccount','https://' . $params["serverhostname"] . ':2304/v1/account'.$postdata,$result);
|
|
|
- return $result;
|
|
|
+ return $result; */
|
|
|
+ return 'success';
|
|
|
}
|
|
|
function cwp7_ClientArea($params){
|
|
|
- $postvars = array('key' => $params["serveraccesshash"], 'action' => 'list', 'user' => $params["username"], 'timer' => 5);
|
|
|
+/* $postvars = array('key' => $params["serveraccesshash"], 'action' => 'list', 'user' => $params["username"], 'timer' => 5);
|
|
|
$postdata = http_build_query($postvars);
|
|
|
$curl = curl_init();
|
|
|
curl_setopt($curl, CURLOPT_URL, 'https://' . $params["serverhostname"] . ':2304/v1/user_session');
|
|
|
@@ -190,7 +193,8 @@ function cwp7_ClientArea($params){
|
|
|
$linkautologin = $link[0]['url'];
|
|
|
logModuleCall('cwpwhmcs', 'cwp7_LoginLink', 'https://' . $params["serverhostname"] . ':2304/v1/user_session' . $postdata, $answer);
|
|
|
|
|
|
- return "<a href=\"{$linkautologin}\" target=\"_blank\" style=\"color:#cc0000\">Login to Control Panel</a>";
|
|
|
+ return "<a href=\"{$linkautologin}\" target=\"_blank\" style=\"color:#cc0000\">Login to Control Panel</a>"; */
|
|
|
+
|
|
|
}
|
|
|
function cwp7_AdminLink($params) {
|
|
|
$code = '<form action="https://'.$params["serverhostname"].':2031" method="post" target="_blank">
|
|
|
@@ -217,7 +221,7 @@ function cwp7_LoginLink($params) {
|
|
|
echo "<a href=\"{$linkautologin}\" target=\"_blank\" style=\"color:#cc0000\">Control Panel</a>"; */
|
|
|
}
|
|
|
function cwp7_ChangePassword($params){
|
|
|
- $postvars = array('key' => $params["serveraccesshash"],'acction' => 'udp','user' => $params["username"], 'pass' =>$params["password"]);
|
|
|
+/* $postvars = array('key' => $params["serveraccesshash"],'acction' => 'udp','user' => $params["username"], 'pass' =>$params["password"]);
|
|
|
$postdata = http_build_query($postvars);
|
|
|
$curl = curl_init();
|
|
|
curl_setopt($curl, CURLOPT_URL, 'https://'. $params["serverhostname"] . ':2304/v1/changepass');
|
|
|
@@ -229,10 +233,11 @@ function cwp7_ChangePassword($params){
|
|
|
$answer = curl_exec($curl);
|
|
|
if(strpos($answer,"OK")!==false){$result='success';}else{$result=json_decode($answer,true); $result=$result['msj'];}
|
|
|
logModuleCall('cwpwhmcs','ChangePassword','https://' . $params["serverhostname"] . ':2304/v1/changepass'.$postdata,$result);
|
|
|
- return $result;
|
|
|
+ return $result; */
|
|
|
+ return 'success';
|
|
|
}
|
|
|
function cwp7_ChangePackage($params){
|
|
|
- $postvars = array("key" => $params["serveraccesshash"],"action"=>'udp','user' => $params["username"],'package'=>$params["configoption1"].'@');
|
|
|
+/* $postvars = array("key" => $params["serveraccesshash"],"action"=>'udp','user' => $params["username"],'package'=>$params["configoption1"].'@');
|
|
|
$postdata = http_build_query($postvars);
|
|
|
$curl = curl_init();
|
|
|
|
|
|
@@ -247,7 +252,8 @@ function cwp7_ChangePackage($params){
|
|
|
|
|
|
if(strpos($answer,"OK")!==false){$result='success';}else{$result=json_decode($answer,true); $result=$result['msj'];}
|
|
|
logModuleCall('cwpwhmcs','ChangePackage','https://' . $params["serverhostname"] . ':2304/v1/packages'.$postdata,$answer);
|
|
|
- return $result;
|
|
|
+ return $result; */
|
|
|
+ return 'success';
|
|
|
}
|
|
|
function cwp7_UsageUpdate($params) {
|
|
|
/* $postvars = array('key' => $params["serveraccesshash"],'action' => 'list');
|