|
Configuration > Server > config.inc.php
Description
The config.inc.php contains the users and the configuration for the server-side scripts.
It is build written in PHP and it is very important that the structure is correct. An incorrect structure could cause a system malfunction.
Sample
...
define("TOKEN_FOLDER","%floe_dir%/data/security/token");
...
addUser("demo","d9267c1ea3e54d48f79c7b38890dbefd","%floe_dir%/../users/demo","guests");
...
Variables
Name
|
Description
|
Value(s) [Datatype]
|
Preset
|
SYSTEM_ONLINE
|
Defines whether the FLOE is available or not
|
true, false
[Boolean]
|
true
|
ENCRYPTED_PASSWORDS
|
Defines whether the passwords are encrypted with MD5 or not.
NOTE: It is strongly recommended to set this "TRUE" if "HIDE_FLOE" is not set "TRUE" because users would be able to read passwords of other users in plaintext.
|
true, false
[Boolean]
|
true
|
HIDE_FLOE
|
Defines whether the home directory of FLOE is "hidden" (inaccessible) for users without the policy rule "show_floe".
|
true, false
[Boolean]
|
true
|
TOKEN_LIFETIME
|
Maximum session time in minutes after inactivity from client.
|
1 - n
[Integer]
|
15
|
TOKEN_FOLDER
|
Redirection...
|
[String]
(Namespace support)
|
%floe_dir%/data/security/token
|
DATE_FORMAT
|
The format for the namespace %date%.
|
[String]
|
Y-m-d
|
TIME_FORMAT
|
The format for the namespace %time%
|
[String]
|
H:i:s
|
MIME_TYPE_HEADER
|
Defines whether the MIME type header is added to documents.
|
true, false
[Boolean]
|
true
|
XML_MIME_TYPE
|
If the extension "MagicMime" is not installed you can replace this functionality by setting this "TRUE". For resolving the correct MIME type the mime_types.xml is used.
|
true, false
[Boolean]
|
true
|
STANDARD_MIME_TYPE
|
If the variables "MIME_TYPE_HEADER" and "XML_MIME_TYPE" are set "TRUE" and the mime_types.xml has no entry for the document this MIME type will be used.
|
[String]
|
text/plain
|
ANCHOR_START
|
This string will be set in front of an anchor tag to highlight it in the output of the "URL browser".
|
[String]
|
<font color="#336699"><b><u>
|
ANCHOR_END
|
This string will be set behind an anchor tag to highlight it in the output of the "URL browser".
|
[String]
|
</u></b></font>
|
SUPPORTED_HTML_TAGS
|
List of from Flash supported HTML tags
|
[String] (Comma separated)
|
<a>,<b>,<br>,<font>,<img>,<i>,<li>,<p>,<span>,<textformat>,<u>
|
WRITE_LOG
|
Image processing type for the Image viewer
|
true, false
[Boolean]
|
true
|
LOG_FOLDER
|
Redirection...
|
[String]
(Namespace support)
|
%floe_dir%/data/security/log
|
LOG_NAME_RULE
|
The name for log-files.
NOTE: Use a namespace for frequent name change or the size of the files will get very large.
|
[String]
(Namespace support)
|
%date%.log
|
LOG_ENTRY_RULE
|
The layout for an entry of the log-files
|
[String]
(Namespace support)
|
%time% %script% # %remote_ip% %user% => %type%: %message%
|
DELETE_RECURSIVE
|
Defines whether the content (files and sub-directories) of a directory are also included in the deletion.
NOTE: If this is set "FALSE" the directory cannot be deleted until there is no content in it.
|
true, false
[Boolean]
|
true
|
Namespaces
Namespaces are used to fill-up text dynamically with values from the FLOE environment. Some of them are also configurable. The namespaces are replaced by the system on demand. Below you can see the list of namespaces which can be used in the above configuration variables if their values contain the text "Namespace support".
User accounts
User accounts are generated by a function named "addUser". The function has got for parameters which must be assigned.
addUser("username","password","","");
NOTE: This maximum amount of accounts is limited by the license.
|