PHP Constants

IS_ADMIN

Defined true or false indicating whether the request is being made within the administrative control panel.

This can be used to conditionally register services for example.

if (IS_ADMIN) {
    // Do as the admins do.
}