xref: /PHP-5.5/scripts/apache/conffix.awk (revision 125300b5)
1# $Id$
2
3/^[ \t]*php3_*/ {
4	phpcommand=substr($1,6)
5	phpvalue=tolower($2)
6	print "<IfModule mod_php3.c>"
7	print $0
8	print "</IfModule>"
9	print "<IfModule mod_php4.c>"
10	if (phpvalue=="on") {
11		print "php_admin_flag " phpcommand " on"
12	} else  if (phpvalue=="off") {
13		print "php_admin_flag " phpcommand " off"
14	} else {
15		print "php_admin_value " phpcommand " " substr($0,index($0,$1)+length($1)+1)
16	}
17	print "</IfModule>"
18}
19
20! /^[ \t]*php3_*/ {
21	print $0
22}
23
24