ePages 7.47.0 - DE_EPAGES/WebInterface/API/Config.pm

Package DE_EPAGES::WebInterface::API::Config

This module contains all functions needed to perform the communication with the web interface.

@EXPORT_OK
WebInterfaceConfig
GetRequestRouterMonitors
IsCookieAllowed
GetAllowedCookies

Functions

GetAllowedCookies
GetRequestRouterMonitors
IsCookieAllowed
WebInterfaceConfig

GetAllowedCookies

Read the WebInterface.conf and find COOKIES at GLOBAL section.

Syntax
@CookieNames = GetAllowedCookies();
Return
@CookieNames (array.string)
allowed cookies

GetRequestRouterMonitors

Read the WebInterface.conf and find all RequestRouter IP addresses and monitor ports.

Syntax
$aMonitors = GetRequestRouterMonitors();
Return
$aMonitors (ref.array.array.string)
RequestRouter IP addresses and monitor port numbers
[ [ IP, port ], [IP, port ], ... ]

IsCookieAllowed

Read the WebInterface.conf and find COOKIES at GLOBAL section, look if cookie name exists in comma separated list.

Syntax
$IsAllowed = IsCookieAllowed($CookieName);
$IsAllowed = IsCookieAllowed('SessionID');
Input
$CookieName (string)
key of cookie
Return
$IsAllowed (boolean)
is cookie allowed

WebInterfaceConfig

get ini object of the WebInterface.conf

Syntax
$IniConfig = WebInterfaceConfig();
Return
$IniConfig (object)
config object