Skip to content

Commit 178cfb1

Browse files
committed
Update index.py
1 parent fcef7ec commit 178cfb1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugins/phpmyadmin/index.py

+8
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,12 @@ def pluginsDbSupport():
496496

497497
return mw.returnJson(True, 'ok', data)
498498

499+
def installPreInspection():
500+
php_confdir = mw.getServerDir()+'/web_conf/php/conf'
501+
if os.path.exists(php_confdir):
502+
return "必须先安装一个php版本!"
503+
return 'ok'
504+
499505
if __name__ == "__main__":
500506
func = sys.argv[1]
501507
if func == 'status':
@@ -508,6 +514,8 @@ def pluginsDbSupport():
508514
print(restart())
509515
elif func == 'reload':
510516
print(reload())
517+
elif func == 'install_pre_inspection':
518+
print(installPreInspection())
511519
elif func == 'conf':
512520
print(getConf())
513521
elif func == 'version':

0 commit comments

Comments
 (0)