|
|
@ -329,7 +329,7 @@ def getPhpConf(version): |
|
|
|
{'name': 'cgi.fix_pathinfo', 'type': 0, 'ps': '是否开启pathinfo'}, |
|
|
|
{'name': 'cgi.fix_pathinfo', 'type': 0, 'ps': '是否开启pathinfo'}, |
|
|
|
{'name': 'date.timezone', 'type': 3, 'ps': '时区'} |
|
|
|
{'name': 'date.timezone', 'type': 3, 'ps': '时区'} |
|
|
|
] |
|
|
|
] |
|
|
|
phpini = mw.readFile(getServerDir() + '/' + version + '/etc/php.ini') |
|
|
|
phpini = mw.readFile(getConf()) |
|
|
|
result = [] |
|
|
|
result = [] |
|
|
|
for g in gets: |
|
|
|
for g in gets: |
|
|
|
rep = g['name'] + '\s*=\s*([0-9A-Za-z_& ~]+)(\s*;?|\r?\n)' |
|
|
|
rep = g['name'] + '\s*=\s*([0-9A-Za-z_& ~]+)(\s*;?|\r?\n)' |
|
|
@ -347,7 +347,7 @@ def submitPhpConf(version): |
|
|
|
'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() |
|
|
|
filename = getServerDir() + '/' + version + '/etc/php.ini' |
|
|
|
filename = getConf() |
|
|
|
phpini = mw.readFile(filename) |
|
|
|
phpini = mw.readFile(filename) |
|
|
|
for g in gets: |
|
|
|
for g in gets: |
|
|
|
if g in args: |
|
|
|
if g in args: |
|
|
|