ServersForm.php 3.8 KB

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