class ServerConfigChecks

Performs various compatibility, security and consistency checks on current config

Outputs results to message list, must be called between SetupIndex::messagesBegin() and SetupIndex::messagesEnd()

Properties

protected ConfigFile $cfg

Methods

__construct(ConfigFile $cfg)

Constructor.

void
performConfigChecks()

Perform config checks

array
performConfigChecksServers(boolean $cookieAuthUsed, string $blowfishSecret, boolean $blowfishSecretSet)

Check config of servers

array
performConfigChecksServersSetBlowfishSecret(string $blowfishSecret, boolean $cookieAuthServer, boolean $blowfishSecretSet)

Set blowfish secret

string
performConfigChecksServersGetServerName(string $serverName, int $serverId)

Define server name

void
performConfigChecksZips()

Perform config checks for zip part.

void
performConfigChecksServersZipdump()

Perform config checks for zip part.

void
performConfigChecksCookieAuthUsed(boolean $cookieAuthUsed, boolean $blowfishSecretSet, string $blowfishSecret)

Check config of servers

void
performConfigChecksLoginCookie()

Check configuration for login cookie

void
performConfigChecksServerBZipdump()

Check GZipDump configuration

void
performConfigChecksServerGZipdump()

Check GZipDump configuration

boolean
functionExists(string $name)

Wrapper around function_exists to allow mock in test

Details

at line 39
__construct(ConfigFile $cfg)

Constructor.

Parameters

ConfigFile $cfg Configuration

at line 49
void performConfigChecks()

Perform config checks

Return Value

void

at line 143
protected array performConfigChecksServers(boolean $cookieAuthUsed, string $blowfishSecret, boolean $blowfishSecretSet)

Check config of servers

Parameters

boolean $cookieAuthUsed Cookie auth is used
string $blowfishSecret Blowfish secret
boolean $blowfishSecretSet Blowfish secret set

Return Value

array

at line 259
protected array performConfigChecksServersSetBlowfishSecret(string $blowfishSecret, boolean $cookieAuthServer, boolean $blowfishSecretSet)

Set blowfish secret

Parameters

string $blowfishSecret Blowfish secret
boolean $cookieAuthServer Cookie auth is used
boolean $blowfishSecretSet Blowfish secret set

Return Value

array

at line 282
protected string performConfigChecksServersGetServerName(string $serverName, int $serverId)

Define server name

Parameters

string $serverName Server name
int $serverId Server id

Return Value

string Server name

at line 298
protected void performConfigChecksZips()

Perform config checks for zip part.

Return Value

void

at line 310
protected void performConfigChecksServersZipdump()

Perform config checks for zip part.

Return Value

void

at line 364
protected void performConfigChecksCookieAuthUsed(boolean $cookieAuthUsed, boolean $blowfishSecretSet, string $blowfishSecret)

Check config of servers

Parameters

boolean $cookieAuthUsed Cookie auth is used
boolean $blowfishSecretSet Blowfish secret set
string $blowfishSecret Blowfish secret

Return Value

void

at line 425
protected void performConfigChecksLoginCookie()

Check configuration for login cookie

Return Value

void

at line 506
protected void performConfigChecksServerBZipdump()

Check GZipDump configuration

Return Value

void

at line 545
protected void performConfigChecksServerGZipdump()

Check GZipDump configuration

Return Value

void

at line 578
protected boolean functionExists(string $name)

Wrapper around function_exists to allow mock in test

Parameters

string $name Function name

Return Value

boolean