menu.inc.php 884 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Menu items
  5. *
  6. * @package PhpMyAdmin-Setup
  7. */
  8. use PhpMyAdmin\Url;
  9. use PhpMyAdmin\Config\Forms\Setup\SetupFormList;
  10. if (!defined('PHPMYADMIN')) {
  11. exit;
  12. }
  13. $formset_id = isset($_GET['formset']) ? $_GET['formset'] : null;
  14. echo '<ul>';
  15. echo '<li><a href="index.php' , Url::getCommon() , '"'
  16. , ($formset_id === null ? ' class="active' : '')
  17. , '">' , __('Overview') , '</a></li>';
  18. $ignored = array('Config', 'Servers');
  19. foreach (SetupFormList::getAll() as $formset) {
  20. if (in_array($formset, $ignored)) {
  21. continue;
  22. }
  23. $form_class = SetupFormList::get($formset);
  24. echo '<li><a href="index.php' , Url::getCommon(array('page' => 'form', 'formset' => $formset)) , '" '
  25. , ($formset_id === $formset ? ' class="active' : '')
  26. , '">' , $form_class::getName() , '</a></li>';
  27. }
  28. echo '</ul>';