Merge branch 'origin/master' into Weblate.
[phpmyadmin.git] / libraries / config.default.php
blob519aa89c0343fea118f60749f061583c9a13ea60
1 <?php
2 /**
3 * <code>
4 * N N OOO !! DDDD OOO N N OOO TTTTT EEEE DDDD I TTTTT !!
5 * NN N O O !! D D O O NN N O O T E D D I T !!
6 * N N N O O !! D D O O N N N O O T EEEE D D I T !!
7 * N NN O O D D O O N NN O O T E D D I T
8 * N N OOO !! DDDD OOO N N OOO T EEEE DDDD I T !!
9 * </code>
11 * DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!!
13 * phpMyAdmin default configuration, you can copy values from here to your
14 * config.inc.php
16 * All directives are explained in the documentation
19 declare(strict_types=1);
21 /**
22 * Your phpMyAdmin URL.
24 * Complete the variable below with the full URL ie
25 * https://example.com/path_to_your_phpMyAdmin_directory/
27 * It must contain characters that are valid for a URL, and the path is
28 * case sensitive on some Web servers, for example Unix-based servers.
30 * In most cases you can leave this variable empty, as the correct value
31 * will be detected automatically. However, we recommend that you do
32 * test to see that the auto-detection code works in your system. A good
33 * test is to browse a table, then edit a row and save it. There will be
34 * an error message if phpMyAdmin cannot auto-detect the correct value.
36 * @global string $cfg['PmaAbsoluteUri']
38 $cfg['PmaAbsoluteUri'] = '';
40 /**
41 * Configure authentication logging destination
43 * @global string $cfg['AuthLog']
45 $cfg['AuthLog'] = 'auto';
47 /**
48 * Whether to log successful authentication attempts
50 * @global boolean $cfg['AuthLogSuccess']
52 $cfg['AuthLogSuccess'] = false;
54 /**
55 * Disable the default warning that is displayed on the DB Details Structure page if
56 * any of the required Tables for the configuration storage could not be found
58 * @global boolean $cfg['PmaNoRelation_DisableWarning']
60 $cfg['PmaNoRelation_DisableWarning'] = false;
62 /**
63 * Disable the default warning that is displayed if Suhosin is detected
65 * @global boolean $cfg['SuhosinDisableWarning']
67 $cfg['SuhosinDisableWarning'] = false;
69 /**
70 * Disable the default warning that is displayed if session.gc_maxlifetime
71 * is less than `LoginCookieValidity`
73 * @global boolean $cfg['LoginCookieValidityDisableWarning']
75 $cfg['LoginCookieValidityDisableWarning'] = false;
77 /**
78 * Disable the default warning about MySQL reserved words in column names
80 * @global boolean $cfg['ReservedWordDisableWarning']
82 $cfg['ReservedWordDisableWarning'] = false;
84 /**
85 * Show warning about incomplete translations on certain threshold.
87 * @global boolean $cfg['TranslationWarningThreshold']
89 $cfg['TranslationWarningThreshold'] = 80;
91 /**
92 * Allows phpMyAdmin to be included from a other document in a frame;
93 * setting this to true is a potential security hole. Setting this to
94 * 'sameorigin' prevents phpMyAdmin to be included from another document
95 * in a frame, unless that document belongs to the same domain.
97 * @global boolean|string $cfg['AllowThirdPartyFraming']
99 $cfg['AllowThirdPartyFraming'] = false;
102 * The 'cookie' auth_type uses AES algorithm to encrypt the password. If
103 * at least one server configuration uses 'cookie' auth_type, enter here a
104 * pass phrase that will be used by AES. The maximum length seems to be 46
105 * characters.
107 * @global string $cfg['blowfish_secret']
109 $cfg['blowfish_secret'] = '';
112 /*******************************************************************************
113 * Server(s) configuration
115 * The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
116 * $cfg['Servers'][0]. You can disable a server configuration entry by setting host
117 * to ''. If you want more than one server, just copy following section
118 * (including $i incrementation) several times. There is no need to define
119 * full server array, just define values you need to change.
121 * @global array $cfg['Servers']
123 $cfg['Servers'] = [];
125 $i = 1;
128 * MySQL hostname or IP address
130 * @global string $cfg['Servers'][$i]['host']
132 $cfg['Servers'][$i]['host'] = 'localhost';
135 * MySQL port - leave blank for default port
137 * @global string $cfg['Servers'][$i]['port']
139 $cfg['Servers'][$i]['port'] = '';
142 * Path to the socket - leave blank for default socket
144 * @global string $cfg['Servers'][$i]['socket']
146 $cfg['Servers'][$i]['socket'] = '';
149 * Use SSL for connecting to MySQL server?
151 * @global boolean $cfg['Servers'][$i]['ssl']
153 $cfg['Servers'][$i]['ssl'] = false;
156 * Path to the key file when using SSL for connecting to the MySQL server
158 * @global string $cfg['Servers'][$i]['ssl_key']
160 $cfg['Servers'][$i]['ssl_key'] = null;
163 * Path to the cert file when using SSL for connecting to the MySQL server
165 * @global string $cfg['Servers'][$i]['ssl_cert']
167 $cfg['Servers'][$i]['ssl_cert'] = null;
170 * Path to the CA file when using SSL for connecting to the MySQL server
172 * @global string $cfg['Servers'][$i]['ssl_ca']
174 $cfg['Servers'][$i]['ssl_ca'] = null;
177 * Directory containing trusted SSL CA certificates in PEM format
179 * @global string $cfg['Servers'][$i]['ssl_ca_path']
181 $cfg['Servers'][$i]['ssl_ca_path'] = null;
184 * List of allowable ciphers for SSL connections to the MySQL server
186 * @global string $cfg['Servers'][$i]['ssl_ciphers']
188 $cfg['Servers'][$i]['ssl_ciphers'] = null;
191 * MySQL 5.6 or later triggers the mysqlnd driver in PHP to validate the
192 * peer_name of the SSL certifcate
193 * For most self-signed certificates this is a problem. Setting this to false
194 * will disable the check and allow the connection (PHP 5.6.16 or later)
196 * @link https://bugs.php.net/68344
198 * @global string $cfg['Servers'][$i]['ssl_verify']
200 $cfg['Servers'][$i]['ssl_verify'] = true;
203 * Use compressed protocol for the MySQL connection
205 * @global boolean $cfg['Servers'][$i]['compress']
207 $cfg['Servers'][$i]['compress'] = false;
210 * MySQL control host. This permits to use a host different than the
211 * main host, for the phpMyAdmin configuration storage. If left empty,
212 * $cfg['Servers'][$i]['host'] is used instead.
214 * @global string $cfg['Servers'][$i]['controlhost']
216 $cfg['Servers'][$i]['controlhost'] = '';
219 * MySQL control port. This permits to use a port different than the
220 * main port, for the phpMyAdmin configuration storage. If left empty,
221 * $cfg['Servers'][$i]['port'] is used instead.
223 * @global string $cfg['Servers'][$i]['controlport']
225 $cfg['Servers'][$i]['controlport'] = '';
228 * MySQL control user settings (this user must have read-only
229 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
230 * used for all relational features (pmadb)
232 * @global string $cfg['Servers'][$i]['controluser']
234 $cfg['Servers'][$i]['controluser'] = '';
237 * MySQL control user settings (this user must have read-only
238 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
239 * used for all relational features (pmadb)
241 * @global string $cfg['Servers'][$i]['controlpass']
243 $cfg['Servers'][$i]['controlpass'] = '';
246 * Authentication method (valid choices: config, http, signon or cookie)
248 * @global string $cfg['Servers'][$i]['auth_type']
250 $cfg['Servers'][$i]['auth_type'] = 'cookie';
253 * HTTP Basic Auth Realm name to display (only used with 'HTTP' auth_type)
255 * @global string $cfg['Servers'][$i]['auth_http_realm']
257 $cfg['Servers'][$i]['auth_http_realm'] = '';
260 * MySQL user
262 * @global string $cfg['Servers'][$i]['user']
264 $cfg['Servers'][$i]['user'] = 'root';
267 * MySQL password (only needed with 'config' auth_type)
269 * @global string $cfg['Servers'][$i]['password']
271 $cfg['Servers'][$i]['password'] = '';
274 * Session to use for 'signon' authentication method
276 * @global string $cfg['Servers'][$i]['SignonSession']
278 $cfg['Servers'][$i]['SignonSession'] = '';
281 * Cookie params to match session to use for 'signon' authentication method
282 * It should be an associative array matching result of session_get_cookie_params() in other system
284 * @global array $cfg['Servers'][$i]['SignonCookieParams']
286 $cfg['Servers'][$i]['SignonCookieParams'] = [];
289 * PHP script to use for 'signon' authentication method
291 * @global string $cfg['Servers'][$i]['SignonScript']
293 $cfg['Servers'][$i]['SignonScript'] = '';
296 * URL where to redirect user to login for 'signon' authentication method
298 * @global string $cfg['Servers'][$i]['SignonURL']
300 $cfg['Servers'][$i]['SignonURL'] = '';
303 * URL where to redirect user after logout
305 * @global string $cfg['Servers'][$i]['LogoutURL']
307 $cfg['Servers'][$i]['LogoutURL'] = '';
310 * If set to a db-name, only this db is displayed in navigation panel
311 * It may also be an array of db-names
313 * @global string $cfg['Servers'][$i]['only_db']
315 $cfg['Servers'][$i]['only_db'] = '';
318 * Database name to be hidden from listings
320 * @global string $cfg['Servers'][$i]['hide_db']
322 $cfg['Servers'][$i]['hide_db'] = '';
325 * Verbose name for this host - leave blank to show the hostname
326 * (for HTTP authentication, all non-US-ASCII characters will be stripped)
328 * @global string $cfg['Servers'][$i]['verbose']
330 $cfg['Servers'][$i]['verbose'] = '';
333 * Database used for Relation, Bookmark and PDF Features
334 * (see sql/create_tables.sql)
335 * - leave blank for no support
336 * SUGGESTED: 'phpmyadmin'
338 * @global string $cfg['Servers'][$i]['pmadb']
340 $cfg['Servers'][$i]['pmadb'] = '';
343 * Bookmark table
344 * - leave blank for no bookmark support
345 * SUGGESTED: 'pma__bookmark'
347 * @global string $cfg['Servers'][$i]['bookmarktable']
349 $cfg['Servers'][$i]['bookmarktable'] = '';
352 * table to describe the relation between links (see doc)
353 * - leave blank for no relation-links support
354 * SUGGESTED: 'pma__relation'
356 * @global string $cfg['Servers'][$i]['relation']
358 $cfg['Servers'][$i]['relation'] = '';
361 * table to describe the display fields
362 * - leave blank for no display fields support
363 * SUGGESTED: 'pma__table_info'
365 * @global string $cfg['Servers'][$i]['table_info']
367 $cfg['Servers'][$i]['table_info'] = '';
370 * table to describe the tables position for the designer and PDF schema
371 * - leave blank for no PDF schema support
372 * SUGGESTED: 'pma__table_coords'
374 * @global string $cfg['Servers'][$i]['table_coords']
376 $cfg['Servers'][$i]['table_coords'] = '';
379 * table to describe pages of relationpdf
380 * - leave blank if you don't want to use this
381 * SUGGESTED: 'pma__pdf_pages'
383 * @global string $cfg['Servers'][$i]['pdf_pages']
385 $cfg['Servers'][$i]['pdf_pages'] = '';
388 * table to store column information
389 * - leave blank for no column comments/mime types
390 * SUGGESTED: 'pma__column_info'
392 * @global string $cfg['Servers'][$i]['column_info']
394 $cfg['Servers'][$i]['column_info'] = '';
397 * table to store SQL history
398 * - leave blank for no SQL query history
399 * SUGGESTED: 'pma__history'
401 * @global string $cfg['Servers'][$i]['history']
403 $cfg['Servers'][$i]['history'] = '';
406 * table to store recently used tables
407 * - leave blank for no "persistent" recently used tables
408 * SUGGESTED: 'pma__recent'
410 $cfg['Servers'][$i]['recent'] = '';
413 * table to store favorite tables
414 * - leave blank for no favorite tables
415 * SUGGESTED: 'pma__favorite'
417 $cfg['Servers'][$i]['favorite'] = '';
420 * table to store UI preferences for tables
421 * - leave blank for no "persistent" UI preferences
422 * SUGGESTED: 'pma__table_uiprefs'
424 $cfg['Servers'][$i]['table_uiprefs'] = '';
427 * table to store SQL tracking
428 * - leave blank for no SQL tracking
429 * SUGGESTED: 'pma__tracking'
431 * @global string $cfg['Servers'][$i]['tracking']
433 $cfg['Servers'][$i]['tracking'] = '';
436 * table to store user preferences
437 * - leave blank to disable server storage
438 * SUGGESTED: 'pma__userconfig'
440 * @global string $cfg['Servers'][$i]['userconfig']
442 $cfg['Servers'][$i]['userconfig'] = '';
445 * table to store users and their assignment to user groups
446 * - leave blank to disable configurable menus feature
447 * SUGGESTED: 'pma__users'
449 * @global string $cfg['Servers'][$i]['users']
451 $cfg['Servers'][$i]['users'] = '';
454 * table to store allowed menu items for each user group
455 * - leave blank to disable configurable menus feature
456 * SUGGESTED: 'pma__usergroups'
458 * @global string $cfg['Servers'][$i]['usergroups']
460 $cfg['Servers'][$i]['usergroups'] = '';
463 * table to store information about item hidden from navigation tree
464 * - leave blank to disable hide/show navigation items feature
465 * SUGGESTED: 'pma__navigationhiding'
467 * @global string $cfg['Servers'][$i]['navigationhiding']
469 $cfg['Servers'][$i]['navigationhiding'] = '';
472 * table to store information about saved searches from query-by-example on a db
473 * - leave blank to disable saved searches feature
474 * SUGGESTED: 'pma__savedsearches'
476 * @global string $cfg['Servers'][$i]['savedsearches']
478 $cfg['Servers'][$i]['savedsearches'] = '';
481 * table to store central list of columns per database
482 * - leave blank to disable central list of columns feature
483 * SUGGESTED: 'pma__central_columns'
485 * @global string $cfg['Servers'][$i]['central_columns']
487 $cfg['Servers'][$i]['central_columns'] = '';
490 * table to store designer settings
491 * - leave blank to disable the storage of designer settings
492 * SUGGESTED: 'pma__designer_settings'
494 * @global string $cfg['Servers'][$i]['designer_settings']
496 $cfg['Servers'][$i]['designer_settings'] = '';
499 * table to store export templates
500 * - leave blank to disable saved searches feature
501 * SUGGESTED: 'pma__export_templates'
503 * @global string $cfg['Servers'][$i]['export_templates']
505 $cfg['Servers'][$i]['export_templates'] = '';
508 * Maximum number of records saved in $cfg['Servers'][$i]['table_uiprefs'] table.
510 * In case where tables in databases is modified (e.g. dropped or renamed),
511 * table_uiprefs may contains invalid data (referring to tables which are not
512 * exist anymore).
513 * This configuration make sure that we only keep N (N = MaxTableUiprefs)
514 * newest record in table_uiprefs and automatically delete older records.
516 * @global integer $cfg['Servers'][$i]['userconfig'] = '';
518 $cfg['Servers'][$i]['MaxTableUiprefs'] = 100;
521 * Sets the time zone used by phpMyAdmin. Possible values are explained at
522 * https://dev.mysql.com/doc/refman/5.7/en/time-zone-support.html
524 * @global string $cfg['Servers'][$i]['SessionTimeZone'] = ''
526 $cfg['Servers'][$i]['SessionTimeZone'] = '';
529 * whether to allow root login
531 * @global boolean $cfg['Servers'][$i]['AllowRoot']
533 $cfg['Servers'][$i]['AllowRoot'] = true;
536 * whether to allow login of any user without a password
538 * @global boolean $cfg['Servers'][$i]['AllowNoPassword']
540 $cfg['Servers'][$i]['AllowNoPassword'] = false;
543 * Host authentication order, leave blank to not use
545 * @global string $cfg['Servers'][$i]['AllowDeny']['order']
547 $cfg['Servers'][$i]['AllowDeny']['order'] = '';
550 * Host authentication rules, leave blank for defaults
552 * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
554 $cfg['Servers'][$i]['AllowDeny']['rules'] = [];
557 * Disable use of INFORMATION_SCHEMA.
559 * @see https://github.com/phpmyadmin/phpmyadmin/issues/8970
560 * @see https://bugs.mysql.com/19588
562 * @global boolean $cfg['Servers'][$i]['DisableIS']
564 $cfg['Servers'][$i]['DisableIS'] = false;
567 * Whether the tracking mechanism creates
568 * versions for tables and views automatically.
570 * @global bool $cfg['Servers'][$i]['tracking_version_auto_create']
572 $cfg['Servers'][$i]['tracking_version_auto_create'] = false;
575 * Defines the list of statements
576 * the auto-creation uses for new versions.
578 * @global string $cfg['Servers'][$i]['tracking_default_statements']
580 $cfg['Servers'][$i]['tracking_default_statements']
581 = 'CREATE TABLE,ALTER TABLE,DROP TABLE,RENAME TABLE,CREATE INDEX,' .
582 'DROP INDEX,INSERT,UPDATE,DELETE,TRUNCATE,REPLACE,CREATE VIEW,' .
583 'ALTER VIEW,DROP VIEW,CREATE DATABASE,ALTER DATABASE,DROP DATABASE';
586 * Whether a DROP VIEW IF EXISTS statement will be added
587 * as first line to the log when creating a view.
589 * @global bool $cfg['Servers'][$i]['tracking_add_drop_view']
591 $cfg['Servers'][$i]['tracking_add_drop_view'] = true;
594 * Whether a DROP TABLE IF EXISTS statement will be added
595 * as first line to the log when creating a table.
597 * @global bool $cfg['Servers'][$i]['tracking_add_drop_table']
599 $cfg['Servers'][$i]['tracking_add_drop_table'] = true;
602 * Whether a DROP DATABASE IF EXISTS statement will be added
603 * as first line to the log when creating a database.
605 * @global bool $cfg['Servers'][$i]['tracking_add_drop_database']
607 $cfg['Servers'][$i]['tracking_add_drop_database'] = true;
610 * Default server (0 = no default server)
612 * If you have more than one server configured, you can set $cfg['ServerDefault']
613 * to any one of them to auto-connect to that server when phpMyAdmin is started,
614 * or set it to 0 to be given a list of servers without logging in
615 * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
616 * set to that server.
618 * @global integer $cfg['ServerDefault']
620 $cfg['ServerDefault'] = 1;
623 * Other core phpMyAdmin settings
627 * whether version check is active
629 * @global boolean $cfg['VersionCheck']
631 if (defined('VERSION_CHECK_DEFAULT')) {
632 $cfg['VersionCheck'] = VERSION_CHECK_DEFAULT;
633 } else {
634 $cfg['VersionCheck'] = true;
638 * The url of the proxy to be used when retrieving the information about
639 * the latest version of phpMyAdmin or error reporting. You need this if
640 * the server where phpMyAdmin is installed does not have direct access to
641 * the internet.
642 * The format is: "hostname:portnumber"
644 * @global string $cfg['ProxyUrl']
646 $cfg['ProxyUrl'] = '';
649 * The username for authenticating with the proxy. By default, no
650 * authentication is performed. If a username is supplied, Basic
651 * Authentication will be performed. No other types of authentication
652 * are currently supported.
654 * @global string $cfg['ProxyUser']
656 $cfg['ProxyUser'] = '';
659 * The password for authenticating with the proxy.
661 * @global string $cfg['ProxyPass']
663 $cfg['ProxyPass'] = '';
666 * maximum number of db's displayed in database list
668 * @global integer $cfg['MaxDbList']
670 $cfg['MaxDbList'] = 100;
673 * maximum number of tables displayed in table list
675 * @global integer $cfg['MaxTableList']
677 $cfg['MaxTableList'] = 250;
680 * whether to show hint or not
682 * @global boolean $cfg['ShowHint']
684 $cfg['ShowHint'] = true;
687 * maximum number of characters when a SQL query is displayed
689 * @global integer $cfg['MaxCharactersInDisplayedSQL']
691 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
694 * use GZIP output buffering if possible (true|false|'auto')
696 * @global string $cfg['OBGzip']
698 $cfg['OBGzip'] = 'auto';
701 * use persistent connections to MySQL database
703 * @global boolean $cfg['PersistentConnections']
705 $cfg['PersistentConnections'] = false;
708 * maximum execution time in seconds (0 for no limit)
710 * @global integer $cfg['ExecTimeLimit']
712 $cfg['ExecTimeLimit'] = 300;
715 * Path for storing session data (session_save_path PHP parameter).
717 * @global integer $cfg['SessionSavePath']
719 $cfg['SessionSavePath'] = '';
722 * maximum allocated bytes ('-1' for no limit, '0' for no change)
723 * this is a string because '16M' is a valid value; we must put here
724 * a string as the default value so that /setup accepts strings
726 * @global string $cfg['MemoryLimit']
728 $cfg['MemoryLimit'] = '-1';
731 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
733 * @global boolean $cfg['SkipLockedTables']
735 $cfg['SkipLockedTables'] = false;
738 * show SQL queries as run
740 * @global boolean $cfg['ShowSQL']
742 $cfg['ShowSQL'] = true;
745 * retain SQL input on Ajax execute
747 * @global boolean $cfg['RetainQueryEditor']
749 $cfg['RetainQueryBox'] = false;
752 * use CodeMirror syntax highlighting for editing SQL
754 * @global boolean $cfg['CodemirrorEnable']
756 $cfg['CodemirrorEnable'] = true;
759 * use the parser to find any errors in the query before executing
761 * @global boolean $cfg['LintEnable']
763 $cfg['LintEnable'] = true;
766 * show a 'Drop database' link to normal users
768 * @global boolean $cfg['AllowUserDropDatabase']
770 $cfg['AllowUserDropDatabase'] = false;
773 * confirm some commands that can result in loss of data
775 * @global boolean $cfg['Confirm']
777 $cfg['Confirm'] = true;
780 * recall previous login in cookie authentication mode or not
782 * @global boolean $cfg['LoginCookieRecall']
784 $cfg['LoginCookieRecall'] = true;
787 * validity of cookie login (in seconds; 1440 matches php.ini's
788 * session.gc_maxlifetime)
790 * @global integer $cfg['LoginCookieValidity']
792 $cfg['LoginCookieValidity'] = 1440;
795 * how long login cookie should be stored (in seconds)
797 * @global integer $cfg['LoginCookieStore']
799 $cfg['LoginCookieStore'] = 0;
802 * whether to delete all login cookies on logout
804 * @global boolean $cfg['LoginCookieDeleteAll']
806 $cfg['LoginCookieDeleteAll'] = true;
809 * whether to enable the "database search" feature or not
811 * @global boolean $cfg['UseDbSearch']
813 $cfg['UseDbSearch'] = true;
816 * if set to true, PMA continues computing multiple-statement queries
817 * even if one of the queries failed
819 * @global boolean $cfg['IgnoreMultiSubmitErrors']
821 $cfg['IgnoreMultiSubmitErrors'] = false;
824 * allow login to any user entered server in cookie based authentication
826 * @global boolean $cfg['AllowArbitraryServer']
828 $cfg['AllowArbitraryServer'] = false;
831 * restrict by IP (with regular expression) the MySQL servers the user can enter
832 * when $cfg['AllowArbitraryServer'] = true
834 * @global string $cfg['ArbitraryServerRegexp']
836 $cfg['ArbitraryServerRegexp'] = '';
839 * if reCaptcha is enabled it needs public key to connect with the service
841 * @global string $cfg['CaptchaLoginPublicKey']
843 $cfg['CaptchaLoginPublicKey'] = '';
846 * if reCaptcha is enabled it needs private key to connect with the service
848 * @global string $cfg['CaptchaLoginPrivateKey']
850 $cfg['CaptchaLoginPrivateKey'] = '';
853 * if reCaptcha is enabled may need an URL for site verify
855 * @global string $cfg['CaptchaSiteVerifyURL']
857 $cfg['CaptchaSiteVerifyURL'] = '';
860 * Enable drag and drop import
862 * @see feature request : https://github.com/phpmyadmin/phpmyadmin/issues/13155
864 * @global bool $cfg['enable_drag_drop_import']
866 $cfg['enable_drag_drop_import'] = true;
868 /*******************************************************************************
869 * Navigation panel setup
873 * In the navigation panel, replaces the database tree with a selector
875 * @global boolean $cfg['ShowDatabasesNavigationAsTree']
877 $cfg['ShowDatabasesNavigationAsTree'] = true;
880 * maximum number of first level databases displayed in navigation panel
882 * @global integer $cfg['FirstLevelNavigationItems']
884 $cfg['FirstLevelNavigationItems'] = 100;
887 * maximum number of items displayed in navigation panel
889 * @global integer $cfg['MaxNavigationItems']
891 $cfg['MaxNavigationItems'] = 50;
894 * turn the select-based light menu into a tree
896 * @global boolean $cfg['NavigationTreeEnableGrouping']
898 $cfg['NavigationTreeEnableGrouping'] = true;
901 * the separator to sub-tree the select-based light menu tree
903 * @global string $cfg['NavigationTreeDbSeparator']
905 $cfg['NavigationTreeDbSeparator'] = '_';
908 * Which string will be used to generate table prefixes
909 * to split/nest tables into multiple categories
911 * @global string $cfg['NavigationTreeTableSeparator']
913 $cfg['NavigationTreeTableSeparator'] = '__';
916 * How many sublevels should be displayed when splitting up tables
917 * by the above Separator
919 * @global integer $cfg['NavigationTreeTableLevel']
921 $cfg['NavigationTreeTableLevel'] = 1;
924 * link with main panel by highlighting the current db/table
926 * @global boolean $cfg['NavigationLinkWithMainPanel']
928 $cfg['NavigationLinkWithMainPanel'] = true;
931 * display logo at top of navigation panel
933 * @global boolean $cfg['NavigationDisplayLogo']
935 $cfg['NavigationDisplayLogo'] = true;
938 * where should logo link point to (can also contain an external URL)
940 * @global string $cfg['NavigationLogoLink']
942 $cfg['NavigationLogoLink'] = 'index.php';
945 * whether to open the linked page in the main window ('main') or
946 * in a new window ('new')
948 * @global string $cfg['NavigationLogoLinkWindow']
950 $cfg['NavigationLogoLinkWindow'] = 'main';
953 * number of recently used tables displayed in the navigation panel
955 * @global integer $cfg['NumRecentTables']
957 $cfg['NumRecentTables'] = 10;
960 * number of favorite tables displayed in the navigation panel
962 * @global integer $cfg['NumFavoriteTables']
964 $cfg['NumFavoriteTables'] = 10;
967 * display a JavaScript table filter in the navigation panel
968 * when more then x tables are present
970 * @global boolean $cfg['NavigationTreeDisplayItemFilterMinimum']
972 $cfg['NavigationTreeDisplayItemFilterMinimum'] = 30;
975 * display server choice at top of navigation panel
977 * @global boolean $cfg['NavigationDisplayServers']
979 $cfg['NavigationDisplayServers'] = true;
982 * server choice as links
984 * @global boolean $cfg['DisplayServersList']
986 $cfg['DisplayServersList'] = false;
989 * display a JavaScript database filter in the navigation panel
990 * when more then x databases are present
992 * @global boolean $cfg['NavigationTreeDisplayDbFilterMinimum']
994 $cfg['NavigationTreeDisplayDbFilterMinimum'] = 30;
997 * target of the navigation panel quick access icon
999 * Possible values:
1000 * 'structure' = fields list
1001 * 'sql' = SQL form
1002 * 'search' = search page
1003 * 'insert' = insert row page
1004 * 'browse' = browse page
1006 * @global string $cfg['NavigationTreeDefaultTabTable']
1008 $cfg['NavigationTreeDefaultTabTable'] = 'structure';
1011 * target of the navigation panel quick second access icon
1013 * Possible values:
1014 * 'structure' = fields list
1015 * 'sql' = SQL form
1016 * 'search' = search page
1017 * 'insert' = insert row page
1018 * 'browse' = browse page
1019 * '' = no link
1021 * @global string $cfg['NavigationTreeDefaultTabTable2']
1023 $cfg['NavigationTreeDefaultTabTable2'] = '';
1026 * Enables the possibility of navigation tree expansion
1028 * @global boolean $cfg['NavigationTreeEnableExpansion']
1030 $cfg['NavigationTreeEnableExpansion'] = true;
1033 * Show tables in navigation panel
1035 * @global boolean $cfg['NavigationTreeShowTables']
1037 $cfg['NavigationTreeShowTables'] = true;
1040 * Show views in navigation panel
1042 * @global boolean $cfg['NavigationTreeShowViews']
1044 $cfg['NavigationTreeShowViews'] = true;
1047 * Show functions in navigation panel
1049 * @global boolean $cfg['NavigationTreeShowFunctions']
1051 $cfg['NavigationTreeShowFunctions'] = true;
1054 * Show procedures in navigation panel
1056 * @global boolean $cfg['NavigationTreeShowProcedures']
1058 $cfg['NavigationTreeShowProcedures'] = true;
1061 * Show events in navigation panel
1063 * @global boolean $cfg['NavigationTreeShowEvents']
1065 $cfg['NavigationTreeShowEvents'] = true;
1068 * Width of navigation panel
1070 * @global integer $cfg['NavigationWidth']
1072 $cfg['NavigationWidth'] = 240;
1075 * Automatically expands single database in navigation panel
1077 * @global boolean $cfg['NavigationAutoexpandSingleDb']
1079 $cfg['NavigationTreeAutoexpandSingleDb'] = true;
1081 /*******************************************************************************
1082 * In the main panel, at startup...
1086 * allow to display statistics and space usage in the pages about database
1087 * details and table properties
1089 * @global boolean $cfg['ShowStats']
1091 $cfg['ShowStats'] = true;
1094 * show PHP info link
1096 * @global boolean $cfg['ShowPhpInfo']
1098 $cfg['ShowPhpInfo'] = false;
1101 * show MySQL server and web server information
1103 * @global boolean $cfg['ShowServerInfo']
1105 $cfg['ShowServerInfo'] = true;
1108 * show change password link
1110 * @global boolean $cfg['ShowChgPassword']
1112 $cfg['ShowChgPassword'] = true;
1115 * show create database form
1117 * @global boolean $cfg['ShowCreateDb']
1119 $cfg['ShowCreateDb'] = true;
1122 /*******************************************************************************
1123 * Database structure
1126 /** show charset column in database structure (true|false)?
1128 * @global boolean $cfg['ShowDbStructureCharset']
1130 $cfg['ShowDbStructureCharset'] = false;
1133 * show comment column in database structure (true|false)?
1135 * @global boolean $cfg['ShowDbStructureComment']
1137 $cfg['ShowDbStructureComment'] = false;
1140 * show creation timestamp column in database structure (true|false)?
1142 * @global boolean $cfg['ShowDbStructureCreation']
1144 $cfg['ShowDbStructureCreation'] = false;
1147 * show last update timestamp column in database structure (true|false)?
1149 * @global boolean $cfg['ShowDbStructureLastUpdate']
1151 $cfg['ShowDbStructureLastUpdate'] = false;
1154 * show last check timestamp column in database structure (true|false)?
1156 * @global boolean $cfg['ShowDbStructureLastCheck']
1158 $cfg['ShowDbStructureLastCheck'] = false;
1161 * allow hide action columns to drop down menu in database structure (true|false)?
1163 * @global boolean $cfg['HideStructureActions']
1165 $cfg['HideStructureActions'] = true;
1168 * Show column comments in table structure view (true|false)?
1170 * @global boolean $cfg['ShowColumnComments']
1172 $cfg['ShowColumnComments'] = true;
1175 /*******************************************************************************
1176 * In browse mode...
1180 * Use icons instead of text for the navigation bar buttons (table browse)
1181 * ('text'|'icons'|'both')
1183 * @global string $cfg['TableNavigationLinksMode']
1185 $cfg['TableNavigationLinksMode'] = 'icons';
1188 * Defines whether a user should be displayed a "show all (records)"
1189 * button in browse mode or not.
1191 * @global boolean $cfg['ShowAll']
1193 $cfg['ShowAll'] = false;
1196 * Number of rows displayed when browsing a result set. If the result
1197 * set contains more rows, "Previous" and "Next".
1198 * Possible values: 25,50,100,250,500
1200 * @global integer $cfg['MaxRows']
1202 $cfg['MaxRows'] = 25;
1205 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
1206 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
1207 * ascending order else-)
1209 * @global string $cfg['Order']
1211 $cfg['Order'] = 'SMART';
1214 * grid editing: save edited cell(s) in browse-mode at once
1216 * @global boolean $cfg['SaveCellsAtOnce']
1218 $cfg['SaveCellsAtOnce'] = false;
1221 * grid editing: which action triggers it, or completely disable the feature
1223 * Possible values:
1224 * 'click'
1225 * 'double-click'
1226 * 'disabled'
1228 * @global string $cfg['GridEditing']
1230 $cfg['GridEditing'] = 'double-click';
1233 * Options > Relational display
1235 * Possible values:
1236 * 'K' for key value
1237 * 'D' for display column
1239 * @global string $cfg['RelationalDisplay']
1241 $cfg['RelationalDisplay'] = 'K';
1244 /*******************************************************************************
1245 * In edit mode...
1249 * disallow editing of binary fields
1250 * valid values are:
1251 * false allow editing
1252 * 'blob' allow editing except for BLOB fields
1253 * 'noblob' disallow editing except for BLOB fields
1254 * 'all' disallow editing
1256 * @global string $cfg['ProtectBinary']
1258 $cfg['ProtectBinary'] = 'blob';
1261 * Display the function fields in edit/insert mode
1263 * @global boolean $cfg['ShowFunctionFields']
1265 $cfg['ShowFunctionFields'] = true;
1268 * Display the type fields in edit/insert mode
1270 * @global boolean $cfg['ShowFieldTypesInDataEditView']
1272 $cfg['ShowFieldTypesInDataEditView'] = true;
1275 * Which editor should be used for CHAR/VARCHAR fields:
1276 * input - allows limiting of input length
1277 * textarea - allows newlines in fields
1279 * @global string $cfg['CharEditing']
1281 $cfg['CharEditing'] = 'input';
1284 * The minimum size for character input fields
1286 * @global integer $cfg['MinSizeForInputField']
1288 $cfg['MinSizeForInputField'] = 4;
1291 * The maximum size for character input fields
1293 * @global integer $cfg['MinSizeForInputField']
1295 $cfg['MaxSizeForInputField'] = 60;
1298 * How many rows can be inserted at one time
1300 * @global integer $cfg['InsertRows']
1302 $cfg['InsertRows'] = 2;
1305 * Sort order for items in a foreign-key drop-down list.
1306 * 'content' is the referenced data, 'id' is the key value.
1308 * @global array $cfg['ForeignKeyDropdownOrder']
1310 $cfg['ForeignKeyDropdownOrder'] = [
1311 'content-id',
1312 'id-content',
1316 * A drop-down list will be used if fewer items are present
1318 * @global integer $cfg['ForeignKeyMaxLimit']
1320 $cfg['ForeignKeyMaxLimit'] = 100;
1323 * Whether to disable foreign key checks while importing
1325 * @global boolean $cfg['DefaultForeignKeyChecks']
1327 $cfg['DefaultForeignKeyChecks'] = 'default';
1329 /*******************************************************************************
1330 * For the export features...
1334 * Allow for the use of zip compression (requires zip support to be enabled)
1336 * @global boolean $cfg['ZipDump']
1338 $cfg['ZipDump'] = true;
1341 * Allow for the use of gzip compression (requires zlib)
1343 * @global boolean $cfg['GZipDump']
1345 $cfg['GZipDump'] = true;
1348 * Allow for the use of bzip2 decompression (requires bz2 extension)
1350 * @global boolean $cfg['BZipDump']
1352 $cfg['BZipDump'] = true;
1355 * Will compress gzip exports on the fly without the need for much memory.
1356 * If you encounter problems with created gzip files disable this feature.
1358 * @global boolean $cfg['CompressOnFly']
1360 $cfg['CompressOnFly'] = true;
1363 /*******************************************************************************
1364 * Tabs display settings
1368 * How to display the menu tabs ('icons'|'text'|'both')
1370 * @global boolean $cfg['TabsMode']
1372 $cfg['TabsMode'] = 'both';
1375 * How to display various action links ('icons'|'text'|'both')
1377 * @global boolean $cfg['ActionLinksMode']
1379 $cfg['ActionLinksMode'] = 'both';
1382 * How many columns should be used for table display of a database?
1383 * (a value larger than 1 results in some information being hidden)
1385 * @global integer $cfg['PropertiesNumColumns']
1387 $cfg['PropertiesNumColumns'] = 1;
1390 * Possible values:
1391 * 'welcome' = the welcome page
1392 * (recommended for multiuser setups)
1393 * 'databases' = list of databases
1394 * 'status' = runtime information
1395 * 'variables' = MySQL server variables
1396 * 'privileges' = user management
1398 * @global string $cfg['DefaultTabServer']
1400 $cfg['DefaultTabServer'] = 'welcome';
1403 * Possible values:
1404 * 'structure' = tables list
1405 * 'sql' = SQL form
1406 * 'search' = search query
1407 * 'operations' = operations on database
1409 * @global string $cfg['DefaultTabDatabase']
1411 $cfg['DefaultTabDatabase'] = 'structure';
1414 * Possible values:
1415 * 'structure' = fields list
1416 * 'sql' = SQL form
1417 * 'search' = search page
1418 * 'insert' = insert row page
1419 * 'browse' = browse page
1421 * @global string $cfg['DefaultTabTable']
1423 $cfg['DefaultTabTable'] = 'browse';
1426 * Whether to display image or text or both image and text in table row
1427 * action segment. Value can be either of ``image``, ``text`` or ``both``.
1429 $cfg['RowActionType'] = 'both';
1431 /*******************************************************************************
1432 * Export defaults
1434 $cfg['Export'] = [];
1437 * codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xml/yaml
1439 * @global string $cfg['Export']['format']
1441 $cfg['Export']['format'] = 'sql';
1444 * quick/custom/custom-no-form
1446 * @global string $cfg['Export']['format']
1448 $cfg['Export']['method'] = 'quick';
1451 * none/zip/gzip
1453 * @global string $cfg['Export']['compression']
1455 $cfg['Export']['compression'] = 'none';
1458 * Whether to LOCK TABLES before exporting
1460 * @global boolean $cfg['Export']['lock_tables']
1462 $cfg['Export']['lock_tables'] = false;
1465 * Whether to export databases/tables as separate files
1467 * @global boolean $cfg['Export']['as_separate_files']
1469 $cfg['Export']['as_separate_files'] = false;
1472 * @global boolean $cfg['Export']['asfile']
1474 $cfg['Export']['asfile'] = true;
1477 * @global string $cfg['Export']['charset']
1479 $cfg['Export']['charset'] = '';
1482 * @global boolean $cfg['Export']['onserver']
1484 $cfg['Export']['onserver'] = false;
1487 * @global boolean $cfg['Export']['onserver_overwrite']
1489 $cfg['Export']['onserver_overwrite'] = false;
1492 * @global boolean $cfg['Export']['quick_export_onserver']
1494 $cfg['Export']['quick_export_onserver'] = false;
1497 * @global boolean $cfg['Export']['quick_export_onserver_overwrite']
1499 $cfg['Export']['quick_export_onserver_overwrite'] = false;
1502 * @global boolean $cfg['Export']['remember_file_template']
1504 $cfg['Export']['remember_file_template'] = true;
1507 * @global string $cfg['Export']['file_template_table']
1509 $cfg['Export']['file_template_table'] = '@TABLE@';
1512 * @global string $cfg['Export']['file_template_database']
1514 $cfg['Export']['file_template_database'] = '@DATABASE@';
1517 * @global string $cfg['Export']['file_template_server']
1519 $cfg['Export']['file_template_server'] = '@SERVER@';
1522 * @global string $cfg['Export']['codegen_structure_or_data']
1524 $cfg['Export']['codegen_structure_or_data'] = 'data';
1527 * @global $cfg['Export']['codegen_format']
1529 $cfg['Export']['codegen_format'] = 0;
1532 * @global boolean $cfg['Export']['ods_columns']
1534 $cfg['Export']['ods_columns'] = false;
1537 * @global string $cfg['Export']['ods_null']
1539 $cfg['Export']['ods_null'] = 'NULL';
1542 * @global string $cfg['Export']['odt_structure_or_data']
1544 $cfg['Export']['odt_structure_or_data'] = 'structure_and_data';
1547 * @global boolean $cfg['Export']['odt_columns']
1549 $cfg['Export']['odt_columns'] = true;
1552 * @global boolean $cfg['Export']['odt_relation']
1554 $cfg['Export']['odt_relation'] = true;
1557 * @global boolean $cfg['Export']['odt_comments']
1559 $cfg['Export']['odt_comments'] = true;
1562 * @global boolean $cfg['Export']['odt_mime']
1564 $cfg['Export']['odt_mime'] = true;
1567 * @global string $cfg['Export']['odt_null']
1569 $cfg['Export']['odt_null'] = 'NULL';
1572 * @global boolean $cfg['Export']['htmlword_structure_or_data']
1574 $cfg['Export']['htmlword_structure_or_data'] = 'structure_and_data';
1577 * @global boolean $cfg['Export']['htmlword_columns']
1579 $cfg['Export']['htmlword_columns'] = false;
1582 * @global string $cfg['Export']['htmlword_null']
1584 $cfg['Export']['htmlword_null'] = 'NULL';
1587 * @global string $cfg['Export']['texytext_structure_or_data']
1589 $cfg['Export']['texytext_structure_or_data'] = 'structure_and_data';
1592 * @global boolean $cfg['Export']['texytext_columns']
1594 $cfg['Export']['texytext_columns'] = false;
1597 * @global string $cfg['Export']['texytext_null']
1599 $cfg['Export']['texytext_null'] = 'NULL';
1602 * @global boolean $cfg['Export']['csv_columns']
1604 $cfg['Export']['csv_columns'] = false;
1607 * @global string $cfg['Export']['csv_structure_or_data']
1609 $cfg['Export']['csv_structure_or_data'] = 'data';
1612 * @global string $cfg['Export']['csv_null']
1614 $cfg['Export']['csv_null'] = 'NULL';
1617 * @global string $cfg['Export']['csv_separator']
1619 $cfg['Export']['csv_separator'] = ',';
1622 * @global string $cfg['Export']['csv_enclosed']
1624 $cfg['Export']['csv_enclosed'] = '"';
1627 * @global string $cfg['Export']['csv_escaped']
1629 $cfg['Export']['csv_escaped'] = '"';
1632 * @global string $cfg['Export']['csv_terminated']
1634 $cfg['Export']['csv_terminated'] = 'AUTO';
1637 * @global string $cfg['Export']['csv_removeCRLF']
1639 $cfg['Export']['csv_removeCRLF'] = false;
1642 * @global boolean $cfg['Export']['excel_columns']
1644 $cfg['Export']['excel_columns'] = true;
1647 * @global string $cfg['Export']['excel_null']
1649 $cfg['Export']['excel_null'] = 'NULL';
1652 * win/mac
1654 * @global string $cfg['Export']['excel_edition']
1656 $cfg['Export']['excel_edition'] = 'win';
1659 * @global string $cfg['Export']['excel_removeCRLF']
1661 $cfg['Export']['excel_removeCRLF'] = false;
1664 * @global string $cfg['Export']['excel_structure_or_data']
1666 $cfg['Export']['excel_structure_or_data'] = 'data';
1669 * @global string $cfg['Export']['latex_structure_or_data']
1671 $cfg['Export']['latex_structure_or_data'] = 'structure_and_data';
1674 * @global boolean $cfg['Export']['latex_columns']
1676 $cfg['Export']['latex_columns'] = true;
1679 * @global boolean $cfg['Export']['latex_relation']
1681 $cfg['Export']['latex_relation'] = true;
1684 * @global boolean $cfg['Export']['latex_comments']
1686 $cfg['Export']['latex_comments'] = true;
1689 * @global boolean $cfg['Export']['latex_mime']
1691 $cfg['Export']['latex_mime'] = true;
1694 * @global string $cfg['Export']['latex_null']
1696 $cfg['Export']['latex_null'] = '\textit{NULL}';
1699 * @global boolean $cfg['Export']['latex_caption']
1701 $cfg['Export']['latex_caption'] = true;
1704 * @global string $cfg['Export']['latex_structure_caption']
1706 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1709 * @global string $cfg['Export']['latex_structure_continued_caption']
1711 $cfg['Export']['latex_structure_continued_caption']
1712 = 'strLatexStructure strLatexContinued';
1715 * @global string $cfg['Export']['latex_data_caption']
1717 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1720 * @global string $cfg['Export']['latex_data_continued_caption']
1722 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1725 * @global string $cfg['Export']['latex_data_label']
1727 $cfg['Export']['latex_data_label'] = 'tab:@TABLE@-data';
1730 * @global string $cfg['Export']['latex_structure_label']
1732 $cfg['Export']['latex_structure_label'] = 'tab:@TABLE@-structure';
1735 * @global string $cfg['Export']['mediawiki_structure_or_data']
1737 $cfg['Export']['mediawiki_structure_or_data'] = 'data';
1740 * @global boolean $cfg['Export']['mediawiki_caption']
1742 $cfg['Export']['mediawiki_caption'] = true;
1745 * @global boolean $cfg['Export']['mediawiki_headers']
1747 $cfg['Export']['mediawiki_headers'] = true;
1750 * @global string $cfg['Export']['ods_structure_or_data']
1752 $cfg['Export']['ods_structure_or_data'] = 'data';
1755 * @global string $cfg['Export']['pdf_structure_or_data']
1757 $cfg['Export']['pdf_structure_or_data'] = 'data';
1760 * @global string $cfg['Export']['phparray_structure_or_data']
1762 $cfg['Export']['phparray_structure_or_data'] = 'data';
1765 * @global string $cfg['Export']['json_structure_or_data']
1767 $cfg['Export']['json_structure_or_data'] = 'data';
1770 * Export functions
1772 * @global string $cfg['Export']['json_pretty_print']
1774 $cfg['Export']['json_pretty_print'] = false;
1777 * Export functions
1779 * @global string $cfg['Export']['json_unicode']
1781 $cfg['Export']['json_unicode'] = true;
1784 * @global string $cfg['Export']['sql_structure_or_data']
1786 $cfg['Export']['sql_structure_or_data'] = 'structure_and_data';
1789 * @global string $cfg['Export']['sql_compatibility']
1791 $cfg['Export']['sql_compatibility'] = 'NONE';
1794 * Whether to include comments in SQL export.
1796 * @global string $cfg['Export']['sql_include_comments']
1798 $cfg['Export']['sql_include_comments'] = true;
1801 * @global boolean $cfg['Export']['sql_disable_fk']
1803 $cfg['Export']['sql_disable_fk'] = false;
1806 * @global boolean $cfg['Export']['sql_views_as_tables']
1808 $cfg['Export']['sql_views_as_tables'] = false;
1811 * @global boolean $cfg['Export']['sql_metadata']
1813 $cfg['Export']['sql_metadata'] = false;
1816 * @global boolean $cfg['Export']['sql_use_transaction']
1818 $cfg['Export']['sql_use_transaction'] = true;
1821 * @global boolean $cfg['Export']['sql_create_database']
1823 $cfg['Export']['sql_create_database'] = false;
1826 * @global boolean $cfg['Export']['sql_drop_database']
1828 $cfg['Export']['sql_drop_database'] = false;
1831 * @global boolean $cfg['Export']['sql_drop_table']
1833 $cfg['Export']['sql_drop_table'] = false;
1836 * true by default for correct behavior when dealing with exporting
1837 * of VIEWs and the stand-in table
1839 * @global boolean $cfg['Export']['sql_if_not_exists']
1841 $cfg['Export']['sql_if_not_exists'] = false;
1844 * @global boolean $cfg['Export']['sql_view_current_user']
1846 $cfg['Export']['sql_view_current_user'] = false;
1849 * @global boolean $cfg['Export']['sql_or_replace']
1851 $cfg['Export']['sql_or_replace_view'] = false;
1854 * @global boolean $cfg['Export']['sql_procedure_function']
1856 $cfg['Export']['sql_procedure_function'] = true;
1859 * @global boolean $cfg['Export']['sql_create_table']
1861 $cfg['Export']['sql_create_table'] = true;
1864 * @global boolean $cfg['Export']['sql_create_view']
1866 $cfg['Export']['sql_create_view'] = true;
1869 * @global boolean $cfg['Export']['sql_create_trigger']
1871 $cfg['Export']['sql_create_trigger'] = true;
1874 * @global boolean $cfg['Export']['sql_auto_increment']
1876 $cfg['Export']['sql_auto_increment'] = true;
1879 * @global boolean $cfg['Export']['sql_backquotes']
1881 $cfg['Export']['sql_backquotes'] = true;
1884 * @global boolean $cfg['Export']['sql_dates']
1886 $cfg['Export']['sql_dates'] = false;
1889 * @global boolean $cfg['Export']['sql_relation']
1891 $cfg['Export']['sql_relation'] = false;
1894 * @global boolean $cfg['Export']['sql_truncate']
1896 $cfg['Export']['sql_truncate'] = false;
1899 * @global boolean $cfg['Export']['sql_delayed']
1901 $cfg['Export']['sql_delayed'] = false;
1904 * @global boolean $cfg['Export']['sql_ignore']
1906 $cfg['Export']['sql_ignore'] = false;
1909 * Export time in UTC.
1911 * @global boolean $cfg['Export']['sql_utc_time']
1913 $cfg['Export']['sql_utc_time'] = true;
1916 * @global boolean $cfg['Export']['sql_hex_for_binary']
1918 $cfg['Export']['sql_hex_for_binary'] = true;
1921 * insert/update/replace
1923 * @global string $cfg['Export']['sql_type']
1925 $cfg['Export']['sql_type'] = 'INSERT';
1928 * @global integer $cfg['Export']['sql_max_query_size']
1930 $cfg['Export']['sql_max_query_size'] = 50000;
1933 * @global boolean $cfg['Export']['sql_mime']
1935 $cfg['Export']['sql_mime'] = false;
1938 * \n is replaced by new line
1940 * @global string $cfg['Export']['sql_header_comment']
1942 $cfg['Export']['sql_header_comment'] = '';
1945 * Whether to use complete inserts, extended inserts, both, or neither
1947 * @global string $cfg['Export']['sql_insert_syntax']
1949 $cfg['Export']['sql_insert_syntax'] = 'both';
1952 * @global string $cfg['Export']['pdf_report_title']
1954 $cfg['Export']['pdf_report_title'] = '';
1957 * @global string $cfg['Export']['xml_structure_or_data']
1959 $cfg['Export']['xml_structure_or_data'] = 'data';
1962 * Export schema for each structure
1964 * @global string $cfg['Export']['xml_export_struc']
1966 $cfg['Export']['xml_export_struc'] = true;
1969 * Export events
1971 * @global string $cfg['Export']['xml_export_events']
1973 $cfg['Export']['xml_export_events'] = true;
1976 * Export functions
1978 * @global string $cfg['Export']['xml_export_functions']
1980 $cfg['Export']['xml_export_functions'] = true;
1983 * Export procedures
1985 * @global string $cfg['Export']['xml_export_procedures']
1987 $cfg['Export']['xml_export_procedures'] = true;
1990 * Export schema for each table
1992 * @global string $cfg['Export']['xml_export_tables']
1994 $cfg['Export']['xml_export_tables'] = true;
1997 * Export triggers
1999 * @global string $cfg['Export']['xml_export_triggers']
2001 $cfg['Export']['xml_export_triggers'] = true;
2004 * Export views
2006 * @global string $cfg['Export']['xml_export_views']
2008 $cfg['Export']['xml_export_views'] = true;
2011 * Export contents data
2013 * @global string $cfg['Export']['xml_export_contents']
2015 $cfg['Export']['xml_export_contents'] = true;
2018 * @global string $cfg['Export']['yaml_structure_or_data']
2020 $cfg['Export']['yaml_structure_or_data'] = 'data';
2022 /*******************************************************************************
2023 * Import defaults
2025 $cfg['Import'] = [];
2028 * @global string $cfg['Import']['format']
2030 $cfg['Import']['format'] = 'sql';
2033 * Default charset for import.
2035 * @global string $cfg['Import']['charset']
2037 $cfg['Import']['charset'] = '';
2040 * @global boolean $cfg['Import']['allow_interrupt']
2042 $cfg['Import']['allow_interrupt'] = true;
2045 * @global integer $cfg['Import']['skip_queries']
2047 $cfg['Import']['skip_queries'] = 0;
2050 * @global string $cfg['Import']['sql_compatibility']
2052 $cfg['Import']['sql_compatibility'] = 'NONE';
2055 * @global string $cfg['Import']['sql_no_auto_value_on_zero']
2057 $cfg['Import']['sql_no_auto_value_on_zero'] = true;
2060 * @global string $cfg['Import']['sql_read_as_multibytes']
2062 $cfg['Import']['sql_read_as_multibytes'] = false;
2065 * @global boolean $cfg['Import']['csv_replace']
2067 $cfg['Import']['csv_replace'] = false;
2070 * @global boolean $cfg['Import']['csv_ignore']
2072 $cfg['Import']['csv_ignore'] = false;
2075 * @global string $cfg['Import']['csv_terminated']
2077 $cfg['Import']['csv_terminated'] = ',';
2080 * @global string $cfg['Import']['csv_enclosed']
2082 $cfg['Import']['csv_enclosed'] = '"';
2085 * @global string $cfg['Import']['csv_escaped']
2087 $cfg['Import']['csv_escaped'] = '"';
2090 * @global string $cfg['Import']['csv_new_line']
2092 $cfg['Import']['csv_new_line'] = 'auto';
2095 * @global string $cfg['Import']['csv_columns']
2097 $cfg['Import']['csv_columns'] = '';
2100 * @global string $cfg['Import']['csv_col_names']
2102 $cfg['Import']['csv_col_names'] = false;
2105 * @global boolean $cfg['Import']['ldi_replace']
2107 $cfg['Import']['ldi_replace'] = false;
2110 * @global boolean $cfg['Import']['ldi_ignore']
2112 $cfg['Import']['ldi_ignore'] = false;
2115 * @global string $cfg['Import']['ldi_terminated']
2117 $cfg['Import']['ldi_terminated'] = ';';
2120 * @global string $cfg['Import']['ldi_enclosed']
2122 $cfg['Import']['ldi_enclosed'] = '"';
2125 * @global string $cfg['Import']['ldi_escaped']
2127 $cfg['Import']['ldi_escaped'] = '\\';
2130 * @global string $cfg['Import']['ldi_new_line']
2132 $cfg['Import']['ldi_new_line'] = 'auto';
2135 * @global string $cfg['Import']['ldi_columns']
2137 $cfg['Import']['ldi_columns'] = '';
2140 * 'auto' for auto-detection, true or false for forcing
2142 * @global string $cfg['Import']['ldi_local_option']
2144 $cfg['Import']['ldi_local_option'] = 'auto';
2147 * @global string $cfg['Import']['ods_col_names']
2149 $cfg['Import']['ods_col_names'] = false;
2152 * @global string $cfg['Import']['ods_empty_rows']
2154 $cfg['Import']['ods_empty_rows'] = true;
2157 * @global string $cfg['Import']['ods_recognize_percentages']
2159 $cfg['Import']['ods_recognize_percentages'] = true;
2162 * @global string $cfg['Import']['ods_recognize_currency']
2164 $cfg['Import']['ods_recognize_currency'] = true;
2166 /*******************************************************************************
2167 * Schema export defaults
2169 $cfg['Schema'] = [];
2172 * pdf/eps/dia/svg
2174 * @global string $cfg['Schema']['format']
2176 $cfg['Schema']['format'] = 'pdf';
2179 * @global string $cfg['Schema']['pdf_show_color']
2181 $cfg['Schema']['pdf_show_color'] = true;
2184 * @global string $cfg['Schema']['pdf_show_keys']
2186 $cfg['Schema']['pdf_show_keys'] = false;
2189 * @global string $cfg['Schema']['pdf_all_tables_same_width']
2191 $cfg['Schema']['pdf_all_tables_same_width'] = false;
2194 * L/P
2196 * @global string $cfg['Schema']['pdf_orientation']
2198 $cfg['Schema']['pdf_orientation'] = 'L';
2201 * @global string $cfg['Schema']['pdf_paper']
2203 $cfg['Schema']['pdf_paper'] = 'A4';
2206 * @global string $cfg['Schema']['pdf_show_grid']
2208 $cfg['Schema']['pdf_show_grid'] = false;
2211 * @global string $cfg['Schema']['pdf_with_doc']
2213 $cfg['Schema']['pdf_with_doc'] = true;
2216 * @global string $cfg['Schema']['pdf_table_order']
2218 $cfg['Schema']['pdf_table_order'] = '';
2221 * @global string $cfg['Schema']['dia_show_color']
2223 $cfg['Schema']['dia_show_color'] = true;
2226 * @global string $cfg['Schema']['dia_show_keys']
2228 $cfg['Schema']['dia_show_keys'] = false;
2231 * L/P
2233 * @global string $cfg['Schema']['dia_orientation']
2235 $cfg['Schema']['dia_orientation'] = 'L';
2238 * @global string $cfg['Schema']['dia_paper']
2240 $cfg['Schema']['dia_paper'] = 'A4';
2243 * @global string $cfg['Schema']['eps_show_color']
2245 $cfg['Schema']['eps_show_color'] = true;
2248 * @global string $cfg['Schema']['eps_show_keys']
2250 $cfg['Schema']['eps_show_keys'] = false;
2253 * @global string $cfg['Schema']['eps_all_tables_same_width']
2255 $cfg['Schema']['eps_all_tables_same_width'] = false;
2258 * L/P
2260 * @global string $cfg['Schema']['eps_orientation']
2262 $cfg['Schema']['eps_orientation'] = 'L';
2265 * @global string $cfg['Schema']['svg_show_color']
2267 $cfg['Schema']['svg_show_color'] = true;
2270 * @global string $cfg['Schema']['svg_show_keys']
2272 $cfg['Schema']['svg_show_keys'] = false;
2275 * @global string $cfg['Schema']['svg_all_tables_same_width']
2277 $cfg['Schema']['svg_all_tables_same_width'] = false;
2279 /*******************************************************************************
2280 * PDF options
2284 * @global array $cfg['PDFPageSizes']
2286 $cfg['PDFPageSizes'] = [
2287 'A3',
2288 'A4',
2289 'A5',
2290 'letter',
2291 'legal',
2295 * @global string $cfg['PDFDefaultPageSize']
2297 $cfg['PDFDefaultPageSize'] = 'A4';
2300 /*******************************************************************************
2301 * Language and character set conversion settings
2305 * Default language to use, if not browser-defined or user-defined
2307 * @global string $cfg['DefaultLang']
2309 $cfg['DefaultLang'] = 'en';
2312 * Default connection collation
2314 * @global string $cfg['DefaultConnectionCollation']
2316 $cfg['DefaultConnectionCollation'] = 'utf8mb4_unicode_ci';
2319 * Force: always use this language, e.g. 'en'
2321 * @global string $cfg['Lang']
2323 $cfg['Lang'] = '';
2326 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
2327 * English only
2329 * @global string $cfg['FilterLanguages']
2331 $cfg['FilterLanguages'] = '';
2334 * You can select here which functions will be used for character set conversion.
2335 * Possible values are:
2336 * auto - automatically use available one (first is tested iconv, then
2337 * recode)
2338 * iconv - use iconv or libiconv functions
2339 * recode - use recode_string function
2340 * mb - use mbstring extension
2341 * none - disable encoding conversion
2343 * @global string $cfg['RecodingEngine']
2345 $cfg['RecodingEngine'] = 'auto';
2348 * Specify some parameters for iconv used in character set conversion. See iconv
2349 * documentation for details:
2350 * https://www.gnu.org/savannah-checkouts/gnu/libiconv/documentation/libiconv-1.15/iconv_open.3.html
2352 * @global string $cfg['IconvExtraParams']
2354 $cfg['IconvExtraParams'] = '//TRANSLIT';
2357 * Available character sets for MySQL conversion. currently contains all which could
2358 * be found in lang/* files and few more.
2359 * Character sets will be shown in same order as here listed, so if you frequently
2360 * use some of these move them to the top.
2362 * @global array $cfg['AvailableCharsets']
2364 $cfg['AvailableCharsets'] = [
2365 'iso-8859-1',
2366 'iso-8859-2',
2367 'iso-8859-3',
2368 'iso-8859-4',
2369 'iso-8859-5',
2370 'iso-8859-6',
2371 'iso-8859-7',
2372 'iso-8859-8',
2373 'iso-8859-9',
2374 'iso-8859-10',
2375 'iso-8859-11',
2376 'iso-8859-12',
2377 'iso-8859-13',
2378 'iso-8859-14',
2379 'iso-8859-15',
2380 'windows-1250',
2381 'windows-1251',
2382 'windows-1252',
2383 'windows-1256',
2384 'windows-1257',
2385 'koi8-r',
2386 'big5',
2387 'gb2312',
2388 'utf-16',
2389 'utf-8',
2390 'utf-7',
2391 'x-user-defined',
2392 'euc-jp',
2393 'ks_c_5601-1987',
2394 'tis-620',
2395 'SHIFT_JIS',
2396 'SJIS',
2397 'SJIS-win',
2401 /*******************************************************************************
2402 * Customization & design
2404 * The graphical settings are now located in themes/theme-name/scss/_variables.scss
2408 * enable the left panel pointer
2410 * @global boolean $cfg['NavigationTreePointerEnable']
2412 $cfg['NavigationTreePointerEnable'] = true;
2415 * enable the browse pointer
2417 * @global boolean $cfg['BrowsePointerEnable']
2419 $cfg['BrowsePointerEnable'] = true;
2422 * enable the browse marker
2424 * @global boolean $cfg['BrowseMarkerEnable']
2426 $cfg['BrowseMarkerEnable'] = true;
2429 * textarea size (columns) in edit mode
2430 * (this value will be emphasized (*2) for SQL
2431 * query textareas and (*1.25) for query window)
2433 * @global integer $cfg['TextareaCols']
2435 $cfg['TextareaCols'] = 40;
2438 * textarea size (rows) in edit mode
2440 * @global integer $cfg['TextareaRows']
2442 $cfg['TextareaRows'] = 15;
2445 * double size of textarea size for LONGTEXT columns
2447 * @global boolean $cfg['LongtextDoubleTextarea']
2449 $cfg['LongtextDoubleTextarea'] = true;
2452 * auto-select when clicking in the textarea of the query-box
2454 * @global boolean $cfg['TextareaAutoSelect']
2456 $cfg['TextareaAutoSelect'] = false;
2459 * textarea size (columns) for CHAR/VARCHAR
2461 * @global integer $cfg['CharTextareaCols']
2463 $cfg['CharTextareaCols'] = 40;
2466 * textarea size (rows) for CHAR/VARCHAR
2468 * @global integer $cfg['CharTextareaRows']
2470 $cfg['CharTextareaRows'] = 2;
2473 * Max field data length in browse mode for all non-numeric fields
2475 * @global integer $cfg['LimitChars']
2477 $cfg['LimitChars'] = 50;
2480 * Where to show the edit/copy/delete links in browse mode
2481 * Possible values are 'left', 'right', 'both' and 'none'.
2483 * @global string $cfg['RowActionLinks']
2485 $cfg['RowActionLinks'] = 'left';
2488 * Whether to show row links (Edit, Copy, Delete) and checkboxes for
2489 * multiple row operations even when the selection does not have a unique key.
2491 * @global boolean $cfg['RowActionLinksWithoutUnique']
2493 $cfg['RowActionLinksWithoutUnique'] = false;
2496 * Default sort order by primary key.
2498 * @global string $cfg['TablePrimaryKeyOrder']
2500 $cfg['TablePrimaryKeyOrder'] = 'NONE';
2503 * remember the last way a table sorted
2505 * @global string $cfg['RememberSorting']
2507 $cfg['RememberSorting'] = true;
2510 * shows column comments in 'browse' mode.
2512 * @global boolean $cfg['ShowBrowseComments']
2514 $cfg['ShowBrowseComments'] = true;
2517 * shows column comments in 'table property' mode.
2519 * @global boolean $cfg['ShowPropertyComments']
2521 $cfg['ShowPropertyComments'] = true;
2524 * repeat header names every X cells? (0 = deactivate)
2526 * @global integer $cfg['RepeatCells']
2528 $cfg['RepeatCells'] = 100;
2531 * Set to true if you want DB-based query history.If false, this utilizes
2532 * JS-routines to display query history (lost by window close)
2534 * @global boolean $cfg['QueryHistoryDB']
2536 $cfg['QueryHistoryDB'] = false;
2539 * When using DB-based query history, how many entries should be kept?
2541 * @global integer $cfg['QueryHistoryMax']
2543 $cfg['QueryHistoryMax'] = 25;
2546 * Use MIME-Types (stored in column comments table) for
2548 * @global boolean $cfg['BrowseMIME']
2550 $cfg['BrowseMIME'] = true;
2553 * When approximate count < this, PMA will get exact count for table rows.
2555 * @global integer $cfg['MaxExactCount']
2557 $cfg['MaxExactCount'] = 50000;
2560 * Zero means that no row count is done for views; see the doc
2562 * @global integer $cfg['MaxExactCountViews']
2564 $cfg['MaxExactCountViews'] = 0;
2567 * Sort table and database in natural order
2569 * @global boolean $cfg['NaturalOrder']
2571 $cfg['NaturalOrder'] = true;
2574 * Initial state for sliders
2575 * (open | closed | disabled)
2577 * @global string $cfg['InitialSlidersState']
2579 $cfg['InitialSlidersState'] = 'closed';
2582 * User preferences: disallow these settings
2583 * For possible setting names look in libraries/config/user_preferences.forms.php
2585 * @global array $cfg['UserprefsDisallow']
2587 $cfg['UserprefsDisallow'] = [];
2590 * User preferences: enable the Developer tab
2592 $cfg['UserprefsDeveloperTab'] = false;
2594 /*******************************************************************************
2595 * Window title settings
2599 * title of browser window when a table is selected
2601 * @global string $cfg['TitleTable']
2603 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2606 * title of browser window when a database is selected
2608 * @global string $cfg['TitleDatabase']
2610 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2613 * title of browser window when a server is selected
2615 * @global string $cfg['TitleServer']
2617 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2620 * title of browser window when nothing is selected
2622 * @global string $cfg['TitleDefault']
2624 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2627 /*******************************************************************************
2628 * theme manager
2632 * if you want to use selectable themes and if ThemesPath not empty
2633 * set it to true, else set it to false (default is false);
2635 * @global boolean $cfg['ThemeManager']
2637 $cfg['ThemeManager'] = true;
2640 * set up default theme, you can set up here an valid
2641 * path to themes or 'original' for the original pma-theme
2643 * @global string $cfg['ThemeDefault']
2645 $cfg['ThemeDefault'] = 'pmahomme';
2648 * allow different theme for each configured server
2650 * @global boolean $cfg['ThemePerServer']
2652 $cfg['ThemePerServer'] = false;
2656 * Default query for table
2658 * @global string $cfg['DefaultQueryTable']
2660 $cfg['DefaultQueryTable'] = 'SELECT * FROM @TABLE@ WHERE 1';
2663 * Default query for database
2665 * @global string $cfg['DefaultQueryDatabase']
2667 $cfg['DefaultQueryDatabase'] = '';
2670 /*******************************************************************************
2671 * SQL Query box settings
2672 * These are the links display in all of the SQL Query boxes
2674 * @global array $cfg['SQLQuery']
2676 $cfg['SQLQuery'] = [];
2679 * Display an "Edit" link on the results page to change a query
2681 * @global boolean $cfg['SQLQuery']['Edit']
2683 $cfg['SQLQuery']['Edit'] = true;
2686 * Display an "Explain SQL" link on the results page
2688 * @global boolean $cfg['SQLQuery']['Explain']
2690 $cfg['SQLQuery']['Explain'] = true;
2693 * Display a "Create PHP code" link on the results page to wrap a query in PHP
2695 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2697 $cfg['SQLQuery']['ShowAsPHP'] = true;
2700 * Display a "Refresh" link on the results page
2702 * @global boolean $cfg['SQLQuery']['Refresh']
2704 $cfg['SQLQuery']['Refresh'] = true;
2707 * Enables autoComplete for table & column names in SQL queries
2709 * default = 'true'
2711 $cfg['EnableAutocompleteForTablesAndColumns'] = true;
2714 /*******************************************************************************
2715 * Web server upload/save/import directories
2719 * Directory for uploaded files that can be executed by phpMyAdmin.
2720 * For example './upload'. Leave empty for no upload directory support.
2721 * Use %u for username inclusion.
2723 * @global string $cfg['UploadDir']
2725 $cfg['UploadDir'] = '';
2728 * Directory where phpMyAdmin can save exported data on server.
2729 * For example './save'. Leave empty for no save directory support.
2730 * Use %u for username inclusion.
2732 * @global string $cfg['SaveDir']
2734 $cfg['SaveDir'] = '';
2737 * Directory where phpMyAdmin can save temporary files.
2739 * @global string $cfg['TempDir']
2741 if (defined('TEMP_DIR')) {
2742 $cfg['TempDir'] = TEMP_DIR;
2743 } else {
2744 $cfg['TempDir'] = ROOT_PATH . 'tmp/';
2749 * Misc. settings
2753 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2754 * which is the only safe way to determine GD version.
2756 * @global string $cfg['GD2Available']
2758 $cfg['GD2Available'] = 'auto';
2761 * Lists proxy IP and HTTP header combinations which are trusted for IP allow/deny
2763 * @global array $cfg['TrustedProxies']
2765 $cfg['TrustedProxies'] = [];
2768 * We normally check the permissions on the configuration file to ensure
2769 * it's not world writable. However, phpMyAdmin could be installed on
2770 * a NTFS filesystem mounted on a non-Windows server, in which case the
2771 * permissions seems wrong but in fact cannot be detected. In this case
2772 * a sysadmin would set the following to false.
2774 $cfg['CheckConfigurationPermissions'] = true;
2777 * Limit for length of URL in links. When length would be above this limit, it
2778 * is replaced by form with button.
2779 * This is required as some web servers (IIS) have problems with long URLs.
2780 * The recommended limit is 2000
2781 * (see https://www.boutell.com/newfaq/misc/urllength.html) but we put
2782 * 1000 to accommodate Suhosin, see bug #3358750.
2784 $cfg['LinkLengthLimit'] = 1000;
2787 * Additional string to allow in CSP headers.
2789 $cfg['CSPAllow'] = '';
2792 * Disable the table maintenance mass operations, like optimizing or
2793 * repairing the selected tables of a database. An accidental execution
2794 * of such a maintenance task can enormously slow down a bigger database.
2796 $cfg['DisableMultiTableMaintenance'] = false;
2799 * Whether or not to query the user before sending the error report to
2800 * the phpMyAdmin team when a JavaScript error occurs
2802 * Available options
2803 * (ask | always | never)
2805 * @global string $cfg['SendErrorReports']
2807 $cfg['SendErrorReports'] = 'ask';
2810 * Whether Enter or Ctrl+Enter executes queries in the console.
2812 * @global boolean $cfg['ConsoleEnterExecutes']
2814 $cfg['ConsoleEnterExecutes'] = false;
2817 * Zero Configuration mode.
2819 * @global boolean $cfg['ZeroConf']
2821 $cfg['ZeroConf'] = true;
2823 /*******************************************************************************
2824 * Developers ONLY!
2826 * @global array $cfg['DBG']
2828 $cfg['DBG'] = [];
2831 * Output executed queries and their execution times
2833 * @global boolean $cfg['DBG']['sql']
2835 $cfg['DBG']['sql'] = false;
2838 * Log executed queries and their execution times to syslog
2840 * @global boolean $cfg['DBG']['sqllog']
2842 $cfg['DBG']['sqllog'] = false;
2845 * Enable to let server present itself as demo server.
2847 * @global boolean $cfg['DBG']['demo']
2849 $cfg['DBG']['demo'] = false;
2852 * Enable Simple two-factor authentication
2854 * @global boolean $cfg['DBG']['simple2fa']
2856 $cfg['DBG']['simple2fa'] = false;
2859 * Sets the working environment
2861 * This only needs to be changed when you are developing phpMyAdmin itself.
2862 * The development mode may display debug information in some places.
2864 * Possible values are 'production' or 'development'
2866 $cfg['environment'] = 'production';
2868 /*******************************************************************************
2869 * MySQL settings
2873 * Default functions for above defined groups
2875 * @global array $cfg['DefaultFunctions']
2877 $cfg['DefaultFunctions'] = [
2878 'FUNC_CHAR' => '',
2879 'FUNC_DATE' => '',
2880 'FUNC_NUMBER' => '',
2881 'FUNC_SPATIAL' => 'GeomFromText',
2882 'FUNC_UUID' => 'UUID',
2883 'first_timestamp' => 'NOW',
2887 * Max rows retrieved for zoom search
2889 $cfg['maxRowPlotLimit'] = 500;
2892 * Show Git revision if applicable
2894 * @global boolean $cfg['ShowGitRevision']
2896 $cfg['ShowGitRevision'] = true;
2899 * MySQL minimal version required
2901 * @global array $cfg['MysqlMinVersion']
2903 $cfg['MysqlMinVersion'] = [
2904 'internal' => 50500,
2905 'human' => '5.5.0',
2909 * Disable shortcuts
2911 * @global array $cfg['DisableShortcutKeys']
2913 $cfg['DisableShortcutKeys'] = false;
2916 * Console configuration
2918 * This is mostly meant for user preferences.
2920 $cfg['Console'] = [
2921 'StartHistory' => false,
2922 'AlwaysExpand' => false,
2923 'CurrentQuery' => true,
2924 'EnterExecutes' => false,
2925 'DarkTheme' => false,
2926 'Mode' => 'info',
2927 'Height' => 92,
2928 'GroupQueries' => false,
2929 'OrderBy' => 'exec',
2930 'Order' => 'asc',
2934 /*******************************************************************************
2935 * Default options for transformations
2939 * Initialize default transformations array
2941 * @global array $cfg['DefaultTransformations']
2943 $cfg['DefaultTransformations'] = [];
2946 * Default transformations for Substring
2948 * @global array $cfg['DefaultTransformations']['Substring']
2950 $cfg['DefaultTransformations']['Substring'] = [
2952 'all',
2953 '…',
2957 * Default transformations for Bool2Text
2959 * @global array $cfg['DefaultTransformations']['Bool2Text']
2961 $cfg['DefaultTransformations']['Bool2Text'] = [
2962 'T',
2963 'F',
2967 * Default transformations for External
2969 * @global array $cfg['DefaultTransformations']['External']
2971 $cfg['DefaultTransformations']['External'] = [
2973 '-f /dev/null -i -wrap -q',
2979 * Default transformations for PreApPend
2981 * @global array $cfg['DefaultTransformations']['PreApPend']
2983 $cfg['DefaultTransformations']['PreApPend'] = [
2989 * Default transformations for Hex
2991 * @global array $cfg['DefaultTransformations']['Hex']
2993 $cfg['DefaultTransformations']['Hex'] = ['2'];
2996 * Default transformations for DateFormat
2998 * @global array $cfg['DefaultTransformations']['DateFormat']
3000 $cfg['DefaultTransformations']['DateFormat'] = [
3003 'local',
3007 * Set default for FirstDayOfCalendar
3009 * @global integer $cfg['FirstDayOfCalendar']
3011 $cfg['FirstDayOfCalendar'] = 0;
3014 * Default transformations for Inline
3016 * @global array $cfg['DefaultTransformations']['Inline']
3018 $cfg['DefaultTransformations']['Inline'] = [
3019 '100',
3020 100,
3022 $cfg['DefaultTransformations']['Inline']['wrapper_link'] = null;
3023 $cfg['DefaultTransformations']['Inline']['wrapper_params'] = [];
3026 * Default transformations for TextImageLink
3028 * @global array $cfg['DefaultTransformations']['TextImageLink']
3030 $cfg['DefaultTransformations']['TextImageLink'] = [
3031 null,
3032 100,
3037 * Default transformations for TextLink
3039 * @global array $cfg['DefaultTransformations']['TextLink']
3041 $cfg['DefaultTransformations']['TextLink'] = [
3042 null,
3043 null,
3044 null,