home *** CD-ROM | disk | FTP | other *** search
/ Freelog 70 / Freelog070.iso / Internet / EasyPHP / easyphp1-8_setup.exe / {app} / phpmyadmin / config.inc.php < prev    next >
Encoding:
PHP Script  |  2005-02-08  |  37.3 KB  |  834 lines

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