Merge branch 'master' of git://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin...
[phpmyadmin/lorilee.git] / setup / lib / config_info.inc.php
blobb48cb5d478b9ec3e27113c4dabcf263b79185513
1 <?php
2 /**
3 * Description of options with non-standard values, list of persistent options
4 * and validator assignments.
6 * By default data types are taken from config.default.php, here we define
7 * only allowed values for select fields and type overrides.
9 * @package phpMyAdmin-setup
10 * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0
11 * @version $Id$
14 if (!defined('PHPMYADMIN')) {
15 exit;
18 $cfg_db = array();
20 // path to config file, relative to phpMyAdmin's root path
21 $cfg_db['_config_file_path'] = SETUP_CONFIG_FILE;
23 /**
24 * Value meaning:
25 * o array - select field, array contains allowed values
26 * o string - type override
28 * Use normal array, paths won't be expanded
30 $cfg_db['Servers'] = array(1 => array(
31 'port' => 'integer',
32 'connect_type' => array('tcp', 'socket'),
33 'extension' => array('mysql', 'mysqli'),
34 'auth_type' => array('config', 'http', 'signon', 'cookie'),
35 'AllowDeny' => array(
36 'order' => array('', 'deny,allow', 'allow,deny', 'explicit')),
37 'only_db' => 'array'));
38 $cfg_db['RecodingEngine'] = array('auto', 'iconv', 'recode', 'none');
39 $cfg_db['OBGzip'] = array('auto', true, false);
40 $cfg_db['ShowTooltipAliasTB'] = array('nested', true, false);
41 $cfg_db['DisplayDatabasesList'] = array('auto', true, false);
42 $cfg_db['LeftLogoLinkWindow'] = array('main', 'new');
43 $cfg_db['LeftDefaultTabTable'] = array(
44 'tbl_structure.php', // fields list
45 'tbl_sql.php', // SQL form
46 'tbl_select.php', // search page
47 'tbl_change.php', // insert row page
48 'sql.php'); // browse page
49 $cfg_db['NavigationBarIconic'] = array(true, false, 'both');
50 $cfg_db['Order'] = array('ASC', 'DESC', 'SMART');
51 $cfg_db['ProtectBinary'] = array(false, 'blob', 'all');
52 $cfg_db['CharEditing'] = array('input', 'textarea');
53 $cfg_db['PropertiesIconic'] = array(true, false, 'both');
54 $cfg_db['DefaultTabServer'] = array(
55 'main.php', // the welcome page (recommended for multiuser setups)
56 'server_databases.php', // list of databases
57 'server_status.php', // runtime information
58 'server_variables.php', // MySQL server variables
59 'server_privileges.php', // user management
60 'server_processlist.php'); // process list
61 $cfg_db['DefaultTabDatabase'] = array(
62 'db_structure.php', // tables list
63 'db_sql.php', // SQL form
64 'db_search.php', // search query
65 'db_operations.php'); // operations on database
66 $cfg_db['DefaultTabTable'] = array(
67 'tbl_structure.php', // fields list
68 'tbl_sql.php', // SQL form
69 'tbl_select.php', // search page
70 'tbl_change.php', // insert row page
71 'sql.php'); // browse page
72 $cfg_db['QueryWindowDefTab'] = array(
73 'sql', // SQL
74 'files', // Import files
75 'history', // SQL history
76 'full'); // All (SQL and SQL history)
77 $cfg_db['Import']['format'] = array(
78 'csv', // CSV
79 'docsql', // DocSQL
80 'ldi', // CSV using LOAD DATA
81 'sql'); // SQL
82 $cfg_db['Import']['sql_compatibility'] = array(
83 'NONE', 'ANSI', 'DB2', 'MAXDB', 'MYSQL323', 'MYSQL40', 'MSSQL', 'ORACLE',
84 // removed; in MySQL 5.0.33, this produces exports that
85 // can't be read by POSTGRESQL (see our bug #1596328)
86 //'POSTGRESQL',
87 'TRADITIONAL');
88 $cfg_db['Import']['ldi_local_option'] = array('auto', true, false);
89 $cfg_db['Export']['format'] = array('codegen', 'csv', 'excel', 'htmlexcel',
90 'htmlword', 'latex', 'ods', 'odt', 'pdf', 'sql', 'texytext', 'xls', 'xml',
91 'yaml');
92 $cfg_db['Export']['compression'] = array('none', 'zip', 'gzip', 'bzip2');
93 $cfg_db['Export']['charset'] = array_merge(array(''), $GLOBALS['cfg']['AvailableCharsets']);
95 /**
96 * Config options which will be placed in config file even if they are set
97 * to their default values (use only full paths)
99 $persist_keys = array(
100 'DefaultLang',
101 'ServerDefault',
102 'UploadDir',
103 'SaveDir',
104 'Servers/1/verbose',
105 'Servers/1/host',
106 'Servers/1/port',
107 'Servers/1/socket',
108 'Servers/1/extension',
109 'Servers/1/connect_type',
110 'Servers/1/auth_type',
111 'Servers/1/user',
112 'Servers/1/password');
115 * Default values overrides
116 * Use only full paths
118 $cfg_db['_overrides'] = array();
119 $cfg_db['_overrides']['Servers/1/extension'] = extension_loaded('mysqli')
120 ? 'mysqli' : 'mysql';
123 * Validator assignments (functions from validate.lib.php and 'validators'
124 * object in scripts.js)
125 * Use only full paths and form ids
127 $cfg_db['_validators'] = array(
128 'Server' => 'validate_server',
129 'Server_pmadb' => 'validate_pmadb',
130 'Servers/1/port' => 'validate_port_number',
131 'Servers/1/hide_db' => 'validate_regex',
132 'TrustedProxies' => 'validate_trusted_proxies',
133 'LoginCookieValidity' => 'validate_positive_number',
134 'LoginCookieStore' => 'validate_non_negative_number',
135 'QueryHistoryMax' => 'validate_positive_number',
136 'LeftFrameTableLevel' => 'validate_positive_number',
137 'MaxRows' => 'validate_positive_number',
138 'CharTextareaCols' => 'validate_positive_number',
139 'CharTextareaRows' => 'validate_positive_number',
140 'InsertRows' => 'validate_positive_number',
141 'ForeignKeyMaxLimit' => 'validate_positive_number',
142 'Import/skip_queries' => 'validate_non_negative_number');