FeaturesForm.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * User preferences form
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. namespace PhpMyAdmin\Config\Forms\Setup;
  9. class FeaturesForm extends \PhpMyAdmin\Config\Forms\User\FeaturesForm
  10. {
  11. public static function getForms()
  12. {
  13. $result = parent::getForms();
  14. /* Remove only_db/hide_db, we have proper Server form in setup */
  15. $result['Databases'] = array_diff(
  16. $result['Databases'],
  17. ['Servers/1/only_db', 'Servers/1/hide_db']
  18. );
  19. /* Following are not available to user */
  20. $result['Import_export'] = array(
  21. 'UploadDir',
  22. 'SaveDir',
  23. 'RecodingEngine' => ':group',
  24. 'IconvExtraParams',
  25. ':group:end',
  26. 'ZipDump',
  27. 'GZipDump',
  28. 'BZipDump',
  29. 'CompressOnFly'
  30. );
  31. $result['Security'] = array(
  32. 'blowfish_secret',
  33. 'CheckConfigurationPermissions',
  34. 'TrustedProxies',
  35. 'AllowUserDropDatabase',
  36. 'AllowArbitraryServer',
  37. 'ArbitraryServerRegexp',
  38. 'LoginCookieRecall',
  39. 'LoginCookieStore',
  40. 'LoginCookieDeleteAll',
  41. 'CaptchaLoginPublicKey',
  42. 'CaptchaLoginPrivateKey'
  43. );
  44. $result['Developer'] = array(
  45. 'UserprefsDeveloperTab',
  46. 'DBG/sql',
  47. );
  48. $result['Other_core_settings'] = array(
  49. 'OBGzip',
  50. 'PersistentConnections',
  51. 'ExecTimeLimit',
  52. 'MemoryLimit',
  53. 'UseDbSearch',
  54. 'ProxyUrl',
  55. 'ProxyUser',
  56. 'ProxyPass',
  57. 'AllowThirdPartyFraming',
  58. 'ZeroConf',
  59. );
  60. return $result;
  61. }
  62. }