Complete docs for controuser/controlpass.
[phpmyadmin/crack.git] / libraries / config.default.php
blobf0b5da9606c6d4d9b7968cdca6c0cacccf9a42c8
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$
22 /**
23 * Your phpMyAdmin URL.
25 * Complete the variable below with the full URL ie
26 * http://www.your_web.net/path_to_your_phpMyAdmin_directory/
28 * It must contain characters that are valid for a URL, and the path is
29 * case sensitive on some Web servers, for example Unix-based servers.
31 * In most cases you can leave this variable empty, as the correct value
32 * will be detected automatically. However, we recommend that you do
33 * test to see that the auto-detection code works in your system. A good
34 * test is to browse a table, then edit a row and save it. There will be
35 * an error message if phpMyAdmin cannot auto-detect the correct value.
37 * @global string $cfg['PmaAbsoluteUri']
39 $cfg['PmaAbsoluteUri'] = '';
41 /**
42 * Disable the default warning that is displayed on the DB Details Structure page if
43 * any of the required Tables for the relation features could not be found
45 * @global boolean $cfg['PmaNoRelation_DisableWarning']
47 $cfg['PmaNoRelation_DisableWarning'] = false;
49 /**
50 * Disable the default warning that is displayed if Suhosin is detected
52 * @global boolean $cfg['SuhosinDisableWarning']
54 $cfg['SuhosinDisableWarning'] = false;
56 /**
57 * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
58 * at least one server configuration uses 'cookie' auth_type, enter here a
59 * pass phrase that will be used by blowfish. The maximum length seems to be 46
60 * characters.
62 * @global string $cfg['blowfish_secret']
64 $cfg['blowfish_secret'] = '';
67 /*******************************************************************************
68 * Server(s) configuration
70 * The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
71 * $cfg['Servers'][0]. You can disable a server configuration entry by setting host
72 * to ''. If you want more than one server, just copy following section
73 * (including $i incrementation) several times. There is no need to define
74 * full server array, just define values you need to change.
76 * @global array $cfg['Servers']
78 $cfg['Servers'] = array();
80 $i = 1;
82 /**
83 * MySQL hostname or IP address
85 * @global string $cfg['Servers'][$i]['host']
87 $cfg['Servers'][$i]['host'] = 'localhost';
89 /**
90 * MySQL port - leave blank for default port
92 * @global string $cfg['Servers'][$i]['port']
94 $cfg['Servers'][$i]['port'] = '';
96 /**
97 * Path to the socket - leave blank for default socket
99 * @global string $cfg['Servers'][$i]['socket']
101 $cfg['Servers'][$i]['socket'] = '';
104 * Use SSL for connecting to MySQL server?
106 * @global boolean $cfg['Servers'][$i]['ssl']
108 $cfg['Servers'][$i]['ssl'] = false;
111 * How to connect to MySQL server ('tcp' or 'socket')
113 * @global string $cfg['Servers'][$i]['connect_type']
115 $cfg['Servers'][$i]['connect_type'] = 'tcp';
118 * The PHP MySQL extension to use ('mysql' or 'mysqli')
120 * @global string $cfg['Servers'][$i]['extension']
122 $cfg['Servers'][$i]['extension'] = 'mysql';
125 * Use compressed protocol for the MySQL connection (requires PHP >= 4.3.0)
127 * @global boolean $cfg['Servers'][$i]['compress']
129 $cfg['Servers'][$i]['compress'] = false;
132 * MySQL control user settings (this user must have read-only
133 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
134 * used for all relational features (pmadb)
136 * @global string $cfg['Servers'][$i]['controluser']
138 $cfg['Servers'][$i]['controluser'] = '';
141 * MySQL control user settings (this user must have read-only
142 * access to the "mysql/user" and "mysql/db" tables). The controluser is also
143 * used for all relational features (pmadb)
145 * @global string $cfg['Servers'][$i]['controlpass']
147 $cfg['Servers'][$i]['controlpass'] = '';
150 * Authentication method (valid choices: config, http, signon or cookie)
152 * @global string $cfg['Servers'][$i]['auth_type']
154 $cfg['Servers'][$i]['auth_type'] = 'config';
157 * MySQL user
159 * @global string $cfg['Servers'][$i]['user']
161 $cfg['Servers'][$i]['user'] = 'root';
164 * MySQL password (only needed with 'config' auth_type)
166 * @global string $cfg['Servers'][$i]['password']
168 $cfg['Servers'][$i]['password'] = '';
171 * Session to use for 'signon' authentication method
173 * @global string $cfg['Servers'][$i]['SignonSession']
175 $cfg['Servers'][$i]['SignonSession'] = '';
178 * URL where to redirect user to login for 'signon' authentication method
180 * @global string $cfg['Servers'][$i]['SignonURL']
182 $cfg['Servers'][$i]['SignonURL'] = '';
185 * URL where to redirect user after logout
187 * @global string $cfg['Servers'][$i]['LogoutURL']
189 $cfg['Servers'][$i]['LogoutURL'] = '';
192 * Whether to try to connect without password
194 * @global boolean $cfg['Servers'][$i]['nopassword']
196 $cfg['Servers'][$i]['nopassword'] = false;
199 * If set to a db-name, only this db is displayed in left frame
200 * It may also be an array of db-names, where sorting order is relevant.
202 * @global string $cfg['Servers'][$i]['only_db']
204 $cfg['Servers'][$i]['only_db'] = '';
207 * Database name to be hidden from listings
209 * @global string $cfg['Servers'][$i]['hide_db']
211 $cfg['Servers'][$i]['hide_db'] = '';
214 * Verbose name for this host - leave blank to show the hostname
215 * (for HTTP authentication, all non-US-ASCII characters will be stripped)
217 * @global string $cfg['Servers'][$i]['verbose']
219 $cfg['Servers'][$i]['verbose'] = '';
222 * Database used for Relation, Bookmark and PDF Features
223 * (see scripts/create_tables.sql)
224 * - leave blank for no support
225 * DEFAULT: 'phpmyadmin'
227 * @global string $cfg['Servers'][$i]['pmadb']
229 $cfg['Servers'][$i]['pmadb'] = '';
232 * Bookmark table
233 * - leave blank for no bookmark support
234 * DEFAULT: 'pma_bookmark'
236 * @global string $cfg['Servers'][$i]['bookmarktable']
238 $cfg['Servers'][$i]['bookmarktable'] = '';
241 * table to describe the relation between links (see doc)
242 * - leave blank for no relation-links support
243 * DEFAULT: 'pma_relation'
245 * @global string $cfg['Servers'][$i]['relation']
247 $cfg['Servers'][$i]['relation'] = '';
250 * table to describe the display fields
251 * - leave blank for no display fields support
252 * DEFAULT: 'pma_table_info'
254 * @global string $cfg['Servers'][$i]['table_info']
256 $cfg['Servers'][$i]['table_info'] = '';
259 * table to describe the tables position for the PDF schema
260 * - leave blank for no PDF schema support
261 * DEFAULT: 'pma_table_coords'
263 * @global string $cfg['Servers'][$i]['table_coords']
265 $cfg['Servers'][$i]['table_coords'] = '';
268 * table to describe pages of relationpdf
269 * - leave blank if you don't want to use this
270 * DEFAULT: 'pma_pdf_pages'
272 * @global string $cfg['Servers'][$i]['pdf_pages']
274 $cfg['Servers'][$i]['pdf_pages'] = '';
277 * table to store column information
278 * - leave blank for no column comments/mime types
279 * DEFAULT: 'pma_column_info'
281 * @global string $cfg['Servers'][$i]['column_info']
283 $cfg['Servers'][$i]['column_info'] = '';
286 * table to store SQL history
287 * - leave blank for no SQL query history
288 * DEFAULT: 'pma_history'
290 * @global string $cfg['Servers'][$i]['history']
292 $cfg['Servers'][$i]['history'] = '';
295 * table to store the coordinates for Designer
296 * - leave blank for no Designer feature
297 * DEFAULT: 'pma_designer_coords'
299 * @global string $cfg['Servers'][$i]['designer_coords']
301 $cfg['Servers'][$i]['designer_coords'] = '';
304 * set to false if you know that your pma_* tables are up to date.
305 * This prevents compatibility checks and thereby increases performance.
307 * @global boolean $cfg['Servers'][$i]['verbose_check']
309 $cfg['Servers'][$i]['verbose_check'] = true;
312 * whether to allow root login
314 * @global boolean $cfg['Servers'][$i]['AllowRoot']
316 $cfg['Servers'][$i]['AllowRoot'] = true;
319 * Host authentication order, leave blank to not use
321 * @global string $cfg['Servers'][$i]['AllowDeny']['order']
323 $cfg['Servers'][$i]['AllowDeny']['order'] = '';
326 * Disable use of INFORMATION_SCHEMA
328 * @see http://sf.net/support/tracker.php?aid=1849494
329 * @see http://bugs.mysql.com/19588
330 * @global boolean $cfg['Servers'][$i]['DisableIS']
332 $cfg['Servers'][$i]['DisableIS'] = true;
335 * Host authentication rules, leave blank for defaults
337 * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
339 $cfg['Servers'][$i]['AllowDeny']['rules'] = array();
342 * SQL command to fetch available databases
344 * by default most user will be fine with SHOW DATABASES,
345 * for servers with a huge amount of databases it is possible to
346 * define a command which executes faster but with less information
348 * especially when accessing database servers from ISPs changing this command
349 * can result in a great speed improvement
351 * false will disable fetching databases from the server, only databases in
352 * $cfg['Servers'][$i]['only_db'] will be displayed
354 * #user# will be replaced by current user
356 * examples:
357 * 'SHOW DATABASES'
358 * "SHOW DATABASES LIKE '#user#\_%'"
359 * 'SELECT DISTINCT TABLE_SCHEMA FROM information_schema.SCHEMA_PRIVILEGES'
360 * 'SELECT SCHEMA_NAME FROM information_schema.SCHEMATA'
361 * false
363 * @global array $cfg['Servers'][$i]['ShowDatabasesCommand']
365 $cfg['Servers'][$i]['ShowDatabasesCommand'] = 'SHOW DATABASES';
368 * Whether to count tables when showing database list
370 * @global array $cfg['Servers'][$i]['CountTables']
372 $cfg['Servers'][$i]['CountTables'] = true;
375 * Default server (0 = no default server)
377 * If you have more than one server configured, you can set $cfg['ServerDefault']
378 * to any one of them to auto-connect to that server when phpMyAdmin is started,
379 * or set it to 0 to be given a list of servers without logging in
380 * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
381 * set to that server.
383 * @global integer $cfg['ServerDefault']
385 $cfg['ServerDefault'] = 1;
388 * Other core phpMyAdmin settings
391 * maximum number of db's displayed in left frame and database list
393 * @global integer $cfg['MaxDbList']
395 $cfg['MaxDbList'] = 100;
398 * maximum number of tables displayed in table list
400 * @global integer $cfg['MaxTableList']
402 $cfg['MaxTableList'] = 250;
405 * maximum number of characters when a SQL query is displayed
407 * @global integer $cfg['MaxCharactersInDisplayedSQL']
409 $cfg['MaxCharactersInDisplayedSQL'] = 1000;
412 * use GZIP output buffering if possible (true|false|'auto')
414 * @global string $cfg['OBGzip']
416 $cfg['OBGzip'] = 'auto';
419 * use persistent connections to MySQL database
421 * @global boolean $cfg['PersistentConnections']
423 $cfg['PersistentConnections'] = false;
426 * whether to force using HTTPS
428 * @global boolean $cfg['ForceSSL']
430 $cfg['ForceSSL'] = false;
433 * maximum execution time in seconds (0 for no limit)
435 * @global integer $cfg['ExecTimeLimit']
437 $cfg['ExecTimeLimit'] = 300;
440 * maximum allocated bytes (0 for no limit)
442 * @global integer $cfg['MemoryLimit']
444 $cfg['MemoryLimit'] = 0;
447 * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
449 * @global boolean $cfg['SkipLockedTables']
451 $cfg['SkipLockedTables'] = false;
454 * show SQL queries as run
456 * @global boolean $cfg['ShowSQL']
458 $cfg['ShowSQL'] = true;
461 * show a 'Drop database' link to normal users
463 * @global boolean $cfg['AllowUserDropDatabase']
465 $cfg['AllowUserDropDatabase'] = false;
468 * confirm 'DROP TABLE' & 'DROP DATABASE'
470 * @global boolean $cfg['Confirm']
472 $cfg['Confirm'] = true;
475 * recall previous login in cookie authentication mode or not
477 * @global boolean $cfg['LoginCookieRecall']
479 $cfg['LoginCookieRecall'] = true;
482 * validity of cookie login (in seconds)
484 * @global integer $cfg['LoginCookieValidity']
486 $cfg['LoginCookieValidity'] = 1800;
489 * how long login cookie should be stored (in seconds)
491 * @global integer $cfg['LoginCookieStore']
493 $cfg['LoginCookieStore'] = 0;
496 * whether to delete all login cookies on logout
498 * @global boolean $cfg['LoginCookieDeleteAll']
500 $cfg['LoginCookieDeleteAll'] = true;
503 * whether to enable the "database search" feature or not
505 * @global boolean $cfg['UseDbSearch']
507 $cfg['UseDbSearch'] = true;
510 * if set to true, PMA continues computing multiple-statement queries
511 * even if one of the queries failed
513 * @global boolean $cfg['IgnoreMultiSubmitErrors']
515 $cfg['IgnoreMultiSubmitErrors'] = false;
518 * if set to true, PMA will show the affected rows of EACH statement on
519 * multiple-statement queries. See the libraries/import.php file for
520 * hard coded defaults on how many queries a statement may contain!
522 * @global boolean $cfg['VerboseMultiSubmit']
524 $cfg['VerboseMultiSubmit'] = true;
527 * allow login to any user entered server in cookie based authentication
529 * @global boolean $cfg['AllowArbitraryServer']
531 $cfg['AllowArbitraryServer'] = false;
534 /*******************************************************************************
535 * Error handler configuration
537 * this configures phpMyAdmins own error handler, it is used to avoid information
538 * dislcosure, gather errors for logging, reporting and displaying
540 * @global array $cfg['Error_Handler']
542 $cfg['Error_Handler'] = array();
545 * whether to display errors or not
547 * this does not affect errors of type E_USER_*
549 * @global boolean $cfg['Error_Handler']['display']
551 $cfg['Error_Handler']['display'] = false;
554 * where to log errors, false or empty to disable
556 * <code>
557 * // EXAMPLE log to std PHP error log
558 * $cfg['Error_Handler']['log'] = array(0);
559 * // EXAMPLE mail errors
560 * $cfg['Error_Handler']['log'] = array(1, 'admin@example.org');
561 * // EXAMPLE append to specific file
562 * $cfg['Error_Handler']['log'] = array(3, '/var/log/phpmyadmin_error.log');
563 * </code>
565 * @see http://php.net/error_log
566 * @global string $cfg['Error_Handler']['log']
568 $cfg['Error_Handler']['log'] = false;
571 * gather all errors in session to be displayed on a error reporting page
572 * for viewing and/or sending to phpMyAdmin developer team
574 * @global boolean $cfg['Error_Handler']['gather']
576 $cfg['Error_Handler']['gather'] = false;
579 /*******************************************************************************
580 * Left frame setup
584 * use a select-based menu and display only the current tables in the left frame.
586 * @global boolean $cfg['LeftFrameLight']
588 $cfg['LeftFrameLight'] = true;
591 * turn the select-based light menu into a tree
593 * @global boolean $cfg['LeftFrameDBTree']
595 $cfg['LeftFrameDBTree'] = true;
598 * the separator to sub-tree the select-based light menu tree
600 * @global string $cfg['LeftFrameDBSeparator']
602 $cfg['LeftFrameDBSeparator'] = '_';
605 * Which string will be used to generate table prefixes
606 * to split/nest tables into multiple categories
608 * @global string $cfg['LeftFrameTableSeparator']
610 $cfg['LeftFrameTableSeparator']= '__';
613 * How many sublevels should be displayed when splitting up tables by the above Separator
615 * @global integer $cfg['LeftFrameTableLevel']
617 $cfg['LeftFrameTableLevel'] = '1';
620 * display table comment as tooltip in left frame
622 * @global boolean $cfg['ShowTooltip']
624 $cfg['ShowTooltip'] = true;
627 * if ShowToolTip is enabled, this defines that table/db comments
629 * @global boolean $cfg['ShowTooltipAliasDB']
631 $cfg['ShowTooltipAliasDB'] = false;
634 * are shown (in the left menu and db_structure) instead of table/db names.
635 * Setting ShowTooltipAliasTB to 'nested' will only use the Aliases for nested
636 * descriptors, not the table itself.
638 * @global boolean $cfg['ShowTooltipAliasTB']
640 $cfg['ShowTooltipAliasTB'] = false;
643 * display logo at top of left frame
645 * @global boolean $cfg['LeftDisplayLogo']
647 $cfg['LeftDisplayLogo'] = true;
650 * where should logo link point to (can also contain an external URL)
652 * @global string $cfg['LeftLogoLink']
654 $cfg['LeftLogoLink'] = 'main.php';
657 * whether to open the linked page in the main window ('main') or
658 * in a new window ('new')
660 * @global string $cfg['LeftLogoLinkWindow']
662 $cfg['LeftLogoLinkWindow'] = 'main';
665 * display server choice at top of left frame
667 * @global boolean $cfg['LeftDisplayServers']
669 $cfg['LeftDisplayServers'] = false;
672 * server choice as links
674 * @global boolean $cfg['DisplayServersList']
676 $cfg['DisplayServersList'] = false;
679 * database choice in light as links
681 * @global boolean $cfg['DisplayDatabasesList']
683 $cfg['DisplayDatabasesList'] = 'auto';
686 * target of the navigation panel quick access icon
688 * Possible values:
689 * 'tbl_structure.php' = fields list
690 * 'tbl_sql.php' = SQL form
691 * 'tbl_select.php' = search page
692 * 'tbl_change.php' = insert row page
693 * 'sql.php' = browse page
695 * @global string $cfg['LeftDefaultTabTable']
697 $cfg['LeftDefaultTabTable'] = 'tbl_structure.php';
700 /*******************************************************************************
701 * In the main frame, at startup...
705 * allow to display statistics and space usage in the pages about database
706 * details and table properties
708 * @global boolean $cfg['ShowStats']
710 $cfg['ShowStats'] = true;
713 * show PHP info link
715 * @global boolean $cfg['ShowPhpInfo']
717 $cfg['ShowPhpInfo'] = false;
720 * show MySQL server information
722 * @global boolean $cfg['ShowServerInfo']
724 $cfg['ShowServerInfo'] = true;
727 * show change password link
729 * @global boolean $cfg['ShowChgPassword']
731 $cfg['ShowChgPassword'] = false;
734 * show create database form
736 * @global boolean $cfg['ShowCreateDb']
738 $cfg['ShowCreateDb'] = true;
741 * suggest a new DB name if possible (false = keep empty)
743 * @global boolean $cfg['SuggestDBName']
745 $cfg['SuggestDBName'] = true;
748 /*******************************************************************************
749 * In browse mode...
753 * Use icons instead of text for the navigation bar buttons
754 * and on right panel top menu (server db table) (true|false|'both')
756 * @global string $cfg['NavigationBarIconic']
758 $cfg['NavigationBarIconic'] = 'both';
761 * allows to display all the rows
763 * @global boolean $cfg['ShowAll']
765 $cfg['ShowAll'] = false;
768 * maximum number of rows to display
770 * @global integer $cfg['MaxRows']
772 $cfg['MaxRows'] = 30;
775 * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
776 * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
777 * ascending order else-)
779 * @global string $cfg['Order']
781 $cfg['Order'] = 'ASC';
784 /*******************************************************************************
785 * In edit mode...
789 * disallow editing of binary fields
790 * valid values are:
791 * false allow editing
792 * 'blob' allow editing except for BLOB fields
793 * 'all' disallow editing
795 * @global string $cfg['ProtectBinary']
797 $cfg['ProtectBinary'] = 'blob';
800 * Display the function fields in edit/insert mode
802 * @global boolean $cfg['ShowFunctionFields']
804 $cfg['ShowFunctionFields'] = true;
807 * Which editor should be used for CHAR/VARCHAR fields:
808 * input - allows limiting of input length
809 * textarea - allows newlines in fields
811 * @global string $cfg['CharEditing']
813 $cfg['CharEditing'] = 'input';
816 * How many rows can be inserted at one time
818 * @global integer $cfg['InsertRows']
820 $cfg['InsertRows'] = 2;
823 * Sort order for items in a foreign-key drop-down list.
824 * 'content' is the referenced data, 'id' is the key value.
826 * @global array $cfg['ForeignKeyDropdownOrder']
828 $cfg['ForeignKeyDropdownOrder'] = array('content-id', 'id-content');
831 * A drop-down list will be used if fewer items are present
833 * @global integer $cfg['ForeignKeyMaxLimit']
835 $cfg['ForeignKeyMaxLimit'] = 100;
838 /*******************************************************************************
839 * For the export features...
843 * Allow the use of zip/gzip/bzip
845 * @global boolean $cfg['ZipDump']
847 $cfg['ZipDump'] = true;
850 * compression for
852 * @global boolean $cfg['GZipDump']
854 $cfg['GZipDump'] = true;
857 * dump files
859 * @global boolean $cfg['BZipDump']
861 $cfg['BZipDump'] = true;
864 * Will compress gzip/bzip2 exports on fly without need for much memory.
865 * If you encounter problems with created gzip/bzip2 files disable this feature.
867 * @global boolean $cfg['CompressOnFly']
869 $cfg['CompressOnFly'] = true;
872 /*******************************************************************************
873 * Tabs display settings
877 * use graphically less intense menu tabs
879 * @global boolean $cfg['LightTabs']
881 $cfg['LightTabs'] = false;
884 * Use icons instead of text for the table display of a database (true|false|'both')
886 * @global boolean $cfg['PropertiesIconic']
888 $cfg['PropertiesIconic'] = true;
891 * How many columns should be used for table display of a database?
892 * (a value larger than 1 results in some information being hidden)
894 * @global integer $cfg['PropertiesNumColumns']
896 $cfg['PropertiesNumColumns'] = 1;
899 * Possible values:
900 * 'main.php' = the welcome page
901 * (recommended for multiuser setups)
902 * 'server_databases.php' = list of databases
903 * 'server_status.php' = runtime information
904 * 'server_variables.php' = MySQL server variables
905 * 'server_privileges.php' = user management
906 * 'server_processlist.php' = process list
908 * @global string $cfg['DefaultTabServer']
910 $cfg['DefaultTabServer'] = 'main.php';
913 * Possible values:
914 * 'db_structure.php' = tables list
915 * 'db_sql.php' = SQL form
916 * 'db_search.php' = search query
917 * 'db_operations.php' = operations on database
919 * @global string $cfg['DefaultTabDatabase']
921 $cfg['DefaultTabDatabase'] = 'db_structure.php';
924 * Possible values:
925 * 'tbl_structure.php' = fields list
926 * 'tbl_sql.php' = SQL form
927 * 'tbl_select.php' = search page
928 * 'tbl_change.php' = insert row page
929 * 'sql.php' = browse page
931 * @global string $cfg['DefaultTabTable']
933 $cfg['DefaultTabTable'] = 'sql.php';
936 /*******************************************************************************
937 * Export defaults
939 $cfg['Export'] = array();
942 * sql/latex/excel/csv/xml/xls/htmlexcel/htmlword/ods/odt
944 * @global string $cfg['Export']['format']
946 $cfg['Export']['format'] = 'sql';
949 * none/zip/gzip/bzip2
951 * @global string $cfg['Export']['compression']
953 $cfg['Export']['compression'] = 'none';
958 * @global boolean $cfg['Export']['asfile']
960 $cfg['Export']['asfile'] = false;
965 * @global string $cfg['Export']['charset']
967 $cfg['Export']['charset'] = '';
972 * @global boolean $cfg['Export']['onserver']
974 $cfg['Export']['onserver'] = false;
979 * @global boolean $cfg['Export']['onserver_overwrite']
981 $cfg['Export']['onserver_overwrite'] = false;
986 * @global boolean $cfg['Export']['remember_file_template']
988 $cfg['Export']['remember_file_template'] = true;
993 * @global string $cfg['Export']['file_template_table']
995 $cfg['Export']['file_template_table'] = '__TABLE__';
1000 * @global string $cfg['Export']['file_template_database']
1002 $cfg['Export']['file_template_database'] = '__DB__';
1007 * @global string $cfg['Export']['file_template_server']
1009 $cfg['Export']['file_template_server'] = '__SERVER__';
1014 * @global boolean $cfg['Export']['ods_columns']
1016 $cfg['Export']['ods_columns'] = false;
1021 * @global string $cfg['Export']['ods_null']
1023 $cfg['Export']['ods_null'] = 'NULL';
1028 * @global boolean $cfg['Export']['odt_structure']
1030 $cfg['Export']['odt_structure'] = true;
1035 * @global boolean $cfg['Export']['odt_data']
1037 $cfg['Export']['odt_data'] = true;
1042 * @global boolean $cfg['Export']['odt_columns']
1044 $cfg['Export']['odt_columns'] = true;
1049 * @global boolean $cfg['Export']['odt_relation']
1051 $cfg['Export']['odt_relation'] = true;
1056 * @global boolean $cfg['Export']['odt_comments']
1058 $cfg['Export']['odt_comments'] = true;
1063 * @global boolean $cfg['Export']['odt_mime']
1065 $cfg['Export']['odt_mime'] = true;
1070 * @global string $cfg['Export']['odt_null']
1072 $cfg['Export']['odt_null'] = 'NULL';
1077 * @global boolean $cfg['Export']['htmlexcel_columns']
1079 $cfg['Export']['htmlexcel_columns'] = false;
1084 * @global string $cfg['Export']['htmlexcel_null']
1086 $cfg['Export']['htmlexcel_null'] = 'NULL';
1091 * @global boolean $cfg['Export']['htmlword_structure']
1093 $cfg['Export']['htmlword_structure'] = true;
1098 * @global boolean $cfg['Export']['htmlword_data']
1100 $cfg['Export']['htmlword_data'] = true;
1105 * @global boolean $cfg['Export']['htmlword_columns']
1107 $cfg['Export']['htmlword_columns'] = false;
1112 * @global string $cfg['Export']['htmlword_null']
1114 $cfg['Export']['htmlword_null'] = 'NULL';
1119 * @global boolean $cfg['Export']['texytext_structure']
1121 $cfg['Export']['texytext_structure'] = TRUE;
1126 * @global boolean $cfg['Export']['texytext_data']
1128 $cfg['Export']['texytext_data'] = TRUE;
1133 * @global boolean $cfg['Export']['texytext_columns']
1135 $cfg['Export']['texytext_columns'] = FALSE;
1140 * @global string $cfg['Export']['texytext_null']
1142 $cfg['Export']['texytext_null'] = 'NULL';
1147 * @global boolean $cfg['Export']['xls_columns']
1149 $cfg['Export']['xls_columns'] = false;
1154 * @global string $cfg['Export']['xls_null']
1156 $cfg['Export']['xls_null'] = 'NULL';
1161 * @global boolean $cfg['Export']['csv_columns']
1163 $cfg['Export']['csv_columns'] = false;
1168 * @global string $cfg['Export']['csv_null']
1170 $cfg['Export']['csv_null'] = 'NULL';
1175 * @global string $cfg['Export']['csv_separator']
1177 $cfg['Export']['csv_separator'] = ';';
1182 * @global string $cfg['Export']['csv_enclosed']
1184 $cfg['Export']['csv_enclosed'] = '"';
1189 * @global string $cfg['Export']['csv_escaped']
1191 $cfg['Export']['csv_escaped'] = '\\';
1196 * @global string $cfg['Export']['csv_terminated']
1198 $cfg['Export']['csv_terminated'] = 'AUTO';
1203 * @global boolean $cfg['Export']['excel_columns']
1205 $cfg['Export']['excel_columns'] = false;
1210 * @global string $cfg['Export']['excel_null']
1212 $cfg['Export']['excel_null'] = 'NULL';
1215 * win/mac
1217 * @global string $cfg['Export']['excel_edition']
1219 $cfg['Export']['excel_edition'] = 'win';
1224 * @global boolean $cfg['Export']['latex_structure']
1226 $cfg['Export']['latex_structure'] = true;
1231 * @global boolean $cfg['Export']['latex_data']
1233 $cfg['Export']['latex_data'] = true;
1238 * @global boolean $cfg['Export']['latex_columns']
1240 $cfg['Export']['latex_columns'] = true;
1245 * @global boolean $cfg['Export']['latex_relation']
1247 $cfg['Export']['latex_relation'] = true;
1252 * @global boolean $cfg['Export']['latex_comments']
1254 $cfg['Export']['latex_comments'] = true;
1259 * @global boolean $cfg['Export']['latex_mime']
1261 $cfg['Export']['latex_mime'] = true;
1266 * @global string $cfg['Export']['latex_null']
1268 $cfg['Export']['latex_null'] = '\textit{NULL}';
1273 * @global boolean $cfg['Export']['latex_caption']
1275 $cfg['Export']['latex_caption'] = true;
1280 * @global string $cfg['Export']['latex_structure_caption']
1282 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
1287 * @global string $cfg['Export']['latex_structure_continued_caption']
1289 $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
1294 * @global string $cfg['Export']['latex_data_caption']
1296 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
1301 * @global string $cfg['Export']['latex_data_continued_caption']
1303 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
1308 * @global string $cfg['Export']['latex_data_label']
1310 $cfg['Export']['latex_data_label'] = 'tab:__TABLE__-data';
1315 * @global string $cfg['Export']['latex_structure_label']
1317 $cfg['Export']['latex_structure_label'] = 'tab:__TABLE__-structure';
1322 * @global boolean $cfg['Export']['sql_structure']
1324 $cfg['Export']['sql_structure'] = true;
1329 * @global boolean $cfg['Export']['sql_data']
1331 $cfg['Export']['sql_data'] = true;
1336 * @global string $cfg['Export']['sql_compatibility']
1338 $cfg['Export']['sql_compatibility'] = 'NONE';
1343 * @global boolean $cfg['Export']['sql_disable_fk']
1345 $cfg['Export']['sql_disable_fk'] = false;
1350 * @global boolean $cfg['Export']['sql_use_transaction']
1352 $cfg['Export']['sql_use_transaction'] = false;
1357 * @global boolean $cfg['Export']['sql_drop_database']
1359 $cfg['Export']['sql_drop_database'] = false;
1364 * @global boolean $cfg['Export']['sql_drop_table']
1366 $cfg['Export']['sql_drop_table'] = false;
1371 * @global boolean $cfg['Export']['sql_if_not_exists']
1372 * true by default for correct behavior when dealing with exporting
1373 * of VIEWs and the stand-in table
1375 $cfg['Export']['sql_if_not_exists'] = true;
1380 * @global boolean $cfg['Export']['sql_procedure_function']
1382 $cfg['Export']['sql_procedure_function'] = false;
1387 * @global boolean $cfg['Export']['sql_auto_increment']
1389 $cfg['Export']['sql_auto_increment'] = true;
1394 * @global boolean $cfg['Export']['sql_backquotes']
1396 $cfg['Export']['sql_backquotes'] = true;
1401 * @global boolean $cfg['Export']['sql_dates']
1403 $cfg['Export']['sql_dates'] = false;
1408 * @global boolean $cfg['Export']['sql_relation']
1410 $cfg['Export']['sql_relation'] = false;
1415 * @global boolean $cfg['Export']['sql_columns']
1417 $cfg['Export']['sql_columns'] = true;
1422 * @global boolean $cfg['Export']['sql_delayed']
1424 $cfg['Export']['sql_delayed'] = false;
1429 * @global boolean $cfg['Export']['sql_ignore']
1431 $cfg['Export']['sql_ignore'] = false;
1436 * @global boolean $cfg['Export']['sql_hex_for_blob']
1438 $cfg['Export']['sql_hex_for_blob'] = true;
1441 * insert/update/replace
1443 * @global string $cfg['Export']['sql_type']
1445 $cfg['Export']['sql_type'] = 'insert';
1450 * @global boolean $cfg['Export']['sql_extended']
1452 $cfg['Export']['sql_extended'] = true;
1457 * @global integer $cfg['Export']['sql_max_query_size']
1459 $cfg['Export']['sql_max_query_size'] = 50000;
1464 * @global boolean $cfg['Export']['sql_comments']
1466 $cfg['Export']['sql_comments'] = false;
1471 * @global boolean $cfg['Export']['sql_mime']
1473 $cfg['Export']['sql_mime'] = false;
1476 * \n is replaced by new line
1478 * @global string $cfg['Export']['sql_header_comment']
1480 $cfg['Export']['sql_header_comment'] = '';
1485 * @global boolean $cfg['Export']['pdf_structure']
1487 $cfg['Export']['pdf_structure'] = false;
1492 * @global boolean $cfg['Export']['pdf_data']
1494 $cfg['Export']['pdf_data'] = true;
1499 * @global string $cfg['Export']['pdf_report_title']
1501 $cfg['Export']['pdf_report_title'] = '';
1504 /*******************************************************************************
1505 * Import defaults
1507 $cfg['Import'] = array();
1512 * @global string $cfg['Import']['format']
1514 $cfg['Import']['format'] = 'sql';
1519 * @global boolean $cfg['Import']['allow_interrupt']
1521 $cfg['Import']['allow_interrupt'] = true;
1526 * @global integer $cfg['Import']['skip_queries']
1528 $cfg['Import']['skip_queries'] = '0';
1533 * @global string $cfg['Import']['sql_compatibility']
1535 $cfg['Import']['sql_compatibility'] = 'NONE';
1540 * @global boolean $cfg['Import']['csv_replace']
1542 $cfg['Import']['csv_replace'] = false;
1547 * @global string $cfg['Import']['csv_terminated']
1549 $cfg['Import']['csv_terminated'] = ';';
1554 * @global string $cfg['Import']['csv_enclosed']
1556 $cfg['Import']['csv_enclosed'] = '"';
1561 * @global string $cfg['Import']['csv_escaped']
1563 $cfg['Import']['csv_escaped'] = '\\';
1568 * @global string $cfg['Import']['csv_new_line']
1570 $cfg['Import']['csv_new_line'] = 'auto';
1575 * @global string $cfg['Import']['csv_columns']
1577 $cfg['Import']['csv_columns'] = '';
1582 * @global boolean $cfg['Import']['ldi_replace']
1584 $cfg['Import']['ldi_replace'] = false;
1589 * @global string $cfg['Import']['ldi_terminated']
1591 $cfg['Import']['ldi_terminated'] = ';';
1596 * @global string $cfg['Import']['ldi_enclosed']
1598 $cfg['Import']['ldi_enclosed'] = '"';
1603 * @global string $cfg['Import']['ldi_escaped']
1605 $cfg['Import']['ldi_escaped'] = '\\';
1610 * @global string $cfg['Import']['ldi_new_line']
1612 $cfg['Import']['ldi_new_line'] = 'auto';
1617 * @global string $cfg['Import']['ldi_columns']
1619 $cfg['Import']['ldi_columns'] = '';
1622 * 'auto' for auto-detection, true or false for forcing
1624 * @global string $cfg['Import']['ldi_local_option']
1626 $cfg['Import']['ldi_local_option'] = 'auto';
1629 * Link to the official MySQL documentation.
1630 * Be sure to include no trailing slash on the path.
1631 * See http://dev.mysql.com/doc/ for more information
1632 * about MySQL manuals and their types.
1634 * @global string $cfg['MySQLManualBase']
1636 $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
1639 * Type of MySQL documentation:
1640 * viewable - "viewable online", current one used on MySQL website
1641 * searchable - "Searchable, with user comments"
1642 * chapters - "HTML, one page per chapter"
1643 * chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
1644 * big - "HTML, all on one page"
1645 * old - old style used in phpMyAdmin 2.3.0 and sooner
1646 * none - do not show documentation links
1648 * @global string $cfg['MySQLManualType']
1650 $cfg['MySQLManualType'] = 'viewable';
1653 /*******************************************************************************
1654 * PDF options
1660 * @global array $cfg['PDFPageSizes']
1662 $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
1667 * @global string $cfg['PDFDefaultPageSize']
1669 $cfg['PDFDefaultPageSize'] = 'A4';
1672 /*******************************************************************************
1673 * Language and character set conversion settings
1677 * Default language to use, if not browser-defined or user-defined
1679 * @global string $cfg['DefaultLang']
1681 $cfg['DefaultLang'] = 'en-utf-8';
1684 * Default connection collation
1686 * @global string $cfg['DefaultConnectionCollation']
1688 $cfg['DefaultConnectionCollation'] = 'utf8_general_ci';
1691 * Force: always use this language - must be defined in
1692 * libraries/select_lang.lib.php
1693 * $cfg['Lang'] = 'en-utf-8';
1695 * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
1696 * English only
1698 * @global string $cfg['FilterLanguages']
1700 $cfg['FilterLanguages'] = '';
1703 * Default character set to use for recoding of MySQL queries, does not take
1704 * any effect when character sets recoding is switched off by
1705 * $cfg['AllowAnywhereRecoding'] or in language file
1706 * (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
1708 * @global string $cfg['DefaultCharset']
1710 $cfg['DefaultCharset'] = 'utf-8';
1713 * Allow character set recoding of MySQL queries, must be also enabled in language
1714 * file to make harder using other language files than Unicode.
1715 * Default value is false to avoid problems on servers without the iconv
1716 * extension and where dl() is not supported
1718 * @global boolean $cfg['AllowAnywhereRecoding']
1720 $cfg['AllowAnywhereRecoding'] = false;
1723 * You can select here which functions will be used for character set conversion.
1724 * Possible values are:
1725 * auto - automatically use available one (first is tested iconv, then
1726 * recode)
1727 * iconv - use iconv or libiconv functions
1728 * recode - use recode_string function
1730 * @global string $cfg['RecodingEngine']
1732 $cfg['RecodingEngine'] = 'auto';
1735 * Specify some parameters for iconv used in character set conversion. See iconv
1736 * documentation for details:
1737 * http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
1739 * @global string $cfg['IconvExtraParams']
1741 $cfg['IconvExtraParams'] = '//TRANSLIT';
1744 * Available character sets for MySQL conversion. currently contains all which could
1745 * be found in lang/* files and few more.
1746 * Character sets will be shown in same order as here listed, so if you frequently
1747 * use some of these move them to the top.
1749 * @global array $cfg['AvailableCharsets']
1751 $cfg['AvailableCharsets'] = array(
1752 'iso-8859-1',
1753 'iso-8859-2',
1754 'iso-8859-3',
1755 'iso-8859-4',
1756 'iso-8859-5',
1757 'iso-8859-6',
1758 'iso-8859-7',
1759 'iso-8859-8',
1760 'iso-8859-9',
1761 'iso-8859-10',
1762 'iso-8859-11',
1763 'iso-8859-12',
1764 'iso-8859-13',
1765 'iso-8859-14',
1766 'iso-8859-15',
1767 'windows-1250',
1768 'windows-1251',
1769 'windows-1252',
1770 'windows-1256',
1771 'windows-1257',
1772 'koi8-r',
1773 'big5',
1774 'gb2312',
1775 'utf-16',
1776 'utf-8',
1777 'utf-7',
1778 'x-user-defined',
1779 'euc-jp',
1780 'ks_c_5601-1987',
1781 'tis-620',
1782 'SHIFT_JIS'
1786 /*******************************************************************************
1787 * Customization & design
1789 * The graphical settings are now located in themes/theme-name/layout.inc.php
1793 * enable the left panel pointer
1794 * (used when LeftFrameLight is false)
1795 * see also LeftPointerColor
1796 * in layout.inc.php
1798 * @global boolean $cfg['LeftPointerEnable']
1800 $cfg['LeftPointerEnable'] = true;
1803 * enable the browse pointer
1804 * see also BrowsePointerColor
1805 * in layout.inc.php
1807 * @global boolean $cfg['BrowsePointerEnable']
1809 $cfg['BrowsePointerEnable'] = true;
1812 * enable the browse marker
1813 * see also BrowseMarkerColor
1814 * in layout.inc.php
1816 * @global boolean $cfg['BrowseMarkerEnable']
1818 $cfg['BrowseMarkerEnable'] = true;
1821 * textarea size (columns) in edit mode
1822 * (this value will be emphasized (*2) for SQL
1823 * query textareas and (*1.25) for query window)
1825 * @global integer $cfg['TextareaCols']
1827 $cfg['TextareaCols'] = 40;
1830 * textarea size (rows) in edit mode
1832 * @global integer $cfg['TextareaRows']
1834 $cfg['TextareaRows'] = 7;
1837 * double size of textarea size for LONGTEXT fields
1839 * @global boolean $cfg['LongtextDoubleTextarea']
1841 $cfg['LongtextDoubleTextarea'] = true;
1844 * auto-select when clicking in the textarea of the query-box
1846 * @global boolean $cfg['TextareaAutoSelect']
1848 $cfg['TextareaAutoSelect'] = false;
1851 * textarea size (columns) for CHAR/VARCHAR
1853 * @global integer $cfg['CharTextareaCols']
1855 $cfg['CharTextareaCols'] = 40;
1858 * textarea size (rows) for CHAR/VARCHAR
1860 * @global integer $cfg['CharTextareaRows']
1862 $cfg['CharTextareaRows'] = 2;
1865 * Enable Ctrl+Arrows moving between fields when editing?
1867 * @global boolean $cfg['CtrlArrowsMoving']
1869 $cfg['CtrlArrowsMoving'] = true;
1872 * Max field data length in browse mode for all non-numeric fields
1874 * @global integer $cfg['LimitChars']
1876 $cfg['LimitChars'] = 50;
1879 * show edit/delete links on left side of browse
1880 * (or at the top with vertical browse)
1882 * @global boolean $cfg['ModifyDeleteAtLeft']
1884 $cfg['ModifyDeleteAtLeft'] = true;
1887 * show edit/delete links on right side of browse
1888 * (or at the bottom with vertical browse)
1890 * @global boolean $cfg['ModifyDeleteAtRight']
1892 $cfg['ModifyDeleteAtRight'] = false;
1895 * default display direction (horizontal|vertical|horizontalflipped)
1897 * @global string $cfg['DefaultDisplay']
1899 $cfg['DefaultDisplay'] = 'horizontal';
1902 * default display direction for altering/creating columns (tbl_properties)
1903 * (horizontal|vertical|<number>)
1904 * number indicates maximal number for which vertical model is used
1906 * @global integer $cfg['DefaultPropDisplay']
1908 $cfg['DefaultPropDisplay'] = 3;
1911 * table-header rotation via faking or CSS? (css|fake)
1912 * NOTE: CSS only works in IE browsers!
1914 * @global string $cfg['HeaderFlipType']
1916 $cfg['HeaderFlipType'] = 'css';
1919 * shows stored relation-comments in 'browse' mode.
1921 * @global boolean $cfg['ShowBrowseComments']
1923 $cfg['ShowBrowseComments'] = true;
1926 * shows stored relation-comments in 'table property' mode.
1928 * @global boolean $cfg['ShowPropertyComments']
1930 $cfg['ShowPropertyComments']= true;
1933 * repeat header names every X cells? (0 = deactivate)
1935 * @global integer $cfg['RepeatCells']
1937 $cfg['RepeatCells'] = 100;
1940 * Set to true if Edit link should open the query to edit in the query window
1941 * (assuming JavaScript is enabled), and to false if we should edit in the right panel
1943 * @global boolean $cfg['EditInWindow']
1945 $cfg['EditInWindow'] = true;
1948 * Width of Query window
1950 * @global integer $cfg['QueryWindowWidth']
1952 $cfg['QueryWindowWidth'] = 550;
1955 * Height of Query window
1957 * @global integer $cfg['QueryWindowHeight']
1959 $cfg['QueryWindowHeight'] = 310;
1962 * Set to true if you want DB-based query history.If false, this utilizes
1963 * JS-routines to display query history (lost by window close)
1965 * @global boolean $cfg['QueryHistoryDB']
1967 $cfg['QueryHistoryDB'] = false;
1970 * which tab to display in the querywindow on startup
1971 * (sql|files|history|full)
1973 * @global string $cfg['QueryWindowDefTab']
1975 $cfg['QueryWindowDefTab'] = 'sql';
1978 * When using DB-based query history, how many entries should be kept?
1980 * @global integer $cfg['QueryHistoryMax']
1982 $cfg['QueryHistoryMax'] = 25;
1985 * Use MIME-Types (stored in column comments table) for
1987 * @global boolean $cfg['BrowseMIME']
1989 $cfg['BrowseMIME'] = true;
1992 * When approximate count < this, PMA will get exact count for table rows.
1994 * @global integer $cfg['MaxExactCount']
1996 $cfg['MaxExactCount'] = 20000;
1999 * Zero means that no row count is done for views; see the doc
2001 * @global integer $cfg['MaxExactCountViews']
2003 $cfg['MaxExactCountViews'] = 0;
2006 * Utilize DHTML/JS capabilities to allow WYSIWYG editing of
2007 * the PDF page editor. Requires an IE6/Gecko based browser.
2009 * @global boolean $cfg['WYSIWYG-PDF']
2011 $cfg['WYSIWYG-PDF'] = true;
2014 * Sort table and database in natural order
2016 * @global boolean $cfg['NaturalOrder']
2018 $cfg['NaturalOrder'] = true;
2021 * Initial state for sliders
2022 * (open | closed)
2024 * @global string $cfg['InitialSlidersState']
2026 $cfg['InitialSlidersState'] = 'closed';
2030 //-----------------------------------------------------------------------------
2031 // custom-setup by mkkeck: 2004-05-04
2032 // some specials for new icons and scrolling
2034 * @todo 2004-05-08 rabus: We need to rearrange these variables.
2038 /*******************************************************************************
2039 * Window title settings
2043 * title of browser window when a table is selected
2045 * @global string $cfg['TitleTable']
2047 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
2050 * title of browser window when a database is selected
2052 * @global string $cfg['TitleDatabase']
2054 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
2057 * title of browser window when a server is selected
2059 * @global string $cfg['TitleServer']
2061 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
2064 * title of browser window when nothing is selected
2065 * @global string $cfg['TitleDefault']
2067 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
2070 * show some icons for warning, error and information messages (true|false)?
2072 * @global boolean $cfg['ErrorIconic']
2074 $cfg['ErrorIconic'] = true;
2077 * show icons in list on main page and on menu tabs (true|false)?
2079 * @global boolean $cfg['MainPageIconic']
2081 $cfg['MainPageIconic'] = true;
2084 * show help button instead of strDocu (true|false)?
2086 * @global boolean $cfg['ReplaceHelpImg']
2088 $cfg['ReplaceHelpImg'] = true;
2091 /*******************************************************************************
2092 * theme manager
2096 * using themes manager please set up here the path to 'themes' else leave empty
2098 * @global string $cfg['ThemePath']
2100 $cfg['ThemePath'] = './themes';
2103 * if you want to use selectable themes and if ThemesPath not empty
2104 * set it to true, else set it to false (default is false);
2106 * @global boolean $cfg['ThemeManager']
2108 $cfg['ThemeManager'] = true;
2111 * set up default theme, if ThemePath not empty you can set up here an valid
2112 * path to themes or 'original' for the original pma-theme
2114 * @global string $cfg['ThemeDefault']
2116 $cfg['ThemeDefault'] = 'original';
2119 * allow different theme for each configured server
2121 * @global boolean $cfg['ThemePerServer']
2123 $cfg['ThemePerServer'] = false;
2126 /*******************************************************************************
2131 * Default queries
2132 * %d will be replaced by the database name.
2133 * %t will be replaced by the table name.
2134 * %f will be replaced by a list of field names.
2135 * (%t and %f only applies to DefaultQueryTable)
2137 * @global string $cfg['DefaultQueryTable']
2139 $cfg['DefaultQueryTable'] = 'SELECT * FROM %t WHERE 1';
2142 * Default queries
2143 * %d will be replaced by the database name.
2144 * %t will be replaced by the table name.
2145 * %f will be replaced by a list of field names.
2146 * (%t and %f only applies to DefaultQueryTable)
2148 * @global string $cfg['DefaultQueryDatabase']
2150 $cfg['DefaultQueryDatabase'] = '';
2153 /*******************************************************************************
2154 * SQL Query box settings
2155 * These are the links display in all of the SQL Query boxes
2157 * @global array $cfg['SQLQuery']
2159 $cfg['SQLQuery'] = array();
2162 * Edit link to change a query
2164 * @global boolean $cfg['SQLQuery']['Edit']
2166 $cfg['SQLQuery']['Edit'] = true;
2169 * EXPLAIN on SELECT queries
2171 * @global boolean $cfg['SQLQuery']['Explain']
2173 $cfg['SQLQuery']['Explain'] = true;
2176 * Wrap a query in PHP
2178 * @global boolean $cfg['SQLQuery']['ShowAsPHP']
2180 $cfg['SQLQuery']['ShowAsPHP'] = true;
2183 * Validate a query (see $cfg['SQLValidator'] as well)
2185 * @global boolean $cfg['SQLQuery']['Validate']
2187 $cfg['SQLQuery']['Validate'] = false;
2190 * Refresh the results page
2192 * @global boolean $cfg['SQLQuery']['Refresh']
2194 $cfg['SQLQuery']['Refresh'] = true;
2197 /*******************************************************************************
2198 * Web server upload/save/import directories
2202 * Directory for uploaded files that can be executed by phpMyAdmin.
2203 * For example './upload'. Leave empty for no upload directory support.
2204 * Use %u for username inclusion.
2206 * @global string $cfg['UploadDir']
2208 $cfg['UploadDir'] = '';
2211 * Directory where phpMyAdmin can save exported data on server.
2212 * For example './save'. Leave empty for no save directory support.
2213 * Use %u for username inclusion.
2215 * @global string $cfg['SaveDir']
2217 $cfg['SaveDir'] = '';
2220 * Directory where phpMyAdmin can save temporary files.
2221 * This is needed for MS Excel export, see documentation how to enable that.
2223 * @global string $cfg['TempDir']
2225 $cfg['TempDir'] = '';
2229 * Misc. settings
2233 * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
2234 * which is a bit expensive for PHP < 4.3.0, but it is the only safe way how to
2235 * determine GD version.
2237 * @global string $cfg['GD2Available']
2239 $cfg['GD2Available'] = 'auto';
2242 * List of trusted proxies for IP allow/deny
2244 * @global array $cfg['TrustedProxies']
2246 $cfg['TrustedProxies'] = array();
2249 * We normally check the permissions on the configuration file to ensure
2250 * it's not world writable. However, phpMyAdmin could be installed on
2251 * a NTFS filesystem mounted on a non-Windows server, in which case the
2252 * permissions seems wrong but in fact cannot be detected. In this case
2253 * a sysadmin would set the following to false.
2255 $cfg['CheckConfigurationPermissions'] = true;
2257 /*******************************************************************************
2258 * SQL Parser Settings
2260 * @global array $cfg['SQP']
2262 $cfg['SQP'] = array();
2265 * Pretty-printing style to use on queries (html, text, none)
2267 * @global string $cfg['SQP']['fmtType']
2269 $cfg['SQP']['fmtType'] = 'html';
2272 * Amount to indent each level (floats are valid)
2274 * @global integer $cfg['SQP']['fmtInd']
2276 $cfg['SQP']['fmtInd'] = '1';
2279 * Units for indenting each level (CSS Types - {em, px, pt})
2281 * @global string $cfg['SQP']['fmtIndUnit']
2283 $cfg['SQP']['fmtIndUnit'] = 'em';
2286 /*******************************************************************************
2287 * If you wish to use the SQL Validator service, you should be aware of the
2288 * following:
2289 * All SQL statements are stored anonymously for statistical purposes.
2290 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
2291 * All rights reserved.
2293 * @global array $cfg['SQLValidator']
2295 $cfg['SQLValidator'] = array();
2298 * Make the SQL Validator available
2300 * @global boolean $cfg['SQLValidator']['use']
2302 $cfg['SQLValidator']['use'] = false;
2305 * If you have a custom username, specify it here (defaults to anonymous)
2307 * @global string $cfg['SQLValidator']['username']
2309 $cfg['SQLValidator']['username'] = '';
2312 * Password for username
2314 * @global string $cfg['SQLValidator']['password']
2316 $cfg['SQLValidator']['password'] = '';
2319 /*******************************************************************************
2320 * Developers ONLY!
2322 * @global array $cfg['DBG']
2324 $cfg['DBG'] = array();
2327 * Output executed queries and their execution times
2329 * @global boolean $cfg['DBG']['enable']
2331 $cfg['DBG']['sql'] = false;
2334 * Make the DBG stuff available
2335 * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
2337 * @global boolean $cfg['DBG']['enable']
2339 $cfg['DBG']['php'] = false;
2342 * Produce profiling results of PHP
2344 * @global boolean $cfg['DBG']['profile']['enable']
2346 $cfg['DBG']['profile']['enable'] = false;
2349 * Threshold of long running code to display
2350 * Anything below the threshold is not displayed
2352 * @global float $cfg['DBG']['profile']['threshold']
2354 $cfg['DBG']['profile']['threshold'] = 0.5;
2357 /*******************************************************************************
2358 * MySQL settings
2362 * Column types;
2363 * VARCHAR, TINYINT, TEXT and DATE are listed first, based on estimated popularity
2365 * @global array $cfg['ColumnTypes']
2367 $cfg['ColumnTypes'] = array(
2368 // most used
2369 'INT',
2370 'VARCHAR',
2371 'TEXT',
2372 'DATE',
2374 // numeric
2375 'NUMERIC' => array(
2376 'TINYINT',
2377 'SMALLINT',
2378 'MEDIUMINT',
2379 'INT',
2380 'BIGINT',
2381 '-',
2382 'DECIMAL',
2383 'FLOAT',
2384 'DOUBLE',
2385 'REAL',
2386 '-',
2387 'BIT',
2388 'BOOL',
2389 'SERIAL',
2393 // Date/Time
2394 'DATE and TIME' => array(
2395 'DATE',
2396 'DATETIME',
2397 'TIMESTAMP',
2398 'TIME',
2399 'YEAR',
2402 // Text
2403 'STRING' => array(
2404 'CHAR',
2405 'VARCHAR',
2406 '-',
2407 'TINYTEXT',
2408 'TEXT',
2409 'MEDIUMTEXT',
2410 'LONGTEXT',
2411 '-',
2412 'BINARY',
2413 'VARBINARY',
2414 '-',
2415 'TINYBLOB',
2416 'MEDIUMBLOB',
2417 'BLOB',
2418 'LONGBLOB',
2419 '-',
2420 'ENUM',
2421 'SET',
2424 'SPATIAL' => array(
2425 'GEOMETRY',
2426 'POINT',
2427 'LINESTRING',
2428 'POLYGON',
2429 'MULTIPOINT',
2430 'MULTILINESTRING',
2431 'MULTIPOLYGON',
2432 'GEOMETRYCOLLECTION',
2437 * Attributes
2439 * @global array $cfg['AttributeTypes']
2441 $cfg['AttributeTypes'] = array(
2443 'BINARY',
2444 'UNSIGNED',
2445 'UNSIGNED ZEROFILL',
2446 'on update CURRENT_TIMESTAMP',
2450 if ($cfg['ShowFunctionFields']) {
2452 * Available functions
2454 * @global array $cfg['Functions']
2456 $cfg['Functions'] = array(
2457 'ABS',
2458 'ACOS',
2459 'ASCII',
2460 'ASIN',
2461 'ATAN',
2462 'BIN',
2463 'BIT_COUNT',
2464 'BIT_LENGTH',
2465 'CEILING',
2466 'CHAR',
2467 'CHAR_LENGTH',
2468 'COMPRESS',
2469 'COS',
2470 'COT',
2471 'CRC32',
2472 'CURDATE',
2473 'CURRENT_USER',
2474 'CURTIME',
2475 'DATE',
2476 'DAYNAME',
2477 'DEGREES',
2478 'DES_DECRYPT',
2479 'DES_ENCRYPT',
2480 'ENCRYPT',
2481 'EXP',
2482 'FLOOR',
2483 'FROM_DAYS',
2484 'FROM_UNIXTIME',
2485 'HEX',
2486 'INET_ATON',
2487 'INET_NTOA',
2488 'LENGTH',
2489 'LN',
2490 'LOG',
2491 'LOG10',
2492 'LOG2',
2493 'LOWER',
2494 'MD5',
2495 'NOW',
2496 'OCT',
2497 'OLD_PASSWORD',
2498 'ORD',
2499 'PASSWORD',
2500 'RADIANS',
2501 'RAND',
2502 'REVERSE',
2503 'ROUND',
2504 'SEC_TO_TIME',
2505 'SHA1',
2506 'SOUNDEX',
2507 'SPACE',
2508 'SQRT',
2509 'STDDEV_POP',
2510 'STDDEV_SAMP',
2511 'TAN',
2512 'TIMESTAMP',
2513 'TIME_TO_SEC',
2514 'UNCOMPRESS',
2515 'UNHEX',
2516 'UNIX_TIMESTAMP',
2517 'UPPER',
2518 'USER',
2519 'UTC_DATE',
2520 'UTC_TIME',
2521 'UTC_TIMESTAMP',
2522 'UUID',
2523 'VAR_POP',
2524 'VAR_SAMP',
2525 'YEAR',
2529 * Which column types will be mapped to which Group?
2531 * @global array $cfg['RestrictColumnTypes']
2533 $cfg['RestrictColumnTypes'] = array(
2534 'TINYINT' => 'FUNC_NUMBER',
2535 'SMALLINT' => 'FUNC_NUMBER',
2536 'MEDIUMINT' => 'FUNC_NUMBER',
2537 'INT' => 'FUNC_NUMBER',
2538 'BIGINT' => 'FUNC_NUMBER',
2539 'DECIMAL' => 'FUNC_NUMBER',
2540 'FLOAT' => 'FUNC_NUMBER',
2541 'DOUBLE' => 'FUNC_NUMBER',
2542 'REAL' => 'FUNC_NUMBER',
2543 'BIT' => 'FUNC_NUMBER',
2544 'BOOL' => 'FUNC_NUMBER',
2545 'SERIAL' => 'FUNC_NUMBER',
2547 'DATE' => 'FUNC_DATE',
2548 'DATETIME' => 'FUNC_DATE',
2549 'TIMESTAMP' => 'FUNC_DATE',
2550 'TIME' => 'FUNC_DATE',
2551 'YEAR' => 'FUNC_DATE',
2553 'CHAR' => 'FUNC_CHAR',
2554 'VARCHAR' => 'FUNC_CHAR',
2555 'TINYTEXT' => 'FUNC_CHAR',
2556 'TEXT' => 'FUNC_CHAR',
2557 'MEDIUMTEXT' => 'FUNC_CHAR',
2558 'LONGTEXT' => 'FUNC_CHAR',
2559 'BINARY' => 'FUNC_CHAR',
2560 'VARBINARY' => 'FUNC_CHAR',
2561 'TINYBLOB' => 'FUNC_CHAR',
2562 'MEDIUMBLOB' => 'FUNC_CHAR',
2563 'BLOB' => 'FUNC_CHAR',
2564 'LONGBLOB' => 'FUNC_CHAR',
2565 'ENUM' => '',
2566 'SET' => '',
2568 'GEOMETRY' => 'FUNC_SPATIAL',
2569 'POINT' => 'FUNC_SPATIAL',
2570 'LINESTRING' => 'FUNC_SPATIAL',
2571 'POLYGON' => 'FUNC_SPATIAL',
2572 'MULTIPOINT' => 'FUNC_SPATIAL',
2573 'MULTILINESTRING' => 'FUNC_SPATIAL',
2574 'MULTIPOLYGON' => 'FUNC_SPATIAL',
2575 'GEOMETRYCOLLECTION' => 'FUNC_SPATIAL',
2580 * Map above defined groups to any function
2582 * @global array $cfg['RestrictFunctions']
2584 $cfg['RestrictFunctions'] = array(
2585 'FUNC_CHAR' => array(
2586 'BIN',
2587 'CHAR',
2588 'CURRENT_USER',
2589 'COMPRESS',
2590 'DAYNAME',
2591 'DES_DECRYPT',
2592 'DES_ENCRYPT',
2593 'ENCRYPT',
2594 'HEX',
2595 'INET_NTOA',
2596 'LOWER',
2597 'MD5',
2598 'OLD_PASSWORD',
2599 'PASSWORD',
2600 'REVERSE',
2601 'SHA1',
2602 'SOUNDEX',
2603 'SPACE',
2604 'UNCOMPRESS',
2605 'UNHEX',
2606 'UPPER',
2607 'USER',
2608 'UUID',
2611 'FUNC_DATE' => array(
2612 'CURDATE',
2613 'CURTIME',
2614 'DATE',
2615 'FROM_DAYS',
2616 'FROM_UNIXTIME',
2617 'NOW',
2618 'SEC_TO_TIME',
2619 'TIMESTAMP',
2620 'UTC_DATE',
2621 'UTC_TIME',
2622 'UTC_TIMESTAMP',
2623 'YEAR',
2626 'FUNC_NUMBER' => array(
2627 'ABS',
2628 'ACOS',
2629 'ASCII',
2630 'ASIN',
2631 'ATAN',
2632 'BIT_LENGTH',
2633 'BIT_COUNT',
2634 'CEILING',
2635 'CHAR_LENGTH',
2636 'COS',
2637 'COT',
2638 'CRC32',
2639 'DEGREES',
2640 'EXP',
2641 'FLOOR',
2642 'INET_ATON',
2643 'LENGTH',
2644 'LN',
2645 'LOG',
2646 'LOG2',
2647 'LOG10',
2648 'OCT',
2649 'ORD',
2650 'RADIANS',
2651 'RAND',
2652 'ROUND',
2653 'SQRT',
2654 'STDDEV_POP',
2655 'STDDEV_SAMP',
2656 'TAN',
2657 'TIME_TO_SEC',
2658 'UNIX_TIMESTAMP',
2659 'VAR_POP',
2660 'VAR_SAMP',
2663 'FUNC_SPATIAL' => array(
2664 'GeomFromText',
2665 'GeomFromWKB',
2667 'GeomCollFromText',
2668 'LineFromText',
2669 'MLineFromText',
2670 'PointFromText',
2671 'MPointFromText',
2672 'PolyFromText',
2673 'MPolyFromText',
2675 'GeomCollFromWKB',
2676 'LineFromWKB',
2677 'MLineFromWKB',
2678 'PointFromWKB',
2679 'MPointFromWKB',
2680 'PolyFromWKB',
2681 'MPolyFromWKB',
2686 * Default functions for above defined groups
2688 * @global array $cfg['DefaultFunctions']
2690 $cfg['DefaultFunctions'] = array(
2691 'FUNC_CHAR' => '',
2692 'FUNC_DATE' => '',
2693 'FUNC_NUMBER' => '',
2694 'first_timestamp' => 'NOW',
2695 'pk_char36' => 'UUID',
2699 } // end if
2702 * Search operators
2704 * @global array $cfg['NumOperators']
2706 $cfg['NumOperators'] = array(
2707 '=',
2708 '>',
2709 '>=',
2710 '<',
2711 '<=',
2712 '!=',
2713 'LIKE',
2714 'NOT LIKE',
2718 * Search operators
2720 * @global array $cfg['TextOperators']
2722 $cfg['TextOperators'] = array(
2723 'LIKE',
2724 'LIKE %...%',
2725 'NOT LIKE',
2726 '=',
2727 '!=',
2728 'REGEXP',
2729 'NOT REGEXP',
2733 * Search operators
2735 * @global array $cfg['EnumOperators']
2737 $cfg['EnumOperators'] = array(
2738 '=',
2739 '!=',
2743 * Search operators
2745 * @global array $cfg['SetOperators']
2747 $cfg['SetOperators'] = array(
2748 'IN',
2749 'NOT IN',
2753 * Search operators
2755 * @global array $cfg['NullOperators']
2757 $cfg['NullOperators'] = array(
2758 'IS NULL',
2759 'IS NOT NULL',
2763 * Search operators
2765 * @global array $cfg['UnaryOperators']
2767 $cfg['UnaryOperators'] = array(
2768 'IS NULL' => 1,
2769 'IS NOT NULL' => 1,