ServersForm.php 3.9 KB

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