ePages 7.47.0 - DE_EPAGES/Presentation/API/Constants.pm

Package DE_EPAGES::Presentation::API::Constants

Constants for the Presentation cartridge

@EXPORT_OK
$PROCESSMONITOR
RESERVED_ATTRIBUTENAMES
PASSWORD_DUMMY
BASIC_JSON_ATTRIBUTES
DEFAULT_HISTORY_ENTRIES
MAX_PREVIEW_CHILD_ITEMS
ALLOW_SESSION_IN_URL
JQUERY_JSON_ATTRIBUTES
JQUERY_JSON_IGNORED_CLASSES
MAX_IMAGE_UPLOAD_SIZE
UNITY_VIEW_ACTION_EXCEPTION_REGEX
RECAPTCHA_PUBLIC_KEY
RECAPTCHA_PRIVATE_KEY
RECAPTCHA_CALL_TIMEOUT
RECAPTCHA_CALL_URL
RECAPTCHA_FORM_ERROR
RECAPTCHA_TEST_KEY_HOSTNAME
UNITY_SF_VIEW_ACTION_PREFIX
IS_LENGTH_CHECK_ACTIVE
STRING_COVERAGE
EPAGES6_LOCALIZED_FIELDS_LENGTH
UNITY_LOCALIZED_FIELDS_LENGTH
WRITEABLE_PATH_ATTRIBUTES
ANTISPAM_TIMESTAMP_ISACTIVE
WRITEABLE_PATH_ATTRIBUTES
FORMSUBMIT_TIMEFRAME

Functions

EPAGES6_LOCALIZED_FIELDS_LENGTH
FORMSUBMIT_TIMEFRAME
IS_LENGTH_CHECK_ACTIVE
STRING_COVERAGE
UNITY_LOCALIZED_FIELDS_LENGTH

$PROCESSMONITOR (boolean)

true if the monitor is enabled

$DEFAULT_HISTORY_ENTRIES (int)

count of history entries (20)

RESERVED_ATTRIBUTENAMES (array)

reserved names witch cannot be used as
attribute names

PASSWORD_DUMMY (string)

the dummy text which is displayed in password fields
(********)

BASIC_JSON_ATTRIBUTES (ref.array.string)

deprecated only used by dojo json,
list of attributes names for JSONChildren

JQUERY_JSON_ATTRIBUTES (ref.array.string)

list of attributes names for JSONChildrenJSTree

JQUERY_JSON_IGNORED_CLASSES (ref.array.string)

list of ignored classed for JSONChildrenJSTree

MAX_PREVIEW_CHILD_ITEMS (int)

number of maximal visible child items

MAX_IMAGE_UPLOAD_SIZE (int
The value of MAXCONTENTLENGTH in WebInterface.conf is the max size
use this constant to set the limit lower than MAXCONTENTLENGTH)

max image size in kB for uploading images

ALLOW_SESSION_IN_URL (integer)

Enables session handling for user agents that do
do accept cookies for all or some domains. Default=1.
This value is configurable in the epages.conf file, section
DE_EPAGES::Presentation, key AllowSessionInURL

UNITY_VIEW_ACTION_EXCEPTION_REGEX (int)

regex list not to be prefixed with Unity

RECAPTCHA_PUBLIC_KEY

returns ReCaptcha public key

RECAPTCHA_PRIVATE_KEY

returns ReCaptcha private key

RECAPTCHA_CALL_TIMEOUT (int)

Timeout for Google ReCaptcha API

RECAPTCHA_CALL_URL (String)

Google url

RECAPTCHA_TEST_KEY_HOSTNAME (String)

Google test key hostname response

RECAPTCHA_FORM_ERROR (hash)

Form error for Google ReCaptcha

UNITY_SF_VIEW_ACTION_PREFIX (string)

Prefix for SF view actions of an Unity shop

WRITEABLE_PATH_ATTRIBUTES (string)

List of attributes that are writable and
that are used to construct filenames. Must be checked because of potential
path traversal attacks

EPAGES6_LOCALIZED_FIELDS_LENGTH

Returns a hash of field lengths of localized strings for ep6

Syntax
EPAGES6_LOCALIZED_FIELDS_LENGTH()->{'Description'};
Return
hash of ints by field name

FORMSUBMIT_TIMEFRAME

Gets feature configuration from configuration file

Syntax
  my $FormsubmitConfigValues = FORMSUBMIT_TIMEFRAME();
Return
ref.hash.boolean
  • Feature_IsActive (boolean </>
)
boolean </>
  • Feature_TestMode
  • IS_LENGTH_CHECK_ACTIVE

    Returns a flag from epages.conf which tells whether length check is active

    Syntax
    IS_LENGTH_CHECK_ACTIVE();
    Return
    boolean. 1 if active, 0 otherwise

    STRING_COVERAGE

    Returns a float from epages.conf which tells what percent of string should match in the comparison to be considered equal

    Syntax
    STRING_COVERAGE();
    Return
    float. from 0 to 1. 1 means 100 % coverage, just like in normal comparison

    UNITY_LOCALIZED_FIELDS_LENGTH

    Returns a hash of field lengths of localized strings for unity

    Syntax
    UNITY_LOCALIZED_FIELDS_LENGTH()->{'Description'};
    Return
    hash of ints by field name