|
@@ 2434-2449 (lines=16) @@
|
| 2431 |
|
} |
| 2432 |
|
|
| 2433 |
|
// This API function displays a list of all parked domains for a specific user. |
| 2434 |
|
public function listparkeddomains($username, $domain = null) |
| 2435 |
|
{ |
| 2436 |
|
$args = array(); |
| 2437 |
|
if (!isset($username)) { |
| 2438 |
|
error_log("listparkeddomains requires that a user is passed to it"); |
| 2439 |
|
|
| 2440 |
|
return false; |
| 2441 |
|
} |
| 2442 |
|
if (isset($domain)) { |
| 2443 |
|
$args['regex'] = $domain; |
| 2444 |
|
|
| 2445 |
|
return $this->api2_query($username, 'Park', 'listparkeddomains', $args); |
| 2446 |
|
} |
| 2447 |
|
|
| 2448 |
|
return $this->api2_query($username, 'Park', 'listparkeddomains'); |
| 2449 |
|
} |
| 2450 |
|
|
| 2451 |
|
// This API function displays a list of all addon domains for a specific user. |
| 2452 |
|
public function listaddondomains($username, $domain = null) |
|
@@ 2452-2467 (lines=16) @@
|
| 2449 |
|
} |
| 2450 |
|
|
| 2451 |
|
// This API function displays a list of all addon domains for a specific user. |
| 2452 |
|
public function listaddondomains($username, $domain = null) |
| 2453 |
|
{ |
| 2454 |
|
$args = array(); |
| 2455 |
|
if (!isset($username)) { |
| 2456 |
|
error_log("listaddondomains requires that a user is passed to it"); |
| 2457 |
|
|
| 2458 |
|
return false; |
| 2459 |
|
} |
| 2460 |
|
if (isset($domain)) { |
| 2461 |
|
$args['regex'] = $domain; |
| 2462 |
|
|
| 2463 |
|
return $this->api2_query($username, 'AddonDomain', 'listaddondomains', $args); |
| 2464 |
|
} |
| 2465 |
|
|
| 2466 |
|
return $this->api2_query($username, 'Park', 'listaddondomains'); |
| 2467 |
|
} |
| 2468 |
|
|
| 2469 |
|
// This API function displays a list of all selected stats for a specific user. |
| 2470 |
|
public function stat($username, $args = null) |