config.inc.php.install 37 KB

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