MainForm.php 604 B

1234567891011121314151617181920212223242526272829
  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. /**
  11. * Class MainForm
  12. * @package PhpMyAdmin\Config\Forms\Setup
  13. */
  14. class MainForm extends \PhpMyAdmin\Config\Forms\User\MainForm
  15. {
  16. /**
  17. * @return array
  18. */
  19. public static function getForms()
  20. {
  21. $result = parent::getForms();
  22. /* Following are not available to user */
  23. $result['Startup'][] = 'ShowPhpInfo';
  24. $result['Startup'][] = 'ShowChgPassword';
  25. return $result;
  26. }
  27. }