|
|
@ -370,7 +370,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)' |
|
|
|