max_input_vars 错误

pull/119/head
midoks 3 years ago
parent 9cf8dd030d
commit 27b991941c
  1. 2
      plugins/php/conf/php7.ini
  2. 2
      plugins/php/conf/php8.ini
  3. 7
      plugins/php/index.py
  4. 1
      plugins/php/js/php.js

@ -12,7 +12,7 @@ zend.enable_gc = On
expose_php = On expose_php = On
max_execution_time = 30 max_execution_time = 30
max_input_time = 60 max_input_time = 60
max_input_var = 1000 max_input_vars = 1000
memory_limit = 128M memory_limit = 128M
error_reporting = E_ALL error_reporting = E_ALL
display_errors = On display_errors = On

@ -12,7 +12,7 @@ zend.enable_gc = On
expose_php = On expose_php = On
max_execution_time = 30 max_execution_time = 30
max_input_time = 60 max_input_time = 60
max_input_var = 1000 max_input_vars = 1000
memory_limit = 128M memory_limit = 128M
error_reporting = E_ALL error_reporting = E_ALL
display_errors = On display_errors = On

@ -346,7 +346,7 @@ def getPhpConf(version):
{'name': 'asp_tags', 'type': 1, 'ps': 'ASP标签支持'}, {'name': 'asp_tags', 'type': 1, 'ps': 'ASP标签支持'},
{'name': 'max_execution_time', 'type': 2, 'ps': '最大脚本运行时间'}, {'name': 'max_execution_time', 'type': 2, 'ps': '最大脚本运行时间'},
{'name': 'max_input_time', 'type': 2, 'ps': '最大输入时间'}, {'name': 'max_input_time', 'type': 2, 'ps': '最大输入时间'},
{'name': 'max_input_var', 'type': 2, 'ps': '最大输入数量'}, {'name': 'max_input_vars', 'type': 2, 'ps': '最大输入数量'},
{'name': 'memory_limit', 'type': 2, 'ps': '脚本内存限制'}, {'name': 'memory_limit', 'type': 2, 'ps': '脚本内存限制'},
{'name': 'post_max_size', 'type': 2, 'ps': 'POST数据最大尺寸'}, {'name': 'post_max_size', 'type': 2, 'ps': 'POST数据最大尺寸'},
{'name': 'file_uploads', 'type': 1, 'ps': '是否允许上传文件'}, {'name': 'file_uploads', 'type': 1, 'ps': '是否允许上传文件'},
@ -372,7 +372,7 @@ def getPhpConf(version):
def submitPhpConf(version): def submitPhpConf(version):
gets = ['display_errors', 'cgi.fix_pathinfo', 'date.timezone', 'short_open_tag', gets = ['display_errors', 'cgi.fix_pathinfo', 'date.timezone', 'short_open_tag',
'asp_tags', 'max_execution_time', 'max_input_time', 'memory_limit', 'asp_tags', 'max_execution_time', 'max_input_time', 'max_input_vars', 'memory_limit',
'post_max_size', 'file_uploads', 'upload_max_filesize', 'max_file_uploads', 'post_max_size', 'file_uploads', 'upload_max_filesize', 'max_file_uploads',
'default_socket_timeout', 'error_reporting'] 'default_socket_timeout', 'error_reporting']
args = getArgs() args = getArgs()
@ -384,7 +384,8 @@ def submitPhpConf(version):
val = g + ' = ' + args[g] + '\n' val = g + ' = ' + args[g] + '\n'
phpini = re.sub(rep, val, phpini) phpini = re.sub(rep, val, phpini)
mw.writeFile(filename, phpini) mw.writeFile(filename, phpini)
mw.execShell(getServerDir() + '/init.d/php' + version + ' reload') # mw.execShell(getServerDir() + '/init.d/php' + version + ' reload')
reload(version)
return mw.returnJson(True, '设置成功') return mw.returnJson(True, '设置成功')

@ -111,6 +111,7 @@ function submitConf(version) {
safe_mode: $("select[name='safe_mode']").val(), safe_mode: $("select[name='safe_mode']").val(),
max_execution_time: $("input[name='max_execution_time']").val(), max_execution_time: $("input[name='max_execution_time']").val(),
max_input_time: $("input[name='max_input_time']").val(), max_input_time: $("input[name='max_input_time']").val(),
max_input_vars: $("input[name='max_input_vars']").val(),
memory_limit: $("input[name='memory_limit']").val(), memory_limit: $("input[name='memory_limit']").val(),
post_max_size: $("input[name='post_max_size']").val(), post_max_size: $("input[name='post_max_size']").val(),
file_uploads: $("select[name='file_uploads']").val(), file_uploads: $("select[name='file_uploads']").val(),

Loading…
Cancel
Save