home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / phpMyAdmin / libraries / config.default.php < prev    next >
Encoding:
PHP Script  |  2008-06-23  |  51.2 KB  |  2,483 lines

  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4.  * <code>
  5.  * N   N  OOO  !!   DDDD   OOO    N   N  OOO  TTTTT   EEEE DDDD  I TTTTT !!
  6.  * NN  N O   O !!   D   D O   O   NN  N O   O   T     E    D   D I   T   !!
  7.  * N N N O   O !!   D   D O   O   N N N O   O   T     EEEE D   D I   T   !!
  8.  * N  NN O   O      D   D O   O   N  NN O   O   T     E    D   D I   T
  9.  * N   N  OOO  !!   DDDD   OOO    N   N  OOO    T     EEEE DDDD  I   T   !!
  10.  * </code>
  11.  *
  12.  * DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!!
  13.  *
  14.  * phpMyAdmin default configuration, you can copy values from here to your
  15.  * config.inc.php
  16.  *
  17.  * All directives are explained in Documentation.html
  18.  *
  19.  * @version $Id: config.default.php 11113 2008-02-09 16:09:54Z lem9 $
  20.  */
  21.  
  22. /**
  23.  * Your phpMyAdmin URL.
  24.  *
  25.  * Complete the variable below with the full URL ie
  26.  *    http://www.your_web.net/path_to_your_phpMyAdmin_directory/
  27.  *
  28.  * It must contain characters that are valid for a URL, and the path is
  29.  * case sensitive on some Web servers, for example Unix-based servers.
  30.  *
  31.  * In most cases you can leave this variable empty, as the correct value
  32.  * will be detected automatically. However, we recommend that you do
  33.  * test to see that the auto-detection code works in your system. A good
  34.  * test is to browse a table, then edit a row and save it.  There will be
  35.  * an error message if phpMyAdmin cannot auto-detect the correct value.
  36.  *
  37.  * @global string $cfg['PmaAbsoluteUri']
  38.  */
  39. $cfg['PmaAbsoluteUri'] = '';
  40.  
  41. /**
  42.  * Disable the default warning that is displayed on the DB Details Structure page if
  43.  * any of the required Tables for the relation features could not be found
  44.  *
  45.  * @global boolean $cfg['PmaNoRelation_DisableWarning']
  46.  */
  47. $cfg['PmaNoRelation_DisableWarning'] = false;
  48.  
  49. /**
  50.  * Disable the default warning that is displayed if Suhosin is detected 
  51.  *
  52.  * @global boolean $cfg['SuhosinDisableWarning']
  53.  */
  54. $cfg['SuhosinDisableWarning'] = false;
  55.  
  56. /**
  57.  * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
  58.  * at least one server configuration uses 'cookie' auth_type, enter here a
  59.  * pass phrase that will be used by blowfish. The maximum length seems to be 46
  60.  * characters.
  61.  *
  62.  * @global string $cfg['blowfish_secret']
  63.  */
  64. $cfg['blowfish_secret'] = '';
  65.  
  66.  
  67. /*******************************************************************************
  68.  * Server(s) configuration
  69.  *
  70.  * The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use
  71.  * $cfg['Servers'][0]. You can disable a server configuration entry by setting host
  72.  * to ''. If you want more than one server, just copy following section
  73.  * (including $i incrementation) several times. There is no need to define
  74.  * full server array, just define values you need to change.
  75.  *
  76.  * @global array $cfg['Servers']
  77.  */
  78. $cfg['Servers'] = array();
  79.  
  80. $i = 1;
  81.  
  82. /**
  83.  * MySQL hostname or IP address
  84.  *
  85.  * @global string $cfg['Servers'][$i]['host']
  86.  */
  87. $cfg['Servers'][$i]['host'] = 'localhost';
  88.  
  89. /**
  90.  * MySQL port - leave blank for default port
  91.  *
  92.  * @global string $cfg['Servers'][$i]['port']
  93.  */
  94. $cfg['Servers'][$i]['port'] = '';
  95.  
  96. /**
  97.  * Path to the socket - leave blank for default socket
  98.  *
  99.  * @global string $cfg['Servers'][$i]['socket']
  100.  */
  101. $cfg['Servers'][$i]['socket'] = '';
  102.  
  103. /**
  104.  * Use SSL for connecting to MySQL server?
  105.  *
  106.  * @global boolean $cfg['Servers'][$i]['ssl']
  107.  */
  108. $cfg['Servers'][$i]['ssl'] = false;
  109.  
  110. /**
  111.  * How to connect to MySQL server ('tcp' or 'socket')
  112.  *
  113.  * @global string $cfg['Servers'][$i]['connect_type']
  114.  */
  115. $cfg['Servers'][$i]['connect_type'] = 'tcp';
  116.  
  117. /**
  118.  * The PHP MySQL extension to use ('mysql' or 'mysqli')
  119.  *
  120.  * @global string $cfg['Servers'][$i]['extension']
  121.  */
  122. $cfg['Servers'][$i]['extension'] = 'mysql';
  123.  
  124. /**
  125.  * Use compressed protocol for the MySQL connection (requires PHP >= 4.3.0)
  126.  *
  127.  * @global boolean $cfg['Servers'][$i]['compress']
  128.  */
  129. $cfg['Servers'][$i]['compress'] = false;
  130.  
  131. /**
  132.  * MySQL control user settings (this user must have read-only
  133.  *
  134.  * @global string $cfg['Servers'][$i]['controluser']
  135.  */
  136. $cfg['Servers'][$i]['controluser'] = '';
  137.  
  138. /**
  139.  * access to the "mysql/user" and "mysql/db" tables). The controluser is also
  140.  * used for all relational features (pmadb)
  141.  *
  142.  * @global string $cfg['Servers'][$i]['controlpass']
  143.  */
  144. $cfg['Servers'][$i]['controlpass'] = '';
  145.  
  146. /**
  147.  * Authentication method (valid choices: config, http, signon or cookie)
  148.  *
  149.  * @global string $cfg['Servers'][$i]['auth_type']
  150.  */
  151. $cfg['Servers'][$i]['auth_type'] = 'config';
  152.  
  153. /**
  154.  * MySQL user
  155.  *
  156.  * @global string $cfg['Servers'][$i]['user']
  157.  */
  158. $cfg['Servers'][$i]['user'] = 'root';
  159.  
  160. /**
  161.  * MySQL password (only needed with 'config' auth_type)
  162.  *
  163.  * @global string $cfg['Servers'][$i]['password']
  164.  */
  165. $cfg['Servers'][$i]['password'] = '';
  166.  
  167. /**
  168.  * Session to use for 'signon' authentication method
  169.  *
  170.  * @global string $cfg['Servers'][$i]['SignonSession']
  171.  */
  172. $cfg['Servers'][$i]['SignonSession'] = '';
  173.  
  174. /**
  175.  * URL where to redirect user to login for 'signon' authentication method
  176.  *
  177.  * @global string $cfg['Servers'][$i]['SignonURL']
  178.  */
  179. $cfg['Servers'][$i]['SignonURL'] = '';
  180.  
  181. /**
  182.  * URL where to redirect user after logout
  183.  *
  184.  * @global string $cfg['Servers'][$i]['LogoutURL']
  185.  */
  186. $cfg['Servers'][$i]['LogoutURL'] = '';
  187.  
  188. /**
  189.  * Whether to try to connect without password
  190.  *
  191.  * @global boolean $cfg['Servers'][$i]['nopassword']
  192.  */
  193. $cfg['Servers'][$i]['nopassword'] = false;
  194.  
  195. /**
  196.  * If set to a db-name, only this db is displayed in left frame
  197.  * It may also be an array of db-names, where sorting order is relevant.
  198.  *
  199.  * @global string $cfg['Servers'][$i]['only_db']
  200.  */
  201. $cfg['Servers'][$i]['only_db'] = '';
  202.  
  203. /**
  204.  * Database name to be hidden from listings
  205.  *
  206.  * @global string $cfg['Servers'][$i]['hide_db']
  207.  */
  208. $cfg['Servers'][$i]['hide_db'] = '';
  209.  
  210. /**
  211.  * Verbose name for this host - leave blank to show the hostname
  212.  * (for HTTP authentication, all non-US-ASCII characters will be stripped)
  213.  *
  214.  * @global string $cfg['Servers'][$i]['verbose']
  215.  */
  216. $cfg['Servers'][$i]['verbose'] = '';
  217.  
  218. /**
  219.  * Database used for Relation, Bookmark and PDF Features
  220.  * (see scripts/create_tables.sql)
  221.  *   - leave blank for no support
  222.  *     DEFAULT: 'phpmyadmin'
  223.  *
  224.  * @global string $cfg['Servers'][$i]['pmadb']
  225.  */
  226. $cfg['Servers'][$i]['pmadb'] = '';
  227.  
  228. /**
  229.  * Bookmark table
  230.  *   - leave blank for no bookmark support
  231.  *     DEFAULT: 'pma_bookmark'
  232.  *
  233.  * @global string $cfg['Servers'][$i]['bookmarktable']
  234.  */
  235. $cfg['Servers'][$i]['bookmarktable'] = '';
  236.  
  237. /**
  238.  * table to describe the relation between links (see doc)
  239.  *   - leave blank for no relation-links support
  240.  *     DEFAULT: 'pma_relation'
  241.  *
  242.  * @global string $cfg['Servers'][$i]['relation']
  243.  */
  244. $cfg['Servers'][$i]['relation'] = '';
  245.  
  246. /**
  247.  * table to describe the display fields
  248.  *   - leave blank for no display fields support
  249.  *     DEFAULT: 'pma_table_info'
  250.  *
  251.  * @global string $cfg['Servers'][$i]['table_info']
  252.  */
  253. $cfg['Servers'][$i]['table_info'] = '';
  254.  
  255. /**
  256.  * table to describe the tables position for the PDF schema
  257.  *   - leave blank for no PDF schema support
  258.  *     DEFAULT: 'pma_table_coords'
  259.  *
  260.  * @global string $cfg['Servers'][$i]['table_coords']
  261.  */
  262. $cfg['Servers'][$i]['table_coords'] = '';
  263.  
  264. /**
  265.  * table to describe pages of relationpdf
  266.  *   - leave blank if you don't want to use this
  267.  *     DEFAULT: 'pma_pdf_pages'
  268.  *
  269.  * @global string $cfg['Servers'][$i]['pdf_pages']
  270.  */
  271. $cfg['Servers'][$i]['pdf_pages'] = '';
  272.  
  273. /**
  274.  * table to store column information
  275.  *   - leave blank for no column comments/mime types
  276.  *     DEFAULT: 'pma_column_info'
  277.  *
  278.  * @global string $cfg['Servers'][$i]['column_info']
  279.  */
  280. $cfg['Servers'][$i]['column_info'] = '';
  281.  
  282. /**
  283.  * table to store SQL history
  284.  *   - leave blank for no SQL query history
  285.  *     DEFAULT: 'pma_history'
  286.  *
  287.  * @global string $cfg['Servers'][$i]['history']
  288.  */
  289. $cfg['Servers'][$i]['history'] = '';
  290.  
  291. /**
  292.  * table to store the coordinates for Designer
  293.  *   - leave blank for no Designer feature
  294.  *     DEFAULT: 'pma_designer_coords'
  295.  *
  296.  * @global string $cfg['Servers'][$i]['designer_coords']
  297.  */
  298. $cfg['Servers'][$i]['designer_coords'] = '';
  299.  
  300. /**
  301.  * set to false if you know that your pma_* tables are up to date.
  302.  * This prevents compatibility checks and thereby increases performance.
  303.  *
  304.  * @global boolean $cfg['Servers'][$i]['verbose_check']
  305.  */
  306. $cfg['Servers'][$i]['verbose_check'] = true;
  307.  
  308. /**
  309.  * whether to allow root login
  310.  *
  311.  * @global boolean $cfg['Servers'][$i]['AllowRoot']
  312.  */
  313. $cfg['Servers'][$i]['AllowRoot'] = true;
  314.  
  315. /**
  316.  * Host authentication order, leave blank to not use
  317.  *
  318.  * @global string $cfg['Servers'][$i]['AllowDeny']['order']
  319.  */
  320. $cfg['Servers'][$i]['AllowDeny']['order'] = '';
  321.  
  322. /**
  323.  * Host authentication rules, leave blank for defaults
  324.  *
  325.  * @global array $cfg['Servers'][$i]['AllowDeny']['rules']
  326.  */
  327. $cfg['Servers'][$i]['AllowDeny']['rules'] = array();
  328.  
  329. /**
  330.  * Default server (0 = no default server)
  331.  *
  332.  * If you have more than one server configured, you can set $cfg['ServerDefault']
  333.  * to any one of them to auto-connect to that server when phpMyAdmin is started,
  334.  * or set it to 0 to be given a list of servers without logging in
  335.  * If you have only one server configured, $cfg['ServerDefault'] *MUST* be
  336.  * set to that server.
  337.  *
  338.  * @global integer $cfg['ServerDefault']
  339.  */
  340. $cfg['ServerDefault'] = 1;
  341.  
  342. /*
  343.  * Other core phpMyAdmin settings
  344.  */
  345. /**
  346.  * maximum number of db's displayed in left frame and database list
  347.  *
  348.  * @global integer $cfg['MaxDbList']
  349.  */
  350. $cfg['MaxDbList'] = 100;
  351.  
  352. /**
  353.  * maximum number of tables displayed in table list
  354.  *
  355.  * @global integer $cfg['MaxTableList']
  356.  */
  357. $cfg['MaxTableList'] = 250;
  358.  
  359. /**
  360.  * maximum number of characters when a SQL query is displayed
  361.  *
  362.  * @global integer $cfg['MaxCharactersInDisplayedSQL']
  363.  */
  364. $cfg['MaxCharactersInDisplayedSQL'] = 1000;
  365.  
  366. /**
  367.  * use GZIP output buffering if possible (true|false|'auto')
  368.  *
  369.  * @global string $cfg['OBGzip']
  370.  */
  371. $cfg['OBGzip'] = 'auto';
  372.  
  373. /**
  374.  * use persistent connections to MySQL database
  375.  *
  376.  * @global boolean $cfg['PersistentConnections']
  377.  */
  378. $cfg['PersistentConnections'] = false;
  379.  
  380. /**
  381.  * whether to force using HTTPS
  382.  *
  383.  * @global boolean $cfg['ForceSSL']
  384.  */
  385. $cfg['ForceSSL'] = false;
  386.  
  387. /**
  388.  * maximum execution time in seconds (0 for no limit)
  389.  *
  390.  * @global integer $cfg['ExecTimeLimit']
  391.  */
  392. $cfg['ExecTimeLimit'] = 300;
  393.  
  394. /**
  395.  * maximum allocated bytes (0 for no limit)
  396.  *
  397.  * @global integer $cfg['MemoryLimit']
  398.  */
  399. $cfg['MemoryLimit'] = 0;
  400.  
  401. /**
  402.  * mark used tables, make possible to show locked tables (since MySQL 3.23.30)
  403.  *
  404.  * @global boolean $cfg['SkipLockedTables']
  405.  */
  406. $cfg['SkipLockedTables'] = false;
  407.  
  408. /**
  409.  * show SQL queries as run
  410.  *
  411.  * @global boolean $cfg['ShowSQL']
  412.  */
  413. $cfg['ShowSQL'] = true;
  414.  
  415. /**
  416.  * show a 'Drop database' link to normal users
  417.  *
  418.  * @global boolean $cfg['AllowUserDropDatabase']
  419.  */
  420. $cfg['AllowUserDropDatabase'] = false;
  421.  
  422. /**
  423.  * confirm 'DROP TABLE' & 'DROP DATABASE'
  424.  *
  425.  * @global boolean $cfg['Confirm']
  426.  */
  427. $cfg['Confirm'] = true;
  428.  
  429. /**
  430.  * recall previous login in cookie authentication mode or not
  431.  *
  432.  * @global boolean $cfg['LoginCookieRecall']
  433.  */
  434. $cfg['LoginCookieRecall'] = true;
  435.  
  436. /**
  437.  * validity of cookie login (in seconds)
  438.  *
  439.  * @global integer $cfg['LoginCookieValidity']
  440.  */
  441. $cfg['LoginCookieValidity'] = 1800;
  442.  
  443. /**
  444.  * how long login cookie should be stored (in seconds)
  445.  *
  446.  * @global integer $cfg['LoginCookieStore']
  447.  */
  448. $cfg['LoginCookieStore'] = 0;
  449.  
  450. /**
  451.  * whether to delete all login cookies on logout
  452.  *
  453.  * @global boolean $cfg['LoginCookieDeleteAll']
  454.  */
  455. $cfg['LoginCookieDeleteAll'] = true;
  456.  
  457. /**
  458.  * whether to enable the "database search" feature or not
  459.  *
  460.  * @global boolean $cfg['UseDbSearch']
  461.  */
  462. $cfg['UseDbSearch'] = true;
  463.  
  464. /**
  465.  * if set to true, PMA continues computing multiple-statement queries
  466.  * even if one of the queries failed
  467.  *
  468.  * @global boolean $cfg['IgnoreMultiSubmitErrors']
  469.  */
  470. $cfg['IgnoreMultiSubmitErrors'] = false;
  471.  
  472. /**
  473.  * if set to true, PMA will show the affected rows of EACH statement on
  474.  * multiple-statement queries. See the libraries/import.php file for
  475.  * hard coded defaults on how many queries a statement may contain!
  476.  *
  477.  * @global boolean $cfg['VerboseMultiSubmit']
  478.  */
  479. $cfg['VerboseMultiSubmit'] = true;
  480.  
  481. /**
  482.  * allow login to any user entered server in cookie based authentication
  483.  *
  484.  * @global boolean $cfg['AllowArbitraryServer']
  485.  */
  486. $cfg['AllowArbitraryServer'] = false;
  487.  
  488.  
  489. /*******************************************************************************
  490.  * Left frame setup
  491.  */
  492.  
  493. /**
  494.  * use a select-based menu and display only the current tables in the left frame.
  495.  *
  496.  * @global boolean $cfg['LeftFrameLight']
  497.  */
  498. $cfg['LeftFrameLight'] = true;
  499.  
  500. /**
  501.  * turn the select-based light menu into a tree
  502.  *
  503.  * @global boolean $cfg['LeftFrameDBTree']
  504.  */
  505. $cfg['LeftFrameDBTree'] = true;
  506.  
  507. /**
  508.  * the separator to sub-tree the select-based light menu tree
  509.  *
  510.  * @global string $cfg['LeftFrameDBSeparator']
  511.  */
  512. $cfg['LeftFrameDBSeparator'] = '_';
  513.  
  514. /**
  515.  * Which string will be used to generate table prefixes
  516.  * to split/nest tables into multiple categories
  517.  *
  518.  * @global string $cfg['LeftFrameTableSeparator']
  519.  */
  520. $cfg['LeftFrameTableSeparator']= '__';
  521.  
  522. /**
  523.  * How many sublevels should be displayed when splitting up tables by the above Separator
  524.  *
  525.  * @global integer $cfg['LeftFrameTableLevel']
  526.  */
  527. $cfg['LeftFrameTableLevel'] = '1';
  528.  
  529. /**
  530.  * display table comment as tooltip in left frame
  531.  *
  532.  * @global boolean $cfg['ShowTooltip']
  533.  */
  534. $cfg['ShowTooltip'] = true;
  535.  
  536. /**
  537.  * if ShowToolTip is enabled, this defines that table/db comments
  538.  *
  539.  * @global boolean $cfg['ShowTooltipAliasDB']
  540.  */
  541. $cfg['ShowTooltipAliasDB'] = false;
  542.  
  543. /**
  544.  * are shown (in the left menu and db_structure) instead of table/db names.
  545.  * Setting ShowTooltipAliasTB to 'nested' will only use the Aliases for nested
  546.  * descriptors, not the table itself.
  547.  *
  548.  * @global boolean $cfg['ShowTooltipAliasTB']
  549.  */
  550. $cfg['ShowTooltipAliasTB'] = false;
  551.  
  552. /**
  553.  * display logo at top of left frame
  554.  *
  555.  * @global boolean $cfg['LeftDisplayLogo']
  556.  */
  557. $cfg['LeftDisplayLogo'] = true;
  558.  
  559. /**
  560.  * where should logo link point to (can also contain an external URL)
  561.  *
  562.  * @global string $cfg['LeftLogoLink']
  563.  */
  564. $cfg['LeftLogoLink'] = 'main.php';
  565.  
  566. /**
  567.  * whether to open the linked page in the main window ('main') or
  568.  * in a new window ('new')
  569.  *
  570.  * @global string $cfg['LeftLogoLinkWindow']
  571.  */
  572. $cfg['LeftLogoLinkWindow'] = 'main';
  573.  
  574. /**
  575.  * display server choice at top of left frame
  576.  *
  577.  * @global boolean $cfg['LeftDisplayServers']
  578.  */
  579. $cfg['LeftDisplayServers'] = false;
  580.  
  581. /**
  582.  * server choice as links
  583.  *
  584.  * @global boolean $cfg['DisplayServersList']
  585.  */
  586. $cfg['DisplayServersList'] = false;
  587.  
  588. /**
  589.  * database choice in light as links
  590.  *
  591.  * @global boolean $cfg['DisplayDatabasesList']
  592.  */
  593. $cfg['DisplayDatabasesList'] = 'auto';
  594.  
  595.  
  596. /*******************************************************************************
  597.  * In the main frame, at startup...
  598.  */
  599.  
  600. /**
  601.  * allow to display statistics and space usage in the pages about database
  602.  * details and table properties
  603.  *
  604.  * @global boolean $cfg['ShowStats']
  605.  */
  606. $cfg['ShowStats'] = true;
  607.  
  608. /**
  609.  * show PHP info link
  610.  *
  611.  * @global boolean $cfg['ShowPhpInfo']
  612.  */
  613. $cfg['ShowPhpInfo'] = false;
  614.  
  615. /**
  616.  * show MySQL server information
  617.  *
  618.  * @global boolean $cfg['ShowServerInfo']
  619.  */
  620. $cfg['ShowServerInfo'] = true;
  621.  
  622. /**
  623.  * show change password link
  624.  *
  625.  * @global boolean $cfg['ShowChgPassword']
  626.  */
  627. $cfg['ShowChgPassword'] = false;
  628.  
  629. /**
  630.  * show create database form
  631.  *
  632.  * @global boolean $cfg['ShowCreateDb']
  633.  */
  634. $cfg['ShowCreateDb'] = true;
  635.  
  636. /**
  637.  * suggest a new DB name if possible (false = keep empty)
  638.  *
  639.  * @global boolean $cfg['SuggestDBName']
  640.  */
  641. $cfg['SuggestDBName'] = true;
  642.  
  643.  
  644. /*******************************************************************************
  645.  * In browse mode...
  646.  */
  647.  
  648. /**
  649.  * display blob field contents
  650.  *
  651.  * @global boolean $cfg['ShowBlob']
  652.  */
  653. $cfg['ShowBlob'] = false;
  654.  
  655. /**
  656.  * Use icons instead of text for the navigation bar buttons
  657.  * and on right panel top menu (server db table) (true|false|'both')
  658.  *
  659.  * @global string $cfg['NavigationBarIconic']
  660.  */
  661. $cfg['NavigationBarIconic'] = 'both';
  662.  
  663. /**
  664.  * allows to display all the rows
  665.  *
  666.  * @global boolean $cfg['ShowAll']
  667.  */
  668. $cfg['ShowAll'] = false;
  669.  
  670. /**
  671.  * maximum number of rows to display
  672.  *
  673.  * @global integer $cfg['MaxRows']
  674.  */
  675. $cfg['MaxRows'] = 30;
  676.  
  677. /**
  678.  * default for 'ORDER BY' clause (valid values are 'ASC', 'DESC' or 'SMART' -ie
  679.  * descending order for fields of type TIME, DATE, DATETIME & TIMESTAMP,
  680.  * ascending order else-)
  681.  *
  682.  * @global string $cfg['Order']
  683.  */
  684. $cfg['Order'] = 'ASC';
  685.  
  686.  
  687. /*******************************************************************************
  688.  * In edit mode...
  689.  */
  690.  
  691. /**
  692.  * disallow editing of binary fields
  693.  * valid values are:
  694.  *   false  allow editing
  695.  *   'blob' allow editing except for BLOB fields
  696.  *   'all'  disallow editing
  697.  *
  698.  * @global string $cfg['ProtectBinary']
  699.  */
  700. $cfg['ProtectBinary'] = 'blob';
  701.  
  702. /**
  703.  * Display the function fields in edit/insert mode
  704.  *
  705.  * @global boolean $cfg['ShowFunctionFields']
  706.  */
  707. $cfg['ShowFunctionFields'] = true;
  708.  
  709. /**
  710.  * Which editor should be used for CHAR/VARCHAR fields:
  711.  *  input - allows limiting of input length
  712.  *  textarea - allows newlines in fields
  713.  *
  714.  * @global string $cfg['CharEditing']
  715.  */
  716. $cfg['CharEditing'] = 'input';
  717.  
  718. /**
  719.  * How many rows can be inserted at one time
  720.  *
  721.  * @global integer $cfg['InsertRows']
  722.  */
  723. $cfg['InsertRows'] = 2;
  724.  
  725. /**
  726.  * Sort order for items in a foreign-key drop-down list.
  727.  * 'content' is the referenced data, 'id' is the key value.
  728.  *
  729.  * @global array $cfg['ForeignKeyDropdownOrder']
  730.  */
  731. $cfg['ForeignKeyDropdownOrder'] = array('content-id', 'id-content');
  732.  
  733. /**
  734.  * A drop-down list will be used if fewer items are present
  735.  *
  736.  * @global integer $cfg['ForeignKeyMaxLimit']
  737.  */
  738. $cfg['ForeignKeyMaxLimit'] = 100;
  739.  
  740.  
  741. /*******************************************************************************
  742.  * For the export features...
  743.  */
  744.  
  745. /**
  746.  * Allow the use of zip/gzip/bzip
  747.  *
  748.  * @global boolean $cfg['ZipDump']
  749.  */
  750. $cfg['ZipDump'] = true;
  751.  
  752. /**
  753.  * compression for
  754.  *
  755.  * @global boolean $cfg['GZipDump']
  756.  */
  757. $cfg['GZipDump'] = true;
  758.  
  759. /**
  760.  * dump files
  761.  *
  762.  * @global boolean $cfg['BZipDump']
  763.  */
  764. $cfg['BZipDump'] = true;
  765.  
  766. /**
  767.  * Will compress gzip/bzip2 exports on fly without need for much memory.
  768.  * If you encounter problems with created gzip/bzip2 files disable this feature.
  769.  *
  770.  * @global boolean $cfg['CompressOnFly']
  771.  */
  772. $cfg['CompressOnFly'] = true;
  773.  
  774.  
  775. /*******************************************************************************
  776.  * Tabs display settings
  777.  */
  778.  
  779. /**
  780.  * use graphically less intense menu tabs
  781.  *
  782.  * @global boolean $cfg['LightTabs']
  783.  */
  784. $cfg['LightTabs'] = false;
  785.  
  786. /**
  787.  * Use icons instead of text for the table display of a database (true|false|'both')
  788.  *
  789.  * @global boolean $cfg['PropertiesIconic']
  790.  */
  791. $cfg['PropertiesIconic'] = true;
  792.  
  793. /**
  794.  * How many columns should be used for table display of a database?
  795.  * (a value larger than 1 results in some information being hidden)
  796.  *
  797.  * @global integer $cfg['PropertiesNumColumns']
  798.  */
  799. $cfg['PropertiesNumColumns'] = 1;
  800.  
  801. /**
  802.  * Possible values:
  803.  * 'main.php' = the welcome page
  804.  * (recommended for multiuser setups)
  805.  * 'server_databases.php' = list of databases
  806.  * 'server_status.php' = runtime information
  807.  * 'server_variables.php' = MySQL server variables
  808.  * 'server_privileges.php' = user management
  809.  * 'server_processlist.php' = process list
  810.  *
  811.  * @global string $cfg['DefaultTabServer']
  812.  */
  813. $cfg['DefaultTabServer'] = 'main.php';
  814.  
  815. /**
  816.  * Possible values:
  817.  * 'db_structure.php' = tables list
  818.  * 'db_sql.php' = SQL form
  819.  * 'db_search.php' = search query
  820.  * 'db_operations.php' = operations on database
  821.  *
  822.  * @global string $cfg['DefaultTabDatabase']
  823.  */
  824. $cfg['DefaultTabDatabase'] = 'db_structure.php';
  825.  
  826. /**
  827.  * Possible values:
  828.  * 'tbl_structure.php' = fields list
  829.  * 'tbl_sql.php' = SQL form
  830.  * 'tbl_select.php' = select page
  831.  * 'tbl_change.php' = insert row page
  832.  * 'sql.php' = browse page
  833.  *
  834.  * @global string $cfg['DefaultTabTable']
  835.  */
  836. $cfg['DefaultTabTable'] = 'tbl_structure.php';
  837.  
  838.  
  839. /*******************************************************************************
  840.  * Export defaults
  841.  */
  842. $cfg['Export'] = array();
  843.  
  844. /**
  845.  * sql/latex/excel/csv/xml/xls/htmlexcel/htmlword/ods/odt
  846.  *
  847.  * @global string $cfg['Export']['format']
  848.  */
  849. $cfg['Export']['format'] = 'sql';
  850.  
  851. /**
  852.  * none/zip/gzip/bzip2
  853.  *
  854.  * @global string $cfg['Export']['compression']
  855.  */
  856. $cfg['Export']['compression'] = 'none';
  857.  
  858. /**
  859.  *
  860.  *
  861.  * @global boolean $cfg['Export']['asfile']
  862.  */
  863. $cfg['Export']['asfile'] = false;
  864.  
  865. /**
  866.  *
  867.  *
  868.  * @global string $cfg['Export']['charset']
  869.  */
  870. $cfg['Export']['charset'] = '';
  871.  
  872. /**
  873.  *
  874.  *
  875.  * @global boolean $cfg['Export']['onserver']
  876.  */
  877. $cfg['Export']['onserver'] = false;
  878.  
  879. /**
  880.  *
  881.  *
  882.  * @global boolean $cfg['Export']['onserver_overwrite']
  883.  */
  884. $cfg['Export']['onserver_overwrite'] = false;
  885.  
  886. /**
  887.  *
  888.  *
  889.  * @global boolean $cfg['Export']['remember_file_template']
  890.  */
  891. $cfg['Export']['remember_file_template'] = true;
  892.  
  893. /**
  894.  *
  895.  *
  896.  * @global string $cfg['Export']['file_template_table']
  897.  */
  898. $cfg['Export']['file_template_table'] = '__TABLE__';
  899.  
  900. /**
  901.  *
  902.  *
  903.  * @global string $cfg['Export']['file_template_database']
  904.  */
  905. $cfg['Export']['file_template_database'] = '__DB__';
  906.  
  907. /**
  908.  *
  909.  *
  910.  * @global string $cfg['Export']['file_template_server']
  911.  */
  912. $cfg['Export']['file_template_server'] = '__SERVER__';
  913.  
  914. /**
  915.  *
  916.  *
  917.  * @global boolean $cfg['Export']['ods_columns']
  918.  */
  919. $cfg['Export']['ods_columns'] = false;
  920.  
  921. /**
  922.  *
  923.  *
  924.  * @global string $cfg['Export']['ods_null']
  925.  */
  926. $cfg['Export']['ods_null'] = 'NULL';
  927.  
  928. /**
  929.  *
  930.  *
  931.  * @global boolean $cfg['Export']['odt_structure']
  932.  */
  933. $cfg['Export']['odt_structure'] = true;
  934.  
  935. /**
  936.  *
  937.  *
  938.  * @global boolean $cfg['Export']['odt_data']
  939.  */
  940. $cfg['Export']['odt_data'] = true;
  941.  
  942. /**
  943.  *
  944.  *
  945.  * @global boolean $cfg['Export']['odt_columns']
  946.  */
  947. $cfg['Export']['odt_columns'] = true;
  948.  
  949. /**
  950.  *
  951.  *
  952.  * @global boolean $cfg['Export']['odt_relation']
  953.  */
  954. $cfg['Export']['odt_relation'] = true;
  955.  
  956. /**
  957.  *
  958.  *
  959.  * @global boolean $cfg['Export']['odt_comments']
  960.  */
  961. $cfg['Export']['odt_comments'] = true;
  962.  
  963. /**
  964.  *
  965.  *
  966.  * @global boolean $cfg['Export']['odt_mime']
  967.  */
  968. $cfg['Export']['odt_mime'] = true;
  969.  
  970. /**
  971.  *
  972.  *
  973.  * @global string $cfg['Export']['odt_null']
  974.  */
  975. $cfg['Export']['odt_null'] = 'NULL';
  976.  
  977. /**
  978.  *
  979.  *
  980.  * @global boolean $cfg['Export']['htmlexcel_columns']
  981.  */
  982. $cfg['Export']['htmlexcel_columns'] = false;
  983.  
  984. /**
  985.  *
  986.  *
  987.  * @global string $cfg['Export']['htmlexcel_null']
  988.  */
  989. $cfg['Export']['htmlexcel_null'] = 'NULL';
  990.  
  991. /**
  992.  *
  993.  *
  994.  * @global boolean $cfg['Export']['htmlword_structure']
  995.  */
  996. $cfg['Export']['htmlword_structure'] = true;
  997.  
  998. /**
  999.  *
  1000.  *
  1001.  * @global boolean $cfg['Export']['htmlword_data']
  1002.  */
  1003. $cfg['Export']['htmlword_data'] = true;
  1004.  
  1005. /**
  1006.  *
  1007.  *
  1008.  * @global boolean $cfg['Export']['htmlword_columns']
  1009.  */
  1010. $cfg['Export']['htmlword_columns'] = false;
  1011.  
  1012. /**
  1013.  *
  1014.  *
  1015.  * @global string $cfg['Export']['htmlword_null']
  1016.  */
  1017. $cfg['Export']['htmlword_null'] = 'NULL';
  1018.  
  1019. /**
  1020.  *
  1021.  *
  1022.  * @global boolean $cfg['Export']['xls_columns']
  1023.  */
  1024. $cfg['Export']['xls_columns'] = false;
  1025.  
  1026. /**
  1027.  *
  1028.  *
  1029.  * @global string $cfg['Export']['xls_null']
  1030.  */
  1031. $cfg['Export']['xls_null'] = 'NULL';
  1032.  
  1033. /**
  1034.  *
  1035.  *
  1036.  * @global boolean $cfg['Export']['csv_columns']
  1037.  */
  1038. $cfg['Export']['csv_columns'] = false;
  1039.  
  1040. /**
  1041.  *
  1042.  *
  1043.  * @global string $cfg['Export']['csv_null']
  1044.  */
  1045. $cfg['Export']['csv_null'] = 'NULL';
  1046.  
  1047. /**
  1048.  *
  1049.  *
  1050.  * @global string $cfg['Export']['csv_separator']
  1051.  */
  1052. $cfg['Export']['csv_separator'] = ';';
  1053.  
  1054. /**
  1055.  *
  1056.  *
  1057.  * @global string $cfg['Export']['csv_enclosed']
  1058.  */
  1059. $cfg['Export']['csv_enclosed'] = '"';
  1060.  
  1061. /**
  1062.  *
  1063.  *
  1064.  * @global string $cfg['Export']['csv_escaped']
  1065.  */
  1066. $cfg['Export']['csv_escaped'] = '\\';
  1067.  
  1068. /**
  1069.  *
  1070.  *
  1071.  * @global string $cfg['Export']['csv_terminated']
  1072.  */
  1073. $cfg['Export']['csv_terminated'] = 'AUTO';
  1074.  
  1075. /**
  1076.  *
  1077.  *
  1078.  * @global boolean $cfg['Export']['excel_columns']
  1079.  */
  1080. $cfg['Export']['excel_columns'] = false;
  1081.  
  1082. /**
  1083.  *
  1084.  *
  1085.  * @global string $cfg['Export']['excel_null']
  1086.  */
  1087. $cfg['Export']['excel_null'] = 'NULL';
  1088.  
  1089. /**
  1090.  * win/mac
  1091.  *
  1092.  * @global string $cfg['Export']['excel_edition']
  1093.  */
  1094. $cfg['Export']['excel_edition'] = 'win';
  1095.  
  1096. /**
  1097.  *
  1098.  *
  1099.  * @global boolean $cfg['Export']['latex_structure']
  1100.  */
  1101. $cfg['Export']['latex_structure'] = true;
  1102.  
  1103. /**
  1104.  *
  1105.  *
  1106.  * @global boolean $cfg['Export']['latex_data']
  1107.  */
  1108. $cfg['Export']['latex_data'] = true;
  1109.  
  1110. /**
  1111.  *
  1112.  *
  1113.  * @global boolean $cfg['Export']['latex_columns']
  1114.  */
  1115. $cfg['Export']['latex_columns'] = true;
  1116.  
  1117. /**
  1118.  *
  1119.  *
  1120.  * @global boolean $cfg['Export']['latex_relation']
  1121.  */
  1122. $cfg['Export']['latex_relation'] = true;
  1123.  
  1124. /**
  1125.  *
  1126.  *
  1127.  * @global boolean $cfg['Export']['latex_comments']
  1128.  */
  1129. $cfg['Export']['latex_comments'] = true;
  1130.  
  1131. /**
  1132.  *
  1133.  *
  1134.  * @global boolean $cfg['Export']['latex_mime']
  1135.  */
  1136. $cfg['Export']['latex_mime'] = true;
  1137.  
  1138. /**
  1139.  *
  1140.  *
  1141.  * @global string $cfg['Export']['latex_null']
  1142.  */
  1143. $cfg['Export']['latex_null'] = '\textit{NULL}';
  1144.  
  1145. /**
  1146.  *
  1147.  *
  1148.  * @global boolean $cfg['Export']['latex_caption']
  1149.  */
  1150. $cfg['Export']['latex_caption'] = true;
  1151.  
  1152. /**
  1153.  *
  1154.  *
  1155.  * @global string $cfg['Export']['latex_structure_caption']
  1156.  */
  1157. $cfg['Export']['latex_structure_caption'] = 'strLatexStructure';
  1158.  
  1159. /**
  1160.  *
  1161.  *
  1162.  * @global string $cfg['Export']['latex_structure_continued_caption']
  1163.  */
  1164. $cfg['Export']['latex_structure_continued_caption'] = 'strLatexStructure strLatexContinued';
  1165.  
  1166. /**
  1167.  *
  1168.  *
  1169.  * @global string $cfg['Export']['latex_data_caption']
  1170.  */
  1171. $cfg['Export']['latex_data_caption'] = 'strLatexContent';
  1172.  
  1173. /**
  1174.  *
  1175.  *
  1176.  * @global string $cfg['Export']['latex_data_continued_caption']
  1177.  */
  1178. $cfg['Export']['latex_data_continued_caption'] = 'strLatexContent strLatexContinued';
  1179.  
  1180. /**
  1181.  *
  1182.  *
  1183.  * @global string $cfg['Export']['latex_data_label']
  1184.  */
  1185. $cfg['Export']['latex_data_label'] = 'tab:__TABLE__-data';
  1186.  
  1187. /**
  1188.  *
  1189.  *
  1190.  * @global string $cfg['Export']['latex_structure_label']
  1191.  */
  1192. $cfg['Export']['latex_structure_label'] = 'tab:__TABLE__-structure';
  1193.  
  1194. /**
  1195.  *
  1196.  *
  1197.  * @global boolean $cfg['Export']['sql_structure']
  1198.  */
  1199. $cfg['Export']['sql_structure'] = true;
  1200.  
  1201. /**
  1202.  *
  1203.  *
  1204.  * @global boolean $cfg['Export']['sql_data']
  1205.  */
  1206. $cfg['Export']['sql_data'] = true;
  1207.  
  1208. /**
  1209.  *
  1210.  *
  1211.  * @global string $cfg['Export']['sql_compatibility']
  1212.  */
  1213. $cfg['Export']['sql_compatibility'] = 'NONE';
  1214.  
  1215. /**
  1216.  *
  1217.  *
  1218.  * @global boolean $cfg['Export']['sql_disable_fk']
  1219.  */
  1220. $cfg['Export']['sql_disable_fk'] = false;
  1221.  
  1222. /**
  1223.  *
  1224.  *
  1225.  * @global boolean $cfg['Export']['sql_use_transaction']
  1226.  */
  1227. $cfg['Export']['sql_use_transaction'] = false;
  1228.  
  1229. /**
  1230.  *
  1231.  *
  1232.  * @global boolean $cfg['Export']['sql_drop_database']
  1233.  */
  1234. $cfg['Export']['sql_drop_database'] = false;
  1235.  
  1236. /**
  1237.  *
  1238.  *
  1239.  * @global boolean $cfg['Export']['sql_drop_table']
  1240.  */
  1241. $cfg['Export']['sql_drop_table'] = false;
  1242.  
  1243. /**
  1244.  *
  1245.  *
  1246.  * @global boolean $cfg['Export']['sql_if_not_exists']
  1247.  * true by default for correct behavior when dealing with exporting
  1248.  * of VIEWs and the stand-in table
  1249.  */
  1250. $cfg['Export']['sql_if_not_exists'] = true;
  1251.  
  1252. /**
  1253.  *
  1254.  *
  1255.  * @global boolean $cfg['Export']['sql_procedure_function']
  1256.  */
  1257. $cfg['Export']['sql_procedure_function'] = false;
  1258.  
  1259. /**
  1260.  *
  1261.  *
  1262.  * @global boolean $cfg['Export']['sql_auto_increment']
  1263.  */
  1264. $cfg['Export']['sql_auto_increment'] = true;
  1265.  
  1266. /**
  1267.  *
  1268.  *
  1269.  * @global boolean $cfg['Export']['sql_backquotes']
  1270.  */
  1271. $cfg['Export']['sql_backquotes'] = true;
  1272.  
  1273. /**
  1274.  *
  1275.  *
  1276.  * @global boolean $cfg['Export']['sql_dates']
  1277.  */
  1278. $cfg['Export']['sql_dates'] = false;
  1279.  
  1280. /**
  1281.  *
  1282.  *
  1283.  * @global boolean $cfg['Export']['sql_relation']
  1284.  */
  1285. $cfg['Export']['sql_relation'] = false;
  1286.  
  1287. /**
  1288.  *
  1289.  *
  1290.  * @global boolean $cfg['Export']['sql_columns']
  1291.  */
  1292. $cfg['Export']['sql_columns'] = true;
  1293.  
  1294. /**
  1295.  *
  1296.  *
  1297.  * @global boolean $cfg['Export']['sql_delayed']
  1298.  */
  1299. $cfg['Export']['sql_delayed'] = false;
  1300.  
  1301. /**
  1302.  *
  1303.  *
  1304.  * @global boolean $cfg['Export']['sql_ignore']
  1305.  */
  1306. $cfg['Export']['sql_ignore'] = false;
  1307.  
  1308. /**
  1309.  *
  1310.  *
  1311.  * @global boolean $cfg['Export']['sql_hex_for_blob']
  1312.  */
  1313. $cfg['Export']['sql_hex_for_blob'] = true;
  1314.  
  1315. /**
  1316.  * insert/update/replace
  1317.  *
  1318.  * @global string $cfg['Export']['sql_type']
  1319.  */
  1320. $cfg['Export']['sql_type'] = 'insert';
  1321.  
  1322. /**
  1323.  *
  1324.  *
  1325.  * @global boolean $cfg['Export']['sql_extended']
  1326.  */
  1327. $cfg['Export']['sql_extended'] = true;
  1328.  
  1329. /**
  1330.  *
  1331.  *
  1332.  * @global integer $cfg['Export']['sql_max_query_size']
  1333.  */
  1334. $cfg['Export']['sql_max_query_size'] = 50000;
  1335.  
  1336. /**
  1337.  *
  1338.  *
  1339.  * @global boolean $cfg['Export']['sql_comments']
  1340.  */
  1341. $cfg['Export']['sql_comments'] = false;
  1342.  
  1343. /**
  1344.  *
  1345.  *
  1346.  * @global boolean $cfg['Export']['sql_mime']
  1347.  */
  1348. $cfg['Export']['sql_mime'] = false;
  1349.  
  1350. /**
  1351.  * \n is replaced by new line
  1352.  *
  1353.  * @global string $cfg['Export']['sql_header_comment']
  1354.  */
  1355. $cfg['Export']['sql_header_comment'] = '';
  1356.  
  1357. /**
  1358.  *
  1359.  *
  1360.  * @global boolean $cfg['Export']['pdf_structure']
  1361.  */
  1362. $cfg['Export']['pdf_structure'] = false;
  1363.  
  1364. /**
  1365.  *
  1366.  *
  1367.  * @global boolean $cfg['Export']['pdf_data']
  1368.  */
  1369. $cfg['Export']['pdf_data'] = true;
  1370.  
  1371. /**
  1372.  *
  1373.  *
  1374.  * @global string $cfg['Export']['pdf_report_title']
  1375.  */
  1376. $cfg['Export']['pdf_report_title'] = '';
  1377.  
  1378.  
  1379. /*******************************************************************************
  1380.  * Import defaults
  1381.  */
  1382. $cfg['Import'] = array();
  1383.  
  1384. /**
  1385.  *
  1386.  *
  1387.  * @global string $cfg['Import']['format']
  1388.  */
  1389. $cfg['Import']['format'] = 'sql';
  1390.  
  1391. /**
  1392.  *
  1393.  *
  1394.  * @global boolean $cfg['Import']['allow_interrupt']
  1395.  */
  1396. $cfg['Import']['allow_interrupt'] = true;
  1397.  
  1398. /**
  1399.  *
  1400.  *
  1401.  * @global integer $cfg['Import']['skip_queries']
  1402.  */
  1403. $cfg['Import']['skip_queries'] = '0';
  1404.  
  1405. /**
  1406.  *
  1407.  *
  1408.  * @global string $cfg['Import']['sql_compatibility']
  1409.  */
  1410. $cfg['Import']['sql_compatibility'] = 'NONE';
  1411.  
  1412. /**
  1413.  *
  1414.  *
  1415.  * @global boolean $cfg['Import']['csv_replace']
  1416.  */
  1417. $cfg['Import']['csv_replace'] = false;
  1418.  
  1419. /**
  1420.  *
  1421.  *
  1422.  * @global string $cfg['Import']['csv_terminated']
  1423.  */
  1424. $cfg['Import']['csv_terminated'] = ';';
  1425.  
  1426. /**
  1427.  *
  1428.  *
  1429.  * @global string $cfg['Import']['csv_enclosed']
  1430.  */
  1431. $cfg['Import']['csv_enclosed'] = '"';
  1432.  
  1433. /**
  1434.  *
  1435.  *
  1436.  * @global string $cfg['Import']['csv_escaped']
  1437.  */
  1438. $cfg['Import']['csv_escaped'] = '\\';
  1439.  
  1440. /**
  1441.  *
  1442.  *
  1443.  * @global string $cfg['Import']['csv_new_line']
  1444.  */
  1445. $cfg['Import']['csv_new_line'] = 'auto';
  1446.  
  1447. /**
  1448.  *
  1449.  *
  1450.  * @global string $cfg['Import']['csv_columns']
  1451.  */
  1452. $cfg['Import']['csv_columns'] = '';
  1453.  
  1454. /**
  1455.  *
  1456.  *
  1457.  * @global boolean $cfg['Import']['ldi_replace']
  1458.  */
  1459. $cfg['Import']['ldi_replace'] = false;
  1460.  
  1461. /**
  1462.  *
  1463.  *
  1464.  * @global string $cfg['Import']['ldi_terminated']
  1465.  */
  1466. $cfg['Import']['ldi_terminated'] = ';';
  1467.  
  1468. /**
  1469.  *
  1470.  *
  1471.  * @global string $cfg['Import']['ldi_enclosed']
  1472.  */
  1473. $cfg['Import']['ldi_enclosed'] = '"';
  1474.  
  1475. /**
  1476.  *
  1477.  *
  1478.  * @global string $cfg['Import']['ldi_escaped']
  1479.  */
  1480. $cfg['Import']['ldi_escaped'] = '\\';
  1481.  
  1482. /**
  1483.  *
  1484.  *
  1485.  * @global string $cfg['Import']['ldi_new_line']
  1486.  */
  1487. $cfg['Import']['ldi_new_line'] = 'auto';
  1488.  
  1489. /**
  1490.  *
  1491.  *
  1492.  * @global string $cfg['Import']['ldi_columns']
  1493.  */
  1494. $cfg['Import']['ldi_columns'] = '';
  1495.  
  1496. /**
  1497.  * 'auto' for auto-detection, true or false for forcing
  1498.  *
  1499.  * @global string $cfg['Import']['ldi_local_option']
  1500.  */
  1501. $cfg['Import']['ldi_local_option'] = 'auto';
  1502.  
  1503. /**
  1504.  * Link to the official MySQL documentation.
  1505.  * Be sure to include no trailing slash on the path.
  1506.  * See http://dev.mysql.com/doc/ for more information
  1507.  * about MySQL manuals and their types.
  1508.  *
  1509.  * @global string $cfg['MySQLManualBase']
  1510.  */
  1511. $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
  1512.  
  1513. /**
  1514.  * Type of MySQL documentation:
  1515.  *   viewable   - "viewable online", current one used on MySQL website
  1516.  *   searchable - "Searchable, with user comments"
  1517.  *   chapters   - "HTML, one page per chapter"
  1518.  *   chapters_old - "HTML, one page per chapter", format used prior to MySQL 5.0 release
  1519.  *   big        - "HTML, all on one page"
  1520.  *   old        - old style used in phpMyAdmin 2.3.0 and sooner
  1521.  *   none       - do not show documentation links
  1522.  *
  1523.  * @global string $cfg['MySQLManualType']
  1524.  */
  1525. $cfg['MySQLManualType'] = 'viewable';
  1526.  
  1527.  
  1528. /*******************************************************************************
  1529.  * PDF options
  1530.  */
  1531.  
  1532. /**
  1533.  *
  1534.  *
  1535.  * @global array $cfg['PDFPageSizes']
  1536.  */
  1537. $cfg['PDFPageSizes'] = array('A3', 'A4', 'A5', 'letter', 'legal');
  1538.  
  1539. /**
  1540.  *
  1541.  *
  1542.  * @global string $cfg['PDFDefaultPageSize']
  1543.  */
  1544. $cfg['PDFDefaultPageSize'] = 'A4';
  1545.  
  1546.  
  1547. /*******************************************************************************
  1548.  * Language and character set conversion settings
  1549.  */
  1550.  
  1551. /**
  1552.  * Default language to use, if not browser-defined or user-defined
  1553.  *
  1554.  * @global string $cfg['DefaultLang']
  1555.  */
  1556. $cfg['DefaultLang'] = 'en-iso-8859-1';
  1557.  
  1558. /**
  1559.  * Default connection collation (used for MySQL >= 4.1)
  1560.  *
  1561.  * @global string $cfg['DefaultConnectionCollation']
  1562.  */
  1563. $cfg['DefaultConnectionCollation'] = 'utf8_unicode_ci';
  1564.  
  1565. /**
  1566.  * Force: always use this language - must be defined in
  1567.  *        libraries/select_lang.lib.php
  1568.  * $cfg['Lang'] = 'en-iso-8859-1';
  1569.  *
  1570.  * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and
  1571.  * English only
  1572.  *
  1573.  * @global string $cfg['FilterLanguages']
  1574.  */
  1575. $cfg['FilterLanguages'] = '';
  1576.  
  1577. /**
  1578.  * Default character set to use for recoding of MySQL queries, does not take
  1579.  * any effect when character sets recoding is switched off by
  1580.  * $cfg['AllowAnywhereRecoding'] or in language file
  1581.  * (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
  1582.  *
  1583.  * @global string $cfg['DefaultCharset']
  1584.  */
  1585. $cfg['DefaultCharset'] = 'iso-8859-1';
  1586.  
  1587. /**
  1588.  * Allow character set recoding of MySQL queries, must be also enabled in language
  1589.  * file to make harder using other language files than Unicode.
  1590.  * Default value is false to avoid problems on servers without the iconv
  1591.  * extension and where dl() is not supported
  1592.  *
  1593.  * @global boolean $cfg['AllowAnywhereRecoding']
  1594.  */
  1595. $cfg['AllowAnywhereRecoding'] = false;
  1596.  
  1597. /**
  1598.  * You can select here which functions will be used for character set conversion.
  1599.  * Possible values are:
  1600.  *      auto   - automatically use available one (first is tested iconv, then
  1601.  *               recode)
  1602.  *      iconv  - use iconv or libiconv functions
  1603.  *      recode - use recode_string function
  1604.  *
  1605.  * @global string $cfg['RecodingEngine']
  1606.  */
  1607. $cfg['RecodingEngine'] = 'auto';
  1608.  
  1609. /**
  1610.  * Specify some parameters for iconv used in character set conversion. See iconv
  1611.  * documentation for details:
  1612.  * http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
  1613.  *
  1614.  * @global string $cfg['IconvExtraParams']
  1615.  */
  1616. $cfg['IconvExtraParams'] = '//TRANSLIT';
  1617.  
  1618. /**
  1619.  * Available character sets for MySQL conversion. currently contains all which could
  1620.  * be found in lang/* files and few more.
  1621.  * Character sets will be shown in same order as here listed, so if you frequently
  1622.  * use some of these move them to the top.
  1623.  *
  1624.  * @global array $cfg['AvailableCharsets']
  1625.  */
  1626. $cfg['AvailableCharsets'] = array(
  1627.     'iso-8859-1',
  1628.     'iso-8859-2',
  1629.     'iso-8859-3',
  1630.     'iso-8859-4',
  1631.     'iso-8859-5',
  1632.     'iso-8859-6',
  1633.     'iso-8859-7',
  1634.     'iso-8859-8',
  1635.     'iso-8859-9',
  1636.     'iso-8859-10',
  1637.     'iso-8859-11',
  1638.     'iso-8859-12',
  1639.     'iso-8859-13',
  1640.     'iso-8859-14',
  1641.     'iso-8859-15',
  1642.     'windows-1250',
  1643.     'windows-1251',
  1644.     'windows-1252',
  1645.     'windows-1256',
  1646.     'windows-1257',
  1647.     'koi8-r',
  1648.     'big5',
  1649.     'gb2312',
  1650.     'utf-16',
  1651.     'utf-8',
  1652.     'utf-7',
  1653.     'x-user-defined',
  1654.     'euc-jp',
  1655.     'ks_c_5601-1987',
  1656.     'tis-620',
  1657.     'SHIFT_JIS'
  1658. );
  1659.  
  1660.  
  1661. /*******************************************************************************
  1662.  * Customization & design
  1663.  *
  1664.  * The graphical settings are now located in themes/theme-name/layout.inc.php
  1665.  */
  1666.  
  1667. /**
  1668.  * enable the left panel pointer
  1669.  * (used when LeftFrameLight is false)
  1670.  * see also LeftPointerColor
  1671.  * in layout.inc.php
  1672.  *
  1673.  * @global boolean $cfg['LeftPointerEnable']
  1674.  */
  1675. $cfg['LeftPointerEnable'] = true;
  1676.  
  1677. /**
  1678.  * enable the browse pointer
  1679.  * see also BrowsePointerColor
  1680.  * in layout.inc.php
  1681.  *
  1682.  * @global boolean $cfg['BrowsePointerEnable']
  1683.  */
  1684. $cfg['BrowsePointerEnable'] = true;
  1685.  
  1686. /**
  1687.  * enable the browse marker
  1688.  * see also BrowseMarkerColor
  1689.  * in layout.inc.php
  1690.  *
  1691.  * @global boolean $cfg['BrowseMarkerEnable']
  1692.  */
  1693. $cfg['BrowseMarkerEnable'] = true;
  1694.  
  1695. /**
  1696.  * textarea size (columns) in edit mode
  1697.  * (this value will be emphasized (*2) for SQL
  1698.  * query textareas and (*1.25) for query window)
  1699.  *
  1700.  * @global integer $cfg['TextareaCols']
  1701.  */
  1702. $cfg['TextareaCols'] = 40;
  1703.  
  1704. /**
  1705.  * textarea size (rows) in edit mode
  1706.  *
  1707.  * @global integer $cfg['TextareaRows']
  1708.  */
  1709. $cfg['TextareaRows'] = 7;
  1710.  
  1711. /**
  1712.  * double size of textarea size for LONGTEXT fields
  1713.  *
  1714.  * @global boolean $cfg['LongtextDoubleTextarea']
  1715.  */
  1716. $cfg['LongtextDoubleTextarea'] = true;
  1717.  
  1718. /**
  1719.  * auto-select when clicking in the textarea of the query-box
  1720.  *
  1721.  * @global boolean $cfg['TextareaAutoSelect']
  1722.  */
  1723. $cfg['TextareaAutoSelect'] = false;
  1724.  
  1725. /**
  1726.  * textarea size (columns) for CHAR/VARCHAR
  1727.  *
  1728.  * @global integer $cfg['CharTextareaCols']
  1729.  */
  1730. $cfg['CharTextareaCols'] = 40;
  1731.  
  1732. /**
  1733.  * textarea size (rows) for CHAR/VARCHAR
  1734.  *
  1735.  * @global integer $cfg['CharTextareaRows']
  1736.  */
  1737. $cfg['CharTextareaRows'] = 2;
  1738.  
  1739. /**
  1740.  * Enable Ctrl+Arrows moving between fields when editing?
  1741.  *
  1742.  * @global boolean $cfg['CtrlArrowsMoving']
  1743.  */
  1744. $cfg['CtrlArrowsMoving'] = true;
  1745.  
  1746. /**
  1747.  * Max field data length in browse mode for all non-numeric fields
  1748.  *
  1749.  * @global integer $cfg['LimitChars']
  1750.  */
  1751. $cfg['LimitChars'] = 50;
  1752.  
  1753. /**
  1754.  * show edit/delete links on left side of browse
  1755.  * (or at the top with vertical browse)
  1756.  *
  1757.  * @global boolean $cfg['ModifyDeleteAtLeft']
  1758.  */
  1759. $cfg['ModifyDeleteAtLeft'] = true;
  1760.  
  1761. /**
  1762.  * show edit/delete links on right side of browse
  1763.  * (or at the bottom with vertical browse)
  1764.  *
  1765.  * @global boolean $cfg['ModifyDeleteAtRight']
  1766.  */
  1767. $cfg['ModifyDeleteAtRight'] = false;
  1768.  
  1769. /**
  1770.  * default display direction (horizontal|vertical|horizontalflipped)
  1771.  *
  1772.  * @global string $cfg['DefaultDisplay']
  1773.  */
  1774. $cfg['DefaultDisplay'] = 'horizontal';
  1775.  
  1776. /**
  1777.  * default display direction for altering/creating columns (tbl_properties)
  1778.  * (horizontal|vertical|<number>)
  1779.  * number indicates maximal number for which vertical model is used
  1780.  *
  1781.  * @global integer $cfg['DefaultPropDisplay']
  1782.  */
  1783. $cfg['DefaultPropDisplay'] = 3;
  1784.  
  1785. /**
  1786.  * table-header rotation via faking or CSS? (css|fake)
  1787.  * NOTE: CSS only works in IE browsers!
  1788.  *
  1789.  * @global string $cfg['HeaderFlipType']
  1790.  */
  1791. $cfg['HeaderFlipType'] = 'css';
  1792.  
  1793. /**
  1794.  * shows stored relation-comments in 'browse' mode.
  1795.  *
  1796.  * @global boolean $cfg['ShowBrowseComments']
  1797.  */
  1798. $cfg['ShowBrowseComments'] = true;
  1799.  
  1800. /**
  1801.  * shows stored relation-comments in 'table property' mode.
  1802.  *
  1803.  * @global boolean $cfg['ShowPropertyComments']
  1804.  */
  1805. $cfg['ShowPropertyComments']= true;
  1806.  
  1807. /**
  1808.  * repeat header names every X cells? (0 = deactivate)
  1809.  *
  1810.  * @global integer $cfg['RepeatCells']
  1811.  */
  1812. $cfg['RepeatCells'] = 100;
  1813.  
  1814. /**
  1815.  * Set to true if Edit link should open the query to edit in the query window
  1816.  * (assuming JavaScript is enabled), and to false if we should edit in the right panel
  1817.  *
  1818.  * @global boolean $cfg['EditInWindow']
  1819.  */
  1820. $cfg['EditInWindow'] = true;
  1821.  
  1822. /**
  1823.  * Width of Query window
  1824.  *
  1825.  * @global integer $cfg['QueryWindowWidth']
  1826.  */
  1827. $cfg['QueryWindowWidth'] = 550;
  1828.  
  1829. /**
  1830.  * Height of Query window
  1831.  *
  1832.  * @global integer $cfg['QueryWindowHeight']
  1833.  */
  1834. $cfg['QueryWindowHeight'] = 310;
  1835.  
  1836. /**
  1837.  * Set to true if you want DB-based query history.If false, this utilizes
  1838.  * JS-routines to display query history (lost by window close)
  1839.  *
  1840.  * @global boolean $cfg['QueryHistoryDB']
  1841.  */
  1842. $cfg['QueryHistoryDB'] = false;
  1843.  
  1844. /**
  1845.  * which tab to display in the querywindow on startup
  1846.  * (sql|files|history|full)
  1847.  *
  1848.  * @global string $cfg['QueryWindowDefTab']
  1849.  */
  1850. $cfg['QueryWindowDefTab'] = 'sql';
  1851.  
  1852. /**
  1853.  * When using DB-based query history, how many entries should be kept?
  1854.  *
  1855.  * @global integer $cfg['QueryHistoryMax']
  1856.  */
  1857. $cfg['QueryHistoryMax'] = 25;
  1858.  
  1859. /**
  1860.  * Use MIME-Types (stored in column comments table) for
  1861.  *
  1862.  * @global boolean $cfg['BrowseMIME']
  1863.  */
  1864. $cfg['BrowseMIME'] = true;
  1865.  
  1866. /**
  1867.  * When approximate count < this, PMA will get exact count for table rows.
  1868.  *
  1869.  * @global integer $cfg['MaxExactCount']
  1870.  */
  1871. $cfg['MaxExactCount'] = 20000;
  1872.  
  1873. /**
  1874.  * Zero means that no row count is done for views; see the doc
  1875.  *
  1876.  * @global integer $cfg['MaxExactCountViews']
  1877.  */
  1878. $cfg['MaxExactCountViews'] = 0;
  1879.  
  1880. /**
  1881.  * Utilize DHTML/JS capabilities to allow WYSIWYG editing of
  1882.  * the PDF page editor. Requires an IE6/Gecko based browser.
  1883.  *
  1884.  * @global boolean $cfg['WYSIWYG-PDF']
  1885.  */
  1886. $cfg['WYSIWYG-PDF'] = true;
  1887.  
  1888. /**
  1889.  * Sort table and database in natural order
  1890.  *
  1891.  * @global boolean $cfg['NaturalOrder']
  1892.  */
  1893. $cfg['NaturalOrder'] = true;
  1894.  
  1895.  
  1896. //-----------------------------------------------------------------------------
  1897. // custom-setup by mkkeck: 2004-05-04
  1898. //    some specials for new icons and scrolling
  1899. /**
  1900.  * @todo 2004-05-08 rabus: We need to rearrange these variables.
  1901.  */
  1902.  
  1903.  
  1904. /*******************************************************************************
  1905.  * Window title settings
  1906.  */
  1907.  
  1908. /**
  1909.  * title of browser window when a table is selected
  1910.  *
  1911.  * @global string $cfg['TitleTable']
  1912.  */
  1913. $cfg['TitleTable'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ / @TABLE@ | @PHPMYADMIN@';
  1914.  
  1915. /**
  1916.  * title of browser window when a database is selected
  1917.  *
  1918.  * @global string $cfg['TitleDatabase']
  1919.  */
  1920. $cfg['TitleDatabase'] = '@HTTP_HOST@ / @VSERVER@ / @DATABASE@ | @PHPMYADMIN@';
  1921.  
  1922. /**
  1923.  * title of browser window when a server is selected
  1924.  *
  1925.  * @global string $cfg['TitleServer']
  1926.  */
  1927. $cfg['TitleServer'] = '@HTTP_HOST@ / @VSERVER@ | @PHPMYADMIN@';
  1928.  
  1929. /**
  1930.  * title of browser window when nothing is selected
  1931.  * @global string $cfg['TitleDefault']
  1932.  */
  1933. $cfg['TitleDefault'] = '@HTTP_HOST@ | @PHPMYADMIN@';
  1934.  
  1935. /**
  1936.  * show some icons for warning, error and information messages (true|false)?
  1937.  *
  1938.  * @global boolean $cfg['ErrorIconic']
  1939.  */
  1940. $cfg['ErrorIconic'] = true;
  1941.  
  1942. /**
  1943.  * show icons in list on main page and on menu tabs (true|false)?
  1944.  *
  1945.  * @global boolean $cfg['MainPageIconic']
  1946.  */
  1947. $cfg['MainPageIconic'] = true;
  1948.  
  1949. /**
  1950.  * show help button instead of strDocu (true|false)?
  1951.  *
  1952.  * @global boolean $cfg['ReplaceHelpImg']
  1953.  */
  1954. $cfg['ReplaceHelpImg'] = true;
  1955.  
  1956.  
  1957. /*******************************************************************************
  1958.  * theme manager
  1959.  */
  1960.  
  1961. /**
  1962.  * using themes manager please set up here the path to 'themes' else leave empty
  1963.  *
  1964.  * @global string $cfg['ThemePath']
  1965.  */
  1966. $cfg['ThemePath'] = './themes';
  1967.  
  1968. /**
  1969.  * if you want to use selectable themes and if ThemesPath not empty
  1970.  * set it to true, else set it to false (default is false);
  1971.  *
  1972.  * @global boolean $cfg['ThemeManager']
  1973.  */
  1974. $cfg['ThemeManager'] = true;
  1975.  
  1976. /**
  1977.  * set up default theme, if ThemePath not empty you can set up here an valid
  1978.  * path to themes or 'original' for the original pma-theme
  1979.  *
  1980.  * @global string $cfg['ThemeDefault']
  1981.  */
  1982. $cfg['ThemeDefault'] = 'original';
  1983.  
  1984. /**
  1985.  * allow different theme for each configured server
  1986.  *
  1987.  * @global boolean $cfg['ThemePerServer']
  1988.  */
  1989. $cfg['ThemePerServer'] = false;
  1990.  
  1991.  
  1992. /*******************************************************************************
  1993.  *
  1994.  */
  1995.  
  1996. /**
  1997.  * Default queries
  1998.  * %d will be replaced by the database name.
  1999.  * %t will be replaced by the table name.
  2000.  * %f will be replaced by a list of field names.
  2001.  * (%t and %f only applies to DefaultQueryTable)
  2002.  *
  2003.  * @global string $cfg['DefaultQueryTable']
  2004.  */
  2005. $cfg['DefaultQueryTable'] = 'SELECT * FROM %t WHERE 1';
  2006.  
  2007. /**
  2008.  * Default queries
  2009.  * %d will be replaced by the database name.
  2010.  * %t will be replaced by the table name.
  2011.  * %f will be replaced by a list of field names.
  2012.  * (%t and %f only applies to DefaultQueryTable)
  2013.  *
  2014.  * @global string $cfg['DefaultQueryDatabase']
  2015.  */
  2016. $cfg['DefaultQueryDatabase'] = '';
  2017.  
  2018.  
  2019. /*******************************************************************************
  2020.  * SQL Query box settings
  2021.  * These are the links display in all of the SQL Query boxes
  2022.  *
  2023.  * @global array $cfg['SQLQuery']
  2024.  */
  2025. $cfg['SQLQuery'] = array();
  2026.  
  2027. /**
  2028.  * Edit link to change a query
  2029.  *
  2030.  * @global boolean $cfg['SQLQuery']['Edit']
  2031.  */
  2032. $cfg['SQLQuery']['Edit'] = true;
  2033.  
  2034. /**
  2035.  * EXPLAIN on SELECT queries
  2036.  *
  2037.  * @global boolean $cfg['SQLQuery']['Explain']
  2038.  */
  2039. $cfg['SQLQuery']['Explain'] = true;
  2040.  
  2041. /**
  2042.  * Wrap a query in PHP
  2043.  *
  2044.  * @global boolean $cfg['SQLQuery']['ShowAsPHP']
  2045.  */
  2046. $cfg['SQLQuery']['ShowAsPHP'] = true;
  2047.  
  2048. /**
  2049.  * Validate a query (see $cfg['SQLValidator'] as well)
  2050.  *
  2051.  * @global boolean $cfg['SQLQuery']['Validate']
  2052.  */
  2053. $cfg['SQLQuery']['Validate'] = false;
  2054.  
  2055. /**
  2056.  * Refresh the results page
  2057.  *
  2058.  * @global boolean $cfg['SQLQuery']['Refresh']
  2059.  */
  2060. $cfg['SQLQuery']['Refresh'] = true;
  2061.  
  2062.  
  2063. /*******************************************************************************
  2064.  * Web server upload/save/import directories
  2065.  */
  2066.  
  2067. /**
  2068.  * Directory for uploaded files that can be executed by phpMyAdmin.
  2069.  * For example './upload'. Leave empty for no upload directory support.
  2070.  * Use %u for username inclusion.
  2071.  *
  2072.  * @global string $cfg['UploadDir']
  2073.  */
  2074. $cfg['UploadDir'] = '';
  2075.  
  2076. /**
  2077.  * Directory where phpMyAdmin can save exported data on server.
  2078.  * For example './save'. Leave empty for no save directory support.
  2079.  * Use %u for username inclusion.
  2080.  *
  2081.  * @global string $cfg['SaveDir']
  2082.  */
  2083. $cfg['SaveDir'] = '';
  2084.  
  2085. /**
  2086.  * Directory where phpMyAdmin can save temporary files.
  2087.  * This is needed for MS Excel export, see documentation how to enable that.
  2088.  *
  2089.  * @global string $cfg['TempDir']
  2090.  */
  2091. $cfg['TempDir'] = '';
  2092.  
  2093.  
  2094. /**
  2095.  * Misc. settings
  2096.  */
  2097.  
  2098. /**
  2099.  * Is GD >= 2 available? Set to yes/no/auto. 'auto' does auto-detection,
  2100.  * which is a bit expensive for PHP < 4.3.0, but it is the only safe way how to
  2101.  * determine GD version.
  2102.  *
  2103.  * @global string $cfg['GD2Available']
  2104.  */
  2105. $cfg['GD2Available'] = 'auto';
  2106.  
  2107. /**
  2108.  * List of trusted proxies for IP allow/deny
  2109.  *
  2110.  * @global array $cfg['TrustedProxies']
  2111.  */
  2112. $cfg['TrustedProxies'] = array();
  2113.  
  2114.  
  2115. /*******************************************************************************
  2116.  * SQL Parser Settings
  2117.  *
  2118.  * @global array $cfg['SQP']
  2119.  */
  2120. $cfg['SQP'] = array();
  2121.  
  2122. /**
  2123.  * Pretty-printing style to use on queries (html, text, none)
  2124.  *
  2125.  * @global string $cfg['SQP']['fmtType']
  2126.  */
  2127. $cfg['SQP']['fmtType'] = 'html';
  2128.  
  2129. /**
  2130.  * Amount to indent each level (floats are valid)
  2131.  *
  2132.  * @global integer $cfg['SQP']['fmtInd']
  2133.  */
  2134. $cfg['SQP']['fmtInd'] = '1';
  2135.  
  2136. /**
  2137.  * Units for indenting each level (CSS Types - {em, px, pt})
  2138.  *
  2139.  * @global string $cfg['SQP']['fmtIndUnit']
  2140.  */
  2141. $cfg['SQP']['fmtIndUnit'] = 'em';
  2142.  
  2143.  
  2144. /*******************************************************************************
  2145.  * If you wish to use the SQL Validator service, you should be aware of the
  2146.  * following:
  2147.  * All SQL statements are stored anonymously for statistical purposes.
  2148.  * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
  2149.  * All rights reserved.
  2150.  *
  2151.  * @global array $cfg['SQLValidator']
  2152.  */
  2153. $cfg['SQLValidator'] = array();
  2154.  
  2155. /**
  2156.  * Make the SQL Validator available
  2157.  *
  2158.  * @global boolean $cfg['SQLValidator']['use']
  2159.  */
  2160. $cfg['SQLValidator']['use'] = false;
  2161.  
  2162. /**
  2163.  * If you have a custom username, specify it here (defaults to anonymous)
  2164.  *
  2165.  * @global string $cfg['SQLValidator']['username']
  2166.  */
  2167. $cfg['SQLValidator']['username'] = '';
  2168.  
  2169. /**
  2170.  * Password for username
  2171.  *
  2172.  * @global string $cfg['SQLValidator']['password']
  2173.  */
  2174. $cfg['SQLValidator']['password'] = '';
  2175.  
  2176.  
  2177. /*******************************************************************************
  2178.  * Developers ONLY!
  2179.  * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
  2180.  *
  2181.  * @global array $cfg['DBG']
  2182.  */
  2183. $cfg['DBG'] = array();
  2184.  
  2185. /**
  2186.  * Make the DBG stuff available
  2187.  *
  2188.  * @global boolean $cfg['DBG']['enable']
  2189.  */
  2190. $cfg['DBG']['enable'] = false;
  2191.  
  2192. /**
  2193.  * Produce profiling results of PHP
  2194.  *
  2195.  * @global boolean $cfg['DBG']['profile']['enable']
  2196.  */
  2197. $cfg['DBG']['profile']['enable'] = false;
  2198.  
  2199. /**
  2200.  * Threshold of long running code to display
  2201.  * Anything below the threshold is not displayed
  2202.  *
  2203.  * @global float $cfg['DBG']['profile']['threshold']
  2204.  */
  2205. $cfg['DBG']['profile']['threshold'] = 0.5;
  2206.  
  2207.  
  2208. /*******************************************************************************
  2209.  * MySQL settings
  2210.  */
  2211.  
  2212. /**
  2213.  * Column types;
  2214.  * VARCHAR, TINYINT, TEXT and DATE are listed first, based on estimated popularity
  2215.  *
  2216.  * @global array $cfg['ColumnTypes']
  2217.  */
  2218. $cfg['ColumnTypes'] = array(
  2219.    'VARCHAR',
  2220.    'TINYINT',
  2221.    'TEXT',
  2222.    'DATE',
  2223.    'SMALLINT',
  2224.    'MEDIUMINT',
  2225.    'INT',
  2226.    'BIGINT',
  2227.    'FLOAT',
  2228.    'DOUBLE',
  2229.    'DECIMAL',
  2230.    'DATETIME',
  2231.    'TIMESTAMP',
  2232.    'TIME',
  2233.    'YEAR',
  2234.    'CHAR',
  2235.    'TINYBLOB',
  2236.    'TINYTEXT',
  2237.    'BLOB',
  2238.    'MEDIUMBLOB',
  2239.    'MEDIUMTEXT',
  2240.    'LONGBLOB',
  2241.    'LONGTEXT',
  2242.    'ENUM',
  2243.    'SET',
  2244.    'BIT',
  2245.    'BOOL'
  2246. );
  2247.  
  2248. /**
  2249.  * Attributes
  2250.  * Note: the "ON UPDATE CURRENT_TIMESTAMP" attribute is added dynamically
  2251.  * for MySQL >= 4.1.2, in libraries/tbl_properties.inc.php
  2252.  *
  2253.  * @global array $cfg['AttributeTypes']
  2254.  */
  2255. $cfg['AttributeTypes'] = array(
  2256.    '',
  2257.    'BINARY',
  2258.    'UNSIGNED',
  2259.    'UNSIGNED ZEROFILL'
  2260. );
  2261.  
  2262.  
  2263. if ($cfg['ShowFunctionFields']) {
  2264.     /**
  2265.      * Available functions
  2266.      *
  2267.      * @global array $cfg['Functions']
  2268.      */
  2269.     $cfg['Functions'] = array(
  2270.        'ASCII',
  2271.        'CHAR',
  2272.        'SOUNDEX',
  2273.        'LCASE',
  2274.        'UCASE',
  2275.        'NOW',
  2276.        'PASSWORD',
  2277.        'OLD_PASSWORD',
  2278.        'MD5',
  2279.        'SHA1',
  2280.        'ENCRYPT',
  2281.        'COMPRESS',
  2282.        'UNCOMPRESS',
  2283.        'RAND',
  2284.        'LAST_INSERT_ID',
  2285.        'COUNT',
  2286.        'AVG',
  2287.        'SUM',
  2288.        'CURDATE',
  2289.        'CURTIME',
  2290.        'UTC_DATE',
  2291.        'UTC_TIME',
  2292.        'UTC_TIMESTAMP',
  2293.        'FROM_DAYS',
  2294.        'FROM_UNIXTIME',
  2295.        'PERIOD_ADD',
  2296.        'PERIOD_DIFF',
  2297.        'TO_DAYS',
  2298.        'UNIX_TIMESTAMP',
  2299.        'USER',
  2300.        'WEEKDAY',
  2301.        'CONCAT',
  2302.        'HEX',
  2303.        'UNHEX'
  2304.     );
  2305.  
  2306.     /**
  2307.      * Which column types will be mapped to which Group?
  2308.      *
  2309.      * @global array $cfg['RestrictColumnTypes']
  2310.      */
  2311.     $cfg['RestrictColumnTypes'] = array(
  2312.        'VARCHAR' => 'FUNC_CHAR',
  2313.        'TINYINT' => 'FUNC_NUMBER',
  2314.        'TEXT' => 'FUNC_CHAR',
  2315.        'DATE' => 'FUNC_DATE',
  2316.        'SMALLINT' => 'FUNC_NUMBER',
  2317.        'MEDIUMINT' => 'FUNC_NUMBER',
  2318.        'INT' => 'FUNC_NUMBER',
  2319.        'BIGINT' => 'FUNC_NUMBER',
  2320.        'FLOAT' => 'FUNC_NUMBER',
  2321.        'DOUBLE' => 'FUNC_NUMBER',
  2322.        'DECIMAL' => 'FUNC_NUMBER',
  2323.        'DATETIME' => 'FUNC_DATE',
  2324.        'TIMESTAMP' => 'FUNC_DATE',
  2325.        'TIME' => 'FUNC_DATE',
  2326.        'YEAR' => 'FUNC_DATE',
  2327.        'CHAR' => 'FUNC_CHAR',
  2328.        'TINYBLOB' => 'FUNC_CHAR',
  2329.        'TINYTEXT' => 'FUNC_CHAR',
  2330.        'BLOB' => 'FUNC_CHAR',
  2331.        'MEDIUMBLOB' => 'FUNC_CHAR',
  2332.        'MEDIUMTEXT' => 'FUNC_CHAR',
  2333.        'LONGBLOB' => 'FUNC_CHAR',
  2334.        'LONGTEXT' => 'FUNC_CHAR',
  2335.        'ENUM' => '',
  2336.        'SET' => ''
  2337.     );
  2338.  
  2339.     /**
  2340.      * Map above defined groups to any function
  2341.      *
  2342.      * @global array $cfg['RestrictFunctions']
  2343.      */
  2344.     $cfg['RestrictFunctions'] = array(
  2345.         'FUNC_CHAR' => array(
  2346.             'ASCII',
  2347.             'CHAR',
  2348.             'SOUNDEX',
  2349.             'LCASE',
  2350.             'UCASE',
  2351.             'PASSWORD',
  2352.             'OLD_PASSWORD',
  2353.             'MD5',
  2354.             'SHA1',
  2355.             'ENCRYPT',
  2356.             'COMPRESS',
  2357.             'UNCOMPRESS',
  2358.             'LAST_INSERT_ID',
  2359.             'USER',
  2360.             'CONCAT',
  2361.             'HEX',
  2362.             'UNHEX'
  2363.         ),
  2364.  
  2365.         'FUNC_DATE' => array(
  2366.             'NOW',
  2367.             'CURDATE',
  2368.             'CURTIME',
  2369.             'FROM_DAYS',
  2370.             'FROM_UNIXTIME',
  2371.             'PERIOD_ADD',
  2372.             'PERIOD_DIFF',
  2373.             'TO_DAYS',
  2374.             'UNIX_TIMESTAMP',
  2375.             'UTC_DATE',
  2376.             'UTC_TIME',
  2377.             'UTC_TIMESTAMP',
  2378.             'WEEKDAY'
  2379.         ),
  2380.  
  2381.         'FUNC_NUMBER' => array(
  2382.             'ASCII',
  2383.             'CHAR',
  2384.             'MD5',
  2385.             'SHA1',
  2386.             'ENCRYPT',
  2387.             'RAND',
  2388.             'LAST_INSERT_ID',
  2389.             'UNIX_TIMESTAMP',
  2390.             'COUNT',
  2391.             'AVG',
  2392.             'SUM'
  2393.         )
  2394.     );
  2395.  
  2396.     /**
  2397.      * Default functions for above defined groups
  2398.      *
  2399.      * @global array $cfg['DefaultFunctions']
  2400.      */
  2401.     $cfg['DefaultFunctions'] = array(
  2402.         'FUNC_CHAR' => '',
  2403.         'FUNC_DATE' => '',
  2404.         'FUNC_NUMBER' => '',
  2405.         'first_timestamp' => 'NOW'
  2406.     );
  2407.  
  2408.  
  2409. } // end if
  2410.  
  2411. /**
  2412.  * Search operators
  2413.  *
  2414.  * @global array $cfg['NumOperators']
  2415.  */
  2416. $cfg['NumOperators'] = array(
  2417.    '=',
  2418.    '>',
  2419.    '>=',
  2420.    '<',
  2421.    '<=',
  2422.    '!=',
  2423.    'LIKE',
  2424.    'NOT LIKE'
  2425. );
  2426.  
  2427. /**
  2428.  * Search operators
  2429.  *
  2430.  * @global array $cfg['TextOperators']
  2431.  */
  2432. $cfg['TextOperators'] = array(
  2433.    'LIKE',
  2434.    'LIKE %...%',
  2435.    'NOT LIKE',
  2436.    '=',
  2437.    '!=',
  2438.    'REGEXP',
  2439.    'NOT REGEXP'
  2440. );
  2441.  
  2442. /**
  2443.  * Search operators
  2444.  *
  2445.  * @global array $cfg['EnumOperators']
  2446.  */
  2447. $cfg['EnumOperators'] = array(
  2448.    '=',
  2449.    '!='
  2450. );
  2451.  
  2452. /**
  2453.  * Search operators
  2454.  *
  2455.  * @global array $cfg['SetOperators']
  2456.  */
  2457. $cfg['SetOperators'] = array(
  2458.    'IN',
  2459.    'NOT IN'
  2460. );
  2461.  
  2462. /**
  2463.  * Search operators
  2464.  *
  2465.  * @global array $cfg['NullOperators']
  2466.  */
  2467. $cfg['NullOperators'] = array(
  2468.    'IS NULL',
  2469.    'IS NOT NULL'
  2470. );
  2471.  
  2472. /**
  2473.  * Search operators
  2474.  *
  2475.  * @global array $cfg['UnaryOperators']
  2476.  */
  2477. $cfg['UnaryOperators'] = array(
  2478.    'IS NULL' => 1,
  2479.    'IS NOT NULL' => 1
  2480. );
  2481.  
  2482. ?>
  2483.