Misleading comments
[phpmyadmin/ammaryasirr.git] / libraries / config / setup.forms.php
blob5287aade930bf2088e87af341b5093e4bd790609
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 'controluser',
68 'controlpass',
69 'verbose_check',
70 'bookmarktable' => 'pma_bookmark',
71 'relation' => 'pma_relation',
72 'userconfig' => 'pma_userconfig',
73 'table_info' => 'pma_table_info',
74 'column_info' => 'pma_column_info',
75 'history' => 'pma_history',
76 'tracking' => 'pma_tracking',
77 'table_coords' => 'pma_table_coords',
78 'pdf_pages' => 'pma_pdf_pages',
79 'designer_coords' => 'pma_designer_coords')));
80 $forms['Servers']['Server_tracking'] = array('Servers' => array(1 => array(
81 'tracking_version_auto_create',
82 'tracking_default_statements',
83 'tracking_add_drop_view',
84 'tracking_add_drop_table',
85 'tracking_add_drop_database',
86 )));
87 $forms['Features']['Import_export'] = array(
88 'UploadDir',
89 'SaveDir',
90 'RecodingEngine' => ':group',
91 'IconvExtraParams',
92 ':group:end',
93 'ZipDump',
94 'GZipDump',
95 'BZipDump',
96 'CompressOnFly');
97 $forms['Features']['Security'] = array(
98 'blowfish_secret',
99 'ForceSSL',
100 'CheckConfigurationPermissions',
101 'TrustedProxies',
102 'AllowUserDropDatabase',
103 'AllowArbitraryServer',
104 'LoginCookieRecall',
105 'LoginCookieValidity',
106 'LoginCookieStore',
107 'LoginCookieDeleteAll');
108 $forms['Features']['Page_titles'] = array(
109 'TitleDefault',
110 'TitleTable',
111 'TitleDatabase',
112 'TitleServer');
113 $forms['Features']['Warnings'] = array(
114 'PmaNoRelation_DisableWarning',
115 'SuhosinDisableWarning',
116 'McryptDisableWarning');
117 $forms['Features']['Developer'] = array(
118 'UserprefsDeveloperTab',
119 'Error_Handler/display',
120 'Error_Handler/gather',
121 'DBG/sql');
122 $forms['Features']['Other_core_settings'] = array(
123 'AjaxEnable',
124 'VersionCheck',
125 'NaturalOrder',
126 'InitialSlidersState',
127 'ErrorIconic',
128 'ReplaceHelpImg',
129 'MaxDbList',
130 'MaxTableList',
131 'OBGzip',
132 'PersistentConnections',
133 'ExecTimeLimit',
134 'MemoryLimit',
135 'SkipLockedTables',
136 'UseDbSearch',
137 'AllowThirdPartyFraming');
138 $forms['Sql_queries']['Sql_queries'] = array(
139 'ShowSQL',
140 'Confirm',
141 'QueryHistoryDB',
142 'QueryHistoryMax',
143 'IgnoreMultiSubmitErrors',
144 'VerboseMultiSubmit',
145 'MaxCharactersInDisplayedSQL',
146 'EditInWindow',
147 //'QueryWindowWidth', // overridden in theme
148 //'QueryWindowHeight',
149 'QueryWindowDefTab');
150 $forms['Sql_queries']['Sql_box'] = array('SQLQuery' => array(
151 'Edit',
152 'Explain',
153 'ShowAsPHP',
154 'Validate',
155 'Refresh'));
156 $forms['Sql_queries']['Sql_validator'] = array('SQLValidator' => array(
157 'use',
158 'username',
159 'password'));
160 $forms['Left_frame']['Left_frame'] = array(
161 'LeftFrameLight',
162 'LeftDisplayLogo',
163 'LeftLogoLink',
164 'LeftLogoLinkWindow',
165 'LeftPointerEnable');
166 $forms['Left_frame']['Left_servers'] = array(
167 'LeftDisplayServers',
168 'DisplayServersList');
169 $forms['Left_frame']['Left_databases'] = array(
170 'DisplayDatabasesList',
171 'LeftFrameDBTree',
172 'LeftFrameDBSeparator',
173 'ShowTooltipAliasDB');
174 $forms['Left_frame']['Left_tables'] = array(
175 'LeftDisplayTableFilterMinimum',
176 'LeftDefaultTabTable',
177 'LeftFrameTableSeparator',
178 'LeftFrameTableLevel',
179 'ShowTooltip',
180 'ShowTooltipAliasTB');
181 $forms['Main_frame']['Startup'] = array(
182 'MainPageIconic',
183 'ShowCreateDb' => ':group',
184 'SuggestDBName',
185 ':group:end',
186 'ShowStats',
187 'ShowServerInfo',
188 'ShowPhpInfo',
189 'ShowChgPassword');
190 $forms['Main_frame']['Browse'] = array(
191 'NavigationBarIconic',
192 'ShowAll',
193 'MaxRows',
194 'Order',
195 'BrowsePointerEnable',
196 'BrowseMarkerEnable',
197 'RepeatCells',
198 'LimitChars',
199 'ModifyDeleteAtLeft',
200 'ModifyDeleteAtRight',
201 'DefaultDisplay');
202 $forms['Main_frame']['Edit'] = array(
203 'ProtectBinary',
204 'ShowFunctionFields',
205 'ShowFieldTypesInDataEditView',
206 'CharEditing',
207 'CharTextareaCols',
208 'CharTextareaRows',
209 'TextareaCols',
210 'TextareaRows',
211 'LongtextDoubleTextarea',
212 'InsertRows',
213 'ForeignKeyDropdownOrder',
214 'ForeignKeyMaxLimit',
215 'DefaultPropDisplay');
216 $forms['Main_frame']['Tabs'] = array(
217 'LightTabs',
218 'PropertiesIconic',
219 'DefaultTabServer',
220 'DefaultTabDatabase',
221 'DefaultTabTable',
222 'QueryWindowDefTab');
223 $forms['Import']['Import_defaults'] = array('Import' => array(
224 'format',
225 'charset',
226 'allow_interrupt',
227 'skip_queries'));
228 $forms['Import']['Sql'] = array('Import' => array(
229 'sql_compatibility',
230 'sql_no_auto_value_on_zero'));
231 $forms['Import']['Csv'] = array('Import' => array(
232 ':group:' . __('CSV'),
233 'csv_replace',
234 'csv_ignore',
235 'csv_terminated',
236 'csv_enclosed',
237 'csv_escaped',
238 'csv_col_names',
239 ':group:end',
240 ':group:' . __('CSV using LOAD DATA'),
241 'ldi_replace',
242 'ldi_ignore',
243 'ldi_terminated',
244 'ldi_enclosed',
245 'ldi_escaped',
246 'ldi_local_option',
247 ':group:end'));
248 $forms['Import']['Microsoft_Office'] = array('Import' => array(
249 ':group:' . __('Excel 97-2003 XLS Workbook'),
250 'xls_col_names',
251 ':group:end',
252 ':group:' . __('Excel 2007 XLSX Workbook'),
253 'xlsx_col_names'));
254 $forms['Import']['Open_Document'] = array('Import' => array(
255 ':group:' . __('Open Document Spreadsheet'),
256 'ods_col_names',
257 'ods_empty_rows',
258 'ods_recognize_percentages',
259 'ods_recognize_currency'));
260 $forms['Export']['Export_defaults'] = array('Export' => array(
261 'method',
262 ':group:' . __('Quick'),
263 'quick_export_onserver',
264 'quick_export_onserver_overwrite',
265 ':group:end',
266 ':group:' . __('Custom'),
267 'format',
268 'compression',
269 'charset',
270 'asfile' => ':group',
271 'onserver',
272 'onserver_overwrite',
273 ':group:end',
274 'remember_file_template',
275 'file_template_table',
276 'file_template_database',
277 'file_template_server'));
278 $forms['Export']['Sql'] = array('Export' => array(
279 'sql_include_comments' => ':group',
280 'sql_dates',
281 'sql_relation',
282 'sql_mime',
283 ':group:end',
284 'sql_use_transaction',
285 'sql_disable_fk',
286 'sql_compatibility',
287 ':group:' . __('Database export options'),
288 'sql_drop_database',
289 'sql_structure_or_data',
290 ':group:end',
291 ':group:' . __('Structure'),
292 'sql_drop_table',
293 'sql_procedure_function',
294 'sql_create_table_statements' => ':group',
295 'sql_if_not_exists',
296 'sql_auto_increment',
297 ':group:end',
298 'sql_backquotes',
299 ':group:end',
300 ':group:' . __('Data'),
301 'sql_delayed',
302 'sql_ignore',
303 'sql_type',
304 'sql_insert_syntax',
305 'sql_max_query_size',
306 'sql_hex_for_blob',
307 'sql_utc_time'));
308 $forms['Export']['CodeGen'] = array('Export' => array(
309 'codegen_format'));
310 $forms['Export']['Csv'] = array('Export' => array(
311 ':group:' . __('CSV'),
312 'csv_separator',
313 'csv_enclosed',
314 'csv_escaped',
315 'csv_terminated',
316 'csv_null',
317 'csv_removeCRLF',
318 'csv_columns',
319 ':group:end',
320 ':group:' . __('CSV for MS Excel'),
321 'excel_null',
322 'excel_removeCRLF',
323 'excel_columns',
324 'excel_edition'));
325 $forms['Export']['Latex'] = array('Export' => array(
326 'latex_caption',
327 'latex_structure_or_data',
328 ':group:' . __('Structure'),
329 'latex_structure_caption',
330 'latex_structure_continued_caption',
331 'latex_structure_label',
332 'latex_relation',
333 'latex_comments',
334 'latex_mime',
335 ':group:end',
336 ':group:' . __('Data'),
337 'latex_columns',
338 'latex_data_caption',
339 'latex_data_continued_caption',
340 'latex_data_label',
341 'latex_null'));
342 $forms['Export']['Microsoft_Office'] = array('Export' => array(
343 ':group:' . __('Excel 97-2003 XLS Workbook'),
344 'xls_null',
345 'xls_columns',
346 ':group:end',
347 ':group:' . __('Excel 2007 XLSX Workbook'),
348 'xlsx_null',
349 'xlsx_columns',
350 ':group:end',
351 ':group:' . __('Microsoft Word 2000'),
352 'htmlword_structure_or_data',
353 'htmlword_null',
354 'htmlword_columns'));
355 $forms['Export']['Open_Document'] = array('Export' => array(
356 ':group:' . __('Open Document Spreadsheet'),
357 'ods_columns',
358 'ods_null',
359 ':group:end',
360 ':group:' . __('Open Document Text'),
361 'odt_structure_or_data',
362 ':group:' . __('Structure'),
363 'odt_relation',
364 'odt_comments',
365 'odt_mime',
366 ':group:end',
367 ':group:' . __('Data'),
368 'odt_columns',
369 'odt_null'));
370 $forms['Export']['Texy'] = array('Export' => array(
371 'texytext_structure_or_data',
372 ':group:' . __('Data'),
373 'texytext_null',
374 'texytext_columns'));