summaryrefslogtreecommitdiff
path: root/templates/vhosts/partials/php_settings.erb
blob: 784098764e569fb2621416d1e3fd094badabed32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<% if run_mode != 'fcgid'
  php_settings.reject{|k,v| v == :undef }.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 -%>