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