|
@@ -116,7 +116,19 @@ if($action == 'gap')
|
|
|
if(isset($r['error_msg'])) {
|
|
if(isset($r['error_msg'])) {
|
|
|
echo 'Error : could not fetch information of packages :-(' . PHP_EOL;
|
|
echo 'Error : could not fetch information of packages :-(' . PHP_EOL;
|
|
|
} else {
|
|
} else {
|
|
|
- echo 'OK : got the infos of packages :-)' . PHP_EOL;
|
|
|
|
|
|
|
+ echo 'OK : got the infos of ' . count($r['msj']) . 'packages :-)' . PHP_EOL;
|
|
|
|
|
+ }
|
|
|
|
|
+ print_r($r);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// Get Quota Informations
|
|
|
|
|
+if($action == 'gqu')
|
|
|
|
|
+{
|
|
|
|
|
+ $r = $cwp7->getAccount($args['account_name']);
|
|
|
|
|
+ if(isset($r['error_msg'])) {
|
|
|
|
|
+ echo 'Error : could not fetch quota information of '. $args['account_name'] . ' :-(' . PHP_EOL;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ echo 'OK : got the quota infos for account ' . $args['account_name'] . ' :-)' . PHP_EOL;
|
|
|
}
|
|
}
|
|
|
print_r($r);
|
|
print_r($r);
|
|
|
}
|
|
}
|