Przeglądaj źródła

add cwp7CheckLimit

andre 3 lat temu
rodzic
commit
5c7f36ebf5
2 zmienionych plików z 1 dodań i 20 usunięć
  1. 0 19
      api/cwp7/Admin.php
  2. 1 1
      cwp7.php

+ 0 - 19
api/cwp7/Admin.php

@@ -297,18 +297,6 @@ class cwp7_Admin {
 	{
         $data = array('user' => $user);
         return $this->doRequest('accountquota', 'list', $data);
-    }
-    /**
-	 * getLimits
-     * 
-     * @param string $user user
-	 * 
-	 * @return array limits details
-	 */
-    public function getLimits($user)
-	{
-        $data = array('user' => $user);
-        return $this->doRequest('quotalimit', 'list', $data);
     }
 	/**
 	 * getAutoSSL
@@ -418,13 +406,6 @@ class cwp7_Admin {
         curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
         curl_setopt($ch, CURLOPT_POST, 1);
         $response = curl_exec($ch);
-        logModuleCall(
-            'cwp7',
-            __FUNCTION__,
-            $action,
-            'debug',
-            $response
-        );
         if(curl_getinfo($ch, CURLINFO_RESPONSE_CODE) != 200) {
             curl_close($ch);
             return array('status' => 'Error', 'err_msg' => curl_error($ch));

+ 1 - 1
cwp7.php

@@ -1164,7 +1164,7 @@ function cwp7CheckSOA($domain, $nameserverIP, $nameserverName ) {
  */
 function cwp7CheckLimit($params, $service) {
 	$cwp7 = new cwp7_Admin($params['serverhostname'], $params['serveraccesshash']);
-	$response = $cwp7->getLimits($params['username']);
+	$response = $cwp7->getQuota($params['username']);
 	logModuleCall(
 		'cwp7',
 		__FUNCTION__,