Subversion Repositories personal-webbase

Rev

Rev 4 | Details | Compare with Previous | Last modification | View Log | RSS feed

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