Sfoglia il codice sorgente

add function createuser

andre 3 anni fa
parent
commit
d98ab902b9
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      cwp7.php

+ 4 - 4
cwp7.php

@@ -199,7 +199,7 @@ function cwp7_AdminLink($params) {
 	return $code;
 }
 function cwp7_LoginLink($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');
@@ -214,7 +214,7 @@ function cwp7_LoginLink($params) {
 	$linkautologin=$link[0]['url'];
 	logModuleCall('cwpwhmcs','cwp7_LoginLink','https://' . $params["serverhostname"] . ':2304/v1/user_session'.$postdata,$answer);
 
-	echo "<a href=\"{$linkautologin}\" target=\"_blank\" style=\"color:#cc0000\">Control Panel</a>";
+	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"]);
@@ -250,7 +250,7 @@ function cwp7_ChangePackage($params){
 	return $result;
 }
 function cwp7_UsageUpdate($params) {
-	$postvars = array('key' => $params["serveraccesshash"],'action' => 'list');
+/*	$postvars = array('key' => $params["serveraccesshash"],'action' => 'list');
 	$postdata = http_build_query($postvars);
 	$curl = curl_init();
 	curl_setopt($curl, CURLOPT_URL, 'https://'. $params["serverhostname"] . ':2304/v1/account');
@@ -290,5 +290,5 @@ function cwp7_UsageUpdate($params) {
 				logActivity('ERROR: Unable to update server usage: ' . $e->getMessage());
 			}
 		}
-	}
+	} */
 }