We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcef7ec commit 178cfb1Copy full SHA for 178cfb1
plugins/phpmyadmin/index.py
@@ -496,6 +496,12 @@ def pluginsDbSupport():
496
497
return mw.returnJson(True, 'ok', data)
498
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
+
505
if __name__ == "__main__":
506
func = sys.argv[1]
507
if func == 'status':
@@ -508,6 +514,8 @@ def pluginsDbSupport():
508
514
print(restart())
509
515
elif func == 'reload':
510
516
print(reload())
517
+ elif func == 'install_pre_inspection':
518
+ print(installPreInspection())
511
519
elif func == 'conf':
512
520
print(getConf())
513
521
elif func == 'version':
0 commit comments