2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 22:07:16 +08:00

chore: 框架更新的其他调整和更新 PHP 版本号

This commit is contained in:
耗子
2023-09-11 19:33:29 +08:00
parent 25d295f4a1
commit 25436325b2
22 changed files with 684 additions and 467 deletions

View File

@@ -19,8 +19,9 @@ func NewPhpMyAdminController() *PhpMyAdminController {
}
func (c *PhpMyAdminController) Info(ctx http.Context) http.Response {
if !controllers.Check(ctx, "phpmyadmin") {
return nil
check := controllers.Check(ctx, "phpmyadmin")
if check != nil {
return check
}
files, err := os.ReadDir("/www/server/phpmyadmin")
@@ -51,8 +52,9 @@ func (c *PhpMyAdminController) Info(ctx http.Context) http.Response {
}
func (c *PhpMyAdminController) SetPort(ctx http.Context) http.Response {
if !controllers.Check(ctx, "phpmyadmin") {
return nil
check := controllers.Check(ctx, "phpmyadmin")
if check != nil {
return check
}
port := ctx.Request().Input("port")