Skip to content

v2.0.1

Choose a tag to compare

@bradleygb bradleygb released this 17 Aug 19:02
· 37 commits to main since this release

Fixed

  • Disk usage was imported as zero for every service. CWP's account/list names the
    field diskused, which was not among the names the module looked for.
  • Disk usage now comes from accountdetail. account/list reports a placeholder
    rather than real consumption — the same account shows diskused => 1 there and
    space_usage => 480715 on accountdetail. Bandwidth and all limits still come from
    the single list call, which reports them accurately.
  • Responses under result are read. Current CWP builds return success payloads under
    result, older ones under msj, and errors under msg. All three are accepted;
    account/list and accountdetail use different keys as the same server.
  • -1 is understood as unlimited and stored as 0, which is how WHMCS reads it. A
    negative limit previously rendered as a negative usage bar.
  • Usage rows are matched to services by primary key rather than by a domain query, so a
    domain shared by two services can no longer have both rewritten.
  • Terminated, cancelled and fraud services no longer trigger API calls. The admin
    service page called CWP on every view for a service whose account no longer exists,
    showing a rejection banner each time; usage import likewise treated dead services as
    candidates, letting one shadow a live service that reused the same domain.
  • A missing account now reads as a plain statement rather than an error banner — that is
    an ordinary state, not a fault.

Added

  • usage_detail_lookup in config.php (default on). The accurate disk figure costs one
    extra API call per account that matches a WHMCS service on that server — accounts
    with no service are skipped before the call is made. Set to false to use the single
    list call and accept the placeholder figure.