home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / config.default < prev    next >
Encoding:
Text File  |  2004-06-30  |  34.4 KB  |  760 lines

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