BR
CONSTANTS
public
mixed
BR
= "<br>"
CONSTANTS
public
mixed
BR
= "<br>"
public
mixed
CR
= "\r"
public
mixed
CRLF
= "\r\n"
public
mixed
LF
= "\n"
public
mixed
TAB
= "\t"
public
mixed
WIKINDX_ATOM_PAGE
= '/index.php?action=rss_RSS_CORE&method=atom10'
public
mixed
WIKINDX_AUTHGATE_MESSAGE_DEFAULT
= ''
public
mixed
WIKINDX_AUTHGATE_RESET_DEFAULT
= \FALSE
public
mixed
WIKINDX_AUTHGATE_USE_DEFAULT
= \FALSE
CONSTANTS_OPTIONS_DEFAULT
public
mixed
WIKINDX_BIN_FOLDER_BIBUTILS_DEFAULT
= ''
Declare the default values of global config options.
Each default value is a constant where the name is the name of the corresponding constant and the suffix "_DEFAULT".
public
mixed
WIKINDX_BIN_FOLDER_CATDVI_DEFAULT
= ''
public
mixed
WIKINDX_BIN_FOLDER_DJVUTXT_DEFAULT
= ''
public
mixed
WIKINDX_BIN_FOLDER_PS2PDF_DEFAULT
= ''
public
mixed
WIKINDX_BROWSEBIBLIOGRAPHY_DEFAULT
= \FALSE
public
mixed
WIKINDX_BROWSER_TAB_ID
= $value
public
mixed
WIKINDX_BROWSER_TAB_ID_DEFAULT
= \FALSE
public
mixed
WIKINDX_BYPASS_SMARTY_COMPILATION_DEFAULT
= \FALSE
public
mixed
WIKINDX_CATEGORYEDIT_ALLOW_DEFAULT
= \FALSE
Default charset
public
mixed
WIKINDX_CHARSET
= 'UTF-8'
public
mixed
WIKINDX_CMS_ALLOW_DEFAULT
= \FALSE
public
mixed
WIKINDX_CMS_BIBSTYLE_DEFAULT
= \WIKINDX_STYLE_DEFAULT
public
mixed
WIKINDX_CMS_PAGE
= '/cmsprint.php'
Components compatibility
public
mixed
WIKINDX_COMPONENTS_COMPATIBLE_VERSION
= [
'plugin' => 20,
// Must be an integer
'style' => 31,
// Must be an integer
'template' => 8,
]
This array is used by LOADPLUGINS class and \COMPONENT\checkComponentIntegrity() to check components compatibility with the core.
Each type of component has its own compatibility version because they do not have the same lifecycle.
First version of Json style components
public
mixed
WIKINDX_COMPONENTS_STYLE_JSON_FIRST_VERSION
= 29
After this version the style components are automatically updated on loading by class PARSESTYLEJSON.
public
mixed
WIKINDX_COMPONENTS_UPDATE_SERVER_DEFAULT
= 'https://wikindx.sourceforge.io/cus/index.php'
public
mixed
WIKINDX_CONTACT_EMAIL_DEFAULT
= ''
WIKINDX copyright
public
mixed
WIKINDX_COPYRIGHT_YEAR
= "2003-2026"
public
mixed
WIKINDX_CURRENT_DB_ENGINE_NAME
= $EngineName
public
mixed
WIKINDX_CURRENT_DB_ENGINE_VERSION
= $aEngineVersion
MySQL CHARSET/NAMES option
public
mixed
WIKINDX_DB_CHARSET
= 'utf8mb4'
Full UTF-8 support (4 bytes)
MySQL COLLATE/COLLATION option
public
mixed
WIKINDX_DB_COLLATION
= 'utf8mb4_unicode_520_ci'
Set the strictest SQL mode to avoid errors
Default name of the MariaDB/MySQL database (case-sensitive)
public
mixed
WIKINDX_DB_DEFAULT
= 'wikindx'
MySQL engine option
public
mixed
WIKINDX_DB_ENGINE
= 'InnoDB'
Default storage engine
MySQL SESSION group_concat_max_len option
public
mixed
WIKINDX_DB_GROUP_CONCAT_MAX_LEN
= 4294967295
Avoid truncation on search operations
NB: GROUP_CONCAT() misbehaves when group_concat_max_len is exactly 1073741824.
Default name of the MariaDB/MySQL host server (case-insensitive)
public
mixed
WIKINDX_DB_HOST_DEFAULT
= 'localhost'
MySQL GLOBAL max_allowed_packet option
public
mixed
WIKINDX_DB_MAX_ALLOWED_PACKET
= 1073741824
Support the largest fields size used (LONGTEXT)
According to https://dev.mysql.com/doc/refman/8.0/en/blob.html, max_allowed_packet need to be as large as the largest type of column stored and we use LONGTEXT so we need the maximum value allowed 1G (in the absence of 4G).
Default password of the user required to connect to and open the database (case-sensitive)
public
mixed
WIKINDX_DB_PASSWORD_DEFAULT
= 'wikindx'
MySQL SESSION sql_mode option
public
mixed
WIKINDX_DB_SQL_MODE
= 'TRADITIONAL'
Set the strictest SQL mode to avoid errors
MySQL timezone option
public
mixed
WIKINDX_DB_TIMEZONE
= '+00:00'
The database always stores data in UTC, and it is up to PHP to perform the conversion when necessary, depending on the global configuration and user preferences.
The "time difference" notation is preferred to the "time zone name" notation because the name resolution functionality is optional in the MySQL/MariaDB engine.
Default username required to connect to and open the database (case-sensitive)
public
mixed
WIKINDX_DB_USER_DEFAULT
= 'wikindx'
public
mixed
WIKINDX_DEACTIVATE_RESOURCE_TYPES_DEFAULT
= ""
public
mixed
WIKINDX_DEBUG_ERRORS_DEFAULT
= \FALSE
public
mixed
WIKINDX_DEBUG_PSEUDOLOCALIZATION_DEFAULT
= \FALSE
public
mixed
WIKINDX_DEBUG_SQL_DEFAULT
= \FALSE
public
mixed
WIKINDX_DENY_READONLY_DEFAULT
= \FALSE
public
mixed
WIKINDX_DESCRIPTION_DEFAULT
= 'My WIKINDX'
public
mixed
WIKINDX_DIR_BASE
= \realpath(\implode(\DIRECTORY_SEPARATOR, [__DIR__, '..', '..']))
public
mixed
WIKINDX_DIR_CACHE
= 'cache'
public
mixed
WIKINDX_DIR_CACHE_ATTACHMENTS
= \implode(\DIRECTORY_SEPARATOR, [\WIKINDX_DIR_CACHE, 'attachments'])
public
mixed
WIKINDX_DIR_CACHE_FILES
= \implode(\DIRECTORY_SEPARATOR, [\WIKINDX_DIR_CACHE, 'files'])
public
mixed
WIKINDX_DIR_CACHE_PLUGINS
= \implode(\DIRECTORY_SEPARATOR, [\WIKINDX_DIR_CACHE, 'plugins'])
public
mixed
WIKINDX_DIR_CACHE_STYLES
= \implode(\DIRECTORY_SEPARATOR, [\WIKINDX_DIR_CACHE, 'styles'])
public
mixed
WIKINDX_DIR_CACHE_TEMPLATES
= \implode(\DIRECTORY_SEPARATOR, [\WIKINDX_DIR_CACHE, 'templates'])
public
mixed
WIKINDX_DIR_COMPONENT
= 'components'
public
mixed
WIKINDX_DIR_COMPONENT_PLUGINS
= \implode(\DIRECTORY_SEPARATOR, [\WIKINDX_DIR_COMPONENT, 'plugins'])
public
mixed
WIKINDX_DIR_COMPONENT_STYLES
= \implode(\DIRECTORY_SEPARATOR, [\WIKINDX_DIR_COMPONENT, 'styles'])
public
mixed
WIKINDX_DIR_COMPONENT_TEMPLATES
= \implode(\DIRECTORY_SEPARATOR, [\WIKINDX_DIR_COMPONENT, 'templates'])
public
mixed
WIKINDX_DIR_CORE
= 'core'
public
mixed
WIKINDX_DIR_CORE_LANGUAGES
= \implode(\DIRECTORY_SEPARATOR, [\WIKINDX_DIR_CORE, 'messages'])
public
mixed
WIKINDX_DIR_DATA
= 'data'
public
mixed
WIKINDX_DIR_DATA_ATTACHMENTS
= \implode(\DIRECTORY_SEPARATOR, [\WIKINDX_DIR_DATA, 'attachments'])
public
mixed
WIKINDX_DIR_DATA_IMAGES
= \implode(\DIRECTORY_SEPARATOR, [\WIKINDX_DIR_DATA, 'images'])
public
mixed
WIKINDX_DIR_DATA_PLUGINS
= \implode(\DIRECTORY_SEPARATOR, [\WIKINDX_DIR_DATA, 'plugins'])
Root folder storing SQL Scripts used for a full db schema creation or an upgrades
public
mixed
WIKINDX_DIR_DB_SCHEMA
= 'dbschema'
PhpDocumentor default directory
public
mixed
WIKINDX_DIR_DOCS
= 'docs'
Log files folder
public
mixed
WIKINDX_DIR_LOG
= 'log'
Folder of public files that can be directly called by a browser without checking permissions (usually JS and CSS files)
public
mixed
WIKINDX_DIR_PUBLIC
= 'public'
public
mixed
WIKINDX_DISPLAY_CMS_LINK_DEFAULT
= \FALSE
public
mixed
WIKINDX_DISPLAY_RESOURCE_STATISTICS_DEFAULT
= \FALSE
public
mixed
WIKINDX_DISPLAY_STATISTICS_DEFAULT
= \FALSE
public
mixed
WIKINDX_DISPLAY_USER_STATISTICS_DEFAULT
= \FALSE
public
mixed
WIKINDX_DOMAIN_NAME
= $domain_name
Special constants used to do replacements required for SQL and similar.
public
mixed
WIKINDX_DOUBLEQUOTE_WIKINDX
= 'WIKINDXDOUBLEQUOTEWIKINDX'
Typically used to temporarily replace literal characters in strings to protect them from incorrect interpretation.
public
mixed
WIKINDX_EMAIL_NEW_REGISTRATIONS_DEFAULT
= ''
public
mixed
WIKINDX_EMAIL_NEWS_DEFAULT
= \FALSE
public
mixed
WIKINDX_EMAIL_STATISTICS_DEFAULT
= \FALSE
public
mixed
WIKINDX_FILE_ATTACH_ALLOW_DEFAULT
= \FALSE
Max file size of an attachment
public
mixed
WIKINDX_FILE_ATTACH_SIZE_UPPER_LIMIT
= 4000
public
mixed
WIKINDX_FILE_ATTACH_UPLOAD_MAX_SIZE_DEFAULT
= 5
public
mixed
WIKINDX_FILE_DELETE_SECONDS_DEFAULT
= 3600
Database schema description file for RepairKit component
public
mixed
WIKINDX_FILE_REPAIRKIT_DB_SCHEMA
= \implode(\DIRECTORY_SEPARATOR, [\WIKINDX_DIR_DB_SCHEMA, 'repairkit.schema.json'])
public
mixed
WIKINDX_FILE_VIEW_LOGGEDON_ONLY_DEFAULT
= \FALSE
public
mixed
WIKINDX_GLOBAL_EDIT_DEFAULT
= \FALSE
public
mixed
WIKINDX_GS_ATTACHMENT_DEFAULT
= \FALSE
public
mixed
WIKINDX_GS_DISALLOW_DEFAULT
= \FALSE
public
mixed
WIKINDX_HEADER_SESSION_COOKIE_SECURE_ATTRIBUTE_DEFAULT
= \FALSE
public
mixed
WIKINDX_HEADER_STRICT_TRANSPORT_SECURITY_DEFAULT
= \FALSE
public
mixed
WIKINDX_HOMEBIB_DEFAULT
= \FALSE
public
mixed
WIKINDX_IMG_ALLOW_DEFAULT
= \FALSE
public
mixed
WIKINDX_IMG_HEIGHT_LIMIT_DEFAULT
= 400
Max file size of an 8K 24 bits colors bmp image
public
mixed
WIKINDX_IMG_SIZE_UPPER_LIMIT
= 200
public
mixed
WIKINDX_IMG_UPLOAD_MAX_SIZE_DEFAULT
= 5
public
mixed
WIKINDX_IMG_WIDTH_LIMIT_DEFAULT
= 400
public
mixed
WIKINDX_IMPORT_BIB_DEFAULT
= \FALSE
public
mixed
WIKINDX_IMPRESSUM_DEFAULT
= ''
WIKINDX internal-official/public version mapping
public
mixed
WIKINDX_INTERNAL_PUBLIC_VERSION_MAPPING
= ["153" => "6.13.0", "151" => "6.12.1", "139" => "6.12.0", "138" => "6.11.0", "128" => "6.8.0", "114" => "6.7.1", "113" => "6.6.8", "112" => "6.6.6", "111" => "6.6.4", "74" => "6.6.0", "73" => "6.4.14", "72" => "6.4.11", "70" => "6.4.10", "65" => "6.4.9", "59" => "6.4.8", "57" => "6.4.7", "55" => "6.4.6", "54" => "6.4.5", "46" => "6.4.4", "42" => "6.4.2", "38" => "6.4.1", "23" => "6.4.0", "15" => "6.3.8", "12" => "6.2.2", "11" => "6.2.1", "10" => "6.0.8", "9" => "6.0.6", "8" => "6.0.5", "7" => "6.0.4", "6" => "6.0.0", "5.9" => "5.9.1", "5.8" => "5.8.2", "5.5" => "5.7.0", "5.4" => "5.3.1", "5.3" => "5.2.2", "5.2" => "5.2.0", "5.1" => "5.1"]
This array (internal version => "public version", ...) is used to find the minimum public version upgraded by an internal version.
Add an entry when an internal version is added, but if you have to add many internal versions for a single public version, add only the lowest.
WIKINDX internal version information
public
mixed
WIKINDX_INTERNAL_VERSION
= 158.0
This number MUST be a positive integer (written as a float), and should be incremented by one each time an upgrade need to be triggered. Before the value 6, this number was a float corresponding (or not) to part X.Y of the public version number.
WIKINDX minimum internal version upgradable
public
mixed
WIKINDX_INTERNAL_VERSION_UPGRADE_MIN
= 5.1
The syntax is the same as for WIKINDX_INTERNAL_VERSION.
A database with a lower version number cannot be upgraded.
public
mixed
WIKINDX_IS_TRUNK_DEFAULT
= \FALSE
public
mixed
WIKINDX_LANGUAGE_DEFAULT
= 'en'
Translation domain name of the core part
public
mixed
WIKINDX_LANGUAGE_DOMAIN_DEFAULT
= 'wikindx'
Default language
public
mixed
WIKINDX_LANGUAGE_NAME_DEFAULT
= 'English (United Kingdom)'
public
mixed
WIKINDX_LAST_CHANGES_DAY_LIMIT_DEFAULT
= 10
public
mixed
WIKINDX_LAST_CHANGES_DEFAULT
= 10
public
mixed
WIKINDX_LAST_CHANGES_TYPE_DEFAULT
= 'number'
public
mixed
WIKINDX_LDAP_DEBUG_LEVEL
= 7
public
mixed
WIKINDX_LDAP_GROUP_DN_DEFAULT
= ''
public
mixed
WIKINDX_LDAP_GROUP_TYPE_FILTER
= '(|(sAMAccountType=268435456)(sAMAccountType=268435457))'
public
mixed
WIKINDX_LDAP_PORT_DEFAULT
= 389
public
mixed
WIKINDX_LDAP_SEARCH_METHOD_DEFAULT
= 'tree'
public
mixed
WIKINDX_LDAP_SEARCH_METHOD_LIST
= ['list' => 'list', 'tree' => 'tree']
public
mixed
WIKINDX_LDAP_SEARCH_OPERATOR_DEFAULT
= 'and'
public
mixed
WIKINDX_LDAP_SEARCH_OPERATOR_LIST
= ['or' => 'or', 'and' => 'and']
public
mixed
WIKINDX_LDAP_SERVER_BIND_DOMAIN_DEFAULT
= ''
public
mixed
WIKINDX_LDAP_SERVER_BIND_DOMAIN_FORMAT_DEFAULT
= 'upn'
public
mixed
WIKINDX_LDAP_SERVER_BIND_DOMAIN_FORMAT_LIST
= ['none' => 'none', 'sam' => 'sam', 'upn' => 'upn']
public
mixed
WIKINDX_LDAP_SERVER_BIND_LOGIN_DEFAULT
= ''
public
mixed
WIKINDX_LDAP_SERVER_BIND_PASSWORD_DEFAULT
= ''
public
mixed
WIKINDX_LDAP_SERVER_BIND_TYPE_DEFAULT
= 'anonymous'
public
mixed
WIKINDX_LDAP_SERVER_BIND_TYPE_LIST
= ['anonymous' => 'anonymous', 'binduser' => 'binduser', 'user' => 'user']
public
mixed
WIKINDX_LDAP_SERVER_DEFAULT
= 'localhost'
public
mixed
WIKINDX_LDAP_SERVER_ENCRYPTION_DEFAULT
= 'none'
public
mixed
WIKINDX_LDAP_SERVER_ENCRYPTION_LIST
= ['none' => 'none', 'ssl' => 'ssl', 'starttls' => 'starttls']
public
mixed
WIKINDX_LDAP_SERVER_NETWORK_TIMEOUT
= 10
public
mixed
WIKINDX_LDAP_SERVER_RESPONSE_TIMEOUT
= 15
public
mixed
WIKINDX_LDAP_USE_DEFAULT
= \FALSE
public
mixed
WIKINDX_LDAP_USE_REFERRALS
= 0
public
mixed
WIKINDX_LDAP_USER_ATTRIBUTE_EMAIL
= 'mail'
public
mixed
WIKINDX_LDAP_USER_ATTRIBUTE_FULLNAME
= 'displayname'
public
mixed
WIKINDX_LDAP_USER_ATTRIBUTE_LOGIN_DEFAULT
= 'sAMAccountName'
public
mixed
WIKINDX_LDAP_USER_ATTRIBUTE_LOGIN_LIST
= ['CN' => 'CN', 'sAMAccountName' => 'sAMAccountName', 'uid' => 'uid', 'userPrincipalName' => 'userPrincipalName']
public
mixed
WIKINDX_LDAP_USER_CREATE_DEFAULT
= \TRUE
public
mixed
WIKINDX_LDAP_USER_OU_DEFAULT
= ''
public
mixed
WIKINDX_LDAP_USER_TYPE_FILTER
= '(sAMAccountType=805306368)'
CONSTANTS_OPTIONS
public
mixed
WIKINDX_LIST_CONFIG_OPTIONS
= ["configAuthGate" => ["constname" => "WIKINDX_AUTHGATE_USE", "type" => "configBoolean"], "configAuthGateMessage" => ["constname" => "WIKINDX_AUTHGATE_MESSAGE", "type" => "configVarchar"], "configBinFolderBibutils" => ["constname" => "WIKINDX_BIN_FOLDER_BIBUTILS", "type" => "configVarchar"], "configBinFolderCatdvi" => ["constname" => "WIKINDX_BIN_FOLDER_CATDVI", "type" => "configVarchar"], "configBinFolderDjvutxt" => ["constname" => "WIKINDX_BIN_FOLDER_DJVUTXT", "type" => "configVarchar"], "configBinFolderPs2pdf" => ["constname" => "WIKINDX_BIN_FOLDER_PS2PDF", "type" => "configVarchar"], "configBrowserTabID" => ["constname" => "WIKINDX_BROWSER_TAB_ID", "type" => "configBoolean"], "configBypassSmartyCompile" => ["constname" => "WIKINDX_BYPASS_SMARTY_COMPILATION", "type" => "configBoolean"], "configCategoryEditAllow" => ["constname" => "WIKINDX_CATEGORYEDIT_ALLOW", "type" => "configBoolean"], "configCmsAllow" => ["constname" => "WIKINDX_CMS_ALLOW", "type" => "configBoolean"], "configCmsBibstyle" => ["constname" => "WIKINDX_CMS_BIBSTYLE", "type" => "configVarchar"], "configComponentsUpdateServer" => ["constname" => "WIKINDX_COMPONENTS_UPDATE_SERVER", "type" => "configVarchar"], "configContactEmail" => ["constname" => "WIKINDX_CONTACT_EMAIL", "type" => "configVarchar"], "configDeactivateResourceTypes" => ["constname" => "WIKINDX_DEACTIVATE_RESOURCE_TYPES", "type" => "configText"], "configDebugPseudolocalization" => ["constname" => "WIKINDX_DEBUG_PSEUDOLOCALIZATION", "type" => "configBoolean"], "configDebugSql" => ["constname" => "WIKINDX_DEBUG_SQL", "type" => "configBoolean"], "configDenyReadOnly" => ["constname" => "WIKINDX_DENY_READONLY", "type" => "configBoolean"], "configDescription" => ["constname" => "WIKINDX_DESCRIPTION", "type" => "configText"], "configDisplayStatistics" => ["constname" => "WIKINDX_DISPLAY_STATISTICS", "type" => "configBoolean"], "configDisplayUserStatistics" => ["constname" => "WIKINDX_DISPLAY_USER_STATISTICS", "type" => "configBoolean"], "configEmailNewRegistrations" => ["constname" => "WIKINDX_EMAIL_NEW_REGISTRATIONS", "type" => "configVarchar"], "configEmailNews" => ["constname" => "WIKINDX_EMAIL_NEWS", "type" => "configBoolean"], "configEmailStatistics" => ["constname" => "WIKINDX_EMAIL_STATISTICS", "type" => "configBoolean"], "configErrorReport" => ["constname" => "WIKINDX_DEBUG_ERRORS", "type" => "configBoolean"], "configFileAttachAllow" => ["constname" => "WIKINDX_FILE_ATTACH_ALLOW", "type" => "configBoolean"], "configFileAttachUploadMaxSize" => ["constname" => "WIKINDX_FILE_ATTACH_UPLOAD_MAX_SIZE", "type" => "configInt"], "configFileDeleteSeconds" => ["constname" => "WIKINDX_FILE_DELETE_SECONDS", "type" => "configInt"], "configFileViewLoggedOnOnly" => ["constname" => "WIKINDX_FILE_VIEW_LOGGEDON_ONLY", "type" => "configBoolean"], "configGlobalEdit" => ["constname" => "WIKINDX_GLOBAL_EDIT", "type" => "configBoolean"], "configGsAttachment" => ["constname" => "WIKINDX_GS_ATTACHMENT", "type" => "configBoolean"], "configGsDisallow" => ["constname" => "WIKINDX_GS_DISALLOW", "type" => "configBoolean"], "configImgAllow" => ["constname" => "WIKINDX_IMG_ALLOW", "type" => "configBoolean"], "configImgHeightLimit" => ["constname" => "WIKINDX_IMG_HEIGHT_LIMIT", "type" => "configInt"], "configImgUploadMaxSize" => ["constname" => "WIKINDX_IMG_UPLOAD_MAX_SIZE", "type" => "configInt"], "configImgWidthLimit" => ["constname" => "WIKINDX_IMG_WIDTH_LIMIT", "type" => "configInt"], "configImportBib" => ["constname" => "WIKINDX_IMPORT_BIB", "type" => "configBoolean"], "configImpressum" => ["constname" => "WIKINDX_IMPRESSUM", "type" => "configText"], "configIsTrunk" => ["constname" => "WIKINDX_IS_TRUNK", "type" => "configBoolean"], "configLastChanges" => ["constname" => "WIKINDX_LAST_CHANGES", "type" => "configInt"], "configLastChangesDayLimit" => ["constname" => "WIKINDX_LAST_CHANGES_DAY_LIMIT", "type" => "configInt"], "configLastChangesType" => ["constname" => "WIKINDX_LAST_CHANGES_TYPE", "type" => "configVarchar"], "configLdapGroupDn" => ["constname" => "WIKINDX_LDAP_GROUP_DN", "type" => "configVarchar"], "configLdapPort" => ["constname" => "WIKINDX_LDAP_PORT", "type" => "configInt"], "configLdapSearchMethod" => ["constname" => "WIKINDX_LDAP_SEARCH_METHOD", "type" => "configVarchar"], "configLdapSearchOperator" => ["constname" => "WIKINDX_LDAP_SEARCH_OPERATOR", "type" => "configVarchar"], "configLdapServer" => ["constname" => "WIKINDX_LDAP_SERVER", "type" => "configVarchar"], "configLdapServerBindDomain" => ["constname" => "WIKINDX_LDAP_SERVER_BIND_DOMAIN", "type" => "configVarchar"], "configLdapServerBindDomainFormat" => ["constname" => "WIKINDX_LDAP_SERVER_BIND_DOMAIN_FORMAT", "type" => "configVarchar"], "configLdapServerBindLogin" => ["constname" => "WIKINDX_LDAP_SERVER_BIND_LOGIN", "type" => "configVarchar"], "configLdapServerBindPassword" => ["constname" => "WIKINDX_LDAP_SERVER_BIND_PASSWORD", "type" => "configVarchar"], "configLdapServerBindType" => ["constname" => "WIKINDX_LDAP_SERVER_BIND_TYPE", "type" => "configVarchar"], "configLdapServerEncryption" => ["constname" => "WIKINDX_LDAP_SERVER_ENCRYPTION", "type" => "configVarchar"], "configLdapUse" => ["constname" => "WIKINDX_LDAP_USE", "type" => "configBoolean"], "configLdapUserAttributLogin" => ["constname" => "WIKINDX_LDAP_USER_ATTRIBUTE_LOGIN", "type" => "configVarchar"], "configLdapUserCreate" => ["constname" => "WIKINDX_LDAP_USER_CREATE", "type" => "configBoolean"], "configLdapUserOu" => ["constname" => "WIKINDX_LDAP_USER_OU", "type" => "configVarchar"], "configListLink" => ["constname" => "WIKINDX_LIST_LINK", "type" => "configBoolean"], "configMailBackend" => ["constname" => "WIKINDX_MAIL_BACKEND", "type" => "configVarchar"], "configMailFrom" => ["constname" => "WIKINDX_MAIL_FROM", "type" => "configVarchar"], "configMailReplyTo" => ["constname" => "WIKINDX_MAIL_REPLYTO", "type" => "configVarchar"], "configMailReturnPath" => ["constname" => "WIKINDX_MAIL_RETURN_PATH", "type" => "configVarchar"], "configMailSmPath" => ["constname" => "WIKINDX_MAIL_SENDMAIL_PATH", "type" => "configVarchar"], "configMailSmtpAuthType" => ["constname" => "WIKINDX_MAIL_SMTP_AUTHTYPE", "type" => "configVarchar"], "configMailSmtpEncrypt" => ["constname" => "WIKINDX_MAIL_SMTP_ENCRYPT", "type" => "configVarchar"], "configMailSmtpPassword" => ["constname" => "WIKINDX_MAIL_SMTP_PASSWORD", "type" => "configVarchar"], "configMailSmtpPersist" => ["constname" => "WIKINDX_MAIL_SMTP_PERSIST", "type" => "configBoolean"], "configMailSmtpPort" => ["constname" => "WIKINDX_MAIL_SMTP_PORT", "type" => "configInt"], "configMailSmtpServer" => ["constname" => "WIKINDX_MAIL_SMTP_SERVER", "type" => "configVarchar"], "configMailSmtpUsername" => ["constname" => "WIKINDX_MAIL_SMTP_USERNAME", "type" => "configVarchar"], "configMailUse" => ["constname" => "WIKINDX_MAIL_USE", "type" => "configBoolean"], "configMaxPaste" => ["constname" => "WIKINDX_MAX_PASTE", "type" => "configInt"], "configMenuDesktopConfig" => ["constname" => "WIKINDX_MENU_DESKTOP_CONFIG", "type" => "configText"], "configMenuMobileConfig" => ["constname" => "WIKINDX_MENU_MOBILE_CONFIG", "type" => "configText"], "configMetadataAllow" => ["constname" => "WIKINDX_METADATA_ALLOW", "type" => "configBoolean"], "configMetadataUserOnly" => ["constname" => "WIKINDX_METADATA_USERONLY", "type" => "configBoolean"], "configMultiUser" => ["constname" => "WIKINDX_MULTIUSER", "type" => "configBoolean"], "configNoSort" => ["constname" => "WIKINDX_NO_SORT", "type" => "configText"], "configNotify" => ["constname" => "WIKINDX_NOTIFY", "type" => "configBoolean"], "configOriginatorEditOnly" => ["constname" => "WIKINDX_ORIGINATOR_EDIT_ONLY", "type" => "configBoolean"], "configPaging" => ["constname" => "WIKINDX_PAGING", "type" => "configInt"], "configPagingMaxLinks" => ["constname" => "WIKINDX_PAGING_MAXLINKS", "type" => "configInt"], "configPagingTagCloud" => ["constname" => "WIKINDX_PAGING_TAG_CLOUD", "type" => "configInt"], "configPasswordSize" => ["constname" => "WIKINDX_PASSWORD_SIZE", "type" => "configInt"], "configPasswordStrength" => ["constname" => "WIKINDX_PASSWORD_STRENGTH", "type" => "configVarchar"], "configQuarantine" => ["constname" => "WIKINDX_QUARANTINE", "type" => "configBoolean"], "configReadOnlyAccess" => ["constname" => "WIKINDX_READ_ONLY_ACCESS", "type" => "configBoolean"], "configResourceUrlPrefix" => ["constname" => "WIKINDX_RESOURCE_URL_PREFIX", "type" => "configVarchar"], "configRestrictUserId" => ["constname" => "WIKINDX_RESTRICT_USERID", "type" => "configInt"], "configRssDescription" => ["constname" => "WIKINDX_RSS_DESCRIPTION", "type" => "configVarchar"], "configRssDisallow" => ["constname" => "WIKINDX_RSS_DISALLOW", "type" => "configBoolean"], "configRssDisplayEditedResources" => ["constname" => "WIKINDX_RSS_DISPLAY_EDITED_RESOURCES", "type" => "configBoolean"], "configRssLimit" => ["constname" => "WIKINDX_RSS_LIMIT", "type" => "configInt"], "configRssTitle" => ["constname" => "WIKINDX_RSS_TITLE", "type" => "configVarchar"], "configSearchConjunction" => ["constname" => "WIKINDX_SEARCH_CONJUNCTION", "type" => "configVarchar"], "configSearchFilter" => ["constname" => "WIKINDX_SEARCH_FILTER", "type" => "configText"], "configSessionAuthMaxlifetime" => ["constname" => "WIKINDX_SESSION_AUTH_MAXLIFETIME", "type" => "configInt"], "configSessionAuthMememberMeMaxlifetime" => ["constname" => "WIKINDX_SESSION_AUTH_REMEMBERME_MAXLIFETIME", "type" => "configInt"], "configSessionGCLastExecTimestamp" => ["constname" => "WIKINDX_SESSION_GC_LASTEXEC_TIMESTAMP", "type" => "configInt"], "configSessionNotAuthMaxlifetime" => ["constname" => "WIKINDX_SESSION_NOTAUTH_MAXLIFETIME", "type" => "configInt"], "configSiteMapDisallow" => ["constname" => "WIKINDX_SITEMAP_DISALLOW", "type" => "configBoolean"], "configStatisticsCompiled" => ["constname" => "WIKINDX_STATISTICS_COMPILED", "type" => "configDatetime"], "configStringLimit" => ["constname" => "WIKINDX_STRING_LIMIT", "type" => "configInt"], "configStyle" => ["constname" => "WIKINDX_STYLE", "type" => "configVarchar"], "configTagHighColour" => ["constname" => "WIKINDX_TAG_HIGH_COLOUR", "type" => "configVarchar"], "configTagHighFactor" => ["constname" => "WIKINDX_TAG_HIGH_FACTOR", "type" => "configInt"], "configTagLowColour" => ["constname" => "WIKINDX_TAG_LOW_COLOUR", "type" => "configVarchar"], "configTagLowFactor" => ["constname" => "WIKINDX_TAG_LOW_FACTOR", "type" => "configInt"], "configTemplate" => ["constname" => "WIKINDX_TEMPLATE", "type" => "configVarchar"], "configTimezone" => ["constname" => "WIKINDX_TIMEZONE", "type" => "configVarchar"], "configTitle" => ["constname" => "WIKINDX_TITLE", "type" => "configVarchar"], "configUserRegistration" => ["constname" => "WIKINDX_USER_REGISTRATION", "type" => "configBoolean"], "configUserRegistrationModerate" => ["constname" => "WIKINDX_USER_REGISTRATION_MODERATE", "type" => "configBoolean"], "configHeaderSessionCookieSecureAttribute" => ["constname" => "WIKINDX_HEADER_SESSION_COOKIE_SECURE_ATTRIBUTE", "type" => "configBoolean"], "configHeaderStrictTransportSecurity" => ["constname" => "WIKINDX_HEADER_STRICT_TRANSPORT_SECURITY", "type" => "configBoolean"]]
Define a mapping between the name of global options in db and their PHP constant counterpart.
"option db name" => ["constname" => "constant option name", "type" => "db column name"]"
db column names could be :
public
mixed
WIKINDX_LIST_LINK_DEFAULT
= \FALSE
Default language
public
mixed
WIKINDX_LOCALE_DEFAULT
= 'en_GB'
public
mixed
WIKINDX_MAIL_BACKEND_DEFAULT
= 'sendmail'
public
mixed
WIKINDX_MAIL_FROM_DEFAULT
= ''
public
mixed
WIKINDX_MAIL_REPLYTO_DEFAULT
= 'noreply@noreply.org'
public
mixed
WIKINDX_MAIL_RETURN_PATH_DEFAULT
= ''
public
mixed
WIKINDX_MAIL_SENDMAIL_PATH_DEFAULT
= '/usr/sbin/sendmail'
public
mixed
WIKINDX_MAIL_SMTP_AUTHTYPE_DEFAULT
= 'none'
public
mixed
WIKINDX_MAIL_SMTP_ENCRYPT_DEFAULT
= 'none'
public
mixed
WIKINDX_MAIL_SMTP_PASSWORD_DEFAULT
= ''
public
mixed
WIKINDX_MAIL_SMTP_PERSIST_DEFAULT
= \FALSE
public
mixed
WIKINDX_MAIL_SMTP_PORT_DEFAULT
= 25
public
mixed
WIKINDX_MAIL_SMTP_SERVER_DEFAULT
= 'localhost'
public
mixed
WIKINDX_MAIL_SMTP_USERNAME_DEFAULT
= ''
public
mixed
WIKINDX_MAIL_USE_DEFAULT
= \FALSE
Minimum required PHP version
public
mixed
WIKINDX_MARIADB_VERSION_MIN
= '10.11'
Default max execution time of a script/page (in seconds, or FALSE)
public
mixed
WIKINDX_MAX_EXECUTION_TIMEOUT_DEFAULT
= 60
This can be used to control the number of SET statements in SQL::multUpdate() and SQL::multiUpdateNull() statements by triggering the statement only when the number of bytes in the update array sent to the statement is larger than this constant.
public
mixed
WIKINDX_MAX_MULTIUPDATES
= \WIKINDX_DB_MAX_ALLOWED_PACKET - 1000000
1_000_000 bytes is a sensible margin.
public
mixed
WIKINDX_MAX_PASTE_DEFAULT
= 10
Default custom value for PHP memory_limit option (interger, string, or FALSE)
public
mixed
WIKINDX_MEMORY_LIMIT_DEFAULT
= '1G'
public
mixed
WIKINDX_MENU_DESKTOP_CONFIG_DEFAULT
= \serialize(['main' => []])
public
mixed
WIKINDX_MENU_MOBILE_CONFIG_DEFAULT
= \serialize(['main' => []])
public
mixed
WIKINDX_METADATA_ALLOW_DEFAULT
= \TRUE
public
mixed
WIKINDX_METADATA_USERONLY_DEFAULT
= \FALSE
public
mixed
WIKINDX_MIMETYPE_ABW
= 'application/x-abiword'
public
mixed
WIKINDX_MIMETYPE_ATOM
= 'application/atom+xml'
public
mixed
WIKINDX_MIMETYPE_BIB
= 'application/x-bibtex'
public
mixed
WIKINDX_MIMETYPE_CSV
= 'text/csv'
public
mixed
WIKINDX_MIMETYPE_DJV
= 'image/vnd.djvu'
public
mixed
WIKINDX_MIMETYPE_DOC
= 'application/msword'
public
mixed
WIKINDX_MIMETYPE_DOCM
= 'application/vnd.ms-word.document.macroEnabled.12'
public
mixed
WIKINDX_MIMETYPE_DOCX
= 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
public
mixed
WIKINDX_MIMETYPE_DOTM
= 'application/vnd.ms-word.template.macroEnabled.12'
public
mixed
WIKINDX_MIMETYPE_DOTX
= 'application/vnd.openxmlformats-officedocument.wordprocessingml.template'
public
mixed
WIKINDX_MIMETYPE_DVI
= 'application/x-dvi'
public
mixed
WIKINDX_MIMETYPE_ENDNOTE
= 'application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml'
public
mixed
WIKINDX_MIMETYPE_EPUB
= 'application/epub+zip'
public
mixed
WIKINDX_MIMETYPE_FB
= 'application/x-fictionbook'
public
mixed
WIKINDX_MIMETYPE_HTML
= 'text/html'
public
mixed
WIKINDX_MIMETYPE_JS
= 'application/javascript'
public
mixed
WIKINDX_MIMETYPE_JSON
= 'application/json'
public
mixed
WIKINDX_MIMETYPE_KWD
= 'application/vnd.kde.kword'
public
mixed
WIKINDX_MIMETYPE_LWP
= 'application/vnd.lotus-wordpro'
public
mixed
WIKINDX_MIMETYPE_MD
= 'text/markdown'
public
mixed
WIKINDX_MIMETYPE_MHT_ALT
= 'message/alternative'
public
mixed
WIKINDX_MIMETYPE_MHT_APP
= 'application/x-mimearchive'
public
mixed
WIKINDX_MIMETYPE_MHT_MIX
= 'message/mixed'
public
mixed
WIKINDX_MIMETYPE_MHT_MUL
= 'multipart/related'
public
mixed
WIKINDX_MIMETYPE_MHT_RFC
= 'message/rfc822'
public
mixed
WIKINDX_MIMETYPE_ODP
= 'application/vnd.oasis.opendocument.presentation'
public
mixed
WIKINDX_MIMETYPE_ODT
= 'application/vnd.oasis.opendocument.text'
public
mixed
WIKINDX_MIMETYPE_OTP
= 'application/vnd.oasis.opendocument.presentation-template'
public
mixed
WIKINDX_MIMETYPE_OTT
= 'application/vnd.oasis.opendocument.text-template'
public
mixed
WIKINDX_MIMETYPE_OXPS
= 'application/oxps'
public
mixed
WIKINDX_MIMETYPE_PDF
= 'application/pdf'
public
mixed
WIKINDX_MIMETYPE_PHP
= 'application/x-httpd-php'
public
mixed
WIKINDX_MIMETYPE_POTM
= 'application/vnd.ms-powerpoint.template.macroEnabled.12'
public
mixed
WIKINDX_MIMETYPE_POTX
= 'application/vnd.openxmlformats-officedocument.presentationml.template'
public
mixed
WIKINDX_MIMETYPE_PPT
= 'application/vnd.ms-powerpoint'
public
mixed
WIKINDX_MIMETYPE_PPTM
= 'application/vnd.ms-powerpoint.presentation.macroEnabled.12'
public
mixed
WIKINDX_MIMETYPE_PPTX
= 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
public
mixed
WIKINDX_MIMETYPE_PS
= 'application/postscript'
public
mixed
WIKINDX_MIMETYPE_RIS
= 'application/x-research-info-systems'
public
mixed
WIKINDX_MIMETYPE_RSS
= 'application/rss+xml'
public
mixed
WIKINDX_MIMETYPE_RTF_APP
= 'application/rtf'
public
mixed
WIKINDX_MIMETYPE_RTF_TEXT
= 'text/rtf'
public
mixed
WIKINDX_MIMETYPE_SCRIBUS
= 'application/vnd.scribus'
public
mixed
WIKINDX_MIMETYPE_STI
= 'application/vnd.sun.xml.impress.template'
public
mixed
WIKINDX_MIMETYPE_STW
= 'application/vnd.sun.xml.writer.template'
public
mixed
WIKINDX_MIMETYPE_SXI
= 'application/vnd.sun.xml.impress'
public
mixed
WIKINDX_MIMETYPE_SXW
= 'application/vnd.sun.xml.writer'
public
mixed
WIKINDX_MIMETYPE_TEI
= 'application/tei+xml'
public
mixed
WIKINDX_MIMETYPE_TROFF
= 'text/troff'
public
mixed
WIKINDX_MIMETYPE_TXT
= 'text/plain'
public
mixed
WIKINDX_MIMETYPE_WML
= 'text/vnd.wap.wml'
public
mixed
WIKINDX_MIMETYPE_WMLC
= 'application/vnd.wap.wmlc'
public
mixed
WIKINDX_MIMETYPE_WPD
= 'application/vnd.wordperfect'
public
mixed
WIKINDX_MIMETYPE_WPD51
= 'application/wordperfect5.1'
public
mixed
WIKINDX_MIMETYPE_WPS
= 'application/vnd.ms-works'
public
mixed
WIKINDX_MIMETYPE_WRI
= 'application/mswrite'
public
mixed
WIKINDX_MIMETYPE_XHTML
= 'application/xml+html'
public
mixed
WIKINDX_MIMETYPE_XML_APP
= 'application/xml'
public
mixed
WIKINDX_MIMETYPE_XML_TEXT
= 'text/xml'
public
mixed
WIKINDX_MIMETYPE_XPDF
= 'application/x-pdf'
public
mixed
WIKINDX_MIMETYPE_XPS
= 'application/vnd.ms-xpsdocument'
public
mixed
WIKINDX_MIMETYPE_ZIP
= 'application/zip'
public
mixed
WIKINDX_MULTIUSER_DEFAULT
= \FALSE
Minimum required PHP version
public
mixed
WIKINDX_MYSQL_VERSION_MIN
= '8.4.0'
public
mixed
WIKINDX_NO_SORT_DEFAULT
= \implode(",", ['an', 'a', 'the', 'der', 'die', 'das', 'ein', 'eine', 'einer', 'eines', 'le', 'la', 'las', 'il', 'les', 'une', 'un', 'una', 'uno', 'lo', 'los', 'i', 'gli', 'de', 'het', 'um', 'uma', 'o', 'os', 'as', 'den', 'det', 'en', 'et', 'du', 'des'])
public
mixed
WIKINDX_NOTIFY_DEFAULT
= \FALSE
Office add-ins API version
public
mixed
WIKINDX_OFFICE_API_VERSION
= 2
In each add-in (Word, Google Docs, LibreOffice etc.) the compatibility variable must equal this.
public
mixed
WIKINDX_ORIGINATOR_EDIT_ONLY_DEFAULT
= \FALSE
Algo used for hashing the packages released by the project
public
mixed
WIKINDX_PACKAGE_HASH_ALGO
= 'sha256'
public
mixed
WIKINDX_PAGING_DEFAULT
= 20
public
mixed
WIKINDX_PAGING_MAXLINKS_DEFAULT
= 11
public
mixed
WIKINDX_PAGING_TAG_CLOUD_DEFAULT
= 100
public
mixed
WIKINDX_PASSWORD_SIZE_DEFAULT
= 6
public
mixed
WIKINDX_PASSWORD_STRENGTH_DEFAULT
= 'strong'
Default value of path auto detection feature (for Virtual Host Apache config)
public
mixed
WIKINDX_PATH_AUTO_DETECTION_DEFAULT
= \TRUE
Timezone for PHP defaults
public
mixed
WIKINDX_PHP_TIMEZONE
= 'UTC'
Just like the database (see WIKINDX_DB_TIMEZONE), PHP is configured by default to use UTC.
It is the responsibility of the display or form processing code to convert UTC dates to the user's preferred timezone (and vice versa), or failing that, the one defined by the administrator.
Use \DATE\determine_timezone() to get the user preferred timezone.
Maximum required PHP version
public
mixed
WIKINDX_PHP_VERSION_MAX
= '8.5.99'
Minimum required PHP version
public
mixed
WIKINDX_PHP_VERSION_MIN
= '8.2.0'
public
mixed
WIKINDX_PHPMAILER_BACKENDS
= ['smtp' => 'SMTP', 'sendmail' => 'Sendmail']
Mapping list of SMTP auth methods of PHPMailer with Wikindx options
public
mixed
WIKINDX_PHPMAILER_SMTP_AUTHTYPE
= ['none' => 'None', '' => 'Auto', 'CRAM-MD5' => 'CRAM-MD5', 'LOGIN' => 'LOGIN', 'PLAIN' => 'PLAIN']
NB: 'None' is used for PHPMailer\PHPMailer->SMTPAuth and others for PHPMailer\SMTP->AuthType.
Mapping list of SMTP encryption methods of PHPMailer with Wikindx options
public
mixed
WIKINDX_PHPMAILER_SMTP_ENCRYPT
= ['none' => 'none', 'tls' => 'tls', 'ssl' => 'ssl']
STATISTICS WEIGHTS
public
mixed
WIKINDX_POPULARITY_DOWNLOADS_WEIGHT
= 0.75
This value is relative to WIKINDX_POPULARITY_VIEWS_WEIGHT and should total 1.0.
STATISTICS WEIGHTS
public
mixed
WIKINDX_POPULARITY_VIEWS_WEIGHT
= 0.25
This value is relative to WIKINDX_POPULARITY_DOWNLOADS_WEIGHT and should total 1.0.
WIKINDX official/public version information
public
mixed
WIKINDX_PUBLIC_VERSION
= '6.16.1'
This number is the official release version used by the update server to download the components.
It can be of the form X.Y.Z or X.Y.Z-rcN (with X, Y, Z, and N positive integers).
public
mixed
WIKINDX_QUARANTINE_DEFAULT
= \FALSE
public
mixed
WIKINDX_READ_ONLY_ACCESS_DEFAULT
= \TRUE
WIKINDX release date
public
mixed
WIKINDX_RELEASE_DATE
= "2026-05-11"
WIKINDX release timestamp
public
mixed
WIKINDX_RELEASE_TIMESTAMP
= (new \DateTime(\WIKINDX_RELEASE_DATE))->getTimestamp()
The release script use it to change the date of files and make archives reproducible.
public
mixed
WIKINDX_RESOURCE_URL_PREFIX_DEFAULT
= ''
public
mixed
WIKINDX_RESTRICT_USERID_DEFAULT
= 0
public
mixed
WIKINDX_RSS_DESCRIPTION_DEFAULT
= \WIKINDX_DESCRIPTION_DEFAULT
public
mixed
WIKINDX_RSS_DISALLOW_DEFAULT
= \FALSE
public
mixed
WIKINDX_RSS_DISPLAY_EDITED_RESOURCES_DEFAULT
= \FALSE
public
mixed
WIKINDX_RSS_LIMIT_DEFAULT
= 50
public
mixed
WIKINDX_RSS_PAGE
= '/index.php?action=rss_RSS_CORE&method=rss20'
public
mixed
WIKINDX_RSS_TITLE_DEFAULT
= \WIKINDX_TITLE_DEFAULT
public
mixed
WIKINDX_SEARCH_CONJUNCTION_DEFAULT
= 'OR'
public
mixed
WIKINDX_SEARCH_FILTER_DEFAULT
= \implode(",", ['an', 'a', 'the', 'and', 'to', 'und', 'et'])
public
mixed
WIKINDX_SESSION_AUTH_MAXLIFETIME_DEFAULT
= 86400
public
mixed
WIKINDX_SESSION_AUTH_MAXLIFETIME_UPPER_LIMIT
= 86400
public
mixed
WIKINDX_SESSION_AUTH_REMEMBERME_MAXLIFETIME_DEFAULT
= 2678400
public
mixed
WIKINDX_SESSION_AUTH_REMEMBERME_MAXLIFETIME_UPPER_LIMIT
= 2678400
public
mixed
WIKINDX_SESSION_GC_DIVISOR
= 10
public
mixed
WIKINDX_SESSION_GC_FREQUENCY
= 300
public
mixed
WIKINDX_SESSION_GC_LASTEXEC_TIMESTAMP_DEFAULT
= \time()
public
mixed
WIKINDX_SESSION_GC_MAXLIFETIME
= 60
public
mixed
WIKINDX_SESSION_GC_PROBABILITY
= 1
public
mixed
WIKINDX_SESSION_NAME
= 'WKXSESSID'
public
mixed
WIKINDX_SESSION_NOTAUTH_MAXLIFETIME_DEFAULT
= 3600
public
mixed
WIKINDX_SESSION_NOTAUTH_MAXLIFETIME_UPPER_LIMIT
= 86400
Special constants used to do replacements required for SQL and similar.
public
mixed
WIKINDX_SINGLEQUOTE_WIKINDX
= 'WIKINDXSINGLEQUOTEWIKINDX'
Typically used to temporarily replace literal characters in strings to protect them from incorrect interpretation.
public
mixed
WIKINDX_SITEMAP_DISALLOW_DEFAULT
= \FALSE
Max number of url by page in a sitemap (50000 max. allowed in the standard and 10 Mo max.)
public
mixed
WIKINDX_SITEMAP_MAX_SIZE
= 500
For a response time and analysis of the response 500 links per page seems reasonable, ie below the second, as the search engines expect..
URL of the website sitemap
public
mixed
WIKINDX_SITEMAP_PAGE
= '/index.php?action=sitemap_SITEMAP_CORE'
public
mixed
WIKINDX_STATISTICS_COMPILED_DEFAULT
= '2018-01-01 01:01:01'
public
mixed
WIKINDX_STRING_LIMIT_DEFAULT
= 40
public
mixed
WIKINDX_STYLE_DEFAULT
= 'apa'
public
mixed
WIKINDX_SUPERADMIN_ID
= 1
public
mixed
WIKINDX_TAG_FACTOR_MAX
= 200
public
mixed
WIKINDX_TAG_FACTOR_MIN
= 50
public
mixed
WIKINDX_TAG_FACTOR_STEP
= 5
public
mixed
WIKINDX_TAG_HIGH_COLOUR_DEFAULT
= 'ff0000'
public
mixed
WIKINDX_TAG_HIGH_FACTOR_DEFAULT
= 200
public
mixed
WIKINDX_TAG_LOW_COLOUR_DEFAULT
= 'a0a0a0'
public
mixed
WIKINDX_TAG_LOW_FACTOR_DEFAULT
= 100
public
mixed
WIKINDX_TEMPLATE_DEFAULT
= 'default'
public
mixed
WIKINDX_TEMPLATE_MENU_DEFAULT
= 0
Default time zone (UTC)
public
mixed
WIKINDX_TIMEZONE_DEFAULT
= 'UTC'
public
mixed
WIKINDX_TITLE_DEFAULT
= 'WIKINDX'
public
mixed
WIKINDX_UNIX_PERMS_DEFAULT
= 0777
WIKINDX SF url
public
mixed
WIKINDX_URL
= 'https://wikindx.sourceforge.io'
Default base URL of WIKINDX
public
mixed
WIKINDX_URL_BASE_DEFAULT
= ""
public
mixed
WIKINDX_URL_CACHE
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_CACHE)
public
mixed
WIKINDX_URL_CACHE_ATTACHMENTS
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_CACHE_ATTACHMENTS)
public
mixed
WIKINDX_URL_CACHE_FILES
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_CACHE_FILES)
public
mixed
WIKINDX_URL_CACHE_PLUGINS
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_CACHE_PLUGINS)
public
mixed
WIKINDX_URL_CACHE_STYLES
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_CACHE_STYLES)
public
mixed
WIKINDX_URL_CACHE_TEMPLATES
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_CACHE_TEMPLATES)
public
mixed
WIKINDX_URL_COMPONENT
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_COMPONENT)
public
mixed
WIKINDX_URL_COMPONENT_PLUGINS
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_COMPONENT_PLUGINS)
public
mixed
WIKINDX_URL_COMPONENT_STYLES
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_COMPONENT_STYLES)
public
mixed
WIKINDX_URL_COMPONENT_TEMPLATES
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_COMPONENT_TEMPLATES)
public
mixed
WIKINDX_URL_DATA
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_DATA)
public
mixed
WIKINDX_URL_DATA_ATTACHMENTS
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_DATA_ATTACHMENTS)
public
mixed
WIKINDX_URL_DATA_IMAGES
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_DATA_IMAGES)
public
mixed
WIKINDX_URL_DATA_PLUGINS
= \str_replace(\DIRECTORY_SEPARATOR, "/", \WIKINDX_DIR_DATA_PLUGINS)
URL of the Help Topics on the website
public
mixed
WIKINDX_URL_HELP_TOPICS
= 'https://wikindx.sourceforge.io/web/' . \WIKINDX_PUBLIC_VERSION . '/help-topics'
public
mixed
WIKINDX_USE_BIBTEX_KEY_DEFAULT
= \FALSE
public
mixed
WIKINDX_USE_WIKINDX_KEY_DEFAULT
= \FALSE
public
mixed
WIKINDX_USER_LANGUAGE_DEFAULT
= 'auto'
public
mixed
WIKINDX_USER_PAGING_DEFAULTLINKS
= 11
public
mixed
WIKINDX_USER_PAGING_DEFAULTPAGING
= 20
public
mixed
WIKINDX_USER_PAGING_MINLINKS
= 4
public
mixed
WIKINDX_USER_PAGING_MINPAGING
= 2
public
mixed
WIKINDX_USER_PAGING_STYLE_DEFAULT
= 'N'
public
mixed
WIKINDX_USER_REGISTRATION_DEFAULT
= \FALSE
public
mixed
WIKINDX_USER_REGISTRATION_MODERATE_DEFAULT
= \FALSE
public
mixed
WIKINDX_USER_STRING_MINLENGTH
= 10
public
mixed
WIKINDX_USER_TIMEZONE_DEFAULT
= 'auto'
WordProcessor Docx Exporter Version
public
mixed
WIKINDX_WP_DOCX_EXPORTER_VERSION
= '1.0'
This value is written in the 'AppVersion' element of the app.xml file to distinguish the version that generated a Word document.
Load configuration from config.php
loadStaticConfig() : array<string|int, mixed>
This function die() if a config parameter is wrong.
Array of error messages
Set a db handler for session storage in session table
wkx_session_set_db_handler() : mixed
The creation of the identifiers is left to PHP.
Sessions are stored in db when WIKINDX is used in normal mode.
Set the default file handler for session storage
wkx_session_set_file_handler() : mixed
Sessions are stored in files when WIKINDX is used in install/upgrade mode.
Separating storage allows special actions during maintenance and isolates the administrator's regular session.
Custom PHP errors handler
wkx_error_handler(int $errno, string $errstr, string $errfile, int $errline) : bool
cf. https://www.php.net/manual/fr/function.set-error-handler.php
The $errcontext parameter is not used because it is deprecated since PHP 7.2 It is no longer possible to know the context of the error. Instead we use the debug_print_backtrace() function.
NB: fatal errors like ‘parse error’ are still written in the log defined by error_log php.ini option because this handler cannot be called in that case.
PHP error code
PHP error message
File or script where the error occurred
Error line number
Shutdown Handler
wkx_shutdown_handler() : mixed
Vérifie si la dernière erreur était fatal, et dans ce cas inscrit les informations de débogage dans la trace global car le script ne peut pas intercepter ce genre d'erreur lui-même.
Check if the last error was fatal on shutdown, and if so, log the debugging information to the global trace, as the script cannot intercept this type of error itself.
cf. https://www.php.net/manual/en/function.register-shutdown-function.php cf. https://www.php.net/manual/en/function.set-error-handler.php
Custom handler for uncaught exceptions
wkx_exception_handler(Throwable $exception) : mixed
This will trigger instead of the PHP one, if the script has not intercepted it itself.
Then PHP terminates the script on its own.
cf. https://www.php.net/manual/en/function.set-exception-handler.php
Write a message to the application log
wkx_error_log(mixed $Message) : void
When the application is not yet configured, the message is written to the log defined by php.ini.
Message
Prints in tabular format the positional arguments of a function to the logs
wkx_error_function_args(string $func_name, string $func_args) : void
To use this function, add at the top of the traced function body: wkx_error_function_args(FUNCTION, func_get_args()); or wkx_error_function_args(METHOD, func_get_args());
Function name (e.g. pass FUNCTION)
Function arguments (e.g. pass func_get_args())
Remove expired error logs (14 days max) and limit their size to 25 MB by file
wkx_clear_error_log() : mixed
buildUpgradePage(string $body) : mixed