초기 커밋: 5130 레거시 시스템
- URL 하드코딩 → .env APP_URL 기반 동적 URL로 변경 - DB 연결 하드코딩 → .env 기반으로 변경 - MySQL strict mode DATE 오류 수정
This commit is contained in:
33
dbeditor/setup/frames/menu.inc.php
Normal file
33
dbeditor/setup/frames/menu.inc.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
||||
/**
|
||||
* Menu items
|
||||
*
|
||||
* @package PhpMyAdmin-Setup
|
||||
*/
|
||||
use PhpMyAdmin\Url;
|
||||
use PhpMyAdmin\Config\Forms\Setup\SetupFormList;
|
||||
|
||||
if (!defined('PHPMYADMIN')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$formset_id = isset($_GET['formset']) ? $_GET['formset'] : null;
|
||||
|
||||
echo '<ul>';
|
||||
echo '<li><a href="index.php' , Url::getCommon() , '"'
|
||||
, ($formset_id === null ? ' class="active' : '')
|
||||
, '">' , __('Overview') , '</a></li>';
|
||||
|
||||
$ignored = array('Config', 'Servers');
|
||||
foreach (SetupFormList::getAll() as $formset) {
|
||||
if (in_array($formset, $ignored)) {
|
||||
continue;
|
||||
}
|
||||
$form_class = SetupFormList::get($formset);
|
||||
echo '<li><a href="index.php' , Url::getCommon(array('page' => 'form', 'formset' => $formset)) , '" '
|
||||
, ($formset_id === $formset ? ' class="active' : '')
|
||||
, '">' , $form_class::getName() , '</a></li>';
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
Reference in New Issue
Block a user