Package DE_EPAGES::Database::API::Config
This module contains access function to read the Database.conf .
@EXPORT_OK |
Functions
DatabaseConfig
get ini object of the Database.conf
Syntax |
$IniConfig = DatabaseConfig(); |
Return |
|
DatabaseConfigFileName
get full file name of the Database.conf
Syntax |
$ConfigFileName= DatabaseConfigFileName(); |
Return |
|
DatabaseConnectionData
Gets database info from Database.conf. Error if section not exists or database not active. Passwords are decrypted transparently.
Syntax |
$hSection = DatabaseConnectionData($Site, $ConnectionName); |
Return |
|
DatabaseRedirect
Get database redirect file from Database.conf, section $Site key "redirect", except if $RemoteAddr matches the list of exceptions specified by key "AllowFrom". If $FileName is defined, the content of the file "$ENV{'EPAGES_WEBROOT'}/$FileName" shall be returned the client and no database connection shall be opened.
Syntax |
$FileName = DatabaseRedirect($Site, $ConnectionName, $RemoteAddr); |
Return |
|