slovenian
[phpmyadmin/crack.git] / config.inc.php3
blobb076b86470bc1f62cf98566111f5f5001e38d115
1 <?php
2 /* $Id$ */
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]['controluser'] = ''; // MySQL control user settings
68 // (this user must have read-only
69 $cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
70 // and "mysql/db" tables)
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
77 // at left frame
78 // It may also be an array
79 // of db-names
80 $cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
82 $cfg['Servers'][$i]['pmadb'] = ''; // Database used for Relation, Bookmark and PDF Features
83 // - leave blank for no support
84 $cfg['Servers'][$i]['bookmarktable'] = ''; // Bookmark table - leave blank for no bookmark support
85 $cfg['Servers'][$i]['relation'] = ''; // table to describe the relation between links (see doc)
86 // - leave blank for no relation-links support
87 $cfg['Servers'][$i]['table_info'] = ''; // table to describe the display fields
88 // - leave blank for no display fields support
89 $cfg['Servers'][$i]['table_coords'] = ''; // table to describe the tables position for the PDF
90 // schema - leave blank for no PDF schema support
91 $cfg['Servers'][$i]['pdf_pages'] = ''; // table to describe pages of relationpdf
92 // - leave blank if you don't want to use this
93 $cfg['Servers'][$i]['column_comments'] // table to store columncomments
94 = ''; // - leave blank if you don't want to use this
95 $cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication order, leave blank to not use
96 = '';
97 $cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rules, leave blank for defaults
98 = array();
101 $i++;
102 $cfg['Servers'][$i]['host'] = '';
103 $cfg['Servers'][$i]['port'] = '';
104 $cfg['Servers'][$i]['socket'] = '';
105 $cfg['Servers'][$i]['connect_type'] = 'tcp';
106 $cfg['Servers'][$i]['controluser'] = '';
107 $cfg['Servers'][$i]['controlpass'] = '';
108 $cfg['Servers'][$i]['auth_type'] = 'config';
109 $cfg['Servers'][$i]['user'] = 'root';
110 $cfg['Servers'][$i]['password'] = '';
111 $cfg['Servers'][$i]['only_db'] = '';
112 $cfg['Servers'][$i]['verbose'] = '';
113 $cfg['Servers'][$i]['pmadb'] = '';
114 $cfg['Servers'][$i]['bookmarktable'] = '';
115 $cfg['Servers'][$i]['relation'] = '';
116 $cfg['Servers'][$i]['table_info'] = '';
117 $cfg['Servers'][$i]['table_coords'] = '';
118 $cfg['Servers'][$i]['pdf_pages'] = '';
119 $cfg['Servers'][$i]['column_comments'] = '';
120 $cfg['Servers'][$i]['AllowDeny']['order']
121 = '';
122 $cfg['Servers'][$i]['AllowDeny']['rules']
123 = array();
125 $i++;
126 $cfg['Servers'][$i]['host'] = '';
127 $cfg['Servers'][$i]['port'] = '';
128 $cfg['Servers'][$i]['socket'] = '';
129 $cfg['Servers'][$i]['connect_type'] = 'tcp';
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'] = '';
138 $cfg['Servers'][$i]['bookmarktable'] = '';
139 $cfg['Servers'][$i]['relation'] = '';
140 $cfg['Servers'][$i]['table_info'] = '';
141 $cfg['Servers'][$i]['table_coords'] = '';
142 $cfg['Servers'][$i]['pdf_pages'] = '';
143 $cfg['Servers'][$i]['column_comments'] = '';
144 $cfg['Servers'][$i]['AllowDeny']['order']
145 = '';
146 $cfg['Servers'][$i]['AllowDeny']['rules']
147 = array();
149 // If you have more than one server configured, you can set $cfg['ServerDefault']
150 // to any one of them to autoconnect to that server when phpMyAdmin is started,
151 // or set it to 0 to be given a list of servers without logging in
152 // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
153 // set to that server.
154 $cfg['ServerDefault'] = 1; // Default server (0 = no default server)
155 $cfg['Server'] = '';
156 unset($cfg['Servers'][0]);
160 * Other core phpMyAdmin settings
162 $cfg['OBGzip'] = TRUE; // use GZIP output buffering if possible
163 $cfg['PersistentConnections'] = FALSE; // use persistent connections to MySQL database
164 $cfg['ExecTimeLimit'] = 300; // maximum execution time in seconds (0 for no limit)
165 $cfg['SkipLockedTables'] = FALSE; // mark used tables, make possible to show
166 // locked tables (since MySQL 3.23.30)
167 $cfg['ShowSQL'] = TRUE; // show SQL queries as run
168 $cfg['AllowUserDropDatabase'] = FALSE; // show a 'Drop database' link to normal users
169 $cfg['Confirm'] = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE'
170 $cfg['LoginCookieRecall'] = TRUE; // recall previous login in cookie auth. mode or not
171 $cfg['UseDbSearch'] = TRUE; // whether to enable the "database search" feature
172 // or not
174 // Left frame setup
175 $cfg['LeftFrameLight'] = TRUE; // use a select-based menu and display only the
176 // current tables in the left frame.
177 $cfg['ShowTooltip'] = TRUE; // display table comment as tooltip in left frame
179 // In the main frame, at startup...
180 $cfg['ShowStats'] = TRUE; // allow to display statistics and space usage in
181 // the pages about database details and table
182 // properties
183 $cfg['ShowMysqlInfo'] = FALSE; // whether to display the "MySQL runtime
184 $cfg['ShowMysqlVars'] = FALSE; // information", "MySQL system variables", "PHP
185 $cfg['ShowPhpInfo'] = FALSE; // information" and "change password" links for
186 $cfg['ShowChgPassword'] = FALSE; // simple users or not
187 $cfg['SuggestDBName'] = TRUE; // suggest a new DB name if possible (false = keep empty)
189 // In browse mode...
190 $cfg['ShowBlob'] = FALSE; // display blob field contents
191 $cfg['NavigationBarIconic'] = TRUE; // do not display text inside navigation bar buttons
192 $cfg['ShowAll'] = FALSE; // allows to display all the rows
193 $cfg['MaxRows'] = 30; // maximum number of rows to display
194 $cfg['Order'] = 'ASC'; // default for 'ORDER BY' clause (valid
195 // values are 'ASC', 'DESC' or 'SMART' -ie
196 // descending order for fields of type
197 // TIME, DATE, DATETIME & TIMESTAMP,
198 // ascending order else-)
200 // In edit mode...
201 $cfg['ProtectBinary'] = 'blob'; // disallow editing of binary fields
202 // valid values are:
203 // FALSE allow editing
204 // 'blob' allow editing except for BLOB fields
205 // 'all' disallow editing
206 $cfg['ShowFunctionFields'] = TRUE; // Display the function fields in edit/insert mode
208 // For the export features...
209 $cfg['ZipDump'] = TRUE; // Allow the use of zip/gzip/bzip
210 $cfg['GZipDump'] = TRUE; // compression for
211 $cfg['BZipDump'] = TRUE; // dump files
213 // Default Tabs display settings
214 $cfg['DefaultTabDatabase'] = 'db_details_structure.php3';
215 // Possible values:
216 // 'db_details_structure.php3' = tables list
217 // 'db_details.php3' = sql form
218 // 'db_search.php3' = search query
219 $cfg['DefaultTabTable'] = 'tbl_properties_structure.php3';
220 // Possible values:
221 // 'tbl_properties_structure.php3' = fields list
222 // 'tbl_properties.php3' = sql form
223 // 'tbl_select.php3 = select page
224 // 'tbl_change.php3 = insert row page
228 * Link to the official MySQL documentation
229 * Be sure to include no trailing slash on the path
231 $cfg['ManualBaseShort'] = 'http://www.mysql.com/doc';
235 * Language and charset conversion settings
237 // Default language to use, if not browser-defined or user-defined
238 $cfg['DefaultLang'] = 'en-iso-8859-1';
240 // Force: always use this language - must be defined in
241 // libraries/select_lang.lib.php3
242 // $cfg['Lang'] = 'en-iso-8859-1';
244 // Default charset to use for recoding of MySQL queries, does not take
245 // any effect when charsets recoding is switched off by
246 // $cfg['AllowAnywhereRecoding'] or in language file
247 // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
248 $cfg['DefaultCharset'] = 'iso-8859-1';
250 // Allow charset recoding of MySQL queries, must be also enabled in language
251 // file to make harder using other language files than unicode.
252 // Default value is FALSE to avoid problems on servers without the iconv
253 // extension and where dl() is not supported
254 $cfg['AllowAnywhereRecoding'] = FALSE;
256 // Available charsets for MySQL conversion. currently contains all which could
257 // be found in lang/* files and few more.
258 // Charsets will be shown in same order as here listed, so if you frequently
259 // use some of these move them to the top.
260 $cfg['AvailableCharsets'] = array(
261 'iso-8859-1',
262 'iso-8859-2',
263 'iso-8859-3',
264 'iso-8859-4',
265 'iso-8859-5',
266 'iso-8859-6',
267 'iso-8859-7',
268 'iso-8859-8',
269 'iso-8859-9',
270 'iso-8859-10',
271 'iso-8859-11',
272 'iso-8859-12',
273 'iso-8859-13',
274 'iso-8859-14',
275 'iso-8859-15',
276 'windows-1250',
277 'windows-1251',
278 'windows-1252',
279 'windows-1257',
280 'koi8-r',
281 'big5',
282 'gb2312',
283 'utf-8',
284 'utf-7',
285 'x-user-defined',
286 'euc-jp',
287 'ks_c_5601-1987',
288 'tis-620',
289 'SHIFT_JIS'
292 // Loads language file
293 require('./libraries/select_lang.lib.php3');
297 * Customization & design
299 $cfg['LeftWidth'] = 150; // left frame width
300 $cfg['LeftBgColor'] = '#D0DCE0'; // background color for the left frame
301 $cfg['RightBgColor'] = '#F5F5F5'; // background color for the right frame
302 $cfg['RightBgImage'] = ''; // path to a background image for the right frame
303 // (leave blank for no background image)
304 $cfg['LeftPointerColor'] = '#CCFFCC'; // color of the pointer in left frame
305 // (blank for no pointer)
306 $cfg['Border'] = 0; // border width on tables
307 $cfg['ThBgcolor'] = '#D3DCE3'; // table header row colour
308 $cfg['BgcolorOne'] = '#CCCCCC'; // table data row colour
309 $cfg['BgcolorTwo'] = '#DDDDDD'; // table data row colour, alternate
310 $cfg['BrowsePointerColor'] = '#CCFFCC'; // color of the pointer in browse mode
311 // (blank for no pointer)
312 $cfg['BrowseMarkerColor'] = '#FFCC99'; // color of the marker (visually marks row
313 // by clicking on it) in browse mode
314 // (blank for no marker)
315 $cfg['TextareaCols'] = 40; // textarea size (columns) in edit mode
316 // (this value will be emphasized (*2) for sql
317 // query textareas)
318 $cfg['TextareaRows'] = 7; // textarea size (rows) in edit mode
319 $cfg['LimitChars'] = 50; // max field data length in browse mode
320 $cfg['ModifyDeleteAtLeft'] = TRUE; // show edit/delete links on left side of browse
321 // (or at the top with vertical browse)
322 $cfg['ModifyDeleteAtRight'] = FALSE; // show edit/delete links on right side of browse
323 // (or at the bottom with vertical browse)
324 $cfg['DefaultDisplay'] = 'horizontal'; // default display direction (horizontal|vertical)
325 $cfg['RepeatCells'] = 100; // repeat header names every X cells? (0 = deactivate)
329 * SQL Query box settings
330 * These are the links display in all of the SQL Query boxes
332 $cfg['SQLQuery']['Edit'] = TRUE; // Edit link to change a query
333 $cfg['SQLQuery']['Explain'] = TRUE; // EXPLAIN on SELECT queries
334 $cfg['SQLQuery']['ShowAsPHP'] = TRUE; // Wrap a query in PHP
335 $cfg['SQLQuery']['Validate'] = FALSE; // Validate a query (see $cfg['SQLValidator'] as well)
339 * SQL Parser Settings
341 $cfg['SQP']['enable'] = TRUE; // Totally turn off the SQL Parser (not recommended)
342 $cfg['SQP']['fmtType'] = 'html'; // Pretty-printing style to use on queries (html, none)
343 $cfg['SQP']['fmtInd'] = '1'; // Amount to indent each level (floats ok)
344 $cfg['SQP']['fmtIndUnit'] = 'em'; // Units for indenting each level (CSS Types - {em,px,pt})
345 $cfg['SQP']['fmtColor'] = array( // Syntax colouring data
346 'comment' => '#808000',
347 'comment_mysql' => '',
348 'comment_ansi' => '',
349 'comment_c' => '',
350 'digit' => '',
351 'digit_hex' => 'teal',
352 'digit_integer' => 'teal',
353 'digit_float' => 'aqua',
354 'punct' => 'fuchsia',
355 'alpha' => '',
356 'alpha_columnType' => '#FF9900',
357 'alpha_columnAttrib' => '#0000FF',
358 'alpha_reservedWord' => '#990099',
359 'alpha_functionName' => '#FF0000',
360 'alpha_identifier' => 'black',
361 'alpha_variable' => '#800000',
362 'quote' => '#008000',
363 'quote_double' => '',
364 'quote_single' => '',
365 'quote_backtick' => ''
370 * If you wish to use the SQL Validator service, you should be
371 * aware of the following:
372 * All SQL statements are stored anonymously for statistical purposes.
373 * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
374 * All rights reserved.
376 $cfg['SQLValidator']['use'] = FALSE; // Make the SQL Validator available
377 $cfg['SQLValidator']['username'] = ''; // If you have a custom username, specify it here (defaults to anonymous)
378 $cfg['SQLValidator']['password'] = ''; // Password for username
382 * MySQL settings
384 // Column types;
385 // varchar, tinyint, text and date are listed first, based on estimated popularity
386 $cfg['ColumnTypes'] = array(
387 'VARCHAR',
388 'TINYINT',
389 'TEXT',
390 'DATE',
391 'SMALLINT',
392 'MEDIUMINT',
393 'INT',
394 'BIGINT',
395 'FLOAT',
396 'DOUBLE',
397 'DECIMAL',
398 'DATETIME',
399 'TIMESTAMP',
400 'TIME',
401 'YEAR',
402 'CHAR',
403 'TINYBLOB',
404 'TINYTEXT',
405 'BLOB',
406 'MEDIUMBLOB',
407 'MEDIUMTEXT',
408 'LONGBLOB',
409 'LONGTEXT',
410 'ENUM',
411 'SET'
414 // Atributes
415 $cfg['AttributeTypes'] = array(
417 'BINARY',
418 'UNSIGNED',
419 'UNSIGNED ZEROFILL'
422 // Available functions
423 if ($cfg['ShowFunctionFields']) {
424 $cfg['Functions'] = array(
425 'ASCII',
426 'CHAR',
427 'SOUNDEX',
428 'LCASE',
429 'UCASE',
430 'NOW',
431 'PASSWORD',
432 'MD5',
433 'ENCRYPT',
434 'RAND',
435 'LAST_INSERT_ID',
436 'COUNT',
437 'AVG',
438 'SUM',
439 'CURDATE',
440 'CURTIME',
441 'FROM_DAYS',
442 'FROM_UNIXTIME',
443 'PERIOD_ADD',
444 'PERIOD_DIFF',
445 'TO_DAYS',
446 'UNIX_TIMESTAMP',
447 'USER',
448 'WEEKDAY',
449 'CONCAT'
451 } // end if
455 * Unset magic_quotes_runtime - do not change!
457 set_magic_quotes_runtime(0);
461 * File Revision - do not change either!
463 $cfg['FileRevision'] = '$Revision$';