Sfoglia il codice sorgente

add cwp7CheckLimit

andre 3 anni fa
parent
commit
7e32540085
2 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 2 2
      clientarea.tpl
  2. 4 0
      cwp7.php

+ 2 - 2
clientarea.tpl

@@ -457,13 +457,13 @@
                             <h4>{lang key='diskSpace'}</h4>
                             <input type="text" value="{$diskpercent|substr:0:-1}" class="dial-usage" data-width="100"
                               data-height="100" data-min="0" data-readOnly="true" />
-                            <p>{($diskusage / 1024)|round:1} GB / {($disklimit / 1024)|round:1} GB</p>
+                            <p>{($space_usage / 1024)|round:1} GB / {($space_disk / 1024)|round:1} GB</p>
                           </td>
                           <td class="col-sm-6 text-sm-center">
                             <h4>{lang key='bandwidth'}</h4>
                             <input type="text" value="{$bwpercent|substr:0:-1}" class="dial-usage" data-width="100"
                               data-height="100" data-min="0" data-readOnly="true" />
-                            <p>{($bwusage / 1024)|round:1} GB / {($bwlimit / 1024)|round:1} GB</p>
+                            <p>{($bandwidth_used / 1024)|round:1} GB / {($bandwidth / 1024)|round:1} GB</p>
                           </td>
                         </tr>
 {*                        <tr>

+ 4 - 0
cwp7.php

@@ -300,6 +300,10 @@ function cwp7_ClientArea($params) {
 	$clientInfo['addons_domains_used'] = $response['result']['account_info']['addons_domains_used'];
 	$clientInfo['sub_domains'] = $response['result']['account_info']['sub_domains'];
 	$clientInfo['sub_domains_used'] = $response['result']['account_info']['sub_domains_used'];
+	$clientInfo['space_usage'] = $response['result']['account_info']['space_usage'];
+	$clientInfo['space_disk'] = $response['result']['account_info']['space_disk'];
+	$clientInfo['bandwidth_used'] = $response['result']['account_info']['bandwidth_used'];
+	$clientInfo['bandwidth'] = $response['result']['account_info']['bandwidth'];
 	$domains = $response['result']['domains'];
 	$subDomains = $response['result']['subdomins'];
 	$clientInfo['domains'] = array();