ServersForm.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. /**
  3. * User preferences form
  4. */
  5. declare(strict_types=1);
  6. namespace PhpMyAdmin\Config\Forms\Setup;
  7. use PhpMyAdmin\Config\Forms\BaseForm;
  8. class ServersForm extends BaseForm
  9. {
  10. /**
  11. * @return array
  12. */
  13. public static function getForms()
  14. {
  15. // phpcs:disable Squiz.Arrays.ArrayDeclaration.KeySpecified,Squiz.Arrays.ArrayDeclaration.NoKeySpecified
  16. return [
  17. 'Server' => [
  18. 'Servers' => [
  19. 1 => [
  20. 'verbose',
  21. 'host',
  22. 'port',
  23. 'socket',
  24. 'ssl',
  25. 'compress',
  26. ],
  27. ],
  28. ],
  29. 'Server_auth' => [
  30. 'Servers' => [
  31. 1 => [
  32. 'auth_type',
  33. ':group:' . __('Config authentication'),
  34. 'user',
  35. 'password',
  36. ':group:end',
  37. ':group:' . __('HTTP authentication'),
  38. 'auth_http_realm',
  39. ':group:end',
  40. ':group:' . __('Signon authentication'),
  41. 'SignonSession',
  42. 'SignonURL',
  43. 'LogoutURL',
  44. ],
  45. ],
  46. ],
  47. 'Server_config' => [
  48. 'Servers' => [
  49. 1 => [
  50. 'only_db',
  51. 'hide_db',
  52. 'AllowRoot',
  53. 'AllowNoPassword',
  54. 'DisableIS',
  55. 'AllowDeny/order',
  56. 'AllowDeny/rules',
  57. 'SessionTimeZone',
  58. ],
  59. ],
  60. ],
  61. 'Server_pmadb' => [
  62. 'Servers' => [
  63. 1 => [
  64. 'pmadb' => 'phpmyadmin',
  65. 'controlhost',
  66. 'controlport',
  67. 'controluser',
  68. 'controlpass',
  69. 'bookmarktable' => 'pma__bookmark',
  70. 'relation' => 'pma__relation',
  71. 'userconfig' => 'pma__userconfig',
  72. 'users' => 'pma__users',
  73. 'usergroups' => 'pma__usergroups',
  74. 'navigationhiding' => 'pma__navigationhiding',
  75. 'table_info' => 'pma__table_info',
  76. 'column_info' => 'pma__column_info',
  77. 'history' => 'pma__history',
  78. 'recent' => 'pma__recent',
  79. 'favorite' => 'pma__favorite',
  80. 'table_uiprefs' => 'pma__table_uiprefs',
  81. 'tracking' => 'pma__tracking',
  82. 'table_coords' => 'pma__table_coords',
  83. 'pdf_pages' => 'pma__pdf_pages',
  84. 'savedsearches' => 'pma__savedsearches',
  85. 'central_columns' => 'pma__central_columns',
  86. 'designer_settings' => 'pma__designer_settings',
  87. 'export_templates' => 'pma__export_templates',
  88. 'MaxTableUiprefs' => 100,
  89. ],
  90. ],
  91. ],
  92. 'Server_tracking' => [
  93. 'Servers' => [
  94. 1 => [
  95. 'tracking_version_auto_create',
  96. 'tracking_default_statements',
  97. 'tracking_add_drop_view',
  98. 'tracking_add_drop_table',
  99. 'tracking_add_drop_database',
  100. ],
  101. ],
  102. ],
  103. ];
  104. // phpcs:enable
  105. }
  106. }