diff --git a/plugins/phpmyadmin/index.py b/plugins/phpmyadmin/index.py index 06234631f..32d91a09e 100755 --- a/plugins/phpmyadmin/index.py +++ b/plugins/phpmyadmin/index.py @@ -90,7 +90,7 @@ def getHomePage(): def getPhpVer(expect=55): php_vers = MwSites.instance().getPhpVersion() - v = php_ver['data'] + v = php_vers['data'] is_find = False for i in range(len(v)): t = str(v[i]['version']) diff --git a/plugins/phpmyadmin/install.sh b/plugins/phpmyadmin/install.sh index 9dfb0b45a..3d643d341 100755 --- a/plugins/phpmyadmin/install.sh +++ b/plugins/phpmyadmin/install.sh @@ -7,6 +7,8 @@ rootPath=$(dirname "$curPath") rootPath=$(dirname "$rootPath") serverPath=$(dirname "$rootPath") +# cd /www/server/mdserver-web && python3 plugins/phpmyadmin/index.py start + if [ -f ${rootPath}/bin/activate ];then source ${rootPath}/bin/activate fi diff --git a/plugins/tamper_proof_py/index.py b/plugins/tamper_proof_py/index.py index cdeb1050a..4fe6746a4 100755 --- a/plugins/tamper_proof_py/index.py +++ b/plugins/tamper_proof_py/index.py @@ -562,7 +562,6 @@ class App: # 判断是否安装php php_version = MwSites.instance().getPhpVersion() - if not php_version['data']: return mw.returnJson(False, "未安装PHP测试失败") diff --git a/plugins/xhprof/index.py b/plugins/xhprof/index.py index 46737af0f..5e4b3619c 100755 --- a/plugins/xhprof/index.py +++ b/plugins/xhprof/index.py @@ -75,7 +75,7 @@ def getHomePage(): def getPhpVer(expect=74): php_vers = MwSites.instance().getPhpVersion() - v = php_ver['data'] + v = php_vers['data'] for i in range(len(v)): t = int(v[i]['version']) if (t >= expect):