From 51107aca9f85a2b3cd8e06622bea9b99899d0f48 Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 25 Jun 2022 11:04:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/phpmyadmin/index.html | 1 + plugins/phpmyadmin/index.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/plugins/phpmyadmin/index.html b/plugins/phpmyadmin/index.html index 8f2254d92..ab22e74d6 100755 --- a/plugins/phpmyadmin/index.html +++ b/plugins/phpmyadmin/index.html @@ -8,6 +8,7 @@

安全设置

访问日志

错误日志

+

配置

diff --git a/plugins/phpmyadmin/index.py b/plugins/phpmyadmin/index.py index 751de00e5..7e66c4492 100755 --- a/plugins/phpmyadmin/index.py +++ b/plugins/phpmyadmin/index.py @@ -48,6 +48,10 @@ def getConf(): return mw.getServerDir() + '/web_conf/nginx/vhost/phpmyadmin.conf' +def getConfInc(): + return getServerDir() + '/phpmyadmin/config.inc.conf' + + def getPort(): file = getConf() content = mw.readFile(file) @@ -226,6 +230,8 @@ if __name__ == "__main__": print(reload()) elif func == 'conf': print(getConf()) + elif func == 'config_inc': + print(getConfInc()) elif func == 'get_home_page': print(getHomePage()) elif func == 'set_php_ver':