home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 June / ENTER.ISO / files / xampp-win32-1.4.5-installer.exe / xampp / config.inc.php < prev    next >
Encoding:
PHP Script  |  2004-06-08  |  34.0 KB  |  756 lines

  1. <?php
  2. /* $Id: config.inc.php,v 1.198 2003/08/05 14:08:22 nijel Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5. /**
  6.  * phpMyAdmin Configuration File
  7.  *
  8.  * All directives are explained in Documentation.html
  9.  */
  10.  
  11.  
  12. /**
  13.  * Sets the php error reporting - Please do not change this line!
  14.  */
  15. if (!isset($old_error_reporting)) {
  16.     error_reporting(E_ALL);
  17.     @ini_set('display_errors', '1');
  18. }
  19.  
  20.  
  21. /**
  22.  * Your phpMyAdmin url
  23.  *
  24.  * Complete the variable below with the full url ie
  25.  *    http://www.your_web.net/path_to_your_phpMyAdmin_directory/
  26.  *
  27.  * It must contain characters that are valid for a URL, and the path is
  28.  * case sensitive on some Web servers, for example Unix-based servers.
  29.  *
  30.  * In most cases you can leave this variable empty, as the correct value
  31.  * will be detected automatically. However, we recommend that you do
  32.  * test to see that the auto-detection code works in your system. A good
  33.  * test is to browse a table, then edit a row and save it.  There will be
  34.  * an error message if phpMyAdmin cannot auto-detect the correct value.
  35.  *
  36.  * If the auto-detection code does work properly, you can set to TRUE the
  37.  * $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
  38.  */
  39.  
  40. $cfg['PmaAbsoluteUri'] = '';
  41. /* change this for your security into 'http://IP|FQDN/phpmyadmin */
  42.  
  43. /**
  44.  * Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
  45.  * You should use this if and ONLY if the PmaAbsoluteUri auto-detection
  46.  * works perfectly.
  47.  */
  48. $cfg['PmaAbsoluteUri_DisableWarning'] = TRUE;
  49.  
  50. /**
  51.  * Disable the default warning that is displayed on the DB Details Structure page if
  52.  * any of the required Tables for the relationfeatures could not be found
  53.  */
  54. $cfg['PmaNoRelation_DisableWarning']  = FALSE;
  55.  
  56. /**
  57.  * The 'cookie' auth_type uses blowfish algorithm to encrypt the password.
  58.  * If at least one server configuration uses 'cookie' auth_type,
  59.  * enter here a passphrase that will be used by blowfish.
  60.  */
  61. $cfg['blowfish_secret'] = ''; // $cfg['blowfish_secret'] = 'password';
  62.  
  63. /**
  64.  * Server(s) configuration
  65.  */
  66. $i = 0;
  67. // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
  68. // You can disable a server config entry by setting host to ''.
  69. $i++;
  70. $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
  71. $cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
  72. $cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
  73. $cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
  74. $cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
  75.                                                     // (requires PHP >= 4.3.0)
  76. $cfg['Servers'][$i]['controluser']   = 'pma';          // MySQL control user settings
  77.                                                     // (this user must have read-only
  78. $cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
  79.                                                     // and "mysql/db" tables)
  80. $cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
  81. $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
  82. $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
  83.                                                     // with 'config' auth_type)
  84. $cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
  85.                                                     // this db is displayed
  86.                                                     // at left frame
  87.                                                     // It may also be an array
  88.                                                     // of db-names
  89. $cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname
  90.  
  91. $cfg['Servers'][$i]['pmadb']         = 'phpmyadmin';          // 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'] = 'PMA_bookmark';          // Bookmark table
  96.                                                     //   - leave blank for no bookmark support
  97.                                                     //     DEFAULT: 'PMA_bookmark'
  98. $cfg['Servers'][$i]['relation']      = 'PMA_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']    = 'PMA_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']  = 'PMA_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']     = 'PMA_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']   = 'PMA_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']       = 'PMA_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.  
  209. // Left frame setup
  210. $cfg['LeftFrameLight']        = TRUE;   // use a select-based menu and display only the
  211.                                         // current tables in the left frame.
  212. $cfg['LeftFrameTableSeparator']= '__';  // Which string will be used to generate table prefixes
  213.                                         // to split tables into multiple categories
  214. $cfg['LeftFrameTableLevel']   = '1';    // How many sublevels should be displayed when splitting
  215.                                         // up tables by the above Separator
  216. $cfg['ShowTooltip']           = TRUE;   // display table comment as tooltip in left frame
  217. $cfg['ShowTooltipAliasDB']    = FALSE;  // if ShowToolTip is enabled, this defines that table/db comments
  218. $cfg['ShowTooltipAliasTB']    = FALSE;  // are shown (in the left menu and db_details_structure) instead of
  219.                                         // table/db names
  220.  
  221. $cfg['LeftDisplayLogo']       = TRUE;   // display logo at top of left frame
  222. $cfg['LeftDisplayServers']    = FALSE;  // display server choice at top of left frame
  223.  
  224. // In the main frame, at startup...
  225. $cfg['ShowStats']             = TRUE;   // allow to display statistics and space usage in
  226.                                         // the pages about database details and table
  227.                                         // properties
  228. $cfg['ShowMysqlInfo']         = FALSE;  // whether to display the "MySQL runtime
  229. $cfg['ShowMysqlVars']         = FALSE;  // information", "MySQL system variables", "PHP
  230. $cfg['ShowPhpInfo']           = FALSE;  // information" and "change password" links for
  231. $cfg['ShowChgPassword']       = FALSE;  // simple users or not
  232. $cfg['SuggestDBName']         = TRUE;   // suggest a new DB name if possible (false = keep empty)
  233.  
  234. // In browse mode...
  235. $cfg['ShowBlob']              = FALSE;  // display blob field contents
  236. $cfg['NavigationBarIconic']   = TRUE;   // do not display text inside navigation bar buttons
  237. $cfg['ShowAll']               = FALSE;  // allows to display all the rows
  238. $cfg['MaxRows']               = 30;     // maximum number of rows to display
  239. $cfg['Order']                 = 'ASC';  // default for 'ORDER BY' clause (valid
  240.                                         // values are 'ASC', 'DESC' or 'SMART' -ie
  241.                                         // descending order for fields of type
  242.                                         // TIME, DATE, DATETIME & TIMESTAMP,
  243.                                         // ascending order else-)
  244.  
  245. // In edit mode...
  246. $cfg['ProtectBinary']         = 'blob'; // disallow editing of binary fields
  247.                                         // valid values are:
  248.                                         //   FALSE  allow editing
  249.                                         //   'blob' allow editing except for BLOB fields
  250.                                         //   'all'  disallow editing
  251. $cfg['ShowFunctionFields']    = TRUE;   // Display the function fields in edit/insert mode
  252. $cfg['CharEditing']           = 'input';
  253.                                         // Which editor should be used for CHAR/VARCHAR fields:
  254.                                         //  input - allows limiting of input length
  255.                                         //  textarea - allows newlines in fields
  256.  
  257. // For the export features...
  258. $cfg['ZipDump']               = TRUE;   // Allow the use of zip/gzip/bzip
  259. $cfg['GZipDump']              = TRUE;   // compression for
  260. $cfg['BZipDump']              = TRUE;   // dump files
  261.  
  262. // Tabs display settings
  263. $cfg['LightTabs']             = FALSE;  // use graphically less intense menu tabs
  264. $cfg['PropertiesIconic']      = TRUE;   // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')
  265. $cfg['PropertiesNumColumns']  = 1;      // How many columns should be used for table display of a database?
  266.                                         // (a value larger than 1 results in some information being hidden)
  267.  
  268. $cfg['DefaultTabServer']      = 'main.php';
  269.                                    // Possible values:
  270.                                    // 'main.php' = the welcome page
  271.                                    // (recommended for multiuser setups)
  272.                                    // 'server_databases.php' = list of databases
  273.                                    // 'server_status.php' = runtime information
  274.                                    // 'server_variables.php' = MySQL server variables
  275.                                    // 'server_privileges.php' = user management
  276.                                    // 'server_processlist.php' = process list
  277. $cfg['DefaultTabDatabase']    = 'db_details_structure.php';
  278.                                    // Possible values:
  279.                                    // 'db_details_structure.php' = tables list
  280.                                    // 'db_details.php' = sql form
  281.                                    // 'db_search.php' = search query
  282. $cfg['DefaultTabTable']       = 'tbl_properties_structure.php';
  283.                                    // Possible values:
  284.                                    // 'tbl_properties_structure.php' = fields list
  285.                                    // 'tbl_properties.php' = sql form
  286.                                    // 'tbl_select.php = select page
  287.                                    // 'tbl_change.php = insert row page
  288.  
  289. /**
  290.  * Export defaults
  291.  */
  292.  
  293. $cfg['Export']['format']                    = 'sql';  // sql/latex/excel/csv/xml
  294. $cfg['Export']['compression']               = 'none'; // none/zip/gzip/bzip2
  295.  
  296. $cfg['Export']['asfile']                    = FALSE;
  297. $cfg['Export']['onserver']                  = FALSE;
  298. $cfg['Export']['onserver_overwrite']        = FALSE;
  299. $cfg['Export']['remember_file_template']    = TRUE;
  300.  
  301. $cfg['Export']['csv_columns']               = FALSE;
  302. $cfg['Export']['csv_null']                  = 'NULL';
  303. $cfg['Export']['csv_separator']             = ';';
  304. $cfg['Export']['csv_enclosed']              = '"';
  305. $cfg['Export']['csv_escaped']               = '\\';
  306. $cfg['Export']['csv_terminated']            = 'AUTO';
  307. $cfg['Export']['excel_columns']             = FALSE;
  308. $cfg['Export']['excel_null']                = 'NULL';
  309. $cfg['Export']['excel_edition']             = 'win'; // win/mac
  310.  
  311. $cfg['Export']['latex_structure']           = TRUE;
  312. $cfg['Export']['latex_data']                = TRUE;
  313. $cfg['Export']['latex_columns']             = TRUE;
  314. $cfg['Export']['latex_relation']            = TRUE;
  315. $cfg['Export']['latex_comments']            = TRUE;
  316. $cfg['Export']['latex_mime']                = TRUE;
  317. $cfg['Export']['latex_null']                = '\textit{NULL}';
  318. $cfg['Export']['latex_caption']             = TRUE;
  319. $cfg['Export']['latex_data_label']          = 'tab:__TABLE__-data';
  320. $cfg['Export']['latex_structure_label']     = 'tab:__TABLE__-structure';
  321.  
  322. $cfg['Export']['sql_structure']             = TRUE;
  323. $cfg['Export']['sql_data']                  = TRUE;
  324. $cfg['Export']['sql_drop_database']         = FALSE;
  325. $cfg['Export']['sql_drop_table']            = FALSE;
  326. $cfg['Export']['sql_auto_increment']        = TRUE;
  327. $cfg['Export']['sql_backquotes']            = TRUE;
  328. $cfg['Export']['sql_dates']                 = FALSE;
  329. $cfg['Export']['sql_relation']              = FALSE;
  330. $cfg['Export']['sql_columns']               = FALSE;
  331. $cfg['Export']['sql_delayed']               = FALSE;
  332. $cfg['Export']['sql_type']                  = 'insert'; // insert/update/replace
  333. $cfg['Export']['sql_extended']              = FALSE;
  334. $cfg['Export']['sql_comments']              = FALSE;
  335. $cfg['Export']['sql_mime']                  = FALSE;
  336.  
  337. /**
  338.  * Link to the official MySQL documentation.
  339.  * Be sure to include no trailing slash on the path.
  340.  * See http://www.mysql.com/documentation/index.html for more information
  341.  * about MySQL manuals and their types.
  342.  */
  343. $cfg['MySQLManualBase'] = 'http://www.mysql.com/doc/en';
  344.  
  345. /**
  346.  * Type of MySQL documentation:
  347.  *   old        - old style used in phpMyAdmin 2.3.0 and sooner
  348.  *   searchable - "Searchable, with user comments"
  349.  *   chapters   - "HTML, one page per chapter"
  350.  *   big        - "HTML, all on one page"
  351.  *   none       - do not show documentation links
  352.  */
  353. $cfg['MySQLManualType'] = 'searchable';
  354.  
  355.  
  356. /**
  357.  * PDF options
  358.  */
  359. $cfg['PDFPageSizes']        = array('A3', 'A4', 'A5', 'letter', 'legal');
  360. $cfg['PDFDefaultPageSize']  = 'A4';
  361.  
  362.  
  363. /**
  364.  * Language and charset conversion settings
  365.  */
  366. // Default language to use, if not browser-defined or user-defined
  367. $cfg['DefaultLang'] = 'en-iso-8859-1';
  368.  
  369. // Force: always use this language - must be defined in
  370. //        libraries/select_lang.lib.php
  371. // $cfg['Lang']     = 'en-iso-8859-1';
  372.  
  373. // Default charset to use for recoding of MySQL queries, does not take
  374. // any effect when charsets recoding is switched off by
  375. // $cfg['AllowAnywhereRecoding'] or in language file
  376. // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
  377. $cfg['DefaultCharset'] = 'iso-8859-1';
  378.  
  379. // Allow charset recoding of MySQL queries, must be also enabled in language
  380. // file to make harder using other language files than unicode.
  381. // Default value is FALSE to avoid problems on servers without the iconv
  382. // extension and where dl() is not supported
  383. $cfg['AllowAnywhereRecoding'] = FALSE;
  384.  
  385. // You can select here which functions will be used for charset conversion.
  386. // Possible values are:
  387. //      auto   - automatically use available one (first is tested iconv, then
  388. //               recode)
  389. //      iconv  - use iconv or libiconv functions
  390. //      recode - use recode_string function
  391. $cfg['RecodingEngine'] = 'auto';
  392.  
  393. // Specify some parameters for iconv used in charset conversion. See iconv
  394. // documentation for details:
  395. // http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html 
  396. $cfg['IconvExtraParams'] = '';
  397.  
  398. // Available charsets for MySQL conversion. currently contains all which could
  399. // be found in lang/* files and few more.
  400. // Charsets will be shown in same order as here listed, so if you frequently
  401. // use some of these move them to the top.
  402. $cfg['AvailableCharsets'] = array(
  403.     'iso-8859-1',
  404.     'iso-8859-2',
  405.     'iso-8859-3',
  406.     'iso-8859-4',
  407.     'iso-8859-5',
  408.     'iso-8859-6',
  409.     'iso-8859-7',
  410.     'iso-8859-8',
  411.     'iso-8859-9',
  412.     'iso-8859-10',
  413.     'iso-8859-11',
  414.     'iso-8859-12',
  415.     'iso-8859-13',
  416.     'iso-8859-14',
  417.     'iso-8859-15',
  418.     'windows-1250',
  419.     'windows-1251',
  420.     'windows-1252',
  421.     'windows-1256',
  422.     'windows-1257',
  423.     'koi8-r',
  424.     'big5',
  425.     'gb2312',
  426.     'utf-8',
  427.     'utf-7',
  428.     'x-user-defined',
  429.     'euc-jp',
  430.     'ks_c_5601-1987',
  431.     'tis-620',
  432.     'SHIFT_JIS'
  433. );
  434.  
  435. // Loads language file
  436. require('./libraries/select_lang.lib.php');
  437.  
  438.  
  439. /**
  440.  * Customization & design
  441.  */
  442. $cfg['LeftWidth']           = 150;          // left frame width
  443. $cfg['LeftBgColor']         = '#D0DCE0';    // background color for the left frame
  444. $cfg['RightBgColor']        = '#F5F5F5';    // background color for the right frame
  445. $cfg['RightBgImage']        = '';           // path to a background image for the right frame
  446.                                             // (leave blank for no background image)
  447. $cfg['LeftPointerColor']    = '#CCFFCC';    // color of the pointer in left frame
  448.                                             // (blank for no pointer)
  449. $cfg['Border']              = 0;            // border width on tables
  450. $cfg['ThBgcolor']           = '#D3DCE3';    // table header row colour
  451. $cfg['BgcolorOne']          = '#CCCCCC';    // table data row colour
  452. $cfg['BgcolorTwo']          = '#DDDDDD';    // table data row colour, alternate
  453. $cfg['BrowsePointerColor']  = '#CCFFCC';    // color of the pointer in browse mode
  454.                                             // (blank for no pointer)
  455. $cfg['BrowseMarkerColor']   = '#FFCC99';    // color of the marker (visually marks row
  456.                                             // by clicking on it) in browse mode
  457.                                             // (blank for no marker)
  458. $cfg['TextareaCols']        = 40;           // textarea size (columns) in edit mode
  459.                                             // (this value will be emphasized (*2) for sql
  460.                                             // query textareas and (*1.25) for query window)
  461. $cfg['TextareaRows']        = 7;            // textarea size (rows) in edit mode
  462. $cfg['LongtextDoubleTextarea'] = TRUE;      // double size of textarea size for longtext fields
  463. $cfg['TextareaAutoSelect']  = TRUE;         // autoselect when clicking in the textarea of the querybox
  464. $cfg['CharTextareaCols']    = 40;           // textarea size (columns) for CHAR/VARCHAR
  465. $cfg['CharTextareaRows']    = 2;            // textarea size (rows) for CHAR/VARCHAR
  466. $cfg['CtrlArrowsMoving']    = TRUE;         // Enable Ctrl+Arrows moving between fields when editing?
  467. $cfg['LimitChars']          = 50;           // Max field data length in browse mode for all non-numeric fields
  468. $cfg['ModifyDeleteAtLeft']  = TRUE;         // show edit/delete links on left side of browse
  469.                                             // (or at the top with vertical browse)
  470. $cfg['ModifyDeleteAtRight'] = FALSE;        // show edit/delete links on right side of browse
  471.                                             // (or at the bottom with vertical browse)
  472. $cfg['DefaultDisplay']      = 'horizontal'; // default display direction
  473.                                             // (horizontal|vertical|horizontalflipped)
  474. $cfg['DefaultPropDisplay']  = 'horizontal'; // default display direction for altering/
  475.                                             // creating columns (tbl_properties)
  476.                                             // (horizontal|vertical)
  477.  
  478. $cfg['HeaderFlipType']      = 'css';        // table-header rotation via faking or css? (css|fake)
  479.                                             // NOTE: CSS only works in IE browsers!
  480. $cfg['ShowBrowseComments']  = TRUE;         // shows stored relation-comments in 'browse' mode.
  481. $cfg['ShowPropertyComments']= TRUE;         // shows stored relation-comments in 'table property' mode.
  482. $cfg['RepeatCells']         = 100;          // repeat header names every X cells? (0 = deactivate)
  483.  
  484. $cfg['QueryFrame']          = TRUE;         // displays a new frame where a link to a querybox is always displayed.
  485. $cfg['QueryFrameJS']        = TRUE;         // whether to use JavaScript functions for opening a new window for SQL commands.
  486.                                             // if set to 'false', the target of the querybox is always the right frame.
  487. $cfg['QueryFrameDebug']     = FALSE;        // display JS debugging link (DEVELOPERS only)
  488. $cfg['QueryWindowWidth']    = 550;          // Width of Query window
  489. $cfg['QueryWindowHeight']   = 310;          // Height of Query window
  490. $cfg['QueryHistoryDB']      = FALSE;         // Set to TRUE if you want DB-based query history.
  491.                                             // If FALSE, this utilizes JS-routines to display
  492.                                             // query history (lost by window close)
  493. $cfg['QueryWindowDefTab']   = 'sql';        // which tab to display in the querywindow on startup
  494.                                             // (sql|files|history|full)
  495. $cfg['QueryHistoryMax']     = 25;           // When using DB-based query history, how many entries
  496.                                             // should be kept?
  497. $cfg['BrowseMIME']          = TRUE;         // Use MIME-Types (stored in column comments table) for
  498. $cfg['MaxExactCount']       = 20000;        // When approximate count < this, PMA will get exact count for
  499.                                             // table rows.
  500. $cfg['WYSIWYG-PDF']         = TRUE;         // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
  501.                                             // the PDF page editor. Requires an IE6/Mozilla based browser.
  502. /**
  503.  * Default queries.
  504.  *  %d will be replaced by database name
  505.  *  %t will be replaced by table name
  506.  */
  507. $cfg['DefaultQueryTable']   = 'SELECT * FROM %t WHERE 1';
  508. $cfg['DefaultQueryDatabase']= '';
  509.  
  510.  
  511. /**
  512.  * SQL Query box settings
  513.  * These are the links display in all of the SQL Query boxes
  514.  */
  515. $cfg['SQLQuery']['Edit']      = TRUE;       // Edit link to change a query
  516. $cfg['SQLQuery']['Explain']   = TRUE;       // EXPLAIN on SELECT queries
  517. $cfg['SQLQuery']['ShowAsPHP'] = TRUE;       // Wrap a query in PHP
  518. $cfg['SQLQuery']['Validate']  = FALSE;      // Validate a query (see $cfg['SQLValidator'] as well)
  519.  
  520.  
  521. /**
  522.  * web-server upload directory
  523.  */
  524. $cfg['UploadDir']             = '';         // Directory for uploaded files that can be executed by
  525.                                             // phpMyAdmin. For example './upload'. Leave empty for
  526.                                             // no upload directory support
  527. $cfg['SaveDir']               = '';         // Directory where phpMyAdmin can save exported data on
  528.                                             // server. For example './save'. Leave empty for no save
  529.                                             // directory support.
  530. $cfg['docSQLDir']             = '';         // Directory for docSQL imports, phpMyAdmin can import
  531.                                             // docSQL files from that directory. For example
  532.                                             // './docSQL'. Leave empty for no docSQL import support.
  533.  
  534.  
  535. /**
  536.  * Misc. settings
  537.  */
  538. $cfg['GD2Available']          = 'auto';     // Is GD >= 2 available? Set to yes/no/auto. 'auto'
  539.                                             // does autodetection, which is a bit expensive for
  540.                                             // php < 4.3.0, but it is the only safe vay how to
  541.                                             // determine GD version.
  542. /**
  543.  * SQL Parser Settings
  544.  */
  545. $cfg['SQP']['fmtType']      = 'html';       // Pretty-printing style to use on queries (html, text, none)
  546. $cfg['SQP']['fmtInd']       = '1';          // Amount to indent each level (floats ok)
  547. $cfg['SQP']['fmtIndUnit']   = 'em';         // Units for indenting each level (CSS Types - {em,px,pt})
  548. $cfg['SQP']['fmtColor']     = array(        // Syntax colouring data
  549.     'comment'            => '#808000',
  550.     'comment_mysql'      => '',
  551.     'comment_ansi'       => '',
  552.     'comment_c'          => '',
  553.     'digit'              => '',
  554.     'digit_hex'          => 'teal',
  555.     'digit_integer'      => 'teal',
  556.     'digit_float'        => 'aqua',
  557.     'punct'              => 'fuchsia',
  558.     'alpha'              => '',
  559.     'alpha_columnType'   => '#FF9900',
  560.     'alpha_columnAttrib' => '#0000FF',
  561.     'alpha_reservedWord' => '#990099',
  562.     'alpha_functionName' => '#FF0000',
  563.     'alpha_identifier'   => 'black',
  564.     'alpha_variable'     => '#800000',
  565.     'quote'              => '#008000',
  566.     'quote_double'       => '',
  567.     'quote_single'       => '',
  568.     'quote_backtick'     => ''
  569. );
  570.  
  571.  
  572. /**
  573.  * If you wish to use the SQL Validator service, you should be
  574.  * aware of the following:
  575.  * All SQL statements are stored anonymously for statistical purposes.
  576.  * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
  577.  * All rights reserved.
  578.  */
  579. $cfg['SQLValidator']['use']      = FALSE;   // Make the SQL Validator available
  580. $cfg['SQLValidator']['username'] = '';      // If you have a custom username, specify it here (defaults to anonymous)
  581. $cfg['SQLValidator']['password'] = '';      // Password for username
  582.  
  583. /**
  584.  * Developers ONLY!
  585.  * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
  586.  */
  587. $cfg['DBG']['enable'] = FALSE;              // Make the DBG stuff available
  588. $cfg['DBG']['profile']['enable'] = FALSE;   // Produce profiling results of PHP
  589. $cfg['DBG']['profile']['threshold'] = 0.5;  // Threshold of long running code to display
  590.                                             // Anything below the threshold is not displayed
  591.  
  592.  
  593. /**
  594.  * MySQL settings
  595.  */
  596. // Column types;
  597. // varchar, tinyint, text and date are listed first, based on estimated popularity
  598. $cfg['ColumnTypes'] = array(
  599.    'VARCHAR',
  600.    'TINYINT',
  601.    'TEXT',
  602.    'DATE',
  603.    'SMALLINT',
  604.    'MEDIUMINT',
  605.    'INT',
  606.    'BIGINT',
  607.    'FLOAT',
  608.    'DOUBLE',
  609.    'DECIMAL',
  610.    'DATETIME',
  611.    'TIMESTAMP',
  612.    'TIME',
  613.    'YEAR',
  614.    'CHAR',
  615.    'TINYBLOB',
  616.    'TINYTEXT',
  617.    'BLOB',
  618.    'MEDIUMBLOB',
  619.    'MEDIUMTEXT',
  620.    'LONGBLOB',
  621.    'LONGTEXT',
  622.    'ENUM',
  623.    'SET'
  624. );
  625.  
  626. // Atributes
  627. $cfg['AttributeTypes'] = array(
  628.    '',
  629.    'BINARY',
  630.    'UNSIGNED',
  631.    'UNSIGNED ZEROFILL'
  632. );
  633.  
  634. // Available functions
  635. if ($cfg['ShowFunctionFields']) {
  636.     $cfg['Functions'] = array(
  637.        'ASCII',
  638.        'CHAR',
  639.        'SOUNDEX',
  640.        'LCASE',
  641.        'UCASE',
  642.        'NOW',
  643.        'PASSWORD',
  644.        'MD5',
  645.        'ENCRYPT',
  646.        'RAND',
  647.        'LAST_INSERT_ID',
  648.        'COUNT',
  649.        'AVG',
  650.        'SUM',
  651.        'CURDATE',
  652.        'CURTIME',
  653.        'FROM_DAYS',
  654.        'FROM_UNIXTIME',
  655.        'PERIOD_ADD',
  656.        'PERIOD_DIFF',
  657.        'TO_DAYS',
  658.        'UNIX_TIMESTAMP',
  659.        'USER',
  660.        'WEEKDAY',
  661.        'CONCAT'
  662.     );
  663.     
  664.     // Which column types will be mapped to which Group?
  665.     $cfg['RestrictColumnTypes'] = array(
  666.        'VARCHAR'      => 'FUNC_CHAR',
  667.        'TINYINT'      => 'FUNC_NUMBER',
  668.        'TEXT'         => 'FUNC_CHAR',
  669.        'DATE'         => 'FUNC_DATE',
  670.        'SMALLINT'     => 'FUNC_NUMBER',
  671.        'MEDIUMINT'    => 'FUNC_NUMBER',
  672.        'INT'          => 'FUNC_NUMBER',
  673.        'BIGINT'       => 'FUNC_NUMBER',
  674.        'FLOAT'        => 'FUNC_NUMBER',
  675.        'DOUBLE'       => 'FUNC_NUMBER',
  676.        'DECIMAL'      => 'FUNC_NUMBER',
  677.        'DATETIME'     => 'FUNC_DATE',
  678.        'TIMESTAMP'    => 'FUNC_DATE',
  679.        'TIME'         => 'FUNC_DATE',
  680.        'YEAR'         => 'FUNC_DATE',
  681.        'CHAR'         => 'FUNC_CHAR',
  682.        'TINYBLOB'     => 'FUNC_CHAR',
  683.        'TINYTEXT'     => 'FUNC_CHAR',
  684.        'BLOB'         => 'FUNC_CHAR',
  685.        'MEDIUMBLOB'   => 'FUNC_CHAR',
  686.        'MEDIUMTEXT'   => 'FUNC_CHAR',
  687.        'LONGBLOB'     => 'FUNC_CHAR',
  688.        'LONGTEXT'     => 'FUNC_CHAR',
  689.        'ENUM'         => '',
  690.        'SET'          => ''
  691.     );
  692.  
  693.     // Map above defined groups to any function
  694.     $cfg['RestrictFunctions'] = array(
  695.         'FUNC_CHAR'   => array(
  696.             'ASCII',
  697.             'CHAR',
  698.             'SOUNDEX',
  699.             'LCASE',
  700.             'UCASE',
  701.             'PASSWORD',
  702.             'MD5',
  703.             'ENCRYPT',
  704.             'LAST_INSERT_ID',
  705.             'USER',
  706.             'CONCAT'
  707.         ),
  708.  
  709.         'FUNC_DATE'   => array(
  710.             'NOW',
  711.             'CURDATE',
  712.             'CURTIME',
  713.             'FROM_DAYS',
  714.             'FROM_UNIXTIME',
  715.             'PERIOD_ADD',
  716.             'PERIOD_DIFF',
  717.             'TO_DAYS',
  718.             'UNIX_TIMESTAMP',
  719.             'WEEKDAY'
  720.         ),
  721.  
  722.         'FUNC_NUMBER' => array(
  723.             'ASCII',
  724.             'CHAR',
  725.             'MD5',
  726.             'ENCRYPT',
  727.             'RAND',
  728.             'LAST_INSERT_ID',
  729.             'COUNT',
  730.             'AVG',
  731.             'SUM'
  732.         )
  733.     );
  734.     
  735. // Default functions for above defined groups
  736.     $cfg['DefaultFunctions'] = array(
  737.         'FUNC_CHAR'         => '',
  738.         'FUNC_DATE'         => '',
  739.         'FUNC_NUMBER'       => '',
  740.         'first_timestamp'   => 'NOW'
  741.     );
  742.  
  743. } // end if
  744.  
  745.  
  746. /**
  747.  * Unset magic_quotes_runtime - do not change!
  748.  */
  749. set_magic_quotes_runtime(0);
  750.  
  751. /**
  752.  * File Revision - do not change either!
  753.  */
  754. $cfg['FileRevision'] = '$Revision: 2.5.2.1 $';
  755. ?>
  756.