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