<% if @run_mode != 'fcgid' @php_settings.reject{|k,v| (v == :undef) || v.nil? }.keys.sort.each do |key| dvalue = @php_settings[key].to_s.downcase munged_value = if dvalue == 'true' 'on' elsif dvalue == 'false' 'off' elsif ['on','off'].include?(dvalue) dvalue else @php_settings[key] end if ['on','off' ].include?(munged_value) -%> php_admin_flag <%= key %> <%= munged_value %> <% else -%> php_admin_value <%= key %> <%= munged_value %> <% end -%> <% end -%> <% end -%>