@@ 554-563 (lines=10) @@ | ||
551 | * @throws ClientExceptions |
|
552 | * @throws Exception |
|
553 | */ |
|
554 | public function hasDigestAuth($user) |
|
555 | { |
|
556 | $params = ['user' => $user]; |
|
557 | $result = $this->client->sendRequest("/json-api/has_digest_auth", "GET", $params); |
|
558 | if ( ! empty($result['data'])) { |
|
559 | return $result['data']['digestauth'] === 1 ? true : false; |
|
560 | } |
|
561 | ||
562 | return null; |
|
563 | } |
|
564 | ||
565 | /** |
|
566 | * This function enables or disables Digest Authentication for an account. |
|
@@ 609-618 (lines=10) @@ | ||
606 | * @throws ClientExceptions |
|
607 | * @throws Exception |
|
608 | */ |
|
609 | public function hasMyCnfInHomeDirectory($user) |
|
610 | { |
|
611 | $params = ['user' => $user]; |
|
612 | $result = $this->client->sendRequest("/json-api/has_mycnf_for_cpuser", "GET", $params); |
|
613 | if ( ! empty($result['data'])) { |
|
614 | return $result['data']['has_mycnf_for_cpuser'] === 1 ? true : false; |
|
615 | } |
|
616 | ||
617 | return null; |
|
618 | } |
|
619 | ||
620 | /** |
|
621 | * Modify a cPanel account's bandwidth quota. |