serbian
[phpmyadmin/crack.git] / config.inc.php3
blobef9859bd4543ea9a6d4c81fc92211a38d4f7cbde
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.
57 * If at least one server configuration uses 'cookie' auth_type,
58 * enter here a passphrase that will be used by blowfish.
60 $cfg['blowfish_secret'] = '';
62 /**
63 * Server(s) configuration
65 $i = 0;
66 // The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
67 // You can disable a server config entry by setting host to ''.
68 $i++;
69 $cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
70 $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
71 $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
72 $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
73 $cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
74 // (requires PHP >= 4.3.0)
75 $cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
76 // (this user must have read-only
77 $cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
78 // and "mysql/db" tables)
79 $cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
80 $cfg['Servers'][$i]['user'] = 'root'; // MySQL user
81 $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
82 // with 'config' auth_type)
83 $cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
84 // this db is displayed
85 // at left frame
86 // It may also be an array
87 // of db-names
88 $cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
90 $cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features
91 // (see scripts/create_tables.sql)
92 // - leave blank for no support
93 // DEFAULT: 'phpmyadmin'
94 $cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table
95 // - leave blank for no bookmark support
96 // DEFAULT: 'PMA_bookmark'
97 $cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
98 // - leave blank for no relation-links support
99 // DEFAULT: 'PMA_relation'
100 $cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields
101 // - leave blank for no display fields support
102 // DEFAULT: 'PMA_table_info'
103 $cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF schema
104 // - leave blank for no PDF schema support
105 // DEFAULT: 'PMA_table_coords'
106 $cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf
107 // - leave blank if you don't want to use this
108 // DEFAULT: 'PMA_pdf_pages'
109 $cfg['Servers'][$i]['column_info'] = ''; // table to store column information
110 // - leave blank for no column comments/mime types
111 // DEFAULT: 'PMA_column_info'
112 $cfg['Servers'][$i]['history'] = ''; // table to store SQL history
113 // - leave blank for no SQL query history
114 // DEFAULT: 'PMA_history'
115 $cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know that your PMA_* tables
116 // are up to date. This prevents compatibility
117 // checks and thereby increases performance.
118 $cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use
119 = '';
120 $cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults
121 = array();
124 $i++;
125 $cfg['Servers'][$i]['host'] = '';
126 $cfg['Servers'][$i]['port'] = '';
127 $cfg['Servers'][$i]['socket'] = '';
128 $cfg['Servers'][$i]['connect_type'] = 'tcp';
129 $cfg['Servers'][$i]['compress'] = FALSE;
130 $cfg['Servers'][$i]['controluser'] = '';
131 $cfg['Servers'][$i]['controlpass'] = '';
132 $cfg['Servers'][$i]['auth_type'] = 'config';
133 $cfg['Servers'][$i]['user'] = 'root';
134 $cfg['Servers'][$i]['password'] = '';
135 $cfg['Servers'][$i]['only_db'] = '';
136 $cfg['Servers'][$i]['verbose'] = '';
137 $cfg['Servers'][$i]['pmadb'] = ''; // 'phpmyadmin' - see scripts/create_tables.sql
138 $cfg['Servers'][$i]['bookmarktable'] = ''; // 'PMA_bookmark'
139 $cfg['Servers'][$i]['relation'] = ''; // 'PMA_relation'
140 $cfg['Servers'][$i]['table_info'] = ''; // 'PMA_table_info'
141 $cfg['Servers'][$i]['table_coords'] = ''; // 'PMA_table_coords'
142 $cfg['Servers'][$i]['pdf_pages'] = ''; // 'PMA_pdf_pages'
143 $cfg['Servers'][$i]['column_info'] = ''; // 'PMA_column_info'
144 $cfg['Servers'][$i]['history'] = ''; // 'PMA_history'
145 $cfg['Servers'][$i]['verbose_check'] = TRUE;
146 $cfg['Servers'][$i]['AllowDeny']['order']
147 = '';
148 $cfg['Servers'][$i]['AllowDeny']['rules']
149 = array();
151 $i++;
152 $cfg['Servers'][$i]['host'] = '';
153 $cfg['Servers'][$i]['port'] = '';
154 $cfg['Servers'][$i]['socket'] = '';
155 $cfg['Servers'][$i]['connect_type'] = 'tcp';
156 $cfg['Servers'][$i]['compress'] = FALSE;
157 $cfg['Servers'][$i]['controluser'] = '';
158 $cfg['Servers'][$i]['controlpass'] = '';
159 $cfg['Servers'][$i]['auth_type'] = 'config';
160 $cfg['Servers'][$i]['user'] = 'root';
161 $cfg['Servers'][$i]['password'] = '';
162 $cfg['Servers'][$i]['only_db'] = '';
163 $cfg['Servers'][$i]['verbose'] = '';
164 $cfg['Servers'][$i]['pmadb'] = ''; // 'phpmyadmin' - see scripts/create_tables.sql
165 $cfg['Servers'][$i]['bookmarktable'] = ''; // 'PMA_bookmark'
166 $cfg['Servers'][$i]['relation'] = ''; // 'PMA_relation'
167 $cfg['Servers'][$i]['table_info'] = ''; // 'PMA_table_info'
168 $cfg['Servers'][$i]['table_coords'] = ''; // 'PMA_table_coords'
169 $cfg['Servers'][$i]['pdf_pages'] = ''; // 'PMA_pdf_pages'
170 $cfg['Servers'][$i]['column_info'] = ''; // 'PMA_column_info'
171 $cfg['Servers'][$i]['history'] = ''; // 'PMA_history'
172 $cfg['Servers'][$i]['verbose_check'] = TRUE;
173 $cfg['Servers'][$i]['AllowDeny']['order']
174 = '';
175 $cfg['Servers'][$i]['AllowDeny']['rules']
176 = array();
178 // If you have more than one server configured, you can set $cfg['ServerDefault']
179 // to any one of them to autoconnect to that server when phpMyAdmin is started,
180 // or set it to 0 to be given a list of servers without logging in
181 // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
182 // set to that server.
183 $cfg['ServerDefault'] = 1; // Default server (0 = no default server)
184 $cfg['Server'] = '';
185 unset($cfg['Servers'][0]);
189 * Other core phpMyAdmin settings
191 $cfg['OBGzip'] = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
192 $cfg['PersistentConnections'] = FALSE; // use persistent connections to MySQL database
193 $cfg['ExecTimeLimit'] = 300; // maximum execution time in seconds (0 for no limit)
194 $cfg['SkipLockedTables'] = FALSE; // mark used tables, make possible to show
195 // locked tables (since MySQL 3.23.30)
196 $cfg['ShowSQL'] = TRUE; // show SQL queries as run
197 $cfg['AllowUserDropDatabase'] = FALSE; // show a 'Drop database' link to normal users
198 $cfg['Confirm'] = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE'
199 $cfg['LoginCookieRecall'] = TRUE; // recall previous login in cookie auth. mode or not
200 $cfg['UseDbSearch'] = TRUE; // whether to enable the "database search" feature
201 // or not
203 // Left frame setup
204 $cfg['LeftFrameLight'] = TRUE; // use a select-based menu and display only the
205 // current tables in the left frame.
206 $cfg['LeftFrameTableSeparator']= '__'; // Which string will be used to generate table prefixes
207 // to split tables into multiple categories
208 $cfg['LeftFrameTableLevel'] = '1'; // How many sublevels should be displayed when splitting
209 // up tables by the above Separator
210 $cfg['ShowTooltip'] = TRUE; // display table comment as tooltip in left frame
211 $cfg['ShowTooltipAliasDB'] = FALSE; // if ShowToolTip is enabled, this defines that table/db comments
212 $cfg['ShowTooltipAliasTB'] = FALSE; // are shown (in the left menu and db_details_structure) instead of
213 // table/db names
215 $cfg['LeftDisplayLogo'] = TRUE; // display logo at top of left frame
216 $cfg['LeftDisplayServers'] = FALSE; // display server choice at top of left frame
218 // In the main frame, at startup...
219 $cfg['ShowStats'] = TRUE; // allow to display statistics and space usage in
220 // the pages about database details and table
221 // properties
222 $cfg['ShowMysqlInfo'] = FALSE; // whether to display the "MySQL runtime
223 $cfg['ShowMysqlVars'] = FALSE; // information", "MySQL system variables", "PHP
224 $cfg['ShowPhpInfo'] = FALSE; // information" and "change password" links for
225 $cfg['ShowChgPassword'] = FALSE; // simple users or not
226 $cfg['SuggestDBName'] = TRUE; // suggest a new DB name if possible (false = keep empty)
228 // In browse mode...
229 $cfg['ShowBlob'] = FALSE; // display blob field contents
230 $cfg['NavigationBarIconic'] = TRUE; // do not display text inside navigation bar buttons
231 $cfg['ShowAll'] = FALSE; // allows to display all the rows
232 $cfg['MaxRows'] = 30; // maximum number of rows to display
233 $cfg['Order'] = 'ASC'; // default for 'ORDER BY' clause (valid
234 // values are 'ASC', 'DESC' or 'SMART' -ie
235 // descending order for fields of type
236 // TIME, DATE, DATETIME & TIMESTAMP,
237 // ascending order else-)
239 // In edit mode...
240 $cfg['ProtectBinary'] = 'blob'; // disallow editing of binary fields
241 // valid values are:
242 // FALSE allow editing
243 // 'blob' allow editing except for BLOB fields
244 // 'all' disallow editing
245 $cfg['ShowFunctionFields'] = TRUE; // Display the function fields in edit/insert mode
246 $cfg['CharEditing'] = 'input';
247 // Which editor should be used for CHAR/VARCHAR fields:
248 // input - allows limiting of input length
249 // textarea - allows newlines in fields
251 // For the export features...
252 $cfg['ZipDump'] = TRUE; // Allow the use of zip/gzip/bzip
253 $cfg['GZipDump'] = TRUE; // compression for
254 $cfg['BZipDump'] = TRUE; // dump files
256 // Tabs display settings
257 $cfg['LightTabs'] = FALSE; // use graphically less intense menu tabs
258 $cfg['PropertiesIconic'] = TRUE; // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')
259 $cfg['PropertiesNumColumns'] = 1; // How many columns should be used for table display of a database?
260 // (a value larger than 1 results in some information being hidden)
262 $cfg['DefaultTabServer'] = 'main.php3';
263 // Possible values:
264 // 'main.php3' = the welcome page
265 // (recommended for multiuser setups)
266 // 'server_databases.php3' = list of databases
267 // 'server_status.php3' = runtime information
268 // 'server_variables.php3' = MySQL server variables
269 // 'server_privileges.php3' = user management
270 // 'server_processlist.php3' = process list
271 $cfg['DefaultTabDatabase'] = 'db_details_structure.php3';
272 // Possible values:
273 // 'db_details_structure.php3' = tables list
274 // 'db_details.php3' = sql form
275 // 'db_search.php3' = search query
276 $cfg['DefaultTabTable'] = 'tbl_properties_structure.php3';
277 // Possible values:
278 // 'tbl_properties_structure.php3' = fields list
279 // 'tbl_properties.php3' = sql form
280 // 'tbl_select.php3 = select page
281 // 'tbl_change.php3 = insert row page
284 * Export defaults
287 $cfg['Export']['format'] = 'sql'; // sql/latex/excel/csv/xml
288 $cfg['Export']['compression'] = 'none'; // none/zip/gzip/bzip2
290 $cfg['Export']['asfile'] = FALSE;
291 $cfg['Export']['onserver'] = FALSE;
292 $cfg['Export']['onserver_overwrite'] = FALSE;
293 $cfg['Export']['remember_file_template'] = TRUE;
295 $cfg['Export']['csv_columns'] = FALSE;
296 $cfg['Export']['csv_null'] = 'NULL';
297 $cfg['Export']['csv_separator'] = ';';
298 $cfg['Export']['csv_enclosed'] = '&quot;';
299 $cfg['Export']['csv_escaped'] = '\\';
300 $cfg['Export']['csv_terminated'] = 'AUTO';
301 $cfg['Export']['excel_null'] = 'NULL';
303 $cfg['Export']['latex_structure'] = TRUE;
304 $cfg['Export']['latex_data'] = TRUE;
305 $cfg['Export']['latex_columns'] = TRUE;
306 $cfg['Export']['latex_relation'] = TRUE;
307 $cfg['Export']['latex_comments'] = TRUE;
308 $cfg['Export']['latex_mime'] = TRUE;
309 $cfg['Export']['latex_null'] = '\textit{NULL}';
311 $cfg['Export']['sql_structure'] = TRUE;
312 $cfg['Export']['sql_data'] = TRUE;
313 $cfg['Export']['sql_drop_database'] = FALSE;
314 $cfg['Export']['sql_drop_table'] = FALSE;
315 $cfg['Export']['sql_auto_increment'] = TRUE;
316 $cfg['Export']['sql_backquotes'] = TRUE;
317 $cfg['Export']['sql_relation'] = FALSE;
318 $cfg['Export']['sql_columns'] = FALSE;
319 $cfg['Export']['sql_extended'] = FALSE;
320 $cfg['Export']['sql_comments'] = FALSE;
321 $cfg['Export']['sql_mime'] = FALSE;
324 * Link to the official MySQL documentation.
325 * Be sure to include no trailing slash on the path.
326 * See http://www.mysql.com/documentation/index.html for more information
327 * about MySQL manuals and their types.
329 $cfg['MySQLManualBase'] = 'http://www.mysql.com/doc/en';
332 * Type of MySQL documentation:
333 * old - old style used in phpMyAdmin 2.3.0 and sooner
334 * searchable - "Searchable, with user comments"
335 * chapters - "HTML, one page per chapter"
336 * big - "HTML, all on one page"
337 * none - do not show documentation links
339 $cfg['MySQLManualType'] = 'searchable';
343 * PDF options
345 $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
346 $cfg['PDFDefaultPageSize'] = 'A4';
350 * Language and charset conversion settings
352 // Default language to use, if not browser-defined or user-defined
353 $cfg['DefaultLang'] = 'en-iso-8859-1';
355 // Force: always use this language - must be defined in
356 // libraries/select_lang.lib.php3
357 // $cfg['Lang'] = 'en-iso-8859-1';
359 // Default charset to use for recoding of MySQL queries, does not take
360 // any effect when charsets recoding is switched off by
361 // $cfg['AllowAnywhereRecoding'] or in language file
362 // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
363 $cfg['DefaultCharset'] = 'iso-8859-1';
365 // Allow charset recoding of MySQL queries, must be also enabled in language
366 // file to make harder using other language files than unicode.
367 // Default value is FALSE to avoid problems on servers without the iconv
368 // extension and where dl() is not supported
369 $cfg['AllowAnywhereRecoding'] = FALSE;
371 // You can select here which functions will be used for charset conversion.
372 // Possible values are:
373 // auto - automatically use available one (first is tested iconv, then
374 // recode)
375 // iconv - use iconv or libiconv functions
376 // recode - use recode_string function
377 $cfg['RecodingEngine'] = 'auto';
379 // Specify some parameters for iconv used in charset conversion. See iconv
380 // documentation for details:
381 // http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
382 $cfg['IconvExtraParams'] = '';
384 // Available charsets for MySQL conversion. currently contains all which could
385 // be found in lang/* files and few more.
386 // Charsets will be shown in same order as here listed, so if you frequently
387 // use some of these move them to the top.
388 $cfg['AvailableCharsets'] = array(
389 'iso-8859-1',
390 'iso-8859-2',
391 'iso-8859-3',
392 'iso-8859-4',
393 'iso-8859-5',
394 'iso-8859-6',
395 'iso-8859-7',
396 'iso-8859-8',
397 'iso-8859-9',
398 'iso-8859-10',
399 'iso-8859-11',
400 'iso-8859-12',
401 'iso-8859-13',
402 'iso-8859-14',
403 'iso-8859-15',
404 'windows-1250',
405 'windows-1251',
406 'windows-1252',
407 'windows-1257',
408 'koi8-r',
409 'big5',
410 'gb2312',
411 'utf-8',
412 'utf-7',
413 'x-user-defined',
414 'euc-jp',
415 'ks_c_5601-1987',
416 'tis-620',
417 'SHIFT_JIS'
420 // Loads language file
421 require('./libraries/select_lang.lib.php3');
425 * Customization & design
427 $cfg['LeftWidth'] = 150; // left frame width
428 $cfg['LeftBgColor'] = '#D0DCE0'; // background color for the left frame
429 $cfg['RightBgColor'] = '#F5F5F5'; // background color for the right frame
430 $cfg['RightBgImage'] = ''; // path to a background image for the right frame
431 // (leave blank for no background image)
432 $cfg['LeftPointerColor'] = '#CCFFCC'; // color of the pointer in left frame
433 // (blank for no pointer)
434 $cfg['Border'] = 0; // border width on tables
435 $cfg['ThBgcolor'] = '#D3DCE3'; // table header row colour
436 $cfg['BgcolorOne'] = '#CCCCCC'; // table data row colour
437 $cfg['BgcolorTwo'] = '#DDDDDD'; // table data row colour, alternate
438 $cfg['BrowsePointerColor'] = '#CCFFCC'; // color of the pointer in browse mode
439 // (blank for no pointer)
440 $cfg['BrowseMarkerColor'] = '#FFCC99'; // color of the marker (visually marks row
441 // by clicking on it) in browse mode
442 // (blank for no marker)
443 $cfg['TextareaCols'] = 40; // textarea size (columns) in edit mode
444 // (this value will be emphasized (*2) for sql
445 // query textareas and (*1.25) for query window)
446 $cfg['TextareaRows'] = 7; // textarea size (rows) in edit mode
447 $cfg['LongtextDoubleTextarea'] = TRUE; // double size of textarea size for longtext fields
448 $cfg['TextareaAutoSelect'] = TRUE; // autoselect when clicking in the textarea of the querybox
449 $cfg['CharTextareaCols'] = 40; // textarea size (columns) for CHAR/VARCHAR
450 $cfg['CharTextareaRows'] = 2; // textarea size (rows) for CHAR/VARCHAR
451 $cfg['CtrlArrowsMoving'] = TRUE; // Enable Ctrl+Arrows moving between fields when editing?
452 $cfg['LimitChars'] = 50; // Max field data length in browse mode for all non-numeric fields
453 $cfg['ModifyDeleteAtLeft'] = TRUE; // show edit/delete links on left side of browse
454 // (or at the top with vertical browse)
455 $cfg['ModifyDeleteAtRight'] = FALSE; // show edit/delete links on right side of browse
456 // (or at the bottom with vertical browse)
457 $cfg['DefaultDisplay'] = 'horizontal'; // default display direction
458 // (horizontal|vertical|horizontalflipped)
459 $cfg['DefaultPropDisplay'] = 'horizontal'; // default display direction for altering/
460 // creating columns (tbl_properties)
461 // (horizontal|vertical)
463 $cfg['HeaderFlipType'] = 'css'; // table-header rotation via faking or css? (css|fake)
464 // NOTE: CSS only works in IE browsers!
465 $cfg['ShowBrowseComments'] = TRUE; // shows stored relation-comments in 'browse' mode.
466 $cfg['ShowPropertyComments']= TRUE; // shows stored relation-comments in 'table property' mode.
467 $cfg['RepeatCells'] = 100; // repeat header names every X cells? (0 = deactivate)
469 $cfg['QueryFrame'] = TRUE; // displays a new frame where a link to a querybox is always displayed.
470 $cfg['QueryFrameJS'] = TRUE; // whether to use JavaScript functions for opening a new window for SQL commands.
471 // if set to 'false', the target of the querybox is always the right frame.
472 $cfg['QueryFrameDebug'] = FALSE; // display JS debugging link (DEVELOPERS only)
473 $cfg['QueryWindowWidth'] = 550; // Width of Query window
474 $cfg['QueryWindowHeight'] = 310; // Height of Query window
475 $cfg['QueryHistoryDB'] = FALSE; // Set to TRUE if you want DB-based query history.
476 // If FALSE, this utilizes JS-routines to display
477 // query history (lost by window close)
478 $cfg['QueryWindowDefTab'] = 'sql'; // which tab to display in the querywindow on startup
479 // (sql|files|history|full)
480 $cfg['QueryHistoryMax'] = 25; // When using DB-based query history, how many entries
481 // should be kept?
482 $cfg['BrowseMIME'] = TRUE; // Use MIME-Types (stored in column comments table) for
483 $cfg['MaxExactCount'] = 20000; // When approximate count < this, PMA will get exact count for
484 // table rows.
485 $cfg['WYSIWYG-PDF'] = TRUE; // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
486 // the PDF page editor. Requires an IE6/Mozilla based browser.
489 * SQL Query box settings
490 * These are the links display in all of the SQL Query boxes
492 $cfg['SQLQuery']['Edit'] = TRUE; // Edit link to change a query
493 $cfg['SQLQuery']['Explain'] = TRUE; // EXPLAIN on SELECT queries
494 $cfg['SQLQuery']['ShowAsPHP'] = TRUE; // Wrap a query in PHP
495 $cfg['SQLQuery']['Validate'] = FALSE; // Validate a query (see $cfg['SQLValidator'] as well)
499 * web-server upload directory
501 $cfg['UploadDir'] = ''; // for example, './upload/'; you must end it with
502 // a slash, and you leave it empty for no upload
503 // directory
504 $cfg['SaveDir'] = ''; // for example, './save/'; you must end it with
505 // a slash, and you leave it empty for no save
506 // directory
510 * Misc. settings
512 $cfg['GD2Available'] = 'auto'; // Is GD >= 2 available? Set to yes/no/auto. 'auto'
513 // does autodetection, which is a bit expensive for
514 // php < 4.3.0, but it is the only safe vay how to
515 // determine GD version.
517 * SQL Parser Settings
519 $cfg['SQP']['fmtType'] = 'html'; // Pretty-printing style to use on queries (html, text, none)
520 $cfg['SQP']['fmtInd'] = '1'; // Amount to indent each level (floats ok)
521 $cfg['SQP']['fmtIndUnit'] = 'em'; // Units for indenting each level (CSS Types - {em,px,pt})
522 $cfg['SQP']['fmtColor'] = array( // Syntax colouring data
523 'comment' => '#808000',
524 'comment_mysql' => '',
525 'comment_ansi' => '',
526 'comment_c' => '',
527 'digit' => '',
528 'digit_hex' => 'teal',
529 'digit_integer' => 'teal',
530 'digit_float' => 'aqua',
531 'punct' => 'fuchsia',
532 'alpha' => '',
533 'alpha_columnType' => '#FF9900',
534 'alpha_columnAttrib' => '#0000FF',
535 'alpha_reservedWord' => '#990099',
536 'alpha_functionName' => '#FF0000',
537 'alpha_identifier' => 'black',
538 'alpha_variable' => '#800000',
539 'quote' => '#008000',
540 'quote_double' => '',
541 'quote_single' => '',
542 'quote_backtick' => ''
547 * If you wish to use the SQL Validator service, you should be
548 * aware of the following:
549 * All SQL statements are stored anonymously for statistical purposes.
550 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
551 * All rights reserved.
553 $cfg['SQLValidator']['use'] = FALSE; // Make the SQL Validator available
554 $cfg['SQLValidator']['username'] = ''; // If you have a custom username, specify it here (defaults to anonymous)
555 $cfg['SQLValidator']['password'] = ''; // Password for username
558 * Developers ONLY!
559 * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
561 $cfg['DBG']['enable'] = FALSE; // Make the DBG stuff available
562 $cfg['DBG']['profile']['enable'] = FALSE; // Produce profiling results of PHP
563 $cfg['DBG']['profile']['threshold'] = 0.5; // Threshold of long running code to display
564 // Anything below the threshold is not displayed
568 * MySQL settings
570 // Column types;
571 // varchar, tinyint, text and date are listed first, based on estimated popularity
572 $cfg['ColumnTypes'] = array(
573 'VARCHAR',
574 'TINYINT',
575 'TEXT',
576 'DATE',
577 'SMALLINT',
578 'MEDIUMINT',
579 'INT',
580 'BIGINT',
581 'FLOAT',
582 'DOUBLE',
583 'DECIMAL',
584 'DATETIME',
585 'TIMESTAMP',
586 'TIME',
587 'YEAR',
588 'CHAR',
589 'TINYBLOB',
590 'TINYTEXT',
591 'BLOB',
592 'MEDIUMBLOB',
593 'MEDIUMTEXT',
594 'LONGBLOB',
595 'LONGTEXT',
596 'ENUM',
597 'SET'
600 // Atributes
601 $cfg['AttributeTypes'] = array(
603 'BINARY',
604 'UNSIGNED',
605 'UNSIGNED ZEROFILL'
608 // Available functions
609 if ($cfg['ShowFunctionFields']) {
610 $cfg['Functions'] = array(
611 'ASCII',
612 'CHAR',
613 'SOUNDEX',
614 'LCASE',
615 'UCASE',
616 'NOW',
617 'PASSWORD',
618 'MD5',
619 'ENCRYPT',
620 'RAND',
621 'LAST_INSERT_ID',
622 'COUNT',
623 'AVG',
624 'SUM',
625 'CURDATE',
626 'CURTIME',
627 'FROM_DAYS',
628 'FROM_UNIXTIME',
629 'PERIOD_ADD',
630 'PERIOD_DIFF',
631 'TO_DAYS',
632 'UNIX_TIMESTAMP',
633 'USER',
634 'WEEKDAY',
635 'CONCAT'
638 // Which column types will be mapped to which Group?
639 $cfg['RestrictColumnTypes'] = array(
640 'VARCHAR' => 'FUNC_CHAR',
641 'TINYINT' => 'FUNC_NUMBER',
642 'TEXT' => 'FUNC_CHAR',
643 'DATE' => 'FUNC_DATE',
644 'SMALLINT' => 'FUNC_NUMBER',
645 'MEDIUMINT' => 'FUNC_NUMBER',
646 'INT' => 'FUNC_NUMBER',
647 'BIGINT' => 'FUNC_NUMBER',
648 'FLOAT' => 'FUNC_NUMBER',
649 'DOUBLE' => 'FUNC_NUMBER',
650 'DECIMAL' => 'FUNC_NUMBER',
651 'DATETIME' => 'FUNC_DATE',
652 'TIMESTAMP' => 'FUNC_DATE',
653 'TIME' => 'FUNC_DATE',
654 'YEAR' => 'FUNC_DATE',
655 'CHAR' => 'FUNC_CHAR',
656 'TINYBLOB' => 'FUNC_CHAR',
657 'TINYTEXT' => 'FUNC_CHAR',
658 'BLOB' => 'FUNC_CHAR',
659 'MEDIUMBLOB' => 'FUNC_CHAR',
660 'MEDIUMTEXT' => 'FUNC_CHAR',
661 'LONGBLOB' => 'FUNC_CHAR',
662 'LONGTEXT' => 'FUNC_CHAR',
663 'ENUM' => '',
664 'SET' => ''
667 // Map above defined groups to any function
668 $cfg['RestrictFunctions'] = array(
669 'FUNC_CHAR' => array(
670 'ASCII',
671 'CHAR',
672 'SOUNDEX',
673 'LCASE',
674 'UCASE',
675 'PASSWORD',
676 'MD5',
677 'ENCRYPT',
678 'LAST_INSERT_ID',
679 'USER',
680 'CONCAT'
683 'FUNC_DATE' => array(
684 'NOW',
685 'CURDATE',
686 'CURTIME',
687 'FROM_DAYS',
688 'FROM_UNIXTIME',
689 'PERIOD_ADD',
690 'PERIOD_DIFF',
691 'TO_DAYS',
692 'UNIX_TIMESTAMP',
693 'WEEKDAY'
696 'FUNC_NUMBER' => array(
697 'ASCII',
698 'CHAR',
699 'MD5',
700 'ENCRYPT',
701 'RAND',
702 'LAST_INSERT_ID',
703 'COUNT',
704 'AVG',
705 'SUM'
709 } // end if
713 * Unset magic_quotes_runtime - do not change!
715 set_magic_quotes_runtime(0);
718 * File Revision - do not change either!
720 $cfg['FileRevision'] = '$Revision$';