Do not output unescaped chars to generated configuration file.
[phpmyadmin/madhuracj.git] / libraries / config.default.php
blobac7395a3726f3fdc4c8fdda58435b4b541ce705d
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * <code>
5 * N N OOO !! DDDD OOO N N OOO TTTTT EEEE DDDD I TTTTT !!
6 * NN N O O !! D D O O NN N O O T E D D I T !!
7 * N N N O O !! D D O O N N N O O T EEEE D D I T !!
8 * N NN O O D D O O N NN O O T E D D I T
9 * N N OOO !! DDDD OOO N N OOO T EEEE DDDD I T !!
10 * </code>
12 * DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!!
14 * phpMyAdmin default configuration, you can copy values from here to your
15 * config.inc.php
17 * All directives are explained in Documentation.html
19 * @version $Id$
20 * @package phpMyAdmin
23 /**
24 * Your phpMyAdmin URL.
26 * Complete the variable below with the full URL ie
27 * http://www.your_web.net/path_to_your_phpMyAdmin_directory/
29 * It must contain characters that are valid for a URL, and the path is
30 * case sensitive on some Web servers, for example Unix-based servers.
32 * In most cases you can leave this variable empty, as the correct value
33 * will be detected automatically. However, we recommend that you do
34 * test to see that the auto-detection code works in your system. A good
35 * test is to browse a table, then edit a row and save it. There will be
36 * an error message if phpMyAdmin cannot auto-detect the correct value.
38 * @global string $cfg['PmaAbsoluteUri']
40 $cfg['PmaAbsoluteUri'] = '';
42 /**
43 * Disable the default warning that is displayed on the DB Details Structure page if
44 * any of the required Tables for the relation features could not be found
46 * @global boolean $cfg['PmaNoRelation_DisableWarning']
48 $cfg['PmaNoRelation_DisableWarning'] = false;
50 /**
51 * Disable the default warning that is displayed if Suhosin is detected
53 * @global boolean $cfg['SuhosinDisableWarning']
55 $cfg['SuhosinDisableWarning'] = false;
57 /**
58 * Disable the default warning that is displayed if mcrypt is missing for
59 * cookie authentication.
61 * @global boolean $cfg['McryptDisableWarning']
63 $cfg['McryptDisableWarning'] = false;
65 /**
66 * Allows phpMyAdmin to be included from a document located on
67 * another domain; setting this to true is a potential security hole
69 * @global boolean $cfg['AllowThirdPartyFraming']
71 $cfg['AllowThirdPartyFraming'] = false;
73 /**
74 * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
75 * at least one server configuration uses 'cookie' auth_type, enter here a
76 * pass phrase that will be used by blowfish. The maximum length seems to be 46
77 * characters.
79 * @global string $cfg['blowfish_secret']
81 $cfg['blowfish_secret'] = '';
84 /*******************************************************************************
85 * Server(s) configuration
87 * The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
88 * $cfg['Servers'][0]. You can disable a server configuration entry by setting host
89 * to ''. If you want more than one server, just copy following section
90 * (including $i incrementation) several times. There is no need to define
91 * full server array, just define values you need to change.
93 * @global array $cfg['Servers']
95 $cfg['Servers'] = array();
97 $i = 1;
99 /**
100 * MySQL hostname or IP address
102 * @global string $cfg['Servers'][$i]['host']
104 $cfg['Servers'][$i]['host'] = 'localhost';
107 * MySQL port - leave blank for default port
109 * @global string $cfg['Servers'][$i]['port']
111 $cfg['Servers'][$i]['port'] = '';
114 * Path to the socket - leave blank for default socket
116 * @global string $cfg['Servers'][$i]['socket']
118 $cfg['Servers'][$i]['socket'] = '';
121 * Use SSL for connecting to MySQL server?
123 * @global boolean $cfg['Servers'][$i]['ssl']
125 $cfg['Servers'][$i]['ssl'] = false;
128 * How to connect to MySQL server ('tcp' or 'socket')
130 * @global string $cfg['Servers'][$i]['connect_type']
132 $cfg['Servers'][$i]['connect_type'] = 'tcp';
135 * The PHP MySQL extension to use ('mysql' or 'mysqli')
137 * @global string $cfg['Servers'][$i]['extension']
139 $cfg['Servers'][$i]['extension'] = 'mysql';
141 /* rajk - added for blobstreaming */
142 $cfg['Servers'][$i]['bs_garbage_threshold'] = '';
143 $cfg['Servers'][$i]['bs_repository_threshold'] = '';
144 $cfg['Servers'][$i]['bs_temp_blob_timeout'] = '';
145 $cfg['Servers'][$i]['bs_temp_log_threshold'] = '';
148 * Use compressed protocol for the MySQL connection (requires PHP >= 4.3.0)
150 * @global boolean $cfg['Servers'][$i]['compress']
152 $cfg['Servers'][$i]['compress'] = false;
155 * MySQL control user settings (this user must have read-only
156 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
157 * used for all relational features (pmadb)
159 * @global string $cfg['Servers'][$i]['controluser']
161 $cfg['Servers'][$i]['controluser'] = '';
164 * MySQL control user settings (this user must have read-only
165 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
166 * used for all relational features (pmadb)
168 * @global string $cfg['Servers'][$i]['controlpass']
170 $cfg['Servers'][$i]['controlpass'] = '';
173 * Authentication method (valid choices: config, http, signon or cookie)
175 * @global string $cfg['Servers'][$i]['auth_type']
177 $cfg['Servers'][$i]['auth_type'] = 'cookie';
180 * File containing Swekey ids and login names (see /contrib);
181 * leave empty to deactivate Swekey hardware authentication
183 * @global string $cfg['Servers'][$i]['auth_swekey_config']
185 $cfg['Servers'][$i]['auth_swekey_config'] = '';
188 * MySQL user
190 * @global string $cfg['Servers'][$i]['user']
192 $cfg['Servers'][$i]['user'] = 'root';
195 * MySQL password (only needed with 'config' auth_type)
197 * @global string $cfg['Servers'][$i]['password']
199 $cfg['Servers'][$i]['password'] = '';
202 * Session to use for 'signon' authentication method
204 * @global string $cfg['Servers'][$i]['SignonSession']
206 $cfg['Servers'][$i]['SignonSession'] = '';
209 * URL where to redirect user to login for 'signon' authentication method
211 * @global string $cfg['Servers'][$i]['SignonURL']
213 $cfg['Servers'][$i]['SignonURL'] = '';
216 * URL where to redirect user after logout
218 * @global string $cfg['Servers'][$i]['LogoutURL']
220 $cfg['Servers'][$i]['LogoutURL'] = '';
223 * Whether to try to connect without password
225 * @global boolean $cfg['Servers'][$i]['nopassword']
227 $cfg['Servers'][$i]['nopassword'] = false;
230 * If set to a db-name, only this db is displayed in left frame
231 * It may also be an array of db-names, where sorting order is relevant.
233 * @global string $cfg['Servers'][$i]['only_db']
235 $cfg['Servers'][$i]['only_db'] = '';
238 * Database name to be hidden from listings
240 * @global string $cfg['Servers'][$i]['hide_db']
242 $cfg['Servers'][$i]['hide_db'] = '';
245 * Verbose name for this host - leave blank to show the hostname
246 * (for HTTP authentication, all non-US-ASCII characters will be stripped)
248 * @global string $cfg['Servers'][$i]['verbose']
250 $cfg['Servers'][$i]['verbose'] = '';
253 * Database used for Relation, Bookmark and PDF Features
254 * (see scripts/create_tables.sql)
255 * - leave blank for no support
256 * DEFAULT: 'phpmyadmin'
258 * @global string $cfg['Servers'][$i]['pmadb']
260 $cfg['Servers'][$i]['pmadb'] = '';
263 * Bookmark table
264 * - leave blank for no bookmark support
265 * DEFAULT: 'pma_bookmark'
267 * @global string $cfg['Servers'][$i]['bookmarktable']
269 $cfg['Servers'][$i]['bookmarktable'] = '';
272 * table to describe the relation between links (see doc)
273 * - leave blank for no relation-links support
274 * DEFAULT: 'pma_relation'
276 * @global string $cfg['Servers'][$i]['relation']
278 $cfg['Servers'][$i]['relation'] = '';
281 * table to describe the display fields
282 * - leave blank for no display fields support
283 * DEFAULT: 'pma_table_info'
285 * @global string $cfg['Servers'][$i]['table_info']
287 $cfg['Servers'][$i]['table_info'] = '';
290 * table to describe the tables position for the PDF schema
291 * - leave blank for no PDF schema support
292 * DEFAULT: 'pma_table_coords'
294 * @global string $cfg['Servers'][$i]['table_coords']
296 $cfg['Servers'][$i]['table_coords'] = '';
299 * table to describe pages of relationpdf
300 * - leave blank if you don't want to use this
301 * DEFAULT: 'pma_pdf_pages'
303 * @global string $cfg['Servers'][$i]['pdf_pages']
305 $cfg['Servers'][$i]['pdf_pages'] = '';
308 * table to store column information
309 * - leave blank for no column comments/mime types
310 * DEFAULT: 'pma_column_info'
312 * @global string $cfg['Servers'][$i]['column_info']
314 $cfg['Servers'][$i]['column_info'] = '';
317 * table to store SQL history
318 * - leave blank for no SQL query history
319 * DEFAULT: 'pma_history'
321 * @global string $cfg['Servers'][$i]['history']
323 $cfg['Servers'][$i]['history'] = '';
326 * table to store the coordinates for Designer
327 * - leave blank for no Designer feature
328 * DEFAULT: 'pma_designer_coords'
330 * @global string $cfg['Servers'][$i]['designer_coords']
332 $cfg['Servers'][$i]['designer_coords'] = '';
335 * set to false if you know that your pma_* tables are up to date.
336 * This prevents compatibility checks and thereby increases performance.
338 * @global boolean $cfg['Servers'][$i]['verbose_check']
340 $cfg['Servers'][$i]['verbose_check'] = true;
343 * whether to allow root login
345 * @global boolean $cfg['Servers'][$i]['AllowRoot']
347 $cfg['Servers'][$i]['AllowRoot'] = true;
350 * whether to allow login of any user without a password
352 * @global boolean $cfg['Servers'][$i]['AllowNoPassword']
354 $cfg['Servers'][$i]['AllowNoPassword'] = false;
357 * Host authentication order, leave blank to not use
359 * @global string $cfg['Servers'][$i]['AllowDeny']['order']
361 $cfg['Servers'][$i]['AllowDeny']['order'] = '';
364 * Disable use of INFORMATION_SCHEMA
366 * @see http://sf.net/support/tracker.php?aid=1849494
367 * @see http://bugs.mysql.com/19588
368 * @global boolean $cfg['Servers'][$i]['DisableIS']
370 $cfg['Servers'][$i]['DisableIS'] = true;
373 * Host authentication rules, leave blank for defaults
375 * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
377 $cfg['Servers'][$i]['AllowDeny']['rules'] = array();
380 * SQL command to fetch available databases
382 * by default most user will be fine with SHOW DATABASES,
383 * for servers with a huge amount of databases it is possible to
384 * define a command which executes faster but with less information
386 * especially when accessing database servers from ISPs changing this command
387 * can result in a great speed improvement
389 * false will disable fetching databases from the server, only databases in
390 * $cfg['Servers'][$i]['only_db'] will be displayed
392 * #user# will be replaced by current user
394 * examples:
395 * 'SHOW DATABASES'
396 * "SHOW DATABASES LIKE '#user#\_%'"
397 * 'SELECT DISTINCT TABLE_SCHEMA FROM information_schema.SCHEMA_PRIVILEGES'
398 * 'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA'
399 * false
401 * @global array $cfg['Servers'][$i]['ShowDatabasesCommand']
403 $cfg['Servers'][$i]['ShowDatabasesCommand'] = 'SHOW DATABASES';
406 * Whether to count tables when showing database list
408 * @global array $cfg['Servers'][$i]['CountTables']
410 $cfg['Servers'][$i]['CountTables'] = true;
413 * Default server (0 = no default server)
415 * If you have more than one server configured, you can set $cfg['ServerDefault']
416 * to any one of them to auto-connect to that server when phpMyAdmin is started,
417 * or set it to 0 to be given a list of servers without logging in
418 * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
419 * set to that server.
421 * @global integer $cfg['ServerDefault']
423 $cfg['ServerDefault'] = 1;
426 * Other core phpMyAdmin settings
429 * maximum number of db's displayed in left frame and database list
431 * @global integer $cfg['MaxDbList']
433 $cfg['MaxDbList'] = 100;
436 * maximum number of tables displayed in table list
438 * @global integer $cfg['MaxTableList']
440 $cfg['MaxTableList'] = 250;
443 * maximum number of characters when a SQL query is displayed
445 * @global integer $cfg['MaxCharactersInDisplayedSQL']
447 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
450 * use GZIP output buffering if possible (true|false|'auto')
452 * @global string $cfg['OBGzip']
454 $cfg['OBGzip'] = 'auto';
457 * use persistent connections to MySQL database
459 * @global boolean $cfg['PersistentConnections']
461 $cfg['PersistentConnections'] = false;
464 * whether to force using HTTPS
466 * @global boolean $cfg['ForceSSL']
468 $cfg['ForceSSL'] = false;
471 * maximum execution time in seconds (0 for no limit)
473 * @global integer $cfg['ExecTimeLimit']
475 $cfg['ExecTimeLimit'] = 300;
478 * maximum allocated bytes (0 for no limit)
480 * @global integer $cfg['MemoryLimit']
482 $cfg['MemoryLimit'] = 0;
485 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
487 * @global boolean $cfg['SkipLockedTables']
489 $cfg['SkipLockedTables'] = false;
492 * show SQL queries as run
494 * @global boolean $cfg['ShowSQL']
496 $cfg['ShowSQL'] = true;
499 * show a 'Drop database' link to normal users
501 * @global boolean $cfg['AllowUserDropDatabase']
503 $cfg['AllowUserDropDatabase'] = false;
506 * confirm 'DROP TABLE' & 'DROP DATABASE'
508 * @global boolean $cfg['Confirm']
510 $cfg['Confirm'] = true;
513 * recall previous login in cookie authentication mode or not
515 * @global boolean $cfg['LoginCookieRecall']
517 $cfg['LoginCookieRecall'] = true;
520 * validity of cookie login (in seconds)
522 * @global integer $cfg['LoginCookieValidity']
524 $cfg['LoginCookieValidity'] = 1440;
527 * how long login cookie should be stored (in seconds)
529 * @global integer $cfg['LoginCookieStore']
531 $cfg['LoginCookieStore'] = 0;
534 * whether to delete all login cookies on logout
536 * @global boolean $cfg['LoginCookieDeleteAll']
538 $cfg['LoginCookieDeleteAll'] = true;
541 * whether to enable the "database search" feature or not
543 * @global boolean $cfg['UseDbSearch']
545 $cfg['UseDbSearch'] = true;
548 * if set to true, PMA continues computing multiple-statement queries
549 * even if one of the queries failed
551 * @global boolean $cfg['IgnoreMultiSubmitErrors']
553 $cfg['IgnoreMultiSubmitErrors'] = false;
556 * if set to true, PMA will show the affected rows of EACH statement on
557 * multiple-statement queries. See the libraries/import.php file for
558 * hard coded defaults on how many queries a statement may contain!
560 * @global boolean $cfg['VerboseMultiSubmit']
562 $cfg['VerboseMultiSubmit'] = true;
565 * allow login to any user entered server in cookie based authentication
567 * @global boolean $cfg['AllowArbitraryServer']
569 $cfg['AllowArbitraryServer'] = false;
572 /*******************************************************************************
573 * Error handler configuration
575 * this configures phpMyAdmin's own error handler, it is used to avoid information
576 * disclosure, gather errors for logging, reporting and displaying
578 * @global array $cfg['Error_Handler']
580 $cfg['Error_Handler'] = array();
583 * whether to display errors or not
585 * this does not affect errors of type E_USER_*
587 * @global boolean $cfg['Error_Handler']['display']
589 $cfg['Error_Handler']['display'] = false;
592 * (NOT IMPLEMENTED YET)
593 * where to log errors, false or empty to disable
595 * <code>
596 * // EXAMPLE log to std PHP error log
597 * $cfg['Error_Handler']['log'] = array(0);
598 * // EXAMPLE mail errors
599 * $cfg['Error_Handler']['log'] = array(1, 'admin@example.org');
600 * // EXAMPLE append to specific file
601 * $cfg['Error_Handler']['log'] = array(3, '/var/log/phpmyadmin_error.log');
602 * </code>
604 * @see http://php.net/error_log
605 * @global string $cfg['Error_Handler']['log']
607 //$cfg['Error_Handler']['log'] = false;
610 * gather all errors in session to be displayed on a error reporting page
611 * for viewing and/or sending to phpMyAdmin developer team
613 * @global boolean $cfg['Error_Handler']['gather']
615 $cfg['Error_Handler']['gather'] = false;
618 /*******************************************************************************
619 * Left frame setup
623 * use a select-based menu and display only the current tables in the left frame.
625 * @global boolean $cfg['LeftFrameLight']
627 $cfg['LeftFrameLight'] = true;
630 * turn the select-based light menu into a tree
632 * @global boolean $cfg['LeftFrameDBTree']
634 $cfg['LeftFrameDBTree'] = true;
637 * the separator to sub-tree the select-based light menu tree
639 * @global string $cfg['LeftFrameDBSeparator']
641 $cfg['LeftFrameDBSeparator'] = '_';
644 * Which string will be used to generate table prefixes
645 * to split/nest tables into multiple categories
647 * @global string $cfg['LeftFrameTableSeparator']
649 $cfg['LeftFrameTableSeparator']= '__';
652 * How many sublevels should be displayed when splitting up tables by the above Separator
654 * @global integer $cfg['LeftFrameTableLevel']
656 $cfg['LeftFrameTableLevel'] = 1;
659 * display table comment as tooltip in left frame
661 * @global boolean $cfg['ShowTooltip']
663 $cfg['ShowTooltip'] = true;
666 * if ShowToolTip is enabled, this defines that table/db comments
668 * @global boolean $cfg['ShowTooltipAliasDB']
670 $cfg['ShowTooltipAliasDB'] = false;
673 * are shown (in the left menu and db_structure) instead of table/db names.
674 * Setting ShowTooltipAliasTB to 'nested' will only use the Aliases for nested
675 * descriptors, not the table itself.
677 * @global boolean $cfg['ShowTooltipAliasTB']
679 $cfg['ShowTooltipAliasTB'] = false;
682 * display logo at top of left frame
684 * @global boolean $cfg['LeftDisplayLogo']
686 $cfg['LeftDisplayLogo'] = true;
689 * where should logo link point to (can also contain an external URL)
691 * @global string $cfg['LeftLogoLink']
693 $cfg['LeftLogoLink'] = 'main.php';
696 * whether to open the linked page in the main window ('main') or
697 * in a new window ('new')
699 * @global string $cfg['LeftLogoLinkWindow']
701 $cfg['LeftLogoLinkWindow'] = 'main';
704 * display server choice at top of left frame
706 * @global boolean $cfg['LeftDisplayServers']
708 $cfg['LeftDisplayServers'] = false;
711 * server choice as links
713 * @global boolean $cfg['DisplayServersList']
715 $cfg['DisplayServersList'] = false;
718 * database choice in light as links
720 * @global boolean $cfg['DisplayDatabasesList']
722 $cfg['DisplayDatabasesList'] = 'auto';
725 * target of the navigation panel quick access icon
727 * Possible values:
728 * 'tbl_structure.php' = fields list
729 * 'tbl_sql.php' = SQL form
730 * 'tbl_select.php' = search page
731 * 'tbl_change.php' = insert row page
732 * 'sql.php' = browse page
734 * @global string $cfg['LeftDefaultTabTable']
736 $cfg['LeftDefaultTabTable'] = 'tbl_structure.php';
739 /*******************************************************************************
740 * In the main frame, at startup...
744 * allow to display statistics and space usage in the pages about database
745 * details and table properties
747 * @global boolean $cfg['ShowStats']
749 $cfg['ShowStats'] = true;
752 * show PHP info link
754 * @global boolean $cfg['ShowPhpInfo']
756 $cfg['ShowPhpInfo'] = false;
759 * show MySQL server information
761 * @global boolean $cfg['ShowServerInfo']
763 $cfg['ShowServerInfo'] = true;
766 * show change password link
768 * @global boolean $cfg['ShowChgPassword']
770 $cfg['ShowChgPassword'] = true;
773 * show create database form
775 * @global boolean $cfg['ShowCreateDb']
777 $cfg['ShowCreateDb'] = true;
780 * suggest a new DB name if possible (false = keep empty)
782 * @global boolean $cfg['SuggestDBName']
784 $cfg['SuggestDBName'] = true;
787 /*******************************************************************************
788 * In browse mode...
792 * Use icons instead of text for the navigation bar buttons
793 * and on right panel top menu (server db table) (true|false|'both')
795 * @global string $cfg['NavigationBarIconic']
797 $cfg['NavigationBarIconic'] = 'both';
800 * allows to display all the rows
802 * @global boolean $cfg['ShowAll']
804 $cfg['ShowAll'] = false;
807 * maximum number of rows to display
809 * @global integer $cfg['MaxRows']
811 $cfg['MaxRows'] = 30;
814 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
815 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
816 * ascending order else-)
818 * @global string $cfg['Order']
820 $cfg['Order'] = 'ASC';
823 /*******************************************************************************
824 * In edit mode...
828 * disallow editing of binary fields
829 * valid values are:
830 * false allow editing
831 * 'blob' allow editing except for BLOB fields
832 * 'all' disallow editing
834 * @global string $cfg['ProtectBinary']
836 $cfg['ProtectBinary'] = 'blob';
839 * Display the function fields in edit/insert mode
841 * @global boolean $cfg['ShowFunctionFields']
843 $cfg['ShowFunctionFields'] = true;
846 * Which editor should be used for CHAR/VARCHAR fields:
847 * input - allows limiting of input length
848 * textarea - allows newlines in fields
850 * @global string $cfg['CharEditing']
852 $cfg['CharEditing'] = 'input';
855 * How many rows can be inserted at one time
857 * @global integer $cfg['InsertRows']
859 $cfg['InsertRows'] = 2;
862 * Sort order for items in a foreign-key drop-down list.
863 * 'content' is the referenced data, 'id' is the key value.
865 * @global array $cfg['ForeignKeyDropdownOrder']
867 $cfg['ForeignKeyDropdownOrder'] = array('content-id', 'id-content');
870 * A drop-down list will be used if fewer items are present
872 * @global integer $cfg['ForeignKeyMaxLimit']
874 $cfg['ForeignKeyMaxLimit'] = 100;
877 /*******************************************************************************
878 * For the export features...
882 * Allow for the use of zip compression (requires zip support to be enabled)
884 * @global boolean $cfg['ZipDump']
886 $cfg['ZipDump'] = true;
889 * Allow for the use of gzip compression (requires zlib)
891 * @global boolean $cfg['GZipDump']
893 $cfg['GZipDump'] = true;
896 * Allow for the use of bzip2 compression (requires bz2 extension)
898 * @global boolean $cfg['BZipDump']
900 $cfg['BZipDump'] = true;
903 * Will compress gzip/bzip2 exports on the fly without the need for much memory.
904 * If you encounter problems with created gzip/bzip2 files disable this feature.
906 * @global boolean $cfg['CompressOnFly']
908 $cfg['CompressOnFly'] = true;
911 /*******************************************************************************
912 * Tabs display settings
916 * use graphically less intense menu tabs
918 * @global boolean $cfg['LightTabs']
920 $cfg['LightTabs'] = false;
923 * Use icons instead of text for the table display of a database (true|false|'both')
925 * @global boolean $cfg['PropertiesIconic']
927 $cfg['PropertiesIconic'] = true;
930 * How many columns should be used for table display of a database?
931 * (a value larger than 1 results in some information being hidden)
933 * @global integer $cfg['PropertiesNumColumns']
935 $cfg['PropertiesNumColumns'] = 1;
938 * Possible values:
939 * 'main.php' = the welcome page
940 * (recommended for multiuser setups)
941 * 'server_databases.php' = list of databases
942 * 'server_status.php' = runtime information
943 * 'server_variables.php' = MySQL server variables
944 * 'server_privileges.php' = user management
945 * 'server_processlist.php' = process list
947 * @global string $cfg['DefaultTabServer']
949 $cfg['DefaultTabServer'] = 'main.php';
952 * Possible values:
953 * 'db_structure.php' = tables list
954 * 'db_sql.php' = SQL form
955 * 'db_search.php' = search query
956 * 'db_operations.php' = operations on database
958 * @global string $cfg['DefaultTabDatabase']
960 $cfg['DefaultTabDatabase'] = 'db_structure.php';
963 * Possible values:
964 * 'tbl_structure.php' = fields list
965 * 'tbl_sql.php' = SQL form
966 * 'tbl_select.php' = search page
967 * 'tbl_change.php' = insert row page
968 * 'sql.php' = browse page
970 * @global string $cfg['DefaultTabTable']
972 $cfg['DefaultTabTable'] = 'sql.php';
975 * Mapping between script filenames and translation keys
977 * Lookup can be performed by PMA_getTitleForTarget()
979 * @global string $cfg['DefaultTabTranslationMapping']
981 $cfg['DefaultTabTranslationMapping'] = array(
983 // Values for $cfg['DefaultTabTable']
984 'tbl_structure.php' => 'strStructure',
985 'tbl_sql.php' => 'strSQL',
986 'tbl_select.php' => 'strSearch',
987 'tbl_change.php' => 'strInsert',
988 'sql.php' => 'strBrowse',
990 // Values for $cfg['DefaultTabDatabase']
991 'db_structure.php' => 'strStructure',
992 'db_sql.php' => 'strSQL',
993 'db_search.php' => 'strSearch',
994 'db_operations.php' => 'strOperations',
997 /*******************************************************************************
998 * Export defaults
1000 $cfg['Export'] = array();
1003 * codegen/csv/excel/htmlexcel/htmlword/latex/ods/odt/pdf/sql/texytext/xls/xml/yaml
1005 * @global string $cfg['Export']['format']
1007 $cfg['Export']['format'] = 'sql';
1010 * none/zip/gzip/bzip2
1012 * @global string $cfg['Export']['compression']
1014 $cfg['Export']['compression'] = 'none';
1019 * @global boolean $cfg['Export']['asfile']
1021 $cfg['Export']['asfile'] = false;
1026 * @global string $cfg['Export']['charset']
1028 $cfg['Export']['charset'] = '';
1033 * @global boolean $cfg['Export']['onserver']
1035 $cfg['Export']['onserver'] = false;
1040 * @global boolean $cfg['Export']['onserver_overwrite']
1042 $cfg['Export']['onserver_overwrite'] = false;
1047 * @global boolean $cfg['Export']['remember_file_template']
1049 $cfg['Export']['remember_file_template'] = true;
1054 * @global string $cfg['Export']['file_template_table']
1056 $cfg['Export']['file_template_table'] = '__TABLE__';
1061 * @global string $cfg['Export']['file_template_database']
1063 $cfg['Export']['file_template_database'] = '__DB__';
1068 * @global string $cfg['Export']['file_template_server']
1070 $cfg['Export']['file_template_server'] = '__SERVER__';
1075 * @global boolean $cfg['Export']['ods_columns']
1077 $cfg['Export']['ods_columns'] = false;
1082 * @global string $cfg['Export']['ods_null']
1084 $cfg['Export']['ods_null'] = 'NULL';
1089 * @global boolean $cfg['Export']['odt_structure']
1091 $cfg['Export']['odt_structure'] = true;
1096 * @global boolean $cfg['Export']['odt_data']
1098 $cfg['Export']['odt_data'] = true;
1103 * @global boolean $cfg['Export']['odt_columns']
1105 $cfg['Export']['odt_columns'] = true;
1110 * @global boolean $cfg['Export']['odt_relation']
1112 $cfg['Export']['odt_relation'] = true;
1117 * @global boolean $cfg['Export']['odt_comments']
1119 $cfg['Export']['odt_comments'] = true;
1124 * @global boolean $cfg['Export']['odt_mime']
1126 $cfg['Export']['odt_mime'] = true;
1131 * @global string $cfg['Export']['odt_null']
1133 $cfg['Export']['odt_null'] = 'NULL';
1138 * @global boolean $cfg['Export']['htmlexcel_columns']
1140 $cfg['Export']['htmlexcel_columns'] = false;
1145 * @global string $cfg['Export']['htmlexcel_null']
1147 $cfg['Export']['htmlexcel_null'] = 'NULL';
1152 * @global boolean $cfg['Export']['htmlword_structure']
1154 $cfg['Export']['htmlword_structure'] = true;
1159 * @global boolean $cfg['Export']['htmlword_data']
1161 $cfg['Export']['htmlword_data'] = true;
1166 * @global boolean $cfg['Export']['htmlword_columns']
1168 $cfg['Export']['htmlword_columns'] = false;
1173 * @global string $cfg['Export']['htmlword_null']
1175 $cfg['Export']['htmlword_null'] = 'NULL';
1180 * @global boolean $cfg['Export']['texytext_structure']
1182 $cfg['Export']['texytext_structure'] = TRUE;
1187 * @global boolean $cfg['Export']['texytext_data']
1189 $cfg['Export']['texytext_data'] = TRUE;
1194 * @global boolean $cfg['Export']['texytext_columns']
1196 $cfg['Export']['texytext_columns'] = FALSE;
1201 * @global string $cfg['Export']['texytext_null']
1203 $cfg['Export']['texytext_null'] = 'NULL';
1208 * @global boolean $cfg['Export']['xls_columns']
1210 $cfg['Export']['xls_columns'] = false;
1215 * @global string $cfg['Export']['xls_null']
1217 $cfg['Export']['xls_null'] = 'NULL';
1222 * @global boolean $cfg['Export']['csv_columns']
1224 $cfg['Export']['csv_columns'] = false;
1229 * @global string $cfg['Export']['csv_null']
1231 $cfg['Export']['csv_null'] = 'NULL';
1236 * @global string $cfg['Export']['csv_separator']
1238 $cfg['Export']['csv_separator'] = ';';
1243 * @global string $cfg['Export']['csv_enclosed']
1245 $cfg['Export']['csv_enclosed'] = '"';
1250 * @global string $cfg['Export']['csv_escaped']
1252 $cfg['Export']['csv_escaped'] = '\\';
1257 * @global string $cfg['Export']['csv_terminated']
1259 $cfg['Export']['csv_terminated'] = 'AUTO';
1264 * @global boolean $cfg['Export']['excel_columns']
1266 $cfg['Export']['excel_columns'] = false;
1271 * @global string $cfg['Export']['excel_null']
1273 $cfg['Export']['excel_null'] = 'NULL';
1276 * win/mac
1278 * @global string $cfg['Export']['excel_edition']
1280 $cfg['Export']['excel_edition'] = 'win';
1285 * @global boolean $cfg['Export']['latex_structure']
1287 $cfg['Export']['latex_structure'] = true;
1292 * @global boolean $cfg['Export']['latex_data']
1294 $cfg['Export']['latex_data'] = true;
1299 * @global boolean $cfg['Export']['latex_columns']
1301 $cfg['Export']['latex_columns'] = true;
1306 * @global boolean $cfg['Export']['latex_relation']
1308 $cfg['Export']['latex_relation'] = true;
1313 * @global boolean $cfg['Export']['latex_comments']
1315 $cfg['Export']['latex_comments'] = true;
1320 * @global boolean $cfg['Export']['latex_mime']
1322 $cfg['Export']['latex_mime'] = true;
1327 * @global string $cfg['Export']['latex_null']
1329 $cfg['Export']['latex_null'] = '\textit{NULL}';
1334 * @global boolean $cfg['Export']['latex_caption']
1336 $cfg['Export']['latex_caption'] = true;
1341 * @global string $cfg['Export']['latex_structure_caption']
1343 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1348 * @global string $cfg['Export']['latex_structure_continued_caption']
1350 $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
1355 * @global string $cfg['Export']['latex_data_caption']
1357 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1362 * @global string $cfg['Export']['latex_data_continued_caption']
1364 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1369 * @global string $cfg['Export']['latex_data_label']
1371 $cfg['Export']['latex_data_label'] = 'tab:__TABLE__-data';
1376 * @global string $cfg['Export']['latex_structure_label']
1378 $cfg['Export']['latex_structure_label'] = 'tab:__TABLE__-structure';
1383 * @global boolean $cfg['Export']['sql_structure']
1385 $cfg['Export']['sql_structure'] = true;
1390 * @global boolean $cfg['Export']['sql_data']
1392 $cfg['Export']['sql_data'] = true;
1397 * @global string $cfg['Export']['sql_compatibility']
1399 $cfg['Export']['sql_compatibility'] = 'NONE';
1402 * Whether to include comments in SQL export.
1404 * @global string $cfg['Export']['sql_include_comments']
1406 $cfg['Export']['sql_include_comments'] = true;
1411 * @global boolean $cfg['Export']['sql_disable_fk']
1413 $cfg['Export']['sql_disable_fk'] = false;
1418 * @global boolean $cfg['Export']['sql_use_transaction']
1420 $cfg['Export']['sql_use_transaction'] = false;
1425 * @global boolean $cfg['Export']['sql_drop_database']
1427 $cfg['Export']['sql_drop_database'] = false;
1432 * @global boolean $cfg['Export']['sql_drop_table']
1434 $cfg['Export']['sql_drop_table'] = false;
1439 * true by default for correct behavior when dealing with exporting
1440 * of VIEWs and the stand-in table
1441 * @global boolean $cfg['Export']['sql_if_not_exists']
1443 $cfg['Export']['sql_if_not_exists'] = true;
1448 * @global boolean $cfg['Export']['sql_procedure_function']
1450 $cfg['Export']['sql_procedure_function'] = false;
1455 * @global boolean $cfg['Export']['sql_auto_increment']
1457 $cfg['Export']['sql_auto_increment'] = true;
1462 * @global boolean $cfg['Export']['sql_backquotes']
1464 $cfg['Export']['sql_backquotes'] = true;
1469 * @global boolean $cfg['Export']['sql_dates']
1471 $cfg['Export']['sql_dates'] = false;
1476 * @global boolean $cfg['Export']['sql_relation']
1478 $cfg['Export']['sql_relation'] = false;
1483 * @global boolean $cfg['Export']['sql_columns']
1485 $cfg['Export']['sql_columns'] = true;
1490 * @global boolean $cfg['Export']['sql_delayed']
1492 $cfg['Export']['sql_delayed'] = false;
1497 * @global boolean $cfg['Export']['sql_ignore']
1499 $cfg['Export']['sql_ignore'] = false;
1504 * @global boolean $cfg['Export']['sql_hex_for_blob']
1506 $cfg['Export']['sql_hex_for_blob'] = true;
1509 * insert/update/replace
1511 * @global string $cfg['Export']['sql_type']
1513 $cfg['Export']['sql_type'] = 'insert';
1518 * @global boolean $cfg['Export']['sql_extended']
1520 $cfg['Export']['sql_extended'] = true;
1525 * @global integer $cfg['Export']['sql_max_query_size']
1527 $cfg['Export']['sql_max_query_size'] = 50000;
1532 * @global boolean $cfg['Export']['sql_comments']
1534 $cfg['Export']['sql_comments'] = false;
1539 * @global boolean $cfg['Export']['sql_mime']
1541 $cfg['Export']['sql_mime'] = false;
1544 * \n is replaced by new line
1546 * @global string $cfg['Export']['sql_header_comment']
1548 $cfg['Export']['sql_header_comment'] = '';
1553 * @global boolean $cfg['Export']['pdf_structure']
1555 $cfg['Export']['pdf_structure'] = false;
1560 * @global boolean $cfg['Export']['pdf_data']
1562 $cfg['Export']['pdf_data'] = true;
1567 * @global string $cfg['Export']['pdf_report_title']
1569 $cfg['Export']['pdf_report_title'] = '';
1572 /*******************************************************************************
1573 * Import defaults
1575 $cfg['Import'] = array();
1580 * @global string $cfg['Import']['format']
1582 $cfg['Import']['format'] = 'sql';
1585 * Default charset for import.
1587 * @global string $cfg['Import']['charset']
1589 $cfg['Import']['charset'] = '';
1594 * @global boolean $cfg['Import']['allow_interrupt']
1596 $cfg['Import']['allow_interrupt'] = true;
1601 * @global integer $cfg['Import']['skip_queries']
1603 $cfg['Import']['skip_queries'] = '0';
1608 * @global string $cfg['Import']['sql_compatibility']
1610 $cfg['Import']['sql_compatibility'] = 'NONE';
1615 * @global boolean $cfg['Import']['csv_replace']
1617 $cfg['Import']['csv_replace'] = false;
1622 * @global string $cfg['Import']['csv_terminated']
1624 $cfg['Import']['csv_terminated'] = ';';
1629 * @global string $cfg['Import']['csv_enclosed']
1631 $cfg['Import']['csv_enclosed'] = '"';
1636 * @global string $cfg['Import']['csv_escaped']
1638 $cfg['Import']['csv_escaped'] = '\\';
1643 * @global string $cfg['Import']['csv_new_line']
1645 $cfg['Import']['csv_new_line'] = 'auto';
1650 * @global string $cfg['Import']['csv_columns']
1652 $cfg['Import']['csv_columns'] = '';
1657 * @global boolean $cfg['Import']['ldi_replace']
1659 $cfg['Import']['ldi_replace'] = false;
1664 * @global string $cfg['Import']['ldi_terminated']
1666 $cfg['Import']['ldi_terminated'] = ';';
1671 * @global string $cfg['Import']['ldi_enclosed']
1673 $cfg['Import']['ldi_enclosed'] = '"';
1678 * @global string $cfg['Import']['ldi_escaped']
1680 $cfg['Import']['ldi_escaped'] = '\\';
1685 * @global string $cfg['Import']['ldi_new_line']
1687 $cfg['Import']['ldi_new_line'] = 'auto';
1692 * @global string $cfg['Import']['ldi_columns']
1694 $cfg['Import']['ldi_columns'] = '';
1697 * 'auto' for auto-detection, true or false for forcing
1699 * @global string $cfg['Import']['ldi_local_option']
1701 $cfg['Import']['ldi_local_option'] = 'auto';
1704 * Link to the official MySQL documentation.
1705 * Be sure to include no trailing slash on the path.
1706 * See http://dev.mysql.com/doc/ for more information
1707 * about MySQL manuals and their types.
1709 * @global string $cfg['MySQLManualBase']
1711 $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
1714 * Type of MySQL documentation:
1715 * viewable - "viewable online", current one used on MySQL website
1716 * searchable - "Searchable, with user comments"
1717 * chapters - "HTML, one page per chapter"
1718 * chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
1719 * big - "HTML, all on one page"
1720 * old - old style used in phpMyAdmin 2.3.0 and sooner
1721 * none - do not show documentation links
1723 * @global string $cfg['MySQLManualType']
1725 $cfg['MySQLManualType'] = 'viewable';
1728 /*******************************************************************************
1729 * PDF options
1735 * @global array $cfg['PDFPageSizes']
1737 $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
1742 * @global string $cfg['PDFDefaultPageSize']
1744 $cfg['PDFDefaultPageSize'] = 'A4';
1747 /*******************************************************************************
1748 * Language and character set conversion settings
1752 * Default language to use, if not browser-defined or user-defined
1754 * @global string $cfg['DefaultLang']
1756 $cfg['DefaultLang'] = 'en-utf-8';
1759 * Default connection collation
1761 * @global string $cfg['DefaultConnectionCollation']
1763 $cfg['DefaultConnectionCollation'] = 'utf8_general_ci';
1766 * Force: always use this language - must be defined in
1767 * libraries/select_lang.lib.php
1768 * $cfg['Lang'] = 'en-utf-8';
1770 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
1771 * English only
1773 * @global string $cfg['FilterLanguages']
1775 $cfg['FilterLanguages'] = '';
1778 * Default character set to use for recoding of MySQL queries, does not take
1779 * any effect when character sets recoding is switched off by
1780 * $cfg['AllowAnywhereRecoding'] or in language file
1781 * (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
1783 * @global string $cfg['DefaultCharset']
1785 $cfg['DefaultCharset'] = 'utf-8';
1788 * Allow character set recoding of MySQL queries, must be also enabled in language
1789 * file to make harder using other language files than Unicode.
1790 * Default value is false to avoid problems on servers without the iconv
1791 * extension
1793 * @global boolean $cfg['AllowAnywhereRecoding']
1795 $cfg['AllowAnywhereRecoding'] = false;
1798 * You can select here which functions will be used for character set conversion.
1799 * Possible values are:
1800 * auto - automatically use available one (first is tested iconv, then
1801 * recode)
1802 * iconv - use iconv or libiconv functions
1803 * recode - use recode_string function
1805 * @global string $cfg['RecodingEngine']
1807 $cfg['RecodingEngine'] = 'auto';
1810 * Specify some parameters for iconv used in character set conversion. See iconv
1811 * documentation for details:
1812 * http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
1814 * @global string $cfg['IconvExtraParams']
1816 $cfg['IconvExtraParams'] = '//TRANSLIT';
1819 * Available character sets for MySQL conversion. currently contains all which could
1820 * be found in lang/* files and few more.
1821 * Character sets will be shown in same order as here listed, so if you frequently
1822 * use some of these move them to the top.
1824 * @global array $cfg['AvailableCharsets']
1826 $cfg['AvailableCharsets'] = array(
1827 'iso-8859-1',
1828 'iso-8859-2',
1829 'iso-8859-3',
1830 'iso-8859-4',
1831 'iso-8859-5',
1832 'iso-8859-6',
1833 'iso-8859-7',
1834 'iso-8859-8',
1835 'iso-8859-9',
1836 'iso-8859-10',
1837 'iso-8859-11',
1838 'iso-8859-12',
1839 'iso-8859-13',
1840 'iso-8859-14',
1841 'iso-8859-15',
1842 'windows-1250',
1843 'windows-1251',
1844 'windows-1252',
1845 'windows-1256',
1846 'windows-1257',
1847 'koi8-r',
1848 'big5',
1849 'gb2312',
1850 'utf-16',
1851 'utf-8',
1852 'utf-7',
1853 'x-user-defined',
1854 'euc-jp',
1855 'ks_c_5601-1987',
1856 'tis-620',
1857 'SHIFT_JIS'
1861 /*******************************************************************************
1862 * Customization & design
1864 * The graphical settings are now located in themes/theme-name/layout.inc.php
1868 * enable the left panel pointer
1869 * (used when LeftFrameLight is false)
1870 * see also LeftPointerColor
1871 * in layout.inc.php
1873 * @global boolean $cfg['LeftPointerEnable']
1875 $cfg['LeftPointerEnable'] = true;
1878 * enable the browse pointer
1879 * see also BrowsePointerColor
1880 * in layout.inc.php
1882 * @global boolean $cfg['BrowsePointerEnable']
1884 $cfg['BrowsePointerEnable'] = true;
1887 * enable the browse marker
1888 * see also BrowseMarkerColor
1889 * in layout.inc.php
1891 * @global boolean $cfg['BrowseMarkerEnable']
1893 $cfg['BrowseMarkerEnable'] = true;
1896 * textarea size (columns) in edit mode
1897 * (this value will be emphasized (*2) for SQL
1898 * query textareas and (*1.25) for query window)
1900 * @global integer $cfg['TextareaCols']
1902 $cfg['TextareaCols'] = 40;
1905 * textarea size (rows) in edit mode
1907 * @global integer $cfg['TextareaRows']
1909 $cfg['TextareaRows'] = 7;
1912 * double size of textarea size for LONGTEXT fields
1914 * @global boolean $cfg['LongtextDoubleTextarea']
1916 $cfg['LongtextDoubleTextarea'] = true;
1919 * auto-select when clicking in the textarea of the query-box
1921 * @global boolean $cfg['TextareaAutoSelect']
1923 $cfg['TextareaAutoSelect'] = false;
1926 * textarea size (columns) for CHAR/VARCHAR
1928 * @global integer $cfg['CharTextareaCols']
1930 $cfg['CharTextareaCols'] = 40;
1933 * textarea size (rows) for CHAR/VARCHAR
1935 * @global integer $cfg['CharTextareaRows']
1937 $cfg['CharTextareaRows'] = 2;
1940 * Enable Ctrl+Arrows moving between fields when editing?
1942 * @global boolean $cfg['CtrlArrowsMoving']
1944 $cfg['CtrlArrowsMoving'] = true;
1947 * Max field data length in browse mode for all non-numeric fields
1949 * @global integer $cfg['LimitChars']
1951 $cfg['LimitChars'] = 50;
1954 * show edit/delete links on left side of browse
1955 * (or at the top with vertical browse)
1957 * @global boolean $cfg['ModifyDeleteAtLeft']
1959 $cfg['ModifyDeleteAtLeft'] = true;
1962 * show edit/delete links on right side of browse
1963 * (or at the bottom with vertical browse)
1965 * @global boolean $cfg['ModifyDeleteAtRight']
1967 $cfg['ModifyDeleteAtRight'] = false;
1970 * default display direction (horizontal|vertical|horizontalflipped)
1972 * @global string $cfg['DefaultDisplay']
1974 $cfg['DefaultDisplay'] = 'horizontal';
1977 * default display direction for altering/creating columns (tbl_properties)
1978 * (horizontal|vertical|<number>)
1979 * number indicates maximal number for which vertical model is used
1981 * @global integer $cfg['DefaultPropDisplay']
1983 $cfg['DefaultPropDisplay'] = 3;
1986 * table-header rotation via faking or CSS? (css|fake)
1987 * NOTE: CSS only works in IE browsers!
1989 * @global string $cfg['HeaderFlipType']
1991 $cfg['HeaderFlipType'] = 'css';
1994 * shows stored relation-comments in 'browse' mode.
1996 * @global boolean $cfg['ShowBrowseComments']
1998 $cfg['ShowBrowseComments'] = true;
2001 * shows stored relation-comments in 'table property' mode.
2003 * @global boolean $cfg['ShowPropertyComments']
2005 $cfg['ShowPropertyComments']= true;
2008 * repeat header names every X cells? (0 = deactivate)
2010 * @global integer $cfg['RepeatCells']
2012 $cfg['RepeatCells'] = 100;
2015 * Set to true if Edit link should open the query to edit in the query window
2016 * (assuming JavaScript is enabled), and to false if we should edit in the right panel
2018 * @global boolean $cfg['EditInWindow']
2020 $cfg['EditInWindow'] = true;
2023 * Width of Query window
2025 * @global integer $cfg['QueryWindowWidth']
2027 $cfg['QueryWindowWidth'] = 550;
2030 * Height of Query window
2032 * @global integer $cfg['QueryWindowHeight']
2034 $cfg['QueryWindowHeight'] = 310;
2037 * Set to true if you want DB-based query history.If false, this utilizes
2038 * JS-routines to display query history (lost by window close)
2040 * @global boolean $cfg['QueryHistoryDB']
2042 $cfg['QueryHistoryDB'] = false;
2045 * which tab to display in the querywindow on startup
2046 * (sql|files|history|full)
2048 * @global string $cfg['QueryWindowDefTab']
2050 $cfg['QueryWindowDefTab'] = 'sql';
2053 * When using DB-based query history, how many entries should be kept?
2055 * @global integer $cfg['QueryHistoryMax']
2057 $cfg['QueryHistoryMax'] = 25;
2060 * Use MIME-Types (stored in column comments table) for
2062 * @global boolean $cfg['BrowseMIME']
2064 $cfg['BrowseMIME'] = true;
2067 * When approximate count < this, PMA will get exact count for table rows.
2069 * @global integer $cfg['MaxExactCount']
2071 $cfg['MaxExactCount'] = 20000;
2074 * Zero means that no row count is done for views; see the doc
2076 * @global integer $cfg['MaxExactCountViews']
2078 $cfg['MaxExactCountViews'] = 0;
2081 * Utilize DHTML/JS capabilities to allow WYSIWYG editing of
2082 * the PDF page editor. Requires an IE6/Gecko based browser.
2084 * @global boolean $cfg['WYSIWYG-PDF']
2086 $cfg['WYSIWYG-PDF'] = true;
2089 * Sort table and database in natural order
2091 * @global boolean $cfg['NaturalOrder']
2093 $cfg['NaturalOrder'] = true;
2096 * Initial state for sliders
2097 * (open | closed)
2099 * @global string $cfg['InitialSlidersState']
2101 $cfg['InitialSlidersState'] = 'closed';
2105 //-----------------------------------------------------------------------------
2106 // custom-setup by mkkeck: 2004-05-04
2107 // some specials for new icons and scrolling
2109 * @todo 2004-05-08 rabus: We need to rearrange these variables.
2113 /*******************************************************************************
2114 * Window title settings
2118 * title of browser window when a table is selected
2120 * @global string $cfg['TitleTable']
2122 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2125 * title of browser window when a database is selected
2127 * @global string $cfg['TitleDatabase']
2129 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2132 * title of browser window when a server is selected
2134 * @global string $cfg['TitleServer']
2136 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2139 * title of browser window when nothing is selected
2140 * @global string $cfg['TitleDefault']
2142 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2145 * show some icons for warning, error and information messages (true|false)?
2147 * @global boolean $cfg['ErrorIconic']
2149 $cfg['ErrorIconic'] = true;
2152 * show icons in list on main page and on menu tabs (true|false)?
2154 * @global boolean $cfg['MainPageIconic']
2156 $cfg['MainPageIconic'] = true;
2159 * show help button instead of strDocu (true|false)?
2161 * @global boolean $cfg['ReplaceHelpImg']
2163 $cfg['ReplaceHelpImg'] = true;
2166 /*******************************************************************************
2167 * theme manager
2171 * using themes manager please set up here the path to 'themes' else leave empty
2173 * @global string $cfg['ThemePath']
2175 $cfg['ThemePath'] = './themes';
2178 * if you want to use selectable themes and if ThemesPath not empty
2179 * set it to true, else set it to false (default is false);
2181 * @global boolean $cfg['ThemeManager']
2183 $cfg['ThemeManager'] = true;
2186 * set up default theme, if ThemePath not empty you can set up here an valid
2187 * path to themes or 'original' for the original pma-theme
2189 * @global string $cfg['ThemeDefault']
2191 $cfg['ThemeDefault'] = 'original';
2194 * allow different theme for each configured server
2196 * @global boolean $cfg['ThemePerServer']
2198 $cfg['ThemePerServer'] = false;
2201 /*******************************************************************************
2206 * Default queries
2207 * %d will be replaced by the database name.
2208 * %t will be replaced by the table name.
2209 * %f will be replaced by a list of field names.
2210 * (%t and %f only applies to DefaultQueryTable)
2212 * @global string $cfg['DefaultQueryTable']
2214 $cfg['DefaultQueryTable'] = 'SELECT * FROM %t WHERE 1';
2217 * Default queries
2218 * %d will be replaced by the database name.
2219 * %t will be replaced by the table name.
2220 * %f will be replaced by a list of field names.
2221 * (%t and %f only applies to DefaultQueryTable)
2223 * @global string $cfg['DefaultQueryDatabase']
2225 $cfg['DefaultQueryDatabase'] = '';
2228 /*******************************************************************************
2229 * SQL Query box settings
2230 * These are the links display in all of the SQL Query boxes
2232 * @global array $cfg['SQLQuery']
2234 $cfg['SQLQuery'] = array();
2237 * Edit link to change a query
2239 * @global boolean $cfg['SQLQuery']['Edit']
2241 $cfg['SQLQuery']['Edit'] = true;
2244 * EXPLAIN on SELECT queries
2246 * @global boolean $cfg['SQLQuery']['Explain']
2248 $cfg['SQLQuery']['Explain'] = true;
2251 * Wrap a query in PHP
2253 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2255 $cfg['SQLQuery']['ShowAsPHP'] = true;
2258 * Validate a query (see $cfg['SQLValidator'] as well)
2260 * @global boolean $cfg['SQLQuery']['Validate']
2262 $cfg['SQLQuery']['Validate'] = false;
2265 * Refresh the results page
2267 * @global boolean $cfg['SQLQuery']['Refresh']
2269 $cfg['SQLQuery']['Refresh'] = true;
2272 /*******************************************************************************
2273 * Web server upload/save/import directories
2277 * Directory for uploaded files that can be executed by phpMyAdmin.
2278 * For example './upload'. Leave empty for no upload directory support.
2279 * Use %u for username inclusion.
2281 * @global string $cfg['UploadDir']
2283 $cfg['UploadDir'] = '';
2286 * Directory where phpMyAdmin can save exported data on server.
2287 * For example './save'. Leave empty for no save directory support.
2288 * Use %u for username inclusion.
2290 * @global string $cfg['SaveDir']
2292 $cfg['SaveDir'] = '';
2295 * Directory where phpMyAdmin can save temporary files.
2296 * This is needed for MS Excel export, see documentation how to enable that.
2298 * @global string $cfg['TempDir']
2300 $cfg['TempDir'] = '';
2304 * Misc. settings
2308 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2309 * which is the only safe way to determine GD version.
2311 * @global string $cfg['GD2Available']
2313 $cfg['GD2Available'] = 'auto';
2316 * Lists proxy IP and HTTP header combinations which are trusted for IP allow/deny
2318 * @global array $cfg['TrustedProxies']
2320 $cfg['TrustedProxies'] = array();
2323 * We normally check the permissions on the configuration file to ensure
2324 * it's not world writable. However, phpMyAdmin could be installed on
2325 * a NTFS filesystem mounted on a non-Windows server, in which case the
2326 * permissions seems wrong but in fact cannot be detected. In this case
2327 * a sysadmin would set the following to false.
2329 $cfg['CheckConfigurationPermissions'] = true;
2331 /*******************************************************************************
2332 * SQL Parser Settings
2334 * @global array $cfg['SQP']
2336 $cfg['SQP'] = array();
2339 * Pretty-printing style to use on queries (html, text, none)
2341 * @global string $cfg['SQP']['fmtType']
2343 $cfg['SQP']['fmtType'] = 'html';
2346 * Amount to indent each level (floats are valid)
2348 * @global integer $cfg['SQP']['fmtInd']
2350 $cfg['SQP']['fmtInd'] = '1';
2353 * Units for indenting each level (CSS Types - {em, px, pt})
2355 * @global string $cfg['SQP']['fmtIndUnit']
2357 $cfg['SQP']['fmtIndUnit'] = 'em';
2360 /*******************************************************************************
2361 * If you wish to use the SQL Validator service, you should be aware of the
2362 * following:
2363 * All SQL statements are stored anonymously for statistical purposes.
2364 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
2365 * All rights reserved.
2367 * @global array $cfg['SQLValidator']
2369 $cfg['SQLValidator'] = array();
2372 * Make the SQL Validator available
2374 * @global boolean $cfg['SQLValidator']['use']
2376 $cfg['SQLValidator']['use'] = false;
2379 * If you have a custom username, specify it here (defaults to anonymous)
2381 * @global string $cfg['SQLValidator']['username']
2383 $cfg['SQLValidator']['username'] = '';
2386 * Password for username
2388 * @global string $cfg['SQLValidator']['password']
2390 $cfg['SQLValidator']['password'] = '';
2393 /*******************************************************************************
2394 * Developers ONLY!
2396 * @global array $cfg['DBG']
2398 $cfg['DBG'] = array();
2401 * Output executed queries and their execution times
2403 * @global boolean $cfg['DBG']['sql']
2405 $cfg['DBG']['sql'] = false;
2408 * Make the DBG stuff available
2409 * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
2411 * @global boolean $cfg['DBG']['php']
2413 $cfg['DBG']['php'] = false;
2416 * Produce profiling results of PHP
2418 * @global boolean $cfg['DBG']['profile']['enable']
2420 $cfg['DBG']['profile']['enable'] = false;
2423 * Threshold of long running code to display
2424 * Anything below the threshold is not displayed
2426 * @global float $cfg['DBG']['profile']['threshold']
2428 $cfg['DBG']['profile']['threshold'] = 0.5;
2431 /*******************************************************************************
2432 * MySQL settings
2436 * Column types;
2437 * VARCHAR, TINYINT, TEXT and DATE are listed first, based on estimated popularity
2439 * @global array $cfg['ColumnTypes']
2441 $cfg['ColumnTypes'] = array(
2442 // most used
2443 'INT',
2444 'VARCHAR',
2445 'TEXT',
2446 'DATE',
2448 // numeric
2449 'NUMERIC' => array(
2450 'TINYINT',
2451 'SMALLINT',
2452 'MEDIUMINT',
2453 'INT',
2454 'BIGINT',
2455 '-',
2456 'DECIMAL',
2457 'FLOAT',
2458 'DOUBLE',
2459 'REAL',
2460 '-',
2461 'BIT',
2462 'BOOL',
2463 'SERIAL',
2467 // Date/Time
2468 'DATE and TIME' => array(
2469 'DATE',
2470 'DATETIME',
2471 'TIMESTAMP',
2472 'TIME',
2473 'YEAR',
2476 // Text
2477 'STRING' => array(
2478 'CHAR',
2479 'VARCHAR',
2480 '-',
2481 'TINYTEXT',
2482 'TEXT',
2483 'MEDIUMTEXT',
2484 'LONGTEXT',
2485 '-',
2486 'BINARY',
2487 'VARBINARY',
2488 '-',
2489 'TINYBLOB',
2490 'MEDIUMBLOB',
2491 'BLOB',
2492 'LONGBLOB',
2493 '-',
2494 'ENUM',
2495 'SET',
2498 'SPATIAL' => array(
2499 'GEOMETRY',
2500 'POINT',
2501 'LINESTRING',
2502 'POLYGON',
2503 'MULTIPOINT',
2504 'MULTILINESTRING',
2505 'MULTIPOLYGON',
2506 'GEOMETRYCOLLECTION',
2511 * Attributes
2513 * @global array $cfg['AttributeTypes']
2515 $cfg['AttributeTypes'] = array(
2517 'BINARY',
2518 'UNSIGNED',
2519 'UNSIGNED ZEROFILL',
2520 'on update CURRENT_TIMESTAMP',
2524 if ($cfg['ShowFunctionFields']) {
2526 * Available functions
2528 * @global array $cfg['Functions']
2530 $cfg['Functions'] = array(
2531 'ABS',
2532 'ACOS',
2533 'ASCII',
2534 'ASIN',
2535 'ATAN',
2536 'BIN',
2537 'BIT_COUNT',
2538 'BIT_LENGTH',
2539 'CEILING',
2540 'CHAR',
2541 'CHAR_LENGTH',
2542 'COMPRESS',
2543 'COS',
2544 'COT',
2545 'CRC32',
2546 'CURDATE',
2547 'CURRENT_USER',
2548 'CURTIME',
2549 'DATE',
2550 'DAYNAME',
2551 'DEGREES',
2552 'DES_DECRYPT',
2553 'DES_ENCRYPT',
2554 'ENCRYPT',
2555 'EXP',
2556 'FLOOR',
2557 'FROM_DAYS',
2558 'FROM_UNIXTIME',
2559 'HEX',
2560 'INET_ATON',
2561 'INET_NTOA',
2562 'LENGTH',
2563 'LN',
2564 'LOG',
2565 'LOG10',
2566 'LOG2',
2567 'LOWER',
2568 'MD5',
2569 'NOW',
2570 'OCT',
2571 'OLD_PASSWORD',
2572 'ORD',
2573 'PASSWORD',
2574 'RADIANS',
2575 'RAND',
2576 'REVERSE',
2577 'ROUND',
2578 'SEC_TO_TIME',
2579 'SHA1',
2580 'SOUNDEX',
2581 'SPACE',
2582 'SQRT',
2583 'STDDEV_POP',
2584 'STDDEV_SAMP',
2585 'TAN',
2586 'TIMESTAMP',
2587 'TIME_TO_SEC',
2588 'UNCOMPRESS',
2589 'UNHEX',
2590 'UNIX_TIMESTAMP',
2591 'UPPER',
2592 'USER',
2593 'UTC_DATE',
2594 'UTC_TIME',
2595 'UTC_TIMESTAMP',
2596 'UUID',
2597 'VAR_POP',
2598 'VAR_SAMP',
2599 'YEAR',
2603 * Which column types will be mapped to which Group?
2605 * @global array $cfg['RestrictColumnTypes']
2607 $cfg['RestrictColumnTypes'] = array(
2608 'TINYINT' => 'FUNC_NUMBER',
2609 'SMALLINT' => 'FUNC_NUMBER',
2610 'MEDIUMINT' => 'FUNC_NUMBER',
2611 'INT' => 'FUNC_NUMBER',
2612 'BIGINT' => 'FUNC_NUMBER',
2613 'DECIMAL' => 'FUNC_NUMBER',
2614 'FLOAT' => 'FUNC_NUMBER',
2615 'DOUBLE' => 'FUNC_NUMBER',
2616 'REAL' => 'FUNC_NUMBER',
2617 'BIT' => 'FUNC_NUMBER',
2618 'BOOL' => 'FUNC_NUMBER',
2619 'SERIAL' => 'FUNC_NUMBER',
2621 'DATE' => 'FUNC_DATE',
2622 'DATETIME' => 'FUNC_DATE',
2623 'TIMESTAMP' => 'FUNC_DATE',
2624 'TIME' => 'FUNC_DATE',
2625 'YEAR' => 'FUNC_DATE',
2627 'CHAR' => 'FUNC_CHAR',
2628 'VARCHAR' => 'FUNC_CHAR',
2629 'TINYTEXT' => 'FUNC_CHAR',
2630 'TEXT' => 'FUNC_CHAR',
2631 'MEDIUMTEXT' => 'FUNC_CHAR',
2632 'LONGTEXT' => 'FUNC_CHAR',
2633 'BINARY' => 'FUNC_CHAR',
2634 'VARBINARY' => 'FUNC_CHAR',
2635 'TINYBLOB' => 'FUNC_CHAR',
2636 'MEDIUMBLOB' => 'FUNC_CHAR',
2637 'BLOB' => 'FUNC_CHAR',
2638 'LONGBLOB' => 'FUNC_CHAR',
2639 'ENUM' => '',
2640 'SET' => '',
2642 'GEOMETRY' => 'FUNC_SPATIAL',
2643 'POINT' => 'FUNC_SPATIAL',
2644 'LINESTRING' => 'FUNC_SPATIAL',
2645 'POLYGON' => 'FUNC_SPATIAL',
2646 'MULTIPOINT' => 'FUNC_SPATIAL',
2647 'MULTILINESTRING' => 'FUNC_SPATIAL',
2648 'MULTIPOLYGON' => 'FUNC_SPATIAL',
2649 'GEOMETRYCOLLECTION' => 'FUNC_SPATIAL',
2654 * Map above defined groups to any function
2656 * @global array $cfg['RestrictFunctions']
2658 $cfg['RestrictFunctions'] = array(
2659 'FUNC_CHAR' => array(
2660 'BIN',
2661 'CHAR',
2662 'CURRENT_USER',
2663 'COMPRESS',
2664 'DAYNAME',
2665 'DES_DECRYPT',
2666 'DES_ENCRYPT',
2667 'ENCRYPT',
2668 'HEX',
2669 'INET_NTOA',
2670 'LOWER',
2671 'MD5',
2672 'OLD_PASSWORD',
2673 'PASSWORD',
2674 'REVERSE',
2675 'SHA1',
2676 'SOUNDEX',
2677 'SPACE',
2678 'UNCOMPRESS',
2679 'UNHEX',
2680 'UPPER',
2681 'USER',
2682 'UUID',
2685 'FUNC_DATE' => array(
2686 'CURDATE',
2687 'CURTIME',
2688 'DATE',
2689 'FROM_DAYS',
2690 'FROM_UNIXTIME',
2691 'NOW',
2692 'SEC_TO_TIME',
2693 'TIMESTAMP',
2694 'UTC_DATE',
2695 'UTC_TIME',
2696 'UTC_TIMESTAMP',
2697 'YEAR',
2700 'FUNC_NUMBER' => array(
2701 'ABS',
2702 'ACOS',
2703 'ASCII',
2704 'ASIN',
2705 'ATAN',
2706 'BIT_LENGTH',
2707 'BIT_COUNT',
2708 'CEILING',
2709 'CHAR_LENGTH',
2710 'COS',
2711 'COT',
2712 'CRC32',
2713 'DEGREES',
2714 'EXP',
2715 'FLOOR',
2716 'INET_ATON',
2717 'LENGTH',
2718 'LN',
2719 'LOG',
2720 'LOG2',
2721 'LOG10',
2722 'OCT',
2723 'ORD',
2724 'RADIANS',
2725 'RAND',
2726 'ROUND',
2727 'SQRT',
2728 'STDDEV_POP',
2729 'STDDEV_SAMP',
2730 'TAN',
2731 'TIME_TO_SEC',
2732 'UNIX_TIMESTAMP',
2733 'VAR_POP',
2734 'VAR_SAMP',
2737 'FUNC_SPATIAL' => array(
2738 'GeomFromText',
2739 'GeomFromWKB',
2741 'GeomCollFromText',
2742 'LineFromText',
2743 'MLineFromText',
2744 'PointFromText',
2745 'MPointFromText',
2746 'PolyFromText',
2747 'MPolyFromText',
2749 'GeomCollFromWKB',
2750 'LineFromWKB',
2751 'MLineFromWKB',
2752 'PointFromWKB',
2753 'MPointFromWKB',
2754 'PolyFromWKB',
2755 'MPolyFromWKB',
2760 * Default functions for above defined groups
2762 * @global array $cfg['DefaultFunctions']
2764 $cfg['DefaultFunctions'] = array(
2765 'FUNC_CHAR' => '',
2766 'FUNC_DATE' => '',
2767 'FUNC_NUMBER' => '',
2768 'first_timestamp' => 'NOW',
2769 'pk_char36' => 'UUID',
2773 } // end if
2776 * Search operators
2778 * @global array $cfg['NumOperators']
2780 $cfg['NumOperators'] = array(
2781 '=',
2782 '>',
2783 '>=',
2784 '<',
2785 '<=',
2786 '!=',
2787 'LIKE',
2788 'NOT LIKE',
2792 * Search operators
2794 * @global array $cfg['TextOperators']
2796 $cfg['TextOperators'] = array(
2797 'LIKE',
2798 'LIKE %...%',
2799 'NOT LIKE',
2800 '=',
2801 '!=',
2802 'REGEXP',
2803 'NOT REGEXP',
2804 "= ''",
2805 "!= ''"
2809 * Search operators
2811 * @global array $cfg['EnumOperators']
2813 $cfg['EnumOperators'] = array(
2814 '=',
2815 '!=',
2819 * Search operators
2821 * @global array $cfg['SetOperators']
2823 $cfg['SetOperators'] = array(
2824 'IN',
2825 'NOT IN',
2829 * Search operators
2831 * @global array $cfg['NullOperators']
2833 $cfg['NullOperators'] = array(
2834 'IS NULL',
2835 'IS NOT NULL',
2839 * Search operators
2841 * @global array $cfg['UnaryOperators']
2843 $cfg['UnaryOperators'] = array(
2844 'IS NULL' => 1,
2845 'IS NOT NULL' => 1,
2846 "= ''" => 1,
2847 "!= ''" => 1