home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 April / PCWorld_2005-04_cd.bin / akce / web / phptriad / phptriad2-2-1.exe / htdocs / phpmyadmin / config.inc.php < prev    next >
PHP Script  |  2002-02-07  |  9KB  |  257 lines

  1. <?php
  2. /* $Id: config.inc.php,v 1.62 2001/12/23 23:05:23 lem9 Exp $ */
  3.  
  4.  
  5. /**
  6.  * phpMyAdmin Configuration File
  7.  *
  8.  * All directives are explained in Documentation.html
  9.  */
  10.  
  11.  
  12. /**
  13.  * Bookmark Table Structure
  14.  *
  15.  * CREATE TABLE bookmark (
  16.  *  id int(11) DEFAULT '0' NOT NULL auto_increment,
  17.  *  dbase varchar(255) NOT NULL,
  18.  *  user varchar(255) NOT NULL,
  19.  *  label varchar(255) NOT NULL,
  20.  *  query text NOT NULL,
  21.  *  PRIMARY KEY (id)
  22.  * );
  23.  *
  24.  */
  25.  
  26.  
  27. /**
  28.  * Your phpMyAdmin url
  29.  *
  30.  * Complete the variable below with the full url ie
  31.  *    http://www.your_web.net/path_to_your_phpMyAdmin_directory/
  32.  */
  33. $cfgPmaAbsoluteUri = '';
  34.  
  35.  
  36. /**
  37.  * Server(s) configuration
  38.  */
  39. // The $cfgServers array starts with $cfgServers[1].  Do not use $cfgServers[0].
  40. // You can disable a server config entry by setting host to ''.
  41. $cfgServers[1]['host']          = 'localhost'; // MySQL hostname
  42. $cfgServers[1]['port']          = '';          // MySQL port - leave blank for default port
  43. $cfgServers[1]['socket']        = '';          // Path to the socket - leave blank for default socket
  44. $cfgServers[1]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
  45. $cfgServers[1]['stduser']       = '';          // MySQL standard user settings (this user must have read-only
  46. $cfgServers[1]['stdpass']       = '';          //   access to the "mysql/user" and "mysql/db" tables)
  47. $cfgServers[1]['auth_type']     = 'config';     // Authentication method (config, http or cookie based)?
  48. $cfgServers[1]['user']          = 'root';      // MySQL user
  49. $cfgServers[1]['password']      = '';          // MySQL password (only needed with 'config' auth)
  50. $cfgServers[1]['only_db']       = '';          // If set to a db-name, only this db is displayed at left frame
  51.                                                // It may also be an array of db-names
  52. $cfgServers[1]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname
  53. $cfgServers[1]['bookmarkdb']    = '';          // Bookmark db - leave blank for no bookmark support
  54. $cfgServers[1]['bookmarktable'] = '';          // Bookmark table - leave blank for no bookmark support
  55.  
  56. $cfgServers[2]['host']          = '';
  57. $cfgServers[2]['port']          = '';
  58. $cfgServers[2]['socket']        = '';
  59. $cfgServers[2]['connect_type']  = 'tcp';
  60. $cfgServers[2]['stduser']       = '';
  61. $cfgServers[2]['stdpass']       = '';
  62. $cfgServers[2]['auth_type']     = 'config';
  63. $cfgServers[2]['user']          = 'root';
  64. $cfgServers[2]['password']      = '';
  65. $cfgServers[2]['only_db']       = '';
  66. $cfgServers[2]['verbose']       = '';
  67. $cfgServers[2]['bookmarkdb']    = '';
  68. $cfgServers[2]['bookmarktable'] = '';
  69.  
  70. $cfgServers[3]['host']          = '';
  71. $cfgServers[3]['port']          = '';
  72. $cfgServers[3]['socket']        = '';
  73. $cfgServers[3]['connect_type']  = 'tcp';
  74. $cfgServers[3]['stduser']       = '';
  75. $cfgServers[3]['stdpass']       = '';
  76. $cfgServers[3]['auth_type']     = 'config';
  77. $cfgServers[3]['user']          = 'root';
  78. $cfgServers[3]['password']      = '';
  79. $cfgServers[3]['only_db']       = '';
  80. $cfgServers[3]['verbose']       = '';
  81. $cfgServers[3]['bookmarkdb']    = '';
  82. $cfgServers[3]['bookmarktable'] = '';
  83.  
  84. // If you have more than one server configured, you can set $cfgServerDefault
  85. // to any one of them to autoconnect to that server when phpMyAdmin is started,
  86. // or set it to 0 to be given a list of servers without logging in
  87. // If you have only one server configured, $cfgServerDefault *MUST* be
  88. // set to that server.
  89. $cfgServerDefault = 1;                         // Default server (0 = no default server)
  90. $cfgServer        = '';
  91. unset($cfgServers[0]);
  92.  
  93.  
  94. /**
  95.  * Other core phpMyAdmin settings
  96.  */
  97. $cfgOBGzip                = TRUE;   // use GZIP output buffering if possible
  98. $cfgPersistentConnections = FALSE;  // use persistent connections to MySQL database
  99. $cfgExecTimeLimit         = 300;    // maximum execution time in seconds (0 for no limit)
  100. $cfgSkipLockedTables      = FALSE;  // mark used tables, make possible to show
  101.                                     // locked tables (since MySQL 3.23.30)
  102. $cfgShowSQL               = TRUE;   // show SQL queries as run
  103. $cfgAllowUserDropDatabase = FALSE;  // show a 'Drop database' link to normal users  
  104. $cfgConfirm               = TRUE;   // confirm 'DROP TABLE' & 'DROP DATABASE'
  105.  
  106. $cfgShowStats             = TRUE;   // allow to display statistics and space usage in
  107.                                     // the pages about database details and table
  108.                                     // properties
  109. $cfgShowTooltip           = TRUE;   // display table comment as tooltip in left frame
  110.  
  111. // In the main frame, at startup...
  112. $cfgShowMysqlInfo         = FALSE;  // whether to display the "MySQL runtime
  113. $cfgShowMysqlVars         = FALSE;  // information", "MySQL system variables" and "PHP
  114. $cfgShowPhpInfo           = FALSE;  // information" links for simple users or not
  115.  
  116. // In browse mode...
  117. $cfgShowBlob              = FALSE;  // display blob field contents
  118. $cfgNavigationBarIconic   = TRUE;   // do not display text inside navigation bar buttons
  119. $cfgShowAll               = FALSE;  // allows to display all the rows
  120. $cfgMaxRows               = 30;     // maximum number of rows to display
  121. $cfgOrder                 = 'ASC';  // default for 'ORDER BY' clause (valid
  122.                                     // values are 'ASC', 'DESC' or 'SMART' -ie
  123.                                     // descending order for fields of type
  124.                                     // TIME, DATE, DATETIME & TIMESTAMP,
  125.                                     // ascending order else-)
  126.  
  127. // In edit mode...
  128. $cfgProtectBinary         = 'blob'; // disallow editing of binary fields
  129.                                     // valid values are:
  130.                                     //   FALSE  allow editing
  131.                                     //   'blob' allow editing except for BLOB fields
  132.                                     //   'all'  disallow editing
  133.  
  134. $cfgZipDump               = TRUE;   // Allow the use of zip/gzip/bzip
  135. $cfgGZipDump              = TRUE;   // compression for
  136. $cfgBZipDump              = TRUE;   // dump files
  137.  
  138.  
  139. /**
  140.  * Link to the official MySQL documentation
  141.  * Be sure to include no trailing slash on the path
  142.  */
  143. $cfgManualBaseShort = 'http://www.mysql.com/doc';
  144.  
  145.  
  146. /**
  147.  * Language settings
  148.  */
  149. // Default language to use, if not browser-defined or user-defined
  150. $cfgDefaultLang = 'en';
  151. // Force: always use this language - must be defined in
  152. //        libraries/select_lang.lib.php
  153. // $cfgLang     = 'en';
  154. // Loads language file
  155. require('./libraries/select_lang.lib.php');
  156.  
  157.  
  158. /**
  159.  * Customization & design
  160.  */
  161. $cfgLeftWidth           = 150;          // left frame width
  162. $cfgLeftBgColor         = '#D0DCE0';    // background color for the left frame
  163. $cfgLeftPointerColor    = '#CCFFCC';    // color of the pointer in left frame
  164.                                         // (blank for no pointer)
  165. $cfgRightBgColor        = '#F5F5F5';    // background color for the right frame
  166. $cfgBorder              = 0;            // border width on tables
  167. $cfgThBgcolor           = '#D3DCE3';    // table header row colour
  168. $cfgBgcolorOne          = '#CCCCCC';    // table data row colour
  169. $cfgBgcolorTwo          = '#DDDDDD';    // table data row colour, alternate
  170. $cfgBrowsePointerColor  = '#CCFFCC';    // color of the pointer in browse mode
  171.                                         // (blank for no pointer)
  172. $cfgTextareaCols        = 40;           // textarea size (columns) in edit mode
  173. $cfgTextareaRows        = 7;            // textarea size (rows) in edit mode
  174. $cfgLimitChars          = 50;           // max field data length in browse mode
  175. $cfgModifyDeleteAtLeft  = TRUE;         // show edit/delete links on left side of browse
  176.                                         // (or at the top with vertical browse)
  177. $cfgModifyDeleteAtRight = FALSE;        // show edit/delete links on right side of browse
  178.                                         // (or at the bottom with vertical browse)
  179. $cfgDefaultDisplay      = 'horizontal'; // default display direction (horizontal|vertical)
  180. $cfgRepeatCells         = 100;          // repeat header names every X cells? (0 = deactivate)
  181.  
  182.  
  183. /**
  184.  * MySQL settings
  185.  */
  186. // Column types
  187. $cfgColumnTypes = array(
  188.    'TINYINT',
  189.    'SMALLINT',
  190.    'MEDIUMINT',
  191.    'INT',
  192.    'BIGINT',
  193.    'FLOAT',
  194.    'DOUBLE',
  195.    'DECIMAL',
  196.    'DATE',
  197.    'DATETIME',
  198.    'TIMESTAMP',
  199.    'TIME',
  200.    'YEAR',
  201.    'CHAR',
  202.    'VARCHAR',
  203.    'TINYBLOB',
  204.    'TINYTEXT',
  205.    'TEXT',
  206.    'BLOB',
  207.    'MEDIUMBLOB',
  208.    'MEDIUMTEXT',
  209.    'LONGBLOB',
  210.    'LONGTEXT',
  211.    'ENUM',
  212.    'SET'
  213. );
  214.  
  215. // Atributes
  216. $cfgAttributeTypes = array(
  217.    '',
  218.    'BINARY',
  219.    'UNSIGNED',
  220.    'UNSIGNED ZEROFILL'
  221. );
  222.  
  223. // Available functions
  224. $cfgFunctions = array(
  225.    'ASCII',
  226.    'CHAR',
  227.    'SOUNDEX',
  228.    'LCASE',
  229.    'UCASE',
  230.    'NOW',
  231.    'PASSWORD',
  232.    'MD5',
  233.    'ENCRYPT',
  234.    'RAND',
  235.    'LAST_INSERT_ID',
  236.    'COUNT',
  237.    'AVG',
  238.    'SUM',
  239.    'CURDATE',
  240.    'CURTIME',
  241.    'FROM_DAYS',
  242.    'FROM_UNIXTIME',
  243.    'PERIOD_ADD',
  244.    'PERIOD_DIFF',
  245.    'TO_DAYS',
  246.    'UNIX_TIMESTAMP',
  247.    'USER',
  248.    'WEEKDAY'
  249. );
  250.  
  251.  
  252. /**
  253.  * Unset magic_quotes_runtime - do not change!
  254.  */
  255. set_magic_quotes_runtime(0);
  256. ?>
  257.