Update index.py

pull/109/head
midoks 6 years ago
parent 00e999ea80
commit 2190eaf142
  1. 5
      plugins/php/index.py

@ -145,6 +145,7 @@ def makeOpenrestyConf():
public.writeFile(dfile, content)
public.restartWeb()
def phpFpmReplace(version):
desc_php_fpm = getServerDir() + '/' + version + '/etc/php-fpm.conf'
if not os.path.exists(desc_php_fpm):
@ -201,7 +202,6 @@ def initReplace(version):
os.mkdir(session_path)
if not public.isAppleSystem():
public.execShell('chmod -R www:www' + session_path)
return file_bin
@ -515,7 +515,8 @@ def setDisableFunc(version):
phpini = public.readFile(filename)
rep = "disable_functions\s*=\s*.*\n"
phpini = re.sub(rep, 'disable_functions = ' +disable_functions + "\n", phpini)
phpini = re.sub(rep, 'disable_functions = ' +
disable_functions + "\n", phpini)
msg = public.getInfo('修改PHP-{1}的禁用函数为[{2}]', (version, disable_functions,))
public.writeLog('插件管理[PHP]', msg)

Loading…
Cancel
Save