|
|
@@ -74,7 +74,7 @@ function parse_args($argv){
|
|
|
// Constructor //
|
|
|
/////////////////
|
|
|
|
|
|
-$cwp7 = new cwp7_Admin($cwp7URL, $cwp7Token);
|
|
|
+$cwp7 = new cwp7_Admin($cwp7Host, $cwp7Token);
|
|
|
$r = $cwp7->constructorSuccess();
|
|
|
if(isset($r['error_msg'])) {
|
|
|
echo 'Error : cannot construct :-(' . PHP_EOL;
|
|
|
@@ -90,9 +90,9 @@ if($action == 'gaa')
|
|
|
{
|
|
|
$r = $cwp7->getAllAccounts();
|
|
|
if($r['status'] == 'Error') {
|
|
|
- echo 'Error : could not fetch list of accounts on '. $cwp7URL . ' :-(' . PHP_EOL;
|
|
|
+ echo 'Error : could not fetch list of accounts on '. $cwp7Host . ' :-(' . PHP_EOL;
|
|
|
} else {
|
|
|
- echo 'OK : got a list of '. count($r['msj']) . ' accounts on ' . $cwp7URL . ' :-)' . PHP_EOL;
|
|
|
+ echo 'OK : got a list of '. count($r['msj']) . ' accounts on ' . $cwp7Host . ' :-)' . PHP_EOL;
|
|
|
}
|
|
|
print_r($r);
|
|
|
}
|