typo
[phpmyadmin/crack.git] / libraries / config.default.php
blob32803d64f144d89db87559ed63cb4dec746405d5
1 <?php
3 /* !!! DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!! */
5 /* $Id$ */
6 // vim: expandtab sw=4 ts=4 sts=4:
8 /**
9 * phpMyAdmin default configuration, you can copy values from here to your
10 * config.inc.php
12 * All directives are explained in Documentation.html
16 /**
17 * Your phpMyAdmin URL.
19 * Complete the variable below with the full url ie
20 * http://www.your_web.net/path_to_your_phpMyAdmin_directory/
22 * It must contain characters that are valid for a URL, and the path is
23 * case sensitive on some Web servers, for example Unix-based servers.
25 * In most cases you can leave this variable empty, as the correct value
26 * will be detected automatically. However, we recommend that you do
27 * test to see that the auto-detection code works in your system. A good
28 * test is to browse a table, then edit a row and save it. There will be
29 * an error message if phpMyAdmin cannot auto-detect the correct value.
31 $cfg['PmaAbsoluteUri'] = '';
33 /**
34 * Disable the default warning that is displayed on the DB Details Structure page if
35 * any of the required Tables for the relationfeatures could not be found
37 $cfg['PmaNoRelation_DisableWarning'] = FALSE;
39 /**
40 * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
41 * at least one server configuration uses 'cookie' auth_type, enter here a
42 * passphrase that will be used by blowfish. The maximum length seems to be 46
43 * characters.
45 $cfg['blowfish_secret'] = '';
47 /**
48 * Server(s) configuration
50 $i = 0;
51 // The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use
52 // $cfg['Servers'][0]. You can disable a server config entry by setting host
53 // to ''. If you want more than one server, just copy following section
54 // (including $i incrementation) serveral times. There is no need to define
55 // full server array, just define values you need to change.
56 $i++;
57 $cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
58 $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
59 $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
60 $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
61 $cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL extension to use ('mysql' or 'mysqli')
62 $cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
63 // (requires PHP >= 4.3.0)
64 $cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
65 // (this user must have read-only
66 $cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
67 // and "mysql/db" tables).
68 // The controluser is also
69 // used for all relational
70 // features (pmadb)
71 $cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http, signon or cookie based)?
72 $cfg['Servers'][$i]['user'] = 'root'; // MySQL user
73 $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
74 // with 'config' auth_type)
75 $cfg['Servers'][$i]['SignonSession'] = ''; // Session to use for 'signon' auth method
76 $cfg['Servers'][$i]['SignonURL'] = ''; // URL where to redirect user to login for 'signon' auth method
77 $cfg['Servers'][$i]['LogoutURL'] = ''; // URL where to redirect user after logout
78 $cfg['Servers'][$i]['nopassword'] = FALSE; // Whether to try to connect without password
79 $cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
80 // this db is displayed in left frame
81 // It may also be an array of db-names, where sorting order is relevant.
82 $cfg['Servers'][$i]['hide_db'] = ''; // Database name to be hidden from listings
83 $cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
85 $cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features
86 // (see scripts/create_tables.sql)
87 // - leave blank for no support
88 // DEFAULT: 'phpmyadmin'
89 $cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table
90 // - leave blank for no bookmark support
91 // DEFAULT: 'pma_bookmark'
92 $cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
93 // - leave blank for no relation-links support
94 // DEFAULT: 'pma_relation'
95 $cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields
96 // - leave blank for no display fields support
97 // DEFAULT: 'pma_table_info'
98 $cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF schema
99 // - leave blank for no PDF schema support
100 // DEFAULT: 'pma_table_coords'
101 $cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf
102 // - leave blank if you don't want to use this
103 // DEFAULT: 'pma_pdf_pages'
104 $cfg['Servers'][$i]['column_info'] = ''; // table to store column information
105 // - leave blank for no column comments/mime types
106 // DEFAULT: 'pma_column_info'
107 $cfg['Servers'][$i]['history'] = ''; // table to store SQL history
108 // - leave blank for no SQL query history
109 // DEFAULT: 'pma_history'
110 $cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your pma_* tables
111 // are up to date. This prevents compatibility
112 // checks and thereby increases performance.
113 $cfg['Servers'][$i]['AllowRoot'] = TRUE; // whether to allow root login
114 $cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use
115 = '';
116 $cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults
117 = array();
119 // If you have more than one server configured, you can set $cfg['ServerDefault']
120 // to any one of them to autoconnect to that server when phpMyAdmin is started,
121 // or set it to 0 to be given a list of servers without logging in
122 // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
123 // set to that server.
124 $cfg['ServerDefault'] = 1; // Default server (0 = no default server)
127 * Other core phpMyAdmin settings
129 $cfg['MaxDbList'] = 100; // maximum number of db's displayed in left frame and databaes list
130 $cfg['OBGzip'] = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
131 $cfg['PersistentConnections'] = FALSE; // use persistent connections to MySQL database
132 $cfg['ForceSSL'] = FALSE; // whether to force using https
133 $cfg['ExecTimeLimit'] = 300; // maximum execution time in seconds (0 for no limit)
134 $cfg['MemoryLimit'] = 0; // maximum allocated bytes (0 for no limit)
135 $cfg['SkipLockedTables'] = FALSE; // mark used tables, make possible to show
136 // locked tables (since MySQL 3.23.30)
137 $cfg['ShowSQL'] = TRUE; // show SQL queries as run
138 $cfg['AllowUserDropDatabase'] = FALSE; // show a 'Drop database' link to normal users
139 $cfg['Confirm'] = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE'
140 $cfg['LoginCookieRecall'] = TRUE; // recall previous login in cookie auth. mode or not
141 $cfg['LoginCookieValidity'] = 1800; // validity of cookie login (in seconds)
142 $cfg['LoginCookieStore'] = 0; // how long login cookie should be stored (in seconds)
143 $cfg['LoginCookieDeleteAll'] = TRUE; // whether to delete all login cookies on logout
144 $cfg['UseDbSearch'] = TRUE; // whether to enable the "database search" feature
145 // or not
146 $cfg['IgnoreMultiSubmitErrors'] = FALSE; // if set to true, PMA continues computing multiple-statement queries
147 // even if one of the queries failed
148 $cfg['VerboseMultiSubmit'] = TRUE; // if set to true, PMA will show the affected rows of EACH statement on
149 // multiple-statement queries. See the libraries/import.php file for
150 // hardcoded defaults on how many queries a statement may contain!
151 $cfg['AllowArbitraryServer'] = FALSE; // allow login to any user entered server in cookie based auth
153 // Left frame setup
154 $cfg['LeftFrameLight'] = TRUE; // use a select-based menu and display only the
155 // current tables in the left frame.
156 $cfg['LeftFrameDBTree'] = TRUE; // turn the select-based light menu into a tree
157 $cfg['LeftFrameDBSeparator'] = '_'; // the separator to sub-tree the select-based light menu tree
158 $cfg['LeftFrameTableSeparator']= '__'; // Which string will be used to generate table prefixes
159 // to split/nest tables into multiple categories
160 $cfg['LeftFrameTableLevel'] = '1'; // How many sublevels should be displayed when splitting
161 // up tables by the above Separator
162 $cfg['ShowTooltip'] = TRUE; // display table comment as tooltip in left frame
163 $cfg['ShowTooltipAliasDB'] = FALSE; // if ShowToolTip is enabled, this defines that table/db comments
164 $cfg['ShowTooltipAliasTB'] = FALSE; // are shown (in the left menu and db_details_structure) instead of
165 // table/db names. Setting ShowTooltipAliasTB to 'nested' will only
166 // use the Aliases for nested descriptors, not the table itself.
168 $cfg['LeftDisplayLogo'] = TRUE; // display logo at top of left frame
169 $cfg['LeftLogoLink'] = 'http://www.phpmyadmin.net/'; // where should logo link point to
170 $cfg['LeftDisplayServers'] = FALSE; // display server choice at top of left frame
171 $cfg['DisplayServersList'] = FALSE; // server choice as links
173 // In the main frame, at startup...
174 $cfg['ShowStats'] = TRUE; // allow to display statistics and space usage in
175 // the pages about database details and table
176 // properties
177 $cfg['ShowPhpInfo'] = FALSE; // show php info link
178 $cfg['ShowChgPassword'] = FALSE; // show change password link
179 $cfg['ShowCreateDb'] = TRUE; // show create database form
180 $cfg['SuggestDBName'] = TRUE; // suggest a new DB name if possible (false = keep empty)
182 // In browse mode...
183 $cfg['ShowBlob'] = FALSE; // display blob field contents
184 $cfg['NavigationBarIconic'] = 'both'; // Use icons instead of text for the navigation bar buttons
185 // and on right panel top menu (server db table) (TRUE|FALSE|'both')
186 $cfg['ShowAll'] = FALSE; // allows to display all the rows
187 $cfg['MaxRows'] = 30; // maximum number of rows to display
188 $cfg['Order'] = 'ASC'; // default for 'ORDER BY' clause (valid
189 // values are 'ASC', 'DESC' or 'SMART' -ie
190 // descending order for fields of type
191 // TIME, DATE, DATETIME & TIMESTAMP,
192 // ascending order else-)
194 // In edit mode...
195 $cfg['ProtectBinary'] = 'blob'; // disallow editing of binary fields
196 // valid values are:
197 // FALSE allow editing
198 // 'blob' allow editing except for BLOB fields
199 // 'all' disallow editing
200 $cfg['ShowFunctionFields'] = TRUE; // Display the function fields in edit/insert mode
201 $cfg['CharEditing'] = 'input';
202 // Which editor should be used for CHAR/VARCHAR fields:
203 // input - allows limiting of input length
204 // textarea - allows newlines in fields
205 $cfg['InsertRows'] = 2; // How many rows can be inserted at one time
207 $cfg['ForeignKeyDropdownOrder'] = // Sort order for items in a foreign-key dropdown box.
208 array( 'content-id', 'id-content'); // 'content' is the referenced data, 'id' is the key value.
209 $cfg['ForeignKeyMaxLimit'] = 100; // A dropdown will be used if fewer items are present
212 // For the export features...
213 $cfg['ZipDump'] = TRUE; // Allow the use of zip/gzip/bzip
214 $cfg['GZipDump'] = TRUE; // compression for
215 $cfg['BZipDump'] = TRUE; // dump files
216 $cfg['CompressOnFly'] = TRUE; // Will compress gzip/bzip2 exports on
217 // fly without need for much memory.
218 // If you encounter problems with
219 // created gzip/bzip2 files disable
220 // this feature.
222 // Tabs display settings
223 $cfg['LightTabs'] = FALSE; // use graphically less intense menu tabs
224 $cfg['PropertiesIconic'] = TRUE; // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')
225 $cfg['PropertiesNumColumns'] = 1; // How many columns should be used for table display of a database?
226 // (a value larger than 1 results in some information being hidden)
228 $cfg['DefaultTabServer'] = 'main.php';
229 // Possible values:
230 // 'main.php' = the welcome page
231 // (recommended for multiuser setups)
232 // 'server_databases.php' = list of databases
233 // 'server_status.php' = runtime information
234 // 'server_variables.php' = MySQL server variables
235 // 'server_privileges.php' = user management
236 // 'server_processlist.php' = process list
237 $cfg['DefaultTabDatabase'] = 'db_details_structure.php';
238 // Possible values:
239 // 'db_details_structure.php' = tables list
240 // 'db_details.php' = sql form
241 // 'db_search.php' = search query
242 // 'db_operations.php' = operations on database
243 $cfg['DefaultTabTable'] = 'tbl_properties_structure.php';
244 // Possible values:
245 // 'tbl_properties_structure.php' = fields list
246 // 'tbl_properties.php' = sql form
247 // 'tbl_select.php' = select page
248 // 'tbl_change.php' = insert row page
249 // 'sql.php' = browse page
252 * Export defaults
255 $cfg['Export']['format'] = 'sql'; // sql/latex/excel/csv/xml/xls/htmlexcel/htmlword/ods/odt
256 $cfg['Export']['compression'] = 'none'; // none/zip/gzip/bzip2
258 $cfg['Export']['asfile'] = FALSE;
259 $cfg['Export']['charset'] = '';
260 $cfg['Export']['onserver'] = FALSE;
261 $cfg['Export']['onserver_overwrite'] = FALSE;
262 $cfg['Export']['remember_file_template'] = TRUE;
263 $cfg['Export']['file_template_table'] = '__TABLE__';
264 $cfg['Export']['file_template_database'] = '__DB__';
265 $cfg['Export']['file_template_server'] = '__SERVER__';
267 $cfg['Export']['ods_columns'] = FALSE;
268 $cfg['Export']['ods_null'] = 'NULL';
270 $cfg['Export']['odt_structure'] = TRUE;
271 $cfg['Export']['odt_data'] = TRUE;
272 $cfg['Export']['odt_columns'] = TRUE;
273 $cfg['Export']['odt_relation'] = TRUE;
274 $cfg['Export']['odt_comments'] = TRUE;
275 $cfg['Export']['odt_mime'] = TRUE;
276 $cfg['Export']['odt_null'] = 'NULL';
278 $cfg['Export']['htmlexcel_columns'] = FALSE;
279 $cfg['Export']['htmlexcel_null'] = 'NULL';
281 $cfg['Export']['htmlword_structure'] = TRUE;
282 $cfg['Export']['htmlword_data'] = TRUE;
283 $cfg['Export']['htmlword_columns'] = FALSE;
284 $cfg['Export']['htmlword_null'] = 'NULL';
286 $cfg['Export']['xls_columns'] = FALSE;
287 $cfg['Export']['xls_null'] = 'NULL';
289 $cfg['Export']['csv_columns'] = FALSE;
290 $cfg['Export']['csv_null'] = 'NULL';
291 $cfg['Export']['csv_separator'] = ';';
292 $cfg['Export']['csv_enclosed'] = '"';
293 $cfg['Export']['csv_escaped'] = '\\';
294 $cfg['Export']['csv_terminated'] = 'AUTO';
295 $cfg['Export']['excel_columns'] = FALSE;
296 $cfg['Export']['excel_null'] = 'NULL';
297 $cfg['Export']['excel_edition'] = 'win'; // win/mac
299 $cfg['Export']['latex_structure'] = TRUE;
300 $cfg['Export']['latex_data'] = TRUE;
301 $cfg['Export']['latex_columns'] = TRUE;
302 $cfg['Export']['latex_relation'] = TRUE;
303 $cfg['Export']['latex_comments'] = TRUE;
304 $cfg['Export']['latex_mime'] = TRUE;
305 $cfg['Export']['latex_null'] = '\textit{NULL}';
306 $cfg['Export']['latex_caption'] = TRUE;
307 $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
308 $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
309 $cfg['Export']['latex_data_caption'] = 'strLatexContent';
310 $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
311 $cfg['Export']['latex_data_label'] = 'tab:__TABLE__-data';
312 $cfg['Export']['latex_structure_label'] = 'tab:__TABLE__-structure';
314 $cfg['Export']['sql_structure'] = TRUE;
315 $cfg['Export']['sql_data'] = TRUE;
316 $cfg['Export']['sql_compat'] = 'NONE';
317 $cfg['Export']['sql_disable_fk'] = FALSE;
318 $cfg['Export']['sql_use_transaction'] = FALSE;
319 $cfg['Export']['sql_drop_database'] = FALSE;
320 $cfg['Export']['sql_drop_table'] = FALSE;
321 $cfg['Export']['sql_if_not_exists'] = FALSE;
322 $cfg['Export']['sql_auto_increment'] = TRUE;
323 $cfg['Export']['sql_backquotes'] = TRUE;
324 $cfg['Export']['sql_dates'] = FALSE;
325 $cfg['Export']['sql_relation'] = FALSE;
326 $cfg['Export']['sql_columns'] = TRUE;
327 $cfg['Export']['sql_delayed'] = FALSE;
328 $cfg['Export']['sql_ignore'] = FALSE;
329 $cfg['Export']['sql_hex_for_binary'] = TRUE;
330 $cfg['Export']['sql_type'] = 'insert'; // insert/update/replace
331 $cfg['Export']['sql_extended'] = TRUE;
332 $cfg['Export']['sql_max_query_size'] = 50000;
333 $cfg['Export']['sql_comments'] = FALSE;
334 $cfg['Export']['sql_mime'] = FALSE;
335 $cfg['Export']['sql_header_comment'] = ''; // \n is replaced by new line
337 $cfg['Export']['pdf_structure'] = FALSE;
338 $cfg['Export']['pdf_data'] = TRUE;
339 $cfg['Export']['pdf_report_title'] = '';
342 * Import defaults
344 $cfg['Import']['format'] = 'sql';
345 $cfg['Import']['allow_interrupt'] = TRUE;
346 $cfg['Import']['skip_queries'] = '0';
347 $cfg['Import']['sql_compatibility'] = 'NONE';
348 $cfg['Import']['csv_replace'] = FALSE;
349 $cfg['Import']['csv_terminated'] = ';';
350 $cfg['Import']['csv_enclosed'] = '"';
351 $cfg['Import']['csv_escaped'] = '\\';
352 $cfg['Import']['csv_new_line'] = 'auto';
353 $cfg['Import']['csv_columns'] = '';
354 $cfg['Import']['ldi_replace'] = FALSE;
355 $cfg['Import']['ldi_terminated'] = ';';
356 $cfg['Import']['ldi_enclosed'] = '"';
357 $cfg['Import']['ldi_escaped'] = '\\';
358 $cfg['Import']['ldi_new_line'] = 'auto';
359 $cfg['Import']['ldi_columns'] = '';
360 $cfg['Import']['ldi_local_option'] = 'auto'; // 'auto' for autodetection, TRUE or FALSE for forcing
364 * Link to the official MySQL documentation.
365 * Be sure to include no trailing slash on the path.
366 * See http://dev.mysql.com/doc/ for more information
367 * about MySQL manuals and their types.
369 $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
372 * Type of MySQL documentation:
373 * viewable - "viewable online", current one used on MySQL website
374 * searchable - "Searchable, with user comments"
375 * chapters - "HTML, one page per chapter"
376 * chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
377 * big - "HTML, all on one page"
378 * old - old style used in phpMyAdmin 2.3.0 and sooner
379 * none - do not show documentation links
381 $cfg['MySQLManualType'] = 'viewable';
385 * PDF options
387 $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
388 $cfg['PDFDefaultPageSize'] = 'A4';
392 * Language and charset conversion settings
394 // Default language to use, if not browser-defined or user-defined
395 $cfg['DefaultLang'] = 'en-iso-8859-1';
397 // Default connection collation (used for MySQL >= 4.1)
398 $cfg['DefaultConnectionCollation'] = 'utf8_unicode_ci';
400 // Force: always use this language - must be defined in
401 // libraries/select_lang.lib.php
402 // $cfg['Lang'] = 'en-iso-8859-1';
404 // Regullar expression to limit listed languages, eg. '^(cs|en)' for Czech and
405 // English only
406 $cfg['FilterLanguages'] = '';
408 // Default charset to use for recoding of MySQL queries, does not take
409 // any effect when charsets recoding is switched off by
410 // $cfg['AllowAnywhereRecoding'] or in language file
411 // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
412 $cfg['DefaultCharset'] = 'iso-8859-1';
414 // Allow charset recoding of MySQL queries, must be also enabled in language
415 // file to make harder using other language files than unicode.
416 // Default value is FALSE to avoid problems on servers without the iconv
417 // extension and where dl() is not supported
418 $cfg['AllowAnywhereRecoding'] = FALSE;
420 // You can select here which functions will be used for charset conversion.
421 // Possible values are:
422 // auto - automatically use available one (first is tested iconv, then
423 // recode)
424 // iconv - use iconv or libiconv functions
425 // recode - use recode_string function
426 $cfg['RecodingEngine'] = 'auto';
428 // Specify some parameters for iconv used in charset conversion. See iconv
429 // documentation for details:
430 // http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
431 $cfg['IconvExtraParams'] = '//TRANSLIT';
433 // Available charsets for MySQL conversion. currently contains all which could
434 // be found in lang/* files and few more.
435 // Charsets will be shown in same order as here listed, so if you frequently
436 // use some of these move them to the top.
437 $cfg['AvailableCharsets'] = array(
438 'iso-8859-1',
439 'iso-8859-2',
440 'iso-8859-3',
441 'iso-8859-4',
442 'iso-8859-5',
443 'iso-8859-6',
444 'iso-8859-7',
445 'iso-8859-8',
446 'iso-8859-9',
447 'iso-8859-10',
448 'iso-8859-11',
449 'iso-8859-12',
450 'iso-8859-13',
451 'iso-8859-14',
452 'iso-8859-15',
453 'windows-1250',
454 'windows-1251',
455 'windows-1252',
456 'windows-1256',
457 'windows-1257',
458 'koi8-r',
459 'big5',
460 'gb2312',
461 'utf-16',
462 'utf-8',
463 'utf-7',
464 'x-user-defined',
465 'euc-jp',
466 'ks_c_5601-1987',
467 'tis-620',
468 'SHIFT_JIS'
472 * Customization & design
474 * The graphical settings are now located in themes/themename/layout.inc.php
477 $cfg['LeftPointerEnable'] = TRUE; // enable the left panel pointer
478 // (used when LeftFrameLight is FALSE)
479 // see also LeftPointerColor
480 // in layout.inc.php
482 $cfg['BrowsePointerEnable'] = TRUE; // enable the browse pointer
483 // see also BrowsePointerColor
484 // in layout.inc.php
486 $cfg['BrowseMarkerEnable'] = TRUE; // enable the browse marker
487 // see also BrowseMarkerColor
488 // in layout.inc.php
490 $cfg['TextareaCols'] = 40; // textarea size (columns) in edit mode
491 // (this value will be emphasized (*2) for sql
492 // query textareas and (*1.25) for query window)
493 $cfg['TextareaRows'] = 7; // textarea size (rows) in edit mode
494 $cfg['LongtextDoubleTextarea'] = TRUE; // double size of textarea size for longtext fields
495 $cfg['TextareaAutoSelect'] = TRUE; // autoselect when clicking in the textarea of the querybox
496 $cfg['CharTextareaCols'] = 40; // textarea size (columns) for CHAR/VARCHAR
497 $cfg['CharTextareaRows'] = 2; // textarea size (rows) for CHAR/VARCHAR
498 $cfg['CtrlArrowsMoving'] = TRUE; // Enable Ctrl+Arrows moving between fields when editing?
499 $cfg['LimitChars'] = 50; // Max field data length in browse mode for all non-numeric fields
500 $cfg['ModifyDeleteAtLeft'] = TRUE; // show edit/delete links on left side of browse
501 // (or at the top with vertical browse)
502 $cfg['ModifyDeleteAtRight'] = FALSE; // show edit/delete links on right side of browse
503 // (or at the bottom with vertical browse)
504 $cfg['DefaultDisplay'] = 'horizontal'; // default display direction
505 // (horizontal|vertical|horizontalflipped)
506 $cfg['DefaultPropDisplay'] = 'horizontal'; // default display direction for altering/
507 // creating columns (tbl_properties)
508 // (horizontal|vertical)
510 $cfg['HeaderFlipType'] = 'css'; // table-header rotation via faking or css? (css|fake)
511 // NOTE: CSS only works in IE browsers!
512 $cfg['ShowBrowseComments'] = TRUE; // shows stored relation-comments in 'browse' mode.
513 $cfg['ShowPropertyComments']= TRUE; // shows stored relation-comments in 'table property' mode.
514 $cfg['RepeatCells'] = 100; // repeat header names every X cells? (0 = deactivate)
516 $cfg['EditInWindow'] = TRUE; // Set to TRUE if Edit link should open the query to edit in the query window (assuming Javascript is enabled), and to FALSE if we should edit in the right panel
517 $cfg['QueryWindowWidth'] = 550; // Width of Query window
518 $cfg['QueryWindowHeight'] = 310; // Height of Query window
519 $cfg['QueryHistoryDB'] = FALSE; // Set to TRUE if you want DB-based query history.
520 // If FALSE, this utilizes JS-routines to display
521 // query history (lost by window close)
522 $cfg['QueryWindowDefTab'] = 'sql'; // which tab to display in the querywindow on startup
523 // (sql|files|history|full)
524 $cfg['QueryHistoryMax'] = 25; // When using DB-based query history, how many entries
525 // should be kept?
526 $cfg['BrowseMIME'] = TRUE; // Use MIME-Types (stored in column comments table) for
527 $cfg['MaxExactCount'] = 20000; // When approximate count < this, PMA will get exact count for
528 // table rows.
529 $cfg['WYSIWYG-PDF'] = TRUE; // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
530 // the PDF page editor. Requires an IE6/Mozilla based browser.
532 $cfg['NaturalOrder'] = TRUE; // Sort table and database in natural order
535 //-----------------------------------------------------------------------------
536 // custom-setup by mkkeck: 2004-05-04
537 // some specials for new icons and scrollings
538 // FIXME:
539 // 2004-05-08 rabus: We need to rearrange these variables.
541 // Window title settings
542 $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
543 $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
544 $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
545 $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
547 $cfg['ErrorIconic'] = TRUE; // show some icons for warning, error and information messages (true|false)?
548 $cfg['MainPageIconic'] = TRUE; // show icons in list on main page and on menu tabs (true|false)?
549 $cfg['ReplaceHelpImg'] = TRUE; // show help button instead of strDocu (true|false)?
551 // theme manager
552 $cfg['ThemePath'] = './themes'; // using themes manager please set up here the path to 'themes'
553 // else leave empty
554 $cfg['ThemeManager'] = TRUE; // if you want to use selectable themes and if ThemesPath not empty
555 // set it to true, else set it to false (default is false);
556 $cfg['ThemeDefault'] = 'original'; // set up default theme, if ThemePath not empty
557 // you can set up here an valid path to themes or 'original' for
558 // the original pma-theme
559 $cfg['ThemePerServer'] = FALSE; // allow different theme for each configured server
561 //-----------------------------------------------------------------------------
565 * Default queries
566 * %d will be replaced by the database name.
567 * %t will be replaced by the table name.
568 * %f will be replaced by a list of field names.
569 * (%t and %f only applies to DefaultQueryTable)
571 $cfg['DefaultQueryTable'] = 'SELECT * FROM %t WHERE 1';
572 $cfg['DefaultQueryDatabase'] = '';
575 * SQL Query box settings
576 * These are the links display in all of the SQL Query boxes
578 $cfg['SQLQuery']['Edit'] = TRUE; // Edit link to change a query
579 $cfg['SQLQuery']['Explain'] = TRUE; // EXPLAIN on SELECT queries
580 $cfg['SQLQuery']['ShowAsPHP'] = TRUE; // Wrap a query in PHP
581 $cfg['SQLQuery']['Validate'] = FALSE; // Validate a query (see $cfg['SQLValidator'] as well)
582 $cfg['SQLQuery']['Refresh'] = TRUE; // Refresh the results page
586 * Webserver upload/save/import directories
588 $cfg['UploadDir'] = ''; // Directory for uploaded files that can be executed by
589 // phpMyAdmin. For example './upload'. Leave empty for
590 // no upload directory support. Use %u for username
591 // inclusion.
592 $cfg['SaveDir'] = ''; // Directory where phpMyAdmin can save exported data on
593 // server. For example './save'. Leave empty for no save
594 // directory support. Use %u for username inclusion.
595 $cfg['docSQLDir'] = ''; // Directory for docSQL imports, phpMyAdmin can import
596 // docSQL files from that directory. For example
597 // './docSQL'. Leave empty for no docSQL import support.
598 $cfg['TempDir'] = ''; // Directory where phpMyAdmin can save temporary files.
599 // This is needed for MS Excel export, see documentation
600 // how to enable that.
604 * Misc. settings
606 $cfg['GD2Available'] = 'auto'; // Is GD >= 2 available? Set to yes/no/auto. 'auto'
607 // does autodetection, which is a bit expensive for
608 // php < 4.3.0, but it is the only safe vay how to
609 // determine GD version.
611 * SQL Parser Settings
613 $cfg['SQP']['fmtType'] = 'html'; // Pretty-printing style to use on queries (html, text, none)
614 $cfg['SQP']['fmtInd'] = '1'; // Amount to indent each level (floats ok)
615 $cfg['SQP']['fmtIndUnit'] = 'em'; // Units for indenting each level (CSS Types - {em,px,pt})
616 // The graphical settings are now located in themes/themename/layout.inc.php
619 * If you wish to use the SQL Validator service, you should be
620 * aware of the following:
621 * All SQL statements are stored anonymously for statistical purposes.
622 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
623 * All rights reserved.
625 $cfg['SQLValidator']['use'] = FALSE; // Make the SQL Validator available
626 $cfg['SQLValidator']['username'] = ''; // If you have a custom username, specify it here (defaults to anonymous)
627 $cfg['SQLValidator']['password'] = ''; // Password for username
630 * Developers ONLY!
631 * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
633 $cfg['DBG']['enable'] = FALSE; // Make the DBG stuff available
634 $cfg['DBG']['profile']['enable'] = FALSE; // Produce profiling results of PHP
635 $cfg['DBG']['profile']['threshold'] = 0.5; // Threshold of long running code to display
636 // Anything below the threshold is not displayed
640 * MySQL settings
642 // Column types;
643 // varchar, tinyint, text and date are listed first, based on estimated popularity
644 $cfg['ColumnTypes'] = array(
645 'VARCHAR',
646 'TINYINT',
647 'TEXT',
648 'DATE',
649 'SMALLINT',
650 'MEDIUMINT',
651 'INT',
652 'BIGINT',
653 'FLOAT',
654 'DOUBLE',
655 'DECIMAL',
656 'DATETIME',
657 'TIMESTAMP',
658 'TIME',
659 'YEAR',
660 'CHAR',
661 'TINYBLOB',
662 'TINYTEXT',
663 'BLOB',
664 'MEDIUMBLOB',
665 'MEDIUMTEXT',
666 'LONGBLOB',
667 'LONGTEXT',
668 'ENUM',
669 'SET',
670 'BOOL'
673 // Attributes
674 // Note: the "ON UPDATE CURRENT_TIMESTAMP" attribute is added dynamically
675 // for MySQL >= 4.1.2, in libraries/tbl_properties.inc.php
677 $cfg['AttributeTypes'] = array(
679 'BINARY',
680 'UNSIGNED',
681 'UNSIGNED ZEROFILL'
684 // Available functions
685 if ($cfg['ShowFunctionFields']) {
686 $cfg['Functions'] = array(
687 'ASCII',
688 'CHAR',
689 'SOUNDEX',
690 'LCASE',
691 'UCASE',
692 'NOW',
693 'PASSWORD',
694 'OLD_PASSWORD',
695 'MD5',
696 'SHA1',
697 'ENCRYPT',
698 'COMPRESS',
699 'UNCOMPRESS',
700 'RAND',
701 'LAST_INSERT_ID',
702 'COUNT',
703 'AVG',
704 'SUM',
705 'CURDATE',
706 'CURTIME',
707 'FROM_DAYS',
708 'FROM_UNIXTIME',
709 'PERIOD_ADD',
710 'PERIOD_DIFF',
711 'TO_DAYS',
712 'UNIX_TIMESTAMP',
713 'USER',
714 'WEEKDAY',
715 'CONCAT'
718 // Which column types will be mapped to which Group?
719 $cfg['RestrictColumnTypes'] = array(
720 'VARCHAR' => 'FUNC_CHAR',
721 'TINYINT' => 'FUNC_NUMBER',
722 'TEXT' => 'FUNC_CHAR',
723 'DATE' => 'FUNC_DATE',
724 'SMALLINT' => 'FUNC_NUMBER',
725 'MEDIUMINT' => 'FUNC_NUMBER',
726 'INT' => 'FUNC_NUMBER',
727 'BIGINT' => 'FUNC_NUMBER',
728 'FLOAT' => 'FUNC_NUMBER',
729 'DOUBLE' => 'FUNC_NUMBER',
730 'DECIMAL' => 'FUNC_NUMBER',
731 'DATETIME' => 'FUNC_DATE',
732 'TIMESTAMP' => 'FUNC_DATE',
733 'TIME' => 'FUNC_DATE',
734 'YEAR' => 'FUNC_DATE',
735 'CHAR' => 'FUNC_CHAR',
736 'TINYBLOB' => 'FUNC_CHAR',
737 'TINYTEXT' => 'FUNC_CHAR',
738 'BLOB' => 'FUNC_CHAR',
739 'MEDIUMBLOB' => 'FUNC_CHAR',
740 'MEDIUMTEXT' => 'FUNC_CHAR',
741 'LONGBLOB' => 'FUNC_CHAR',
742 'LONGTEXT' => 'FUNC_CHAR',
743 'ENUM' => '',
744 'SET' => ''
747 // Map above defined groups to any function
748 $cfg['RestrictFunctions'] = array(
749 'FUNC_CHAR' => array(
750 'ASCII',
751 'CHAR',
752 'SOUNDEX',
753 'LCASE',
754 'UCASE',
755 'PASSWORD',
756 'OLD_PASSWORD',
757 'MD5',
758 'SHA1',
759 'ENCRYPT',
760 'COMPRESS',
761 'UNCOMPRESS',
762 'LAST_INSERT_ID',
763 'USER',
764 'CONCAT'
767 'FUNC_DATE' => array(
768 'NOW',
769 'CURDATE',
770 'CURTIME',
771 'FROM_DAYS',
772 'FROM_UNIXTIME',
773 'PERIOD_ADD',
774 'PERIOD_DIFF',
775 'TO_DAYS',
776 'UNIX_TIMESTAMP',
777 'WEEKDAY'
780 'FUNC_NUMBER' => array(
781 'ASCII',
782 'CHAR',
783 'MD5',
784 'SHA1',
785 'ENCRYPT',
786 'RAND',
787 'LAST_INSERT_ID',
788 'UNIX_TIMESTAMP',
789 'COUNT',
790 'AVG',
791 'SUM'
795 // Default functions for above defined groups
796 $cfg['DefaultFunctions'] = array(
797 'FUNC_CHAR' => '',
798 'FUNC_DATE' => '',
799 'FUNC_NUMBER' => '',
800 'first_timestamp' => 'NOW'
804 } // end if
806 // Search operators
807 $cfg['NumOperators'] = array(
808 '=',
809 '>',
810 '>=',
811 '<',
812 '<=',
813 '!=',
814 'LIKE',
815 'NOT LIKE'
818 $cfg['TextOperators'] = array(
819 'LIKE',
820 'LIKE %...%',
821 'NOT LIKE',
822 '=',
823 '!=',
824 'REGEXP',
825 'NOT REGEXP'
828 $cfg['EnumOperators'] = array(
829 '=',
830 '!='
833 $cfg['SetOperators'] = array(
834 'IN',
835 'NOT IN'
838 $cfg['NullOperators'] = array(
839 'IS NULL',
840 'IS NOT NULL'
843 $cfg['UnaryOperators'] = array(
844 'IS NULL' => 1,
845 'IS NOT NULL' => 1