Another mechanism against stupid people who use the translator list as a list of...
[phpmyadmin/crack.git] / config.inc.php3
blobd4c731b166ced8488145a62e270c33b02d3b9d07
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;
56 /**
57 * Server(s) configuration
59 $i = 0;
60 // The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
61 // You can disable a server config entry by setting host to ''.
62 $i++;
63 $cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname
64 $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
65 $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
66 $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
67 $cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
68 // (requires PHP >= 4.3.0)
69 $cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
70 // (this user must have read-only
71 $cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
72 // and "mysql/db" tables)
73 $cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
74 $cfg['Servers'][$i]['user'] = 'root'; // MySQL user
75 $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
76 // with 'config' auth_type)
77 $cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
78 // this db is displayed
79 // at left frame
80 // It may also be an array
81 // of db-names
82 $cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
84 $cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features
85 // - leave blank for no support
86 $cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table - leave blank for no bookmark support
87 $cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
88 // - leave blank for no relation-links support
89 $cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields
90 // - leave blank for no display fields support
91 $cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF
92 // schema - leave blank for no PDF schema support
93 $cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf
94 // - leave blank if you don't want to use this
95 $cfg['Servers'][$i]['column_info'] = ''; // table to store column information
96 // - leave blank if you don't want to use this
97 $cfg['Servers'][$i]['history'] = ''; // table to store SQL history
98 // - leave blank if you don't want to use this
99 $cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your PMA_* tables
100 // are up to date. This prevents compatibility
101 // checks and thereby increases performance.
102 $cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use
103 = '';
104 $cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults
105 = array();
108 $i++;
109 $cfg['Servers'][$i]['host'] = '';
110 $cfg['Servers'][$i]['port'] = '';
111 $cfg['Servers'][$i]['socket'] = '';
112 $cfg['Servers'][$i]['connect_type'] = 'tcp';
113 $cfg['Servers'][$i]['compress'] = FALSE;
114 $cfg['Servers'][$i]['controluser'] = '';
115 $cfg['Servers'][$i]['controlpass'] = '';
116 $cfg['Servers'][$i]['auth_type'] = 'config';
117 $cfg['Servers'][$i]['user'] = 'root';
118 $cfg['Servers'][$i]['password'] = '';
119 $cfg['Servers'][$i]['only_db'] = '';
120 $cfg['Servers'][$i]['verbose'] = '';
121 $cfg['Servers'][$i]['pmadb'] = '';
122 $cfg['Servers'][$i]['bookmarktable'] = '';
123 $cfg['Servers'][$i]['relation'] = '';
124 $cfg['Servers'][$i]['table_info'] = '';
125 $cfg['Servers'][$i]['table_coords'] = '';
126 $cfg['Servers'][$i]['pdf_pages'] = '';
127 $cfg['Servers'][$i]['column_info'] = '';
128 $cfg['Servers'][$i]['history'] = '';
129 $cfg['Servers'][$i]['verbose_check'] = TRUE;
130 $cfg['Servers'][$i]['AllowDeny']['order']
131 = '';
132 $cfg['Servers'][$i]['AllowDeny']['rules']
133 = array();
135 $i++;
136 $cfg['Servers'][$i]['host'] = '';
137 $cfg['Servers'][$i]['port'] = '';
138 $cfg['Servers'][$i]['socket'] = '';
139 $cfg['Servers'][$i]['connect_type'] = 'tcp';
140 $cfg['Servers'][$i]['compress'] = FALSE;
141 $cfg['Servers'][$i]['controluser'] = '';
142 $cfg['Servers'][$i]['controlpass'] = '';
143 $cfg['Servers'][$i]['auth_type'] = 'config';
144 $cfg['Servers'][$i]['user'] = 'root';
145 $cfg['Servers'][$i]['password'] = '';
146 $cfg['Servers'][$i]['only_db'] = '';
147 $cfg['Servers'][$i]['verbose'] = '';
148 $cfg['Servers'][$i]['pmadb'] = '';
149 $cfg['Servers'][$i]['bookmarktable'] = '';
150 $cfg['Servers'][$i]['relation'] = '';
151 $cfg['Servers'][$i]['table_info'] = '';
152 $cfg['Servers'][$i]['table_coords'] = '';
153 $cfg['Servers'][$i]['pdf_pages'] = '';
154 $cfg['Servers'][$i]['column_info'] = '';
155 $cfg['Servers'][$i]['history'] = '';
156 $cfg['Servers'][$i]['verbose_check'] = TRUE;
158 $cfg['Servers'][$i]['AllowDeny']['order']
159 = '';
160 $cfg['Servers'][$i]['AllowDeny']['rules']
161 = array();
163 // If you have more than one server configured, you can set $cfg['ServerDefault']
164 // to any one of them to autoconnect to that server when phpMyAdmin is started,
165 // or set it to 0 to be given a list of servers without logging in
166 // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
167 // set to that server.
168 $cfg['ServerDefault'] = 1; // Default server (0 = no default server)
169 $cfg['Server'] = '';
170 unset($cfg['Servers'][0]);
174 * Other core phpMyAdmin settings
176 $cfg['OBGzip'] = TRUE; // use GZIP output buffering if possible
177 $cfg['PersistentConnections'] = FALSE; // use persistent connections to MySQL database
178 $cfg['ExecTimeLimit'] = 300; // maximum execution time in seconds (0 for no limit)
179 $cfg['SkipLockedTables'] = FALSE; // mark used tables, make possible to show
180 // locked tables (since MySQL 3.23.30)
181 $cfg['ShowSQL'] = TRUE; // show SQL queries as run
182 $cfg['AllowUserDropDatabase'] = FALSE; // show a 'Drop database' link to normal users
183 $cfg['Confirm'] = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE'
184 $cfg['LoginCookieRecall'] = TRUE; // recall previous login in cookie auth. mode or not
185 $cfg['UseDbSearch'] = TRUE; // whether to enable the "database search" feature
186 // or not
188 // Left frame setup
189 $cfg['LeftFrameLight'] = TRUE; // use a select-based menu and display only the
190 // current tables in the left frame.
191 $cfg['ShowTooltip'] = TRUE; // display table comment as tooltip in left frame
192 $cfg['ShowTooltipAliasDB'] = FALSE; // if ShowToolTip is enabled, this defines that table/db comments
193 $cfg['ShowTooltipAliasTB'] = FALSE; // are shown (in the left menu and db_details_structure) instead of
194 // table/db names
196 $cfg['LeftDisplayLogo'] = TRUE; // display logo at top of left frame
198 // In the main frame, at startup...
199 $cfg['ShowStats'] = TRUE; // allow to display statistics and space usage in
200 // the pages about database details and table
201 // properties
202 $cfg['ShowMysqlInfo'] = FALSE; // whether to display the "MySQL runtime
203 $cfg['ShowMysqlVars'] = FALSE; // information", "MySQL system variables", "PHP
204 $cfg['ShowPhpInfo'] = FALSE; // information" and "change password" links for
205 $cfg['ShowChgPassword'] = FALSE; // simple users or not
206 $cfg['SuggestDBName'] = TRUE; // suggest a new DB name if possible (false = keep empty)
208 // In browse mode...
209 $cfg['ShowBlob'] = FALSE; // display blob field contents
210 $cfg['NavigationBarIconic'] = TRUE; // do not display text inside navigation bar buttons
211 $cfg['ShowAll'] = FALSE; // allows to display all the rows
212 $cfg['MaxRows'] = 30; // maximum number of rows to display
213 $cfg['Order'] = 'ASC'; // default for 'ORDER BY' clause (valid
214 // values are 'ASC', 'DESC' or 'SMART' -ie
215 // descending order for fields of type
216 // TIME, DATE, DATETIME & TIMESTAMP,
217 // ascending order else-)
219 // In edit mode...
220 $cfg['ProtectBinary'] = 'blob'; // disallow editing of binary fields
221 // valid values are:
222 // FALSE allow editing
223 // 'blob' allow editing except for BLOB fields
224 // 'all' disallow editing
225 $cfg['ShowFunctionFields'] = TRUE; // Display the function fields in edit/insert mode
226 $cfg['CharEditing'] = 'input';
227 // Which editor should be used for CHAR/VARCHAR fields:
228 // input - allows limiting of input length
229 // textarea - allows newlines in fields
231 // For the export features...
232 $cfg['ZipDump'] = TRUE; // Allow the use of zip/gzip/bzip
233 $cfg['GZipDump'] = TRUE; // compression for
234 $cfg['BZipDump'] = TRUE; // dump files
236 // Tabs display settings
237 $cfg['LightTabs'] = FALSE; // use graphically less intense menu tabs
238 $cfg['DefaultTabServer'] = 'main.php3';
239 // Possible values:
240 // 'main.php3' = the welcome page
241 // (recommended for multiuser setups)
242 // 'server_databases.php3' = list of databases
243 // 'server_status.php3' = runtime information
244 // 'server_variables.php3' = MySQL server variables
245 // 'server_privileges.php3' = user management
246 // 'server_processlist.php3' = process list
247 $cfg['DefaultTabDatabase'] = 'db_details_structure.php3';
248 // Possible values:
249 // 'db_details_structure.php3' = tables list
250 // 'db_details.php3' = sql form
251 // 'db_search.php3' = search query
252 $cfg['DefaultTabTable'] = 'tbl_properties_structure.php3';
253 // Possible values:
254 // 'tbl_properties_structure.php3' = fields list
255 // 'tbl_properties.php3' = sql form
256 // 'tbl_select.php3 = select page
257 // 'tbl_change.php3 = insert row page
261 * Link to the official MySQL documentation.
262 * Be sure to include no trailing slash on the path.
263 * See http://www.mysql.com/documentation/index.html for more information
264 * about MySQL manuals and their types.
266 $cfg['MySQLManualBase'] = 'http://www.mysql.com/doc/en';
269 * Type of MySQL documentation:
270 * old - old style used in phpMyAdmin 2.3.0 and sooner
271 * searchable - "Searchable, with user comments"
272 * chapters - "HTML, one page per chapter"
273 * big - "HTML, all on one page"
274 * none - do not show documentation links
276 $cfg['MySQLManualType'] = 'searchable';
280 * Language and charset conversion settings
282 // Default language to use, if not browser-defined or user-defined
283 $cfg['DefaultLang'] = 'en-iso-8859-1';
285 // Force: always use this language - must be defined in
286 // libraries/select_lang.lib.php3
287 // $cfg['Lang'] = 'en-iso-8859-1';
289 // Default charset to use for recoding of MySQL queries, does not take
290 // any effect when charsets recoding is switched off by
291 // $cfg['AllowAnywhereRecoding'] or in language file
292 // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
293 $cfg['DefaultCharset'] = 'iso-8859-1';
295 // Allow charset recoding of MySQL queries, must be also enabled in language
296 // file to make harder using other language files than unicode.
297 // Default value is FALSE to avoid problems on servers without the iconv
298 // extension and where dl() is not supported
299 $cfg['AllowAnywhereRecoding'] = FALSE;
301 // You can select here which functions will be used for charset conversion.
302 // Possible values are:
303 // auto - automatically use available one (first is tested iconv, then
304 // recode)
305 // iconv - use iconv or libiconv functions
306 // recode - use recode_string function
307 $cfg['RecodingEngine'] = 'auto';
309 // Available charsets for MySQL conversion. currently contains all which could
310 // be found in lang/* files and few more.
311 // Charsets will be shown in same order as here listed, so if you frequently
312 // use some of these move them to the top.
313 $cfg['AvailableCharsets'] = array(
314 'iso-8859-1',
315 'iso-8859-2',
316 'iso-8859-3',
317 'iso-8859-4',
318 'iso-8859-5',
319 'iso-8859-6',
320 'iso-8859-7',
321 'iso-8859-8',
322 'iso-8859-9',
323 'iso-8859-10',
324 'iso-8859-11',
325 'iso-8859-12',
326 'iso-8859-13',
327 'iso-8859-14',
328 'iso-8859-15',
329 'windows-1250',
330 'windows-1251',
331 'windows-1252',
332 'windows-1257',
333 'koi8-r',
334 'big5',
335 'gb2312',
336 'utf-8',
337 'utf-7',
338 'x-user-defined',
339 'euc-jp',
340 'ks_c_5601-1987',
341 'tis-620',
342 'SHIFT_JIS'
345 // Loads language file
346 require('./libraries/select_lang.lib.php3');
350 * Customization & design
352 $cfg['LeftWidth'] = 150; // left frame width
353 $cfg['LeftBgColor'] = '#D0DCE0'; // background color for the left frame
354 $cfg['RightBgColor'] = '#F5F5F5'; // background color for the right frame
355 $cfg['RightBgImage'] = ''; // path to a background image for the right frame
356 // (leave blank for no background image)
357 $cfg['LeftPointerColor'] = '#CCFFCC'; // color of the pointer in left frame
358 // (blank for no pointer)
359 $cfg['Border'] = 0; // border width on tables
360 $cfg['ThBgcolor'] = '#D3DCE3'; // table header row colour
361 $cfg['BgcolorOne'] = '#CCCCCC'; // table data row colour
362 $cfg['BgcolorTwo'] = '#DDDDDD'; // table data row colour, alternate
363 $cfg['BrowsePointerColor'] = '#CCFFCC'; // color of the pointer in browse mode
364 // (blank for no pointer)
365 $cfg['BrowseMarkerColor'] = '#FFCC99'; // color of the marker (visually marks row
366 // by clicking on it) in browse mode
367 // (blank for no marker)
368 $cfg['TextareaCols'] = 40; // textarea size (columns) in edit mode
369 // (this value will be emphasized (*2) for sql
370 // query textareas and (*1.25) for query window)
371 $cfg['TextareaRows'] = 7; // textarea size (rows) in edit mode
372 $cfg['TextareaAutoSelect'] = TRUE; // autoselect when clicking in the textarea of the querybox
373 $cfg['CharTextareaCols'] = 40; // textarea size (columns) for CHAR/VARCHAR
374 $cfg['CharTextareaRows'] = 2; // textarea size (rows) for CHAR/VARCHAR
375 $cfg['LimitChars'] = 50; // max field data length in browse mode
376 $cfg['ModifyDeleteAtLeft'] = TRUE; // show edit/delete links on left side of browse
377 // (or at the top with vertical browse)
378 $cfg['ModifyDeleteAtRight'] = FALSE; // show edit/delete links on right side of browse
379 // (or at the bottom with vertical browse)
380 $cfg['DefaultDisplay'] = 'horizontal'; // default display direction
381 // (horizontal|vertical|horizontalflipped)
382 $cfg['DefaultPropDisplay'] = 'horizontal'; // default display direction for altering/
383 // creating columns (tbl_properties)
384 // (horizontal|vertical)
386 $cfg['HeaderFlipType'] = 'css'; // table-header rotation via faking or css? (css|fake)
387 $cfg['ShowBrowseComments'] = TRUE; // shows stored relation-comments in 'browse' mode.
388 $cfg['ShowPropertyComments']= TRUE; // shows stored relation-comments in 'table property' mode.
389 $cfg['RepeatCells'] = 100; // repeat header names every X cells? (0 = deactivate)
391 $cfg['QueryFrame'] = TRUE; // displays a new frame where a link to a querybox is always displayed.
392 $cfg['QueryFrameJS'] = TRUE; // whether to use JavaScript functions for opening a new window for SQL commands.
393 // if set to 'false', the target of the querybox is always the right frame.
394 $cfg['QueryFrameDebug'] = FALSE; // display JS debugging link (DEVELOPERS only)
395 $cfg['QueryWindowWidth'] = 550; // Width of Query window
396 $cfg['QueryWindowHeight'] = 310; // Height of Query window
397 $cfg['QueryHistoryDB'] = FALSE; // Set to TRUE if you want DB-based query history.
398 // If FALSE, this utilizes JS-routines to display
399 // query history (lost by window close)
400 $cfg['QueryWindowDefTab'] = 'sql'; // which tab to display in the querywindow on startup
401 // (sql|files|history|full)
402 $cfg['QueryHistoryMax'] = 25; // When using DB-based query history, how many entries
403 // should be kept?
404 $cfg['BrowseMIME'] = TRUE; // Use MIME-Types (stored in column comments table) for
407 * SQL Query box settings
408 * These are the links display in all of the SQL Query boxes
410 $cfg['SQLQuery']['Edit'] = TRUE; // Edit link to change a query
411 $cfg['SQLQuery']['Explain'] = TRUE; // EXPLAIN on SELECT queries
412 $cfg['SQLQuery']['ShowAsPHP'] = TRUE; // Wrap a query in PHP
413 $cfg['SQLQuery']['Validate'] = FALSE; // Validate a query (see $cfg['SQLValidator'] as well)
417 * web-server upload directory
419 $cfg['UploadDir'] = ''; // for example, './upload/'; you must end it with
420 // a slash, and you leave it empty for no upload
421 // directory
425 * SQL Parser Settings
427 $cfg['SQP']['enable'] = TRUE; // Totally turn off the SQL Parser (not recommended)
428 $cfg['SQP']['fmtType'] = 'html'; // Pretty-printing style to use on queries (html, text, none)
429 $cfg['SQP']['fmtInd'] = '1'; // Amount to indent each level (floats ok)
430 $cfg['SQP']['fmtIndUnit'] = 'em'; // Units for indenting each level (CSS Types - {em,px,pt})
431 $cfg['SQP']['fmtColor'] = array( // Syntax colouring data
432 'comment' => '#808000',
433 'comment_mysql' => '',
434 'comment_ansi' => '',
435 'comment_c' => '',
436 'digit' => '',
437 'digit_hex' => 'teal',
438 'digit_integer' => 'teal',
439 'digit_float' => 'aqua',
440 'punct' => 'fuchsia',
441 'alpha' => '',
442 'alpha_columnType' => '#FF9900',
443 'alpha_columnAttrib' => '#0000FF',
444 'alpha_reservedWord' => '#990099',
445 'alpha_functionName' => '#FF0000',
446 'alpha_identifier' => 'black',
447 'alpha_variable' => '#800000',
448 'quote' => '#008000',
449 'quote_double' => '',
450 'quote_single' => '',
451 'quote_backtick' => ''
456 * If you wish to use the SQL Validator service, you should be
457 * aware of the following:
458 * All SQL statements are stored anonymously for statistical purposes.
459 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
460 * All rights reserved.
462 $cfg['SQLValidator']['use'] = FALSE; // Make the SQL Validator available
463 $cfg['SQLValidator']['username'] = ''; // If you have a custom username, specify it here (defaults to anonymous)
464 $cfg['SQLValidator']['password'] = ''; // Password for username
467 * Developers ONLY!
468 * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
470 $cfg['DBG']['enable'] = FALSE; // Make the DBG stuff available
471 $cfg['DBG']['profile']['enable'] = FALSE; // Produce profiling results of PHP
472 $cfg['DBG']['profile']['threshold'] = 0.5; // Threshold of long running code to display
473 // Anything below the threshold is not displayed
477 * MySQL settings
479 // Column types;
480 // varchar, tinyint, text and date are listed first, based on estimated popularity
481 $cfg['ColumnTypes'] = array(
482 'VARCHAR',
483 'TINYINT',
484 'TEXT',
485 'DATE',
486 'SMALLINT',
487 'MEDIUMINT',
488 'INT',
489 'BIGINT',
490 'FLOAT',
491 'DOUBLE',
492 'DECIMAL',
493 'DATETIME',
494 'TIMESTAMP',
495 'TIME',
496 'YEAR',
497 'CHAR',
498 'TINYBLOB',
499 'TINYTEXT',
500 'BLOB',
501 'MEDIUMBLOB',
502 'MEDIUMTEXT',
503 'LONGBLOB',
504 'LONGTEXT',
505 'ENUM',
506 'SET'
509 // Atributes
510 $cfg['AttributeTypes'] = array(
512 'BINARY',
513 'UNSIGNED',
514 'UNSIGNED ZEROFILL'
517 // Available functions
518 if ($cfg['ShowFunctionFields']) {
519 $cfg['Functions'] = array(
520 'ASCII',
521 'CHAR',
522 'SOUNDEX',
523 'LCASE',
524 'UCASE',
525 'NOW',
526 'PASSWORD',
527 'MD5',
528 'ENCRYPT',
529 'RAND',
530 'LAST_INSERT_ID',
531 'COUNT',
532 'AVG',
533 'SUM',
534 'CURDATE',
535 'CURTIME',
536 'FROM_DAYS',
537 'FROM_UNIXTIME',
538 'PERIOD_ADD',
539 'PERIOD_DIFF',
540 'TO_DAYS',
541 'UNIX_TIMESTAMP',
542 'USER',
543 'WEEKDAY',
544 'CONCAT'
546 } // end if
550 * Unset magic_quotes_runtime - do not change!
552 set_magic_quotes_runtime(0);
555 * File Revision - do not change either!
557 $cfg['FileRevision'] = '$Revision$';