sorry, wrong version checked in
[phpmyadmin/arisferyanto.git] / config.default.php
blobe3fd7b2a6f507db233efc0cd4510e83eb8457c47
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 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]['only_db'] = ''; // If set to a db-name, only
76 // this db is displayed in left frame
77 // It may also be an array of db-names, where sorting order is relevant.
78 $cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
80 $cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features
81 // (see scripts/create_tables.sql)
82 // - leave blank for no support
83 // DEFAULT: 'phpmyadmin'
84 $cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table
85 // - leave blank for no bookmark support
86 // DEFAULT: 'pma_bookmark'
87 $cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
88 // - leave blank for no relation-links support
89 // DEFAULT: 'pma_relation'
90 $cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields
91 // - leave blank for no display fields support
92 // DEFAULT: 'pma_table_info'
93 $cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF schema
94 // - leave blank for no PDF schema support
95 // DEFAULT: 'pma_table_coords'
96 $cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf
97 // - leave blank if you don't want to use this
98 // DEFAULT: 'pma_pdf_pages'
99 $cfg['Servers'][$i]['column_info'] = ''; // table to store column information
100 // - leave blank for no column comments/mime types
101 // DEFAULT: 'pma_column_info'
102 $cfg['Servers'][$i]['history'] = ''; // table to store SQL history
103 // - leave blank for no SQL query history
104 // DEFAULT: 'pma_history'
105 $cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your pma_* tables
106 // are up to date. This prevents compatibility
107 // checks and thereby increases performance.
108 $cfg['Servers'][$i]['AllowRoot'] = TRUE; // whether to allow root login
109 $cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use
110 = '';
111 $cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults
112 = array();
114 // If you have more than one server configured, you can set $cfg['ServerDefault']
115 // to any one of them to autoconnect to that server when phpMyAdmin is started,
116 // or set it to 0 to be given a list of servers without logging in
117 // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
118 // set to that server.
119 $cfg['ServerDefault'] = 1; // Default server (0 = no default server)
122 * Other core phpMyAdmin settings
124 $cfg['OBGzip'] = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
125 $cfg['PersistentConnections'] = FALSE; // use persistent connections to MySQL database
126 $cfg['ForceSLL'] = FALSE; // whether to force using https
127 $cfg['ExecTimeLimit'] = 300; // maximum execution time in seconds (0 for no limit)
128 $cfg['SkipLockedTables'] = FALSE; // mark used tables, make possible to show
129 // locked tables (since MySQL 3.23.30)
130 $cfg['ShowSQL'] = TRUE; // show SQL queries as run
131 $cfg['AllowUserDropDatabase'] = FALSE; // show a 'Drop database' link to normal users
132 $cfg['Confirm'] = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE'
133 $cfg['LoginCookieRecall'] = TRUE; // recall previous login in cookie auth. mode or not
134 $cfg['LoginCookieValidity'] = 1800; // validity of cookie login (in seconds)
135 $cfg['UseDbSearch'] = TRUE; // whether to enable the "database search" feature
136 // or not
137 $cfg['IgnoreMultiSubmitErrors'] = FALSE; // if set to true, PMA continues computing multiple-statement queries
138 // even if one of the queries failed
139 $cfg['VerboseMultiSubmit'] = TRUE; // if set to true, PMA will show the affected rows of EACH statement on
140 // multiple-statement queries. See the libraries/import.php file for
141 // hardcoded defaults on how many queries a statement may contain!
142 $cfg['AllowArbitraryServer'] = FALSE; // allow login to any user entered server in cookie based auth
144 // Left frame setup
145 $cfg['LeftFrameLight'] = TRUE; // use a select-based menu and display only the
146 // current tables in the left frame.
147 $cfg['LeftFrameDBTree'] = TRUE; // turn the select-based light menu into a tree
148 $cfg['LeftFrameDBSeparator'] = '_'; // the separator to sub-tree the select-based light menu tree
149 $cfg['LeftFrameTableSeparator']= '__'; // Which string will be used to generate table prefixes
150 // to split/nest tables into multiple categories
151 $cfg['LeftFrameTableLevel'] = '1'; // How many sublevels should be displayed when splitting
152 // up tables by the above Separator
153 $cfg['ShowTooltip'] = TRUE; // display table comment as tooltip in left frame
154 $cfg['ShowTooltipAliasDB'] = FALSE; // if ShowToolTip is enabled, this defines that table/db comments
155 $cfg['ShowTooltipAliasTB'] = FALSE; // are shown (in the left menu and db_details_structure) instead of
156 // table/db names. Setting ShowTooltipAliasTB to 'nested' will only
157 // use the Aliases for nested descriptors, not the table itself.
159 $cfg['LeftDisplayLogo'] = TRUE; // display logo at top of left frame
160 $cfg['LeftDisplayServers'] = FALSE; // display server choice at top of left frame
161 $cfg['DisplayServersList'] = FALSE; // server choice as links
163 // In the main frame, at startup...
164 $cfg['ShowStats'] = TRUE; // allow to display statistics and space usage in
165 // the pages about database details and table
166 // properties
167 $cfg['ShowPhpInfo'] = FALSE; // information" and "change password" links for
168 $cfg['ShowChgPassword'] = FALSE; // simple users or not
169 $cfg['SuggestDBName'] = TRUE; // suggest a new DB name if possible (false = keep empty)
171 // In browse mode...
172 $cfg['ShowBlob'] = FALSE; // display blob field contents
173 $cfg['NavigationBarIconic'] = 'both'; // Use icons instead of text for the navigation bar buttons
174 // and on right panel top menu (server db table) (TRUE|FALSE|'both')
175 $cfg['ShowAll'] = FALSE; // allows to display all the rows
176 $cfg['MaxRows'] = 30; // maximum number of rows to display
177 $cfg['Order'] = 'ASC'; // default for 'ORDER BY' clause (valid
178 // values are 'ASC', 'DESC' or 'SMART' -ie
179 // descending order for fields of type
180 // TIME, DATE, DATETIME & TIMESTAMP,
181 // ascending order else-)
183 // In edit mode...
184 $cfg['ProtectBinary'] = 'blob'; // disallow editing of binary fields
185 // valid values are:
186 // FALSE allow editing
187 // 'blob' allow editing except for BLOB fields
188 // 'all' disallow editing
189 $cfg['ShowFunctionFields'] = TRUE; // Display the function fields in edit/insert mode
190 $cfg['CharEditing'] = 'input';
191 // Which editor should be used for CHAR/VARCHAR fields:
192 // input - allows limiting of input length
193 // textarea - allows newlines in fields
194 $cfg['InsertRows'] = 2; // How many rows can be inserted at one time
196 $cfg['ForeignKeyDropdownOrder'] = // Sort order for items in a foreign-key dropdown box.
197 array( 'content-id', 'id-content'); // 'content' is the referenced data, 'id' is the key value.
198 $cfg['ForeignKeyMaxLimit'] = 100; // A dropdown will be used if fewer items are present
201 // For the export features...
202 $cfg['ZipDump'] = TRUE; // Allow the use of zip/gzip/bzip
203 $cfg['GZipDump'] = TRUE; // compression for
204 $cfg['BZipDump'] = TRUE; // dump files
205 $cfg['CompressOnFly'] = TRUE; // Will compress gzip/bzip2 exports on
206 // fly without need for much memory.
207 // If you encounter problems with
208 // created gzip/bzip2 files disable
209 // this feature.
211 // Tabs display settings
212 $cfg['LightTabs'] = FALSE; // use graphically less intense menu tabs
213 $cfg['PropertiesIconic'] = TRUE; // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')
214 $cfg['PropertiesNumColumns'] = 1; // How many columns should be used for table display of a database?
215 // (a value larger than 1 results in some information being hidden)
217 $cfg['DefaultTabServer'] = 'main.php';
218 // Possible values:
219 // 'main.php' = the welcome page
220 // (recommended for multiuser setups)
221 // 'server_databases.php' = list of databases
222 // 'server_status.php' = runtime information
223 // 'server_variables.php' = MySQL server variables
224 // 'server_privileges.php' = user management
225 // 'server_processlist.php' = process list
226 $cfg['DefaultTabDatabase'] = 'db_details_structure.php';
227 // Possible values:
228 // 'db_details_structure.php' = tables list
229 // 'db_details.php' = sql form
230 // 'db_search.php' = search query
231 // 'db_operations.php' = operations on database
232 $cfg['DefaultTabTable'] = 'tbl_properties_structure.php';
233 // Possible values:
234 // 'tbl_properties_structure.php' = fields list
235 // 'tbl_properties.php' = sql form
236 // 'tbl_select.php = select page
237 // 'tbl_change.php = insert row page
240 * Export defaults
243 $cfg['Export']['format'] = 'sql'; // sql/latex/excel/csv/xml/xls/htmlexcel/htmlword
244 $cfg['Export']['compression'] = 'none'; // none/zip/gzip/bzip2
246 $cfg['Export']['asfile'] = FALSE;
247 $cfg['Export']['charset'] = '';
248 $cfg['Export']['onserver'] = FALSE;
249 $cfg['Export']['onserver_overwrite'] = FALSE;
250 $cfg['Export']['remember_file_template'] = TRUE;
251 $cfg['Export']['file_template_table'] = '__TABLE__';
252 $cfg['Export']['file_template_database'] = '__DB__';
253 $cfg['Export']['file_template_server'] = '__SERVER__';
255 $cfg['Export']['htmlexcel_columns'] = FALSE;
256 $cfg['Export']['htmlexcel_null'] = 'NULL';
258 $cfg['Export']['htmlword_structure'] = TRUE;
259 $cfg['Export']['htmlword_data'] = TRUE;
260 $cfg['Export']['htmlword_columns'] = FALSE;
261 $cfg['Export']['htmlword_null'] = 'NULL';
263 $cfg['Export']['xls_columns'] = FALSE;
264 $cfg['Export']['xls_null'] = 'NULL';
266 $cfg['Export']['csv_columns'] = FALSE;
267 $cfg['Export']['csv_null'] = 'NULL';
268 $cfg['Export']['csv_separator'] = ';';
269 $cfg['Export']['csv_enclosed'] = '&quot;';
270 $cfg['Export']['csv_escaped'] = '\\';
271 $cfg['Export']['csv_terminated'] = 'AUTO';
272 $cfg['Export']['excel_columns'] = FALSE;
273 $cfg['Export']['excel_null'] = 'NULL';
274 $cfg['Export']['excel_edition'] = 'win'; // win/mac
276 $cfg['Export']['latex_structure'] = TRUE;
277 $cfg['Export']['latex_data'] = TRUE;
278 $cfg['Export']['latex_columns'] = TRUE;
279 $cfg['Export']['latex_relation'] = TRUE;
280 $cfg['Export']['latex_comments'] = TRUE;
281 $cfg['Export']['latex_mime'] = TRUE;
282 $cfg['Export']['latex_null'] = '\textit{NULL}';
283 $cfg['Export']['latex_caption'] = TRUE;
284 $cfg['Export']['latex_data_label'] = 'tab:__TABLE__-data';
285 $cfg['Export']['latex_structure_label'] = 'tab:__TABLE__-structure';
287 $cfg['Export']['sql_structure'] = TRUE;
288 $cfg['Export']['sql_data'] = TRUE;
289 $cfg['Export']['sql_compat'] = 'NONE';
290 $cfg['Export']['sql_disable_fk'] = FALSE;
291 $cfg['Export']['sql_use_transaction'] = FALSE;
292 $cfg['Export']['sql_drop_database'] = FALSE;
293 $cfg['Export']['sql_drop_table'] = FALSE;
294 $cfg['Export']['sql_if_not_exists'] = FALSE;
295 $cfg['Export']['sql_auto_increment'] = TRUE;
296 $cfg['Export']['sql_backquotes'] = TRUE;
297 $cfg['Export']['sql_dates'] = FALSE;
298 $cfg['Export']['sql_relation'] = FALSE;
299 $cfg['Export']['sql_columns'] = FALSE;
300 $cfg['Export']['sql_delayed'] = FALSE;
301 $cfg['Export']['sql_ignore'] = FALSE;
302 $cfg['Export']['sql_hex_for_binary'] = TRUE;
303 $cfg['Export']['sql_type'] = 'insert'; // insert/update/replace
304 $cfg['Export']['sql_extended'] = FALSE;
305 $cfg['Export']['sql_max_query_size'] = 50000;
306 $cfg['Export']['sql_comments'] = FALSE;
307 $cfg['Export']['sql_mime'] = FALSE;
308 $cfg['Export']['sql_header_comment'] = ''; // \n is replaced by new line
311 * Import defaults
313 $cfg['Import']['format'] = 'sql';
314 $cfg['Import']['allow_interrupt'] = TRUE;
315 $cfg['Import']['skip_queries'] = '0';
316 $cfg['Import']['csv_replace'] = FALSE;
317 $cfg['Import']['csv_terminated'] = ';';
318 $cfg['Import']['csv_enclosed'] = '"';
319 $cfg['Import']['csv_enclosed_optionally'] = FALSE;
320 $cfg['Import']['csv_escaped'] = '\\';
321 $cfg['Import']['csv_new_line'] = 'auto';
322 $cfg['Import']['csv_columns'] = '';
323 $cfg['Import']['ldi_replace'] = FALSE;
324 $cfg['Import']['ldi_terminated'] = ';';
325 $cfg['Import']['ldi_enclosed'] = '"';
326 $cfg['Import']['ldi_enclosed_optionally'] = FALSE;
327 $cfg['Import']['ldi_escaped'] = '\\';
328 $cfg['Import']['ldi_new_line'] = 'auto';
329 $cfg['Import']['ldi_columns'] = '';
330 $cfg['Import']['ldi_local_option'] = 'auto'; // 'auto' for autodetection, TRUE or FALSE for forcing
334 * Link to the official MySQL documentation.
335 * Be sure to include no trailing slash on the path.
336 * See http://dev.mysql.com/doc/ for more information
337 * about MySQL manuals and their types.
339 $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
342 * Type of MySQL documentation:
343 * viewable - "viewable online", current one used on MySQL website
344 * searchable - "Searchable, with user comments"
345 * chapters - "HTML, one page per chapter"
346 * chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
347 * big - "HTML, all on one page"
348 * old - old style used in phpMyAdmin 2.3.0 and sooner
349 * none - do not show documentation links
351 $cfg['MySQLManualType'] = 'viewable';
355 * PDF options
357 $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
358 $cfg['PDFDefaultPageSize'] = 'A4';
362 * Language and charset conversion settings
364 // Default language to use, if not browser-defined or user-defined
365 $cfg['DefaultLang'] = 'en-iso-8859-1';
367 // Force: always use this language - must be defined in
368 // libraries/select_lang.lib.php
369 // $cfg['Lang'] = 'en-iso-8859-1';
371 // Regullar expression to limit listed languages, eg. '^(cs|en)' for Czech and
372 // English only
373 $cfg['FilterLanguages'] = '';
375 // Default charset to use for recoding of MySQL queries, does not take
376 // any effect when charsets recoding is switched off by
377 // $cfg['AllowAnywhereRecoding'] or in language file
378 // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
379 $cfg['DefaultCharset'] = 'iso-8859-1';
381 // Allow charset recoding of MySQL queries, must be also enabled in language
382 // file to make harder using other language files than unicode.
383 // Default value is FALSE to avoid problems on servers without the iconv
384 // extension and where dl() is not supported
385 $cfg['AllowAnywhereRecoding'] = FALSE;
387 // You can select here which functions will be used for charset conversion.
388 // Possible values are:
389 // auto - automatically use available one (first is tested iconv, then
390 // recode)
391 // iconv - use iconv or libiconv functions
392 // recode - use recode_string function
393 $cfg['RecodingEngine'] = 'auto';
395 // Specify some parameters for iconv used in charset conversion. See iconv
396 // documentation for details:
397 // http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
398 $cfg['IconvExtraParams'] = '';
400 // Available charsets for MySQL conversion. currently contains all which could
401 // be found in lang/* files and few more.
402 // Charsets will be shown in same order as here listed, so if you frequently
403 // use some of these move them to the top.
404 $cfg['AvailableCharsets'] = array(
405 'iso-8859-1',
406 'iso-8859-2',
407 'iso-8859-3',
408 'iso-8859-4',
409 'iso-8859-5',
410 'iso-8859-6',
411 'iso-8859-7',
412 'iso-8859-8',
413 'iso-8859-9',
414 'iso-8859-10',
415 'iso-8859-11',
416 'iso-8859-12',
417 'iso-8859-13',
418 'iso-8859-14',
419 'iso-8859-15',
420 'windows-1250',
421 'windows-1251',
422 'windows-1252',
423 'windows-1256',
424 'windows-1257',
425 'koi8-r',
426 'big5',
427 'gb2312',
428 'utf-16',
429 'utf-8',
430 'utf-7',
431 'x-user-defined',
432 'euc-jp',
433 'ks_c_5601-1987',
434 'tis-620',
435 'SHIFT_JIS'
439 * Customization & design
441 * The graphical settings are now located in themes/themename/layout.inc.php
444 $cfg['LeftPointerEnable'] = TRUE; // enable the left panel pointer
445 // (used when LeftFrameLight is FALSE)
446 // see also LeftPointerColor
447 // in layout.inc.php
449 $cfg['BrowsePointerEnable'] = TRUE; // enable the browse pointer
450 // see also BrowsePointerColor
451 // in layout.inc.php
453 $cfg['BrowseMarkerEnable'] = TRUE; // enable the browse marker
454 // see also BrowseMarkerColor
455 // in layout.inc.php
457 $cfg['TextareaCols'] = 40; // textarea size (columns) in edit mode
458 // (this value will be emphasized (*2) for sql
459 // query textareas and (*1.25) for query window)
460 $cfg['TextareaRows'] = 7; // textarea size (rows) in edit mode
461 $cfg['LongtextDoubleTextarea'] = TRUE; // double size of textarea size for longtext fields
462 $cfg['TextareaAutoSelect'] = TRUE; // autoselect when clicking in the textarea of the querybox
463 $cfg['CharTextareaCols'] = 40; // textarea size (columns) for CHAR/VARCHAR
464 $cfg['CharTextareaRows'] = 2; // textarea size (rows) for CHAR/VARCHAR
465 $cfg['CtrlArrowsMoving'] = TRUE; // Enable Ctrl+Arrows moving between fields when editing?
466 $cfg['LimitChars'] = 50; // Max field data length in browse mode for all non-numeric fields
467 $cfg['ModifyDeleteAtLeft'] = TRUE; // show edit/delete links on left side of browse
468 // (or at the top with vertical browse)
469 $cfg['ModifyDeleteAtRight'] = FALSE; // show edit/delete links on right side of browse
470 // (or at the bottom with vertical browse)
471 $cfg['DefaultDisplay'] = 'horizontal'; // default display direction
472 // (horizontal|vertical|horizontalflipped)
473 $cfg['DefaultPropDisplay'] = 'horizontal'; // default display direction for altering/
474 // creating columns (tbl_properties)
475 // (horizontal|vertical)
477 $cfg['HeaderFlipType'] = 'css'; // table-header rotation via faking or css? (css|fake)
478 // NOTE: CSS only works in IE browsers!
479 $cfg['ShowBrowseComments'] = TRUE; // shows stored relation-comments in 'browse' mode.
480 $cfg['ShowPropertyComments']= TRUE; // shows stored relation-comments in 'table property' mode.
481 $cfg['RepeatCells'] = 100; // repeat header names every X cells? (0 = deactivate)
483 $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
484 $cfg['QueryWindowWidth'] = 550; // Width of Query window
485 $cfg['QueryWindowHeight'] = 310; // Height of Query window
486 $cfg['QueryHistoryDB'] = FALSE; // Set to TRUE if you want DB-based query history.
487 // If FALSE, this utilizes JS-routines to display
488 // query history (lost by window close)
489 $cfg['QueryWindowDefTab'] = 'sql'; // which tab to display in the querywindow on startup
490 // (sql|files|history|full)
491 $cfg['QueryHistoryMax'] = 25; // When using DB-based query history, how many entries
492 // should be kept?
493 $cfg['BrowseMIME'] = TRUE; // Use MIME-Types (stored in column comments table) for
494 $cfg['MaxExactCount'] = 20000; // When approximate count < this, PMA will get exact count for
495 // table rows.
496 $cfg['WYSIWYG-PDF'] = TRUE; // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
497 // the PDF page editor. Requires an IE6/Mozilla based browser.
499 $cfg['NaturalOrder'] = TRUE; // Sort table and database in natural order
502 //-----------------------------------------------------------------------------
503 // custom-setup by mkkeck: 2004-05-04
504 // some specials for new icons and scrollings
505 // FIXME:
506 // 2004-05-08 rabus: We need to rearrange these variables.
508 $cfg['ShowHttpHostTitle'] = TRUE; // show HttpHost in browsers window title (true|false)?
509 $cfg['SetHttpHostTitle'] = ''; // if ShowHttpHostTitle=true, please set your host (server)
510 // or an other string, wich should be shown in browsers window title.
511 // If not set (or empty), the PMA will get your real Host-Adress.
513 $cfg['ErrorIconic'] = TRUE; // show some icons for warning, error and information messages (true|false)?
514 $cfg['MainPageIconic'] = TRUE; // show icons in list on main page and on menu tabs (true|false)?
515 $cfg['ReplaceHelpImg'] = TRUE; // show help button instead of strDocu (true|false)?
517 // theme manager
518 $cfg['ThemePath'] = './themes'; // using themes manager please set up here the path to 'themes'
519 // else leave empty
520 $cfg['ThemeManager'] = TRUE; // if you want to use selectable themes and if ThemesPath not empty
521 // set it to true, else set it to false (default is false);
522 $cfg['ThemeDefault'] = 'original'; // set up default theme, if ThemePath not empty
523 // you can set up here an valid path to themes or 'original' for
524 // the original pma-theme
525 $cfg['ThemePerServer'] = FALSE; // allow diferent theme for each configured server
527 //-----------------------------------------------------------------------------
531 * Default queries
532 * %d will be replaced by the database name.
533 * %t will be replaced by the table name.
534 * %f will be replaced by a list of field names.
535 * (%t and %f only applies to DefaultQueryTable)
537 $cfg['DefaultQueryTable'] = 'SELECT * FROM %t WHERE 1';
538 $cfg['DefaultQueryDatabase'] = '';
541 * SQL Query box settings
542 * These are the links display in all of the SQL Query boxes
544 $cfg['SQLQuery']['Edit'] = TRUE; // Edit link to change a query
545 $cfg['SQLQuery']['Explain'] = TRUE; // EXPLAIN on SELECT queries
546 $cfg['SQLQuery']['ShowAsPHP'] = TRUE; // Wrap a query in PHP
547 $cfg['SQLQuery']['Validate'] = FALSE; // Validate a query (see $cfg['SQLValidator'] as well)
548 $cfg['SQLQuery']['Refresh'] = TRUE; // Refresh the results page
552 * Webserver upload/save/import directories
554 $cfg['UploadDir'] = ''; // Directory for uploaded files that can be executed by
555 // phpMyAdmin. For example './upload'. Leave empty for
556 // no upload directory support. Use %u for username
557 // inclusion.
558 $cfg['SaveDir'] = ''; // Directory where phpMyAdmin can save exported data on
559 // server. For example './save'. Leave empty for no save
560 // directory support. Use %u for username inclusion.
561 $cfg['docSQLDir'] = ''; // Directory for docSQL imports, phpMyAdmin can import
562 // docSQL files from that directory. For example
563 // './docSQL'. Leave empty for no docSQL import support.
564 $cfg['TempDir'] = ''; // Directory where phpMyAdmin can save temporary files.
565 // This is needed for MS Excel export, see documentation
566 // how to enable that.
570 * Misc. settings
572 $cfg['GD2Available'] = 'auto'; // Is GD >= 2 available? Set to yes/no/auto. 'auto'
573 // does autodetection, which is a bit expensive for
574 // php < 4.3.0, but it is the only safe vay how to
575 // determine GD version.
577 * SQL Parser Settings
579 $cfg['SQP']['fmtType'] = 'html'; // Pretty-printing style to use on queries (html, text, none)
580 $cfg['SQP']['fmtInd'] = '1'; // Amount to indent each level (floats ok)
581 $cfg['SQP']['fmtIndUnit'] = 'em'; // Units for indenting each level (CSS Types - {em,px,pt})
582 // The graphical settings are now located in themes/themename/layout.inc.php
585 * If you wish to use the SQL Validator service, you should be
586 * aware of the following:
587 * All SQL statements are stored anonymously for statistical purposes.
588 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
589 * All rights reserved.
591 $cfg['SQLValidator']['use'] = FALSE; // Make the SQL Validator available
592 $cfg['SQLValidator']['username'] = ''; // If you have a custom username, specify it here (defaults to anonymous)
593 $cfg['SQLValidator']['password'] = ''; // Password for username
596 * Developers ONLY!
597 * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
599 $cfg['DBG']['enable'] = FALSE; // Make the DBG stuff available
600 $cfg['DBG']['profile']['enable'] = FALSE; // Produce profiling results of PHP
601 $cfg['DBG']['profile']['threshold'] = 0.5; // Threshold of long running code to display
602 // Anything below the threshold is not displayed
606 * MySQL settings
608 // Column types;
609 // varchar, tinyint, text and date are listed first, based on estimated popularity
610 $cfg['ColumnTypes'] = array(
611 'VARCHAR',
612 'TINYINT',
613 'TEXT',
614 'DATE',
615 'SMALLINT',
616 'MEDIUMINT',
617 'INT',
618 'BIGINT',
619 'FLOAT',
620 'DOUBLE',
621 'DECIMAL',
622 'DATETIME',
623 'TIMESTAMP',
624 'TIME',
625 'YEAR',
626 'CHAR',
627 'TINYBLOB',
628 'TINYTEXT',
629 'BLOB',
630 'MEDIUMBLOB',
631 'MEDIUMTEXT',
632 'LONGBLOB',
633 'LONGTEXT',
634 'ENUM',
635 'SET',
636 'BOOL'
639 // Attributes
640 // Note: the "ON UPDATE CURRENT_TIMESTAMP" attribute is added dynamically
641 // for MySQL >= 4.1.2, in tbl_properties.inc.php
643 $cfg['AttributeTypes'] = array(
645 'BINARY',
646 'UNSIGNED',
647 'UNSIGNED ZEROFILL'
650 // Available functions
651 if ($cfg['ShowFunctionFields']) {
652 $cfg['Functions'] = array(
653 'ASCII',
654 'CHAR',
655 'SOUNDEX',
656 'LCASE',
657 'UCASE',
658 'NOW',
659 'PASSWORD',
660 'OLD_PASSWORD',
661 'MD5',
662 'SHA1',
663 'ENCRYPT',
664 'COMPRESS',
665 'UNCOMPRESS',
666 'RAND',
667 'LAST_INSERT_ID',
668 'COUNT',
669 'AVG',
670 'SUM',
671 'CURDATE',
672 'CURTIME',
673 'FROM_DAYS',
674 'FROM_UNIXTIME',
675 'PERIOD_ADD',
676 'PERIOD_DIFF',
677 'TO_DAYS',
678 'UNIX_TIMESTAMP',
679 'USER',
680 'WEEKDAY',
681 'CONCAT'
684 // Which column types will be mapped to which Group?
685 $cfg['RestrictColumnTypes'] = array(
686 'VARCHAR' => 'FUNC_CHAR',
687 'TINYINT' => 'FUNC_NUMBER',
688 'TEXT' => 'FUNC_CHAR',
689 'DATE' => 'FUNC_DATE',
690 'SMALLINT' => 'FUNC_NUMBER',
691 'MEDIUMINT' => 'FUNC_NUMBER',
692 'INT' => 'FUNC_NUMBER',
693 'BIGINT' => 'FUNC_NUMBER',
694 'FLOAT' => 'FUNC_NUMBER',
695 'DOUBLE' => 'FUNC_NUMBER',
696 'DECIMAL' => 'FUNC_NUMBER',
697 'DATETIME' => 'FUNC_DATE',
698 'TIMESTAMP' => 'FUNC_DATE',
699 'TIME' => 'FUNC_DATE',
700 'YEAR' => 'FUNC_DATE',
701 'CHAR' => 'FUNC_CHAR',
702 'TINYBLOB' => 'FUNC_CHAR',
703 'TINYTEXT' => 'FUNC_CHAR',
704 'BLOB' => 'FUNC_CHAR',
705 'MEDIUMBLOB' => 'FUNC_CHAR',
706 'MEDIUMTEXT' => 'FUNC_CHAR',
707 'LONGBLOB' => 'FUNC_CHAR',
708 'LONGTEXT' => 'FUNC_CHAR',
709 'ENUM' => '',
710 'SET' => ''
713 // Map above defined groups to any function
714 $cfg['RestrictFunctions'] = array(
715 'FUNC_CHAR' => array(
716 'ASCII',
717 'CHAR',
718 'SOUNDEX',
719 'LCASE',
720 'UCASE',
721 'PASSWORD',
722 'OLD_PASSWORD',
723 'MD5',
724 'SHA1',
725 'ENCRYPT',
726 'COMPRESS',
727 'UNCOMPRESS',
728 'LAST_INSERT_ID',
729 'USER',
730 'CONCAT'
733 'FUNC_DATE' => array(
734 'NOW',
735 'CURDATE',
736 'CURTIME',
737 'FROM_DAYS',
738 'FROM_UNIXTIME',
739 'PERIOD_ADD',
740 'PERIOD_DIFF',
741 'TO_DAYS',
742 'UNIX_TIMESTAMP',
743 'WEEKDAY'
746 'FUNC_NUMBER' => array(
747 'ASCII',
748 'CHAR',
749 'MD5',
750 'SHA1',
751 'ENCRYPT',
752 'RAND',
753 'LAST_INSERT_ID',
754 'UNIX_TIMESTAMP',
755 'COUNT',
756 'AVG',
757 'SUM'
761 // Default functions for above defined groups
762 $cfg['DefaultFunctions'] = array(
763 'FUNC_CHAR' => '',
764 'FUNC_DATE' => '',
765 'FUNC_NUMBER' => '',
766 'first_timestamp' => 'NOW'
770 } // end if
772 // Search operators
773 $cfg['NumOperators'] = array(
774 '=',
775 '>',
776 '>=',
777 '<',
778 '<=',
779 '!=',
780 'LIKE',
781 'NOT LIKE'
784 $cfg['TextOperators'] = array(
785 'LIKE',
786 'LIKE %...%',
787 'NOT LIKE',
788 '=',
789 '!=',
790 'REGEXP',
791 'NOT REGEXP'
794 $cfg['EnumOperators'] = array(
795 '=',
796 '!='
799 $cfg['SetOperators'] = array(
800 'IN',
801 'NOT IN'
804 $cfg['NullOperators'] = array(
805 'IS NULL',
806 'IS NOT NULL'
809 $cfg['UnaryOperators'] = array(
810 'IS NULL' => 1,
811 'IS NOT NULL' => 1