Commit 93d47623 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Reformat manual for config.qfq.ini. Copy config.qfq.example.ini to MANUAL.rst....

Reformat manual for config.qfq.ini. Copy config.qfq.example.ini to MANUAL.rst. Migrate config defaults from setIfNotSet() to array_merge().
parent 95db4622
......@@ -390,97 +390,140 @@ Example: *typo3conf/config.qfq.ini*
::
; To get internal default values, inactivate the option by commenting (= ';') it.
DB_1_USER = qfqUser
DB_1_SERVER = localhost
DB_1_PASSWORD = 12345678
DB_1_NAME = qfq_db
DB_INIT = set names utf8
; DB_INDEX_DATA = 1
; DB_INDEX_QFQ = 1
; SQL_LOG = sql.log
DB_1_USER = <DBUSER>
DB_1_SERVER = <DBSERVER>
DB_1_PASSWORD = <DBPW>
DB_1_NAME = <DB>
; DB_2_USER = <DBUSER>
; DB_2_SERVER = <DBSERVER>
; DB_2_PASSWORD = <DBPW>
; DB_2_NAME = <DB>
; '../../sql.log' = <T3 Install directory>/typo3conf/sql.log
; SQL_LOG = ../../sql.log
; all|modify|error|none
; SQL_LOG_MODE = modify
; MAIL_LOG = ../../mail.log
; SEND_E_MAIL_OPTIONS = "-o ... " - check http://caspian.dotconf.net/menu/Software/SendEmail
; [auto|yes|no][,download]. 'auto': if BE User is logged in the value will be replaced by 'yes', else 'no'. Additional choose 'download'.
; SHOW_DEBUG_INFO = auto
; REDIRECT_ALL_MAIL_TO = john.doe@example.com
; QFQ with own Bootstrap: 'container'. QFQ already nested in Bootstrap of mainpage: <empty>
; CSS_CLASS_QFQ_CONTAINER =
; Default background color, specified via CSS class
; CSS_CLASS_QFQ_FORM =
CSS_CLASS_QFQ_FORM_PILL = qfq-color-grey-1
CSS_CLASS_QFQ_FORM_BODY = qfq-color-grey-2
; DATE_FORMAT= yyyy-mm-dd
; TECHNICAL CONTACT = john@doe.com
; yyyy-mm-dd, dd.mm.yyyy
DATE_FORMAT = yyyy-mm-dd
; Access via {{TECHNICAL_CONTACT:Y}}
; TECHNICAL_CONTACT = john@doe.com
; validator.js: data-pattern-error="", data-required-error="", data-match-error="", data-error=""
; FORM_DATA_PATTERN_ERROR =
; FORM_DATA_REQUIRED_ERROR =
; FORM_DATA_MATCH_ERROR =
; FORM_DATA_ERROR =
; Default width of whole form
; FORM_BS_COLUMNS = 12
; Default size for Bootstrap Form Elements
; FORM_BS_LABEL_COLUMNS = 3
; FORM_BS_INPUT_COLUMNS = 6
; FORM_BS_NOTE_COLUMNS = 3
BASE_URL_PRINT=http://example.com/
WKHTMLTOPDF=/usr/bin/wkhtmltopdf
; Configure URL where `wkhtmltopdf` fetches pages and produces PDFs
BASE_URL_PRINT = http://example.com/
; WKHTMLTOPDF = /opt/wkhtmltox/bin/wkhtmltopdf
; EDIT_FORM_PAGE = form
; LDAP_1_RDN='ou=Admin,dc=example,dc=com'
; LDAP_1_PASSWORD=mySecurePassword
; LDAP_1_RDN =
; LDAP_1_PASSWORD =
; ESCAPE_TYPE_DEFAULT=m
; SECURITY_VARS_HONEYPOT=email,username,password
; SECURITY_ATTACK_DELAY=5
; SECURITY_SHOW_MESSAGE=true
; SECURITY_GET_MAX_LENGTH=50
;SAVE_BUTTON_TEXT =
;SAVE_BUTTON_TOOLTIP = save
;SAVE_BUTTON_CLASS = btn btn-default navbar-btn
;SAVE_BUTTON_GLYPH_ICON = glyphicon-ok
; GFX_EXTRA_BUTTON_INFO_INLINE = <img src="file.png">
; GFX_EXTRA_BUTTON_INFO_BELOW = <img src="file.png">
; EXTRA_BUTTON_INFO_POSITION = auto | below
; EXTRA_BUTTON_INFO_POSITION_CLASS = pull-right
; SAVE_BUTTON_TEXT =
; SAVE_BUTTON_TOOLTIP = save
; SAVE_BUTTON_CLASS = btn btn-default navbar-btn
; SAVE_BUTTON_GLYPH_ICON = glyphicon-ok
;CLOSE_BUTTON_TEXT =
;CLOSE_BUTTON_TOOLTIP = close
;CLOSE_BUTTON_CLASS = btn btn-default navbar-btn
;CLOSE_BUTTON_GLYPH_ICON = glyphicon-remove
; CLOSE_BUTTON_TEXT =
; CLOSE_BUTTON_TOOLTIP = close
; CLOSE_BUTTON_CLASS = btn btn-default navbar-btn
; CLOSE_BUTTON_GLYPH_ICON = glyphicon-remove
;DELETE_BUTTON_TEXT =
;DELETE_BUTTON_TOOLTIP = delete
;DELETE_BUTTON_CLASS = btn btn-default navbar-btn
;DELETE_BUTTON_GLYPH_ICON = glyphicon-trash
; DELETE_BUTTON_TEXT =
; DELETE_BUTTON_TOOLTIP = delete
; DELETE_BUTTON_CLASS = btn btn-default navbar-btn
; DELETE_BUTTON_GLYPH_ICON = glyphicon-trash
;NEW_BUTTON_TEXT =
;NEW_BUTTON_TOOLTIP = new
;NEW_BUTTON_CLASS = btn btn-default navbar-btn
;NEW_BUTTON_GLYPH_ICON = glyphicon-plus
; NEW_BUTTON_TEXT =
; NEW_BUTTON_TOOLTIP = new
; NEW_BUTTON_CLASS = btn btn-default navbar-btn
; NEW_BUTTON_GLYPH_ICON = glyphicon-plus
; auto | always | never
;DB_UPDATE = auto
; DB_UPDATE = auto
;RECORD_LOCK_TIMEOUT_SECONDS = 900
; RECORD_LOCK_TIMEOUT_SECONDS = 900
; Local Documentation (doc fits to installed version): typo3conf/ext/qfq/Documentation/html/Manual.html
;DOCUMENTATION_QFQ = https://docs.typo3.org/typo3cms/drafts/github/T3DocumentationStarter/Public-Info-053/Manual.html
; DOCUMENTATION_QFQ = https://docs.typo3.org/typo3cms/drafts/github/T3DocumentationStarter/Public-Info-053/Manual.html
;FILL_STORE_SYSTEM_BY_SQL_1 = 'SELECT s.id AS periodId FROM Period AS s WHERE s.start<=NOW() ORDER BY s.start DESC LIMIT 1'
; Important: only define an error message, if QFQ should stop running in case of an error or not exact 1 record.
;FILL_STORE_SYSTEM_BY_SQL_ERROR_MSG_1 = No current period found
; FILL_STORE_SYSTEM_BY_SQL_1 = "SELECT id AS _periodId FROM Period WHERE start<=NOW() ORDER BY start DESC LIMIT 1"
; Important: only define an error message, if QFQ should stop running in case of an SQL error or not exact 1 record.
; FILL_STORE_SYSTEM_BY_SQL_ERROR_MSG_1 = No current period found
;FORM_LANGUAGE_A_ID = 1
;FORM_LANGUAGE_A_LABEL = english
; FORM_LANGUAGE_A_ID = E.g. FORM_LANGUAGE_A_ID = 1
; FORM_LANGUAGE_A_LABEL = E.g. FORM_LANGUAGE_A_ID = English
;GFX_EXTRA_BUTTON_INFO_INLINE = <img src='info.png'>
;GFX_EXTRA_BUTTON_INFO_BELOW = <img src='info.png'>
;EXTRA_BUTTON_INFO_POSITION = auto | below
;EXTRA_BUTTON_INFO_CLASS = pull-right
; FORM_LANGUAGE_B_ID = E.g. FORM_LANGUAGE_B_ID = 2
; FORM_LANGUAGE_B_LABEL = E.g. FORM_LANGUAGE_B_ID = French
; FORM_LANGUAGE_C_ID = E.g. FORM_LANGUAGE_C_ID = 3
; FORM_LANGUAGE_C_LABEL = E.g. FORM_LANGUAGE_C_ID = Spain
; FORM_LANGUAGE_D_ID = E.g. FORM_LANGUAGE_D_ID = 4
; FORM_LANGUAGE_D_LABEL = E.g. FORM_LANGUAGE_D_ID = Chinese
; Pressing the 'enter' key is equal to save and close
; enterAsSubmit = 1
; Attention: be sure that 'fileadmin/protected' is really locked down by a webserver directive.
; See https://docs.typo3.org/typo3cms/drafts/github/T3DocumentationStarter/Public-Info-053/Manual.html#secure-direct-fileaccess
;
; thumbnailDirSecure = fileadmin/protected/qfqThumbnail
; thumbnailDirPublic = typo3temp/qfqThumbnail
; cmdInkscape = inkscape
; cmdConvert = convert
.. _`CustomVariables`:
Custom variables
......
......@@ -2,40 +2,40 @@
;
; Save this file as: <Documentroot>/typo3conf/config.qfq.ini
DB_INIT = set names utf8
; DB_INDEX_DATA = 1
; DB_INDEX_QFQ = 1
DB_1_USER = <DBUSER>
DB_1_SERVER = <DBSERVER>
DB_1_PASSWORD = <DBPW>
DB_1_NAME = <DB>
;DB_2_USER = <DBUSER>
;DB_2_SERVER = <DBSERVER>
;DB_2_PASSWORD = <DBPW>
;DB_2_NAME = <DB>
;DB_INDEX_DATA = 1
;DB_INDEX_QFQ = 1
DB_INIT = set names utf8
; DB_2_USER = <DBUSER>
; DB_2_SERVER = <DBSERVER>
; DB_2_PASSWORD = <DBPW>
; DB_2_NAME = <DB>
; '../../sql.log' = <T3 Install directory>/typo3conf/sql.log
SQL_LOG = ../../sql.log
; SQL_LOG = ../../sql.log
; all|modify|error|none
SQL_LOG_MODE = modify
; SQL_LOG_MODE = modify
;MAIL_LOG = ../../mail.log
;SEND_E_MAIL_OPTIONS = "-o ... " - check http://caspian.dotconf.net/menu/Software/SendEmail
; MAIL_LOG = ../../mail.log
; SEND_E_MAIL_OPTIONS = "-o ... " - check http://caspian.dotconf.net/menu/Software/SendEmail
; [auto|yes|no][,download]. 'auto': if BE User is logged in the value will be replaced by 'yes', else 'no'. Additional choose 'download'.
SHOW_DEBUG_INFO = auto
; SHOW_DEBUG_INFO = auto
; REDIRECT_ALL_MAIL_TO = john.doe@example.com
; QFQ with own Bootstrap: 'container'. QFQ already nested in Bootstrap of mainpage: <empty>
;CSS_CLASS_QFQ_CONTAINER =
; CSS_CLASS_QFQ_CONTAINER =
; Default background color, specified via CSS class
;CSS_CLASS_QFQ_FORM =
; CSS_CLASS_QFQ_FORM =
CSS_CLASS_QFQ_FORM_PILL = qfq-color-grey-1
CSS_CLASS_QFQ_FORM_BODY = qfq-color-grey-2
......@@ -43,70 +43,70 @@ CSS_CLASS_QFQ_FORM_BODY = qfq-color-grey-2
DATE_FORMAT = yyyy-mm-dd
; Access via {{TECHNICAL_CONTACT:Y}}
; TECHNICAL CONTACT = john@doe.com
; TECHNICAL_CONTACT = john@doe.com
; validator.js: data-pattern-error="", data-required-error="", data-match-error="", data-error=""
;FORM_DATA_PATTERN_ERROR =
;FORM_DATA_REQUIRED_ERROR =
;FORM_DATA_MATCH_ERROR =
;FORM_DATA_ERROR =
; validator.js: data-pattern-error="", data-required-error="", data-match-error="", data-error=""
; FORM_DATA_PATTERN_ERROR =
; FORM_DATA_REQUIRED_ERROR =
; FORM_DATA_MATCH_ERROR =
; FORM_DATA_ERROR =
; Default width of whole form
;FORM_BS_COLUMNS = 12
; Default width of whole form
; FORM_BS_COLUMNS = 12
; Default size for Bootstrap Form Elements
;FORM_BS_LABEL_COLUMNS = 3
;FORM_BS_INPUT_COLUMNS = 6
;FORM_BS_NOTE_COLUMNS = 3
; Default size for Bootstrap Form Elements
; FORM_BS_LABEL_COLUMNS = 3
; FORM_BS_INPUT_COLUMNS = 6
; FORM_BS_NOTE_COLUMNS = 3
; Configure URL where `wkhtmltopdf` fetches pages and produces PDFs
BASE_URL_PRINT = http://example.com/
WKHTMLTOPDF = /opt/wkhtmltox/bin/wkhtmltopdf
; WKHTMLTOPDF = /opt/wkhtmltox/bin/wkhtmltopdf
;EDIT_FORM_PAGE = form
; EDIT_FORM_PAGE = form
;LDAP_1_RDN =
;LDAP_1_PASSWORD =
; LDAP_1_RDN =
; LDAP_1_PASSWORD =
;ESCAPE_TYPE_DEFAULT=m
; ESCAPE_TYPE_DEFAULT=m
;SECURITY_VARS_HONEYPOT=email,username,password
;SECURITY_ATTACK_DELAY=5
;SECURITY_SHOW_MESSAGE=true
;SECURITY_GET_MAX_LENGTH=50
; SECURITY_VARS_HONEYPOT=email,username,password
; SECURITY_ATTACK_DELAY=5
; SECURITY_SHOW_MESSAGE=true
; SECURITY_GET_MAX_LENGTH=50
;GFX_EXTRA_BUTTON_INFO_INLINE = <img src="file.png">
;GFX_EXTRA_BUTTON_INFO_BELOW = <img src="file.png">
;EXTRA_BUTTON_INFO_POSITION = auto | below
;EXTRA_BUTTON_INFO_POSITION_CLASS = pull-right
; GFX_EXTRA_BUTTON_INFO_INLINE = <img src="file.png">
; GFX_EXTRA_BUTTON_INFO_BELOW = <img src="file.png">
; EXTRA_BUTTON_INFO_POSITION = auto | below
; EXTRA_BUTTON_INFO_POSITION_CLASS = pull-right
;SAVE_BUTTON_TEXT =
;SAVE_BUTTON_TOOLTIP = save
;SAVE_BUTTON_CLASS = btn btn-default navbar-btn
;SAVE_BUTTON_GLYPH_ICON = glyphicon-ok
; SAVE_BUTTON_TEXT =
; SAVE_BUTTON_TOOLTIP = save
; SAVE_BUTTON_CLASS = btn btn-default navbar-btn
; SAVE_BUTTON_GLYPH_ICON = glyphicon-ok
;CLOSE_BUTTON_TEXT =
;CLOSE_BUTTON_TOOLTIP = close
;CLOSE_BUTTON_CLASS = btn btn-default navbar-btn
;CLOSE_BUTTON_GLYPH_ICON = glyphicon-remove
; CLOSE_BUTTON_TEXT =
; CLOSE_BUTTON_TOOLTIP = close
; CLOSE_BUTTON_CLASS = btn btn-default navbar-btn
; CLOSE_BUTTON_GLYPH_ICON = glyphicon-remove
;DELETE_BUTTON_TEXT =
;DELETE_BUTTON_TOOLTIP = delete
;DELETE_BUTTON_CLASS = btn btn-default navbar-btn
;DELETE_BUTTON_GLYPH_ICON = glyphicon-trash
; DELETE_BUTTON_TEXT =
; DELETE_BUTTON_TOOLTIP = delete
; DELETE_BUTTON_CLASS = btn btn-default navbar-btn
; DELETE_BUTTON_GLYPH_ICON = glyphicon-trash
;NEW_BUTTON_TEXT =
;NEW_BUTTON_TOOLTIP = new
;NEW_BUTTON_CLASS = btn btn-default navbar-btn
;NEW_BUTTON_GLYPH_ICON = glyphicon-plus
; NEW_BUTTON_TEXT =
; NEW_BUTTON_TOOLTIP = new
; NEW_BUTTON_CLASS = btn btn-default navbar-btn
; NEW_BUTTON_GLYPH_ICON = glyphicon-plus
; auto | always | never
;DB_UPDATE = auto
; DB_UPDATE = auto
;RECORD_LOCK_TIMEOUT_SECONDS = 900
; RECORD_LOCK_TIMEOUT_SECONDS = 900
; Local Documentation (doc fits to installed version): typo3conf/ext/qfq/Documentation/html/Manual.html
;DOCUMENTATION_QFQ = https://docs.typo3.org/typo3cms/drafts/github/T3DocumentationStarter/Public-Info-053/Manual.html
; DOCUMENTATION_QFQ = https://docs.typo3.org/typo3cms/drafts/github/T3DocumentationStarter/Public-Info-053/Manual.html
; FILL_STORE_SYSTEM_BY_SQL_1 = "SELECT id AS _periodId FROM Period WHERE start<=NOW() ORDER BY start DESC LIMIT 1"
; Important: only define an error message, if QFQ should stop running in case of an SQL error or not exact 1 record.
......@@ -129,6 +129,7 @@ WKHTMLTOPDF = /opt/wkhtmltox/bin/wkhtmltopdf
; Attention: be sure that 'fileadmin/protected' is really locked down by a webserver directive.
; See https://docs.typo3.org/typo3cms/drafts/github/T3DocumentationStarter/Public-Info-053/Manual.html#secure-direct-fileaccess
;
; thumbnailDirSecure = fileadmin/protected/qfqThumbnail
; thumbnailDirPublic = typo3temp/qfqThumbnail
; cmdInkscape = inkscape
......
......@@ -155,67 +155,74 @@ class Config {
* @return array
*/
private static function setDefaults(array $config) {
// Defaults
Support::setIfNotSet($config, SYSTEM_DB_INDEX_DATA, DB_INDEX_DATA_DEFAULT);
Support::setIfNotSet($config, SYSTEM_DB_INDEX_QFQ, DB_INDEX_DATA_DEFAULT);
Support::setIfNotSet($config, SYSTEM_DATE_FORMAT, 'yyyy-mm-dd');
Support::setIfNotSet($config, SYSTEM_SHOW_DEBUG_INFO, SYSTEM_SHOW_DEBUG_INFO_AUTO);
Support::setIfNotSet($config, SYSTEM_SQL_LOG, SYSTEM_SQL_LOG_FILE);
Support::setIfNotSet($config, SYSTEM_SQL_LOG_MODE, SQL_LOG_MODE_NONE, ''); // do not worry: parse_ini_file() will replace 'none' and 'off' by ''. Set it here again.
Support::setIfNotSet($config, SYSTEM_MAIL_LOG, SYSTEM_MAIL_LOG_FILE);
Support::setIfNotSet($config, F_BS_COLUMNS, '12');
Support::setIfNotSet($config, F_BS_LABEL_COLUMNS, '3');
Support::setIfNotSet($config, F_BS_INPUT_COLUMNS, '6');
Support::setIfNotSet($config, F_BS_NOTE_COLUMNS, '3');
Support::setIfNotSet($config, F_CLASS_PILL, 'qfq-color-grey-1');
Support::setIfNotSet($config, F_CLASS_BODY, 'qfq-color-grey-2');
Support::setIfNotSet($config, F_SAVE_BUTTON_TEXT, '');
Support::setIfNotSet($config, F_SAVE_BUTTON_TOOLTIP, 'Save');
Support::setIfNotSet($config, F_SAVE_BUTTON_CLASS, 'btn btn-default navbar-btn');
Support::setIfNotSet($config, F_SAVE_BUTTON_GLYPH_ICON, GLYPH_ICON_CHECK);
Support::setIfNotSet($config, F_CLOSE_BUTTON_TEXT, '');
Support::setIfNotSet($config, F_CLOSE_BUTTON_TOOLTIP, 'Close');
Support::setIfNotSet($config, F_CLOSE_BUTTON_CLASS, 'btn btn-default navbar-btn');
Support::setIfNotSet($config, F_CLOSE_BUTTON_GLYPH_ICON, GLYPH_ICON_CLOSE);
Support::setIfNotSet($config, F_DELETE_BUTTON_TEXT, '');
Support::setIfNotSet($config, F_DELETE_BUTTON_TOOLTIP, 'Delete');
Support::setIfNotSet($config, F_DELETE_BUTTON_CLASS, 'btn btn-default navbar-btn');
Support::setIfNotSet($config, F_DELETE_BUTTON_GLYPH_ICON, GLYPH_ICON_DELETE);
Support::setIfNotSet($config, F_NEW_BUTTON_TEXT, '');
Support::setIfNotSet($config, F_NEW_BUTTON_TOOLTIP, 'New');
Support::setIfNotSet($config, F_NEW_BUTTON_CLASS, 'btn btn-default navbar-btn');
Support::setIfNotSet($config, F_NEW_BUTTON_GLYPH_ICON, GLYPH_ICON_NEW);
Support::setIfNotSet($config, F_BUTTON_ON_CHANGE_CLASS, 'btn-info alert-info');
Support::setIfNotSet($config, SYSTEM_EDIT_FORM_PAGE, 'form');
Support::setIfNotSet($config, SYSTEM_SECURITY_VARS_HONEYPOT, 'email,username,password');
Support::setIfNotSet($config, SYSTEM_SECURITY_ATTACK_DELAY, SYSTEM_SECURITY_ATTACK_DELAY_DEFAULT);
Support::setIfNotSet($config, SYSTEM_SECURITY_SHOW_MESSAGE, '0');
Support::setIfNotSet($config, SYSTEM_SECURITY_GET_MAX_LENGTH, SYSTEM_SECURITY_GET_MAX_LENGTH_DEFAULT);
Support::setIfNotSet($config, SYSTEM_ESCAPE_TYPE_DEFAULT, TOKEN_ESCAPE_MYSQL);
Support::setIfNotSet($config, SYSTEM_GFX_EXTRA_BUTTON_INFO_INLINE, '<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>');
Support::setIfNotSet($config, SYSTEM_GFX_EXTRA_BUTTON_INFO_BELOW, '<span class="glyphicon glyphicon-info-sign text-info" aria-hidden="true"></span>');
Support::setIfNotSet($config, SYSTEM_EXTRA_BUTTON_INFO_CLASS, '');
Support::setIfNotSet($config, SYSTEM_DB_UPDATE, SYSTEM_DB_UPDATE_AUTO);
Support::setIfNotSet($config, SYSTEM_RECORD_LOCK_TIMEOUT_SECONDS, SYSTEM_RECORD_LOCK_TIMEOUT_SECONDS_DEFAULT);
Support::setIfNotSet($config, DOCUMENTATION_QFQ, DOCUMENTATION_QFQ_URL);
Support::setIfNotSet($config, SYSTEM_ENTER_AS_SUBMIT, 1);
Support::setIfNotSet($config, SYSTEM_CMD_INKSCAPE, 'inkscape');
Support::setIfNotSet($config, SYSTEM_CMD_CONVERT, 'convert');
Support::setIfNotSet($config, SYSTEM_THUMBNAIL_DIR_SECURE, SYSTEM_THUMBNAIL_DIR_SECURE_DEFAULT);
Support::setIfNotSet($config, SYSTEM_THUMBNAIL_DIR_PUBLIC, SYSTEM_THUMBNAIL_DIR_PUBLIC_DEFAULT);
// Support::setIfNotSet($config, SYSTEM_FILL_STORE_SYSTEM_BY_SQL, SYSTEM_VAR_ADD_BY_SQL_DEFAULT);
// Defaults: do not worry: parse_ini_file() will replace 'none' and 'off' by ''.
$default = [
SYSTEM_DB_INDEX_DATA => DB_INDEX_DATA_DEFAULT,
SYSTEM_DB_INDEX_QFQ => DB_INDEX_DATA_DEFAULT,
SYSTEM_DATE_FORMAT => 'yyyy-mm-dd',
SYSTEM_SHOW_DEBUG_INFO => SYSTEM_SHOW_DEBUG_INFO_AUTO,
SYSTEM_SQL_LOG => SYSTEM_SQL_LOG_FILE,
SYSTEM_SQL_LOG_MODE => 'modify',
SQL_LOG_MODE_NONE => '',
SYSTEM_MAIL_LOG => SYSTEM_MAIL_LOG_FILE,
F_BS_COLUMNS => '12',
F_BS_LABEL_COLUMNS => '3',
F_BS_INPUT_COLUMNS => '6',
F_BS_NOTE_COLUMNS => '3',
SYSTEM_WKHTMLTOPDF => '/opt/wkhtmltox/bin/wkhtmltopdf',
F_CLASS_PILL => 'qfq-color-grey-1',
F_CLASS_BODY => 'qfq-color-grey-2',
F_SAVE_BUTTON_TEXT => '',
F_SAVE_BUTTON_TOOLTIP => 'Save',
F_SAVE_BUTTON_CLASS => 'btn btn-default navbar-btn',
F_SAVE_BUTTON_GLYPH_ICON => GLYPH_ICON_CHECK,
F_CLOSE_BUTTON_TEXT => '',
F_CLOSE_BUTTON_TOOLTIP => 'Close',
F_CLOSE_BUTTON_CLASS => 'btn btn-default navbar-btn',
F_CLOSE_BUTTON_GLYPH_ICON => GLYPH_ICON_CLOSE,
F_DELETE_BUTTON_TEXT => '',
F_DELETE_BUTTON_TOOLTIP => 'Delete',
F_DELETE_BUTTON_CLASS => 'btn btn-default navbar-btn',
F_DELETE_BUTTON_GLYPH_ICON => GLYPH_ICON_DELETE,
F_NEW_BUTTON_TEXT => '',
F_NEW_BUTTON_TOOLTIP => 'New',
F_NEW_BUTTON_CLASS => 'btn btn-default navbar-btn',
F_NEW_BUTTON_GLYPH_ICON => GLYPH_ICON_NEW,
F_BUTTON_ON_CHANGE_CLASS => 'btn-info alert-info',
SYSTEM_EDIT_FORM_PAGE => 'form',
SYSTEM_SECURITY_VARS_HONEYPOT => 'email=>username=>password',
SYSTEM_SECURITY_ATTACK_DELAY => SYSTEM_SECURITY_ATTACK_DELAY_DEFAULT,
SYSTEM_SECURITY_SHOW_MESSAGE => '0',
SYSTEM_SECURITY_GET_MAX_LENGTH => SYSTEM_SECURITY_GET_MAX_LENGTH_DEFAULT,
SYSTEM_ESCAPE_TYPE_DEFAULT => TOKEN_ESCAPE_MYSQL,
SYSTEM_GFX_EXTRA_BUTTON_INFO_INLINE => '<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>',
SYSTEM_GFX_EXTRA_BUTTON_INFO_BELOW => '<span class="glyphicon glyphicon-info-sign text-info" aria-hidden="true"></span>',
SYSTEM_EXTRA_BUTTON_INFO_CLASS => '',
SYSTEM_DB_UPDATE => SYSTEM_DB_UPDATE_AUTO,
SYSTEM_RECORD_LOCK_TIMEOUT_SECONDS => SYSTEM_RECORD_LOCK_TIMEOUT_SECONDS_DEFAULT,
DOCUMENTATION_QFQ => DOCUMENTATION_QFQ_URL,
SYSTEM_ENTER_AS_SUBMIT => 1,
SYSTEM_CMD_INKSCAPE => 'inkscape',
SYSTEM_CMD_CONVERT => 'convert',
SYSTEM_THUMBNAIL_DIR_SECURE => SYSTEM_THUMBNAIL_DIR_SECURE_DEFAULT,
SYSTEM_THUMBNAIL_DIR_PUBLIC => SYSTEM_THUMBNAIL_DIR_PUBLIC_DEFAULT,
return $config;
];
return array_merge($default, $config);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment