RetainQueryBox in setup and user prefs
[phpmyadmin.git] / libraries / config / setup.forms.php
blob8ffb0b23ad27bd0837db225e73d5719280c35f51
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * List of avaible forms, each form is described as an array of fields to display.
5 * Fields MUST have their counterparts in the $cfg array.
7 * There are two possible notations:
8 * $forms['Form group']['Form name'] = array('Servers' => array(1 => array('host')));
9 * can be written as
10 * $forms['Form group']['Form name'] = array('Servers/1/host');
12 * You can assign default values set by special button ("set value: ..."), eg.:
13 * 'Servers/1/pmadb' => 'phpmyadmin'
15 * To group options, use:
16 * ':group:' . __('group name') // just define a group
17 * or
18 * 'option' => ':group' // group starting from this option
19 * End group blocks with:
20 * ':group:end'
22 * @package PhpMyAdmin-setup
25 $forms = array();
26 $forms['_config.php'] = array(
27 'DefaultLang',
28 'ServerDefault');
29 $forms['Servers']['Server'] = array('Servers' => array(1 => array(
30 'verbose',
31 'host',
32 'port',
33 'socket',
34 'ssl',
35 'connect_type',
36 'extension',
37 'compress',
38 'nopassword')));
39 $forms['Servers']['Server_auth'] = array('Servers' => array(1 => array(
40 'auth_type',
41 ':group:' . __('Config authentication'),
42 'user',
43 'password',
44 ':group:end',
45 ':group:' . __('Cookie authentication'),
46 'auth_swekey_config' => './swekey.conf',
47 ':group:end',
48 ':group:' . __('HTTP authentication'),
49 'auth_http_realm',
50 ':group:end',
51 ':group:' . __('Signon authentication'),
52 'SignonSession',
53 'SignonURL',
54 'LogoutURL')));
55 $forms['Servers']['Server_config'] = array('Servers' => array(1 => array(
56 'only_db',
57 'hide_db',
58 'AllowRoot',
59 'AllowNoPassword',
60 'DisableIS',
61 'AllowDeny/order',
62 'AllowDeny/rules',
63 'ShowDatabasesCommand',
64 'CountTables')));
65 $forms['Servers']['Server_pmadb'] = array('Servers' => array(1 => array(
66 'pmadb' => 'phpmyadmin',
67 'controlhost',
68 'controluser',
69 'controlpass',
70 'verbose_check',
71 'bookmarktable' => 'pma_bookmark',
72 'relation' => 'pma_relation',
73 'userconfig' => 'pma_userconfig',
74 'table_info' => 'pma_table_info',
75 'column_info' => 'pma_column_info',
76 'history' => 'pma_history',
77 'recent' => 'pma_recent',
78 'table_uiprefs' => 'pma_table_uiprefs',
79 'tracking' => 'pma_tracking',
80 'table_coords' => 'pma_table_coords',
81 'pdf_pages' => 'pma_pdf_pages',
82 'designer_coords' => 'pma_designer_coords',
83 'MaxTableUiprefs' => 100)));
84 $forms['Servers']['Server_tracking'] = array('Servers' => array(1 => array(
85 'tracking_version_auto_create',
86 'tracking_default_statements',
87 'tracking_add_drop_view',
88 'tracking_add_drop_table',
89 'tracking_add_drop_database',
90 )));
91 $forms['Features']['Import_export'] = array(
92 'UploadDir',
93 'SaveDir',
94 'RecodingEngine' => ':group',
95 'IconvExtraParams',
96 ':group:end',
97 'ZipDump',
98 'GZipDump',
99 'BZipDump',
100 'CompressOnFly');
101 $forms['Features']['Security'] = array(
102 'blowfish_secret',
103 'ForceSSL',
104 'CheckConfigurationPermissions',
105 'TrustedProxies',
106 'AllowUserDropDatabase',
107 'AllowArbitraryServer',
108 'LoginCookieRecall',
109 'LoginCookieValidity',
110 'LoginCookieStore',
111 'LoginCookieDeleteAll');
112 $forms['Features']['Page_titles'] = array(
113 'TitleDefault',
114 'TitleTable',
115 'TitleDatabase',
116 'TitleServer');
117 $forms['Features']['Warnings'] = array(
118 'PmaNoRelation_DisableWarning',
119 'SuhosinDisableWarning',
120 'McryptDisableWarning');
121 $forms['Features']['Developer'] = array(
122 'UserprefsDeveloperTab',
123 'Error_Handler/display',
124 'Error_Handler/gather',
125 'DBG/sql');
126 $forms['Features']['Other_core_settings'] = array(
127 'AjaxEnable',
128 'VersionCheck',
129 'NaturalOrder',
130 'InitialSlidersState',
131 'ErrorIconic',
132 'ReplaceHelpImg',
133 'MaxDbList',
134 'MaxTableList',
135 'ShowHint',
136 'OBGzip',
137 'PersistentConnections',
138 'ExecTimeLimit',
139 'MemoryLimit',
140 'SkipLockedTables',
141 'DisableMultiTableMaintenance',
142 'UseDbSearch',
143 'AllowThirdPartyFraming');
144 $forms['Sql_queries']['Sql_queries'] = array(
145 'ShowSQL',
146 'Confirm',
147 'QueryHistoryDB',
148 'QueryHistoryMax',
149 'IgnoreMultiSubmitErrors',
150 'VerboseMultiSubmit',
151 'MaxCharactersInDisplayedSQL',
152 'EditInWindow',
153 //'QueryWindowWidth', // overridden in theme
154 //'QueryWindowHeight',
155 'QueryWindowDefTab',
156 'RetainQueryBox');
157 $forms['Sql_queries']['Sql_box'] = array('SQLQuery' => array(
158 'Edit',
159 'Explain',
160 'ShowAsPHP',
161 'Validate',
162 'Refresh'));
163 $forms['Sql_queries']['Sql_validator'] = array('SQLValidator' => array(
164 'use',
165 'username',
166 'password'));
167 $forms['Left_frame']['Left_frame'] = array(
168 'LeftFrameLight',
169 'LeftDisplayLogo',
170 'LeftLogoLink',
171 'LeftLogoLinkWindow',
172 'LeftPointerEnable',
173 'LeftRecentTable');
174 $forms['Left_frame']['Left_servers'] = array(
175 'LeftDisplayServers',
176 'DisplayServersList');
177 $forms['Left_frame']['Left_databases'] = array(
178 'DisplayDatabasesList',
179 'LeftFrameDBTree',
180 'LeftFrameDBSeparator',
181 'ShowTooltipAliasDB');
182 $forms['Left_frame']['Left_tables'] = array(
183 'LeftDisplayTableFilterMinimum',
184 'LeftDefaultTabTable',
185 'LeftFrameTableSeparator',
186 'LeftFrameTableLevel',
187 'ShowTooltip',
188 'ShowTooltipAliasTB');
189 $forms['Main_frame']['Startup'] = array(
190 'MainPageIconic',
191 'ShowCreateDb' => ':group',
192 'SuggestDBName',
193 ':group:end',
194 'ShowStats',
195 'ShowServerInfo',
196 'ShowPhpInfo',
197 'ShowChgPassword');
198 $forms['Main_frame']['Browse'] = array(
199 'NavigationBarIconic',
200 'ShowAll',
201 'MaxRows',
202 'Order',
203 'BrowsePointerEnable',
204 'BrowseMarkerEnable',
205 'SaveCellsAtOnce',
206 'ShowDisplayDirection',
207 'RepeatCells',
208 'LimitChars',
209 'RowActionLinks',
210 'DefaultDisplay',
211 'RememberSorting');
212 $forms['Main_frame']['Edit'] = array(
213 'ProtectBinary',
214 'ShowFunctionFields',
215 'ShowFieldTypesInDataEditView',
216 'CharEditing',
217 'MinSizeForInputField',
218 'MaxSizeForInputField',
219 'CharTextareaCols',
220 'CharTextareaRows',
221 'TextareaCols',
222 'TextareaRows',
223 'LongtextDoubleTextarea',
224 'InsertRows',
225 'ForeignKeyDropdownOrder',
226 'ForeignKeyMaxLimit');
227 $forms['Main_frame']['Tabs'] = array(
228 'LightTabs',
229 'PropertiesIconic',
230 'DefaultTabServer',
231 'DefaultTabDatabase',
232 'DefaultTabTable',
233 'QueryWindowDefTab');
234 $forms['Import']['Import_defaults'] = array('Import' => array(
235 'format',
236 'charset',
237 'allow_interrupt',
238 'skip_queries'));
239 $forms['Import']['Sql'] = array('Import' => array(
240 'sql_compatibility',
241 'sql_no_auto_value_on_zero'));
242 $forms['Import']['Csv'] = array('Import' => array(
243 ':group:' . __('CSV'),
244 'csv_replace',
245 'csv_ignore',
246 'csv_terminated',
247 'csv_enclosed',
248 'csv_escaped',
249 'csv_col_names',
250 ':group:end',
251 ':group:' . __('CSV using LOAD DATA'),
252 'ldi_replace',
253 'ldi_ignore',
254 'ldi_terminated',
255 'ldi_enclosed',
256 'ldi_escaped',
257 'ldi_local_option',
258 ':group:end'));
259 $forms['Import']['Open_Document'] = array('Import' => array(
260 ':group:' . __('Open Document Spreadsheet'),
261 'ods_col_names',
262 'ods_empty_rows',
263 'ods_recognize_percentages',
264 'ods_recognize_currency'));
265 $forms['Export']['Export_defaults'] = array('Export' => array(
266 'method',
267 ':group:' . __('Quick'),
268 'quick_export_onserver',
269 'quick_export_onserver_overwrite',
270 ':group:end',
271 ':group:' . __('Custom'),
272 'format',
273 'compression',
274 'charset',
275 'asfile' => ':group',
276 'onserver',
277 'onserver_overwrite',
278 ':group:end',
279 'remember_file_template',
280 'file_template_table',
281 'file_template_database',
282 'file_template_server'));
283 $forms['Export']['Sql'] = array('Export' => array(
284 'sql_include_comments' => ':group',
285 'sql_dates',
286 'sql_relation',
287 'sql_mime',
288 ':group:end',
289 'sql_use_transaction',
290 'sql_disable_fk',
291 'sql_compatibility',
292 ':group:' . __('Database export options'),
293 'sql_drop_database',
294 'sql_structure_or_data',
295 ':group:end',
296 ':group:' . __('Structure'),
297 'sql_drop_table',
298 'sql_procedure_function',
299 'sql_create_table_statements' => ':group',
300 'sql_if_not_exists',
301 'sql_auto_increment',
302 ':group:end',
303 'sql_backquotes',
304 ':group:end',
305 ':group:' . __('Data'),
306 'sql_delayed',
307 'sql_ignore',
308 'sql_type',
309 'sql_insert_syntax',
310 'sql_max_query_size',
311 'sql_hex_for_blob',
312 'sql_utc_time'));
313 $forms['Export']['CodeGen'] = array('Export' => array(
314 'codegen_format'));
315 $forms['Export']['Csv'] = array('Export' => array(
316 ':group:' . __('CSV'),
317 'csv_separator',
318 'csv_enclosed',
319 'csv_escaped',
320 'csv_terminated',
321 'csv_null',
322 'csv_removeCRLF',
323 'csv_columns',
324 ':group:end',
325 ':group:' . __('CSV for MS Excel'),
326 'excel_null',
327 'excel_removeCRLF',
328 'excel_columns',
329 'excel_edition'));
330 $forms['Export']['Latex'] = array('Export' => array(
331 'latex_caption',
332 'latex_structure_or_data',
333 ':group:' . __('Structure'),
334 'latex_structure_caption',
335 'latex_structure_continued_caption',
336 'latex_structure_label',
337 'latex_relation',
338 'latex_comments',
339 'latex_mime',
340 ':group:end',
341 ':group:' . __('Data'),
342 'latex_columns',
343 'latex_data_caption',
344 'latex_data_continued_caption',
345 'latex_data_label',
346 'latex_null'));
347 $forms['Export']['Microsoft_Office'] = array('Export' => array(
348 ':group:' . __('Microsoft Word 2000'),
349 'htmlword_structure_or_data',
350 'htmlword_null',
351 'htmlword_columns'));
352 $forms['Export']['Open_Document'] = array('Export' => array(
353 ':group:' . __('Open Document Spreadsheet'),
354 'ods_columns',
355 'ods_null',
356 ':group:end',
357 ':group:' . __('Open Document Text'),
358 'odt_structure_or_data',
359 ':group:' . __('Structure'),
360 'odt_relation',
361 'odt_comments',
362 'odt_mime',
363 ':group:end',
364 ':group:' . __('Data'),
365 'odt_columns',
366 'odt_null'));
367 $forms['Export']['Texy'] = array('Export' => array(
368 'texytext_structure_or_data',
369 ':group:' . __('Data'),
370 'texytext_null',
371 'texytext_columns'));