summaryrefslogtreecommitdiff
path: root/templates/vhosts/partials/php_settings.erb
blob: 3a1ab5c02c5fb5243f29fbecdda9dc101e75aa0a (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.keys.sort.each do |key|
    dvalue = php_settings[keys].to_s.downcase
    munged_value = if dvalue == 'true'
	      'on'
	    elsif dvalue == 'false'
	      'off'
	    elsif ['on','off'].include?(dvalue)
	      dvalue
	    else
	      value
	    end
    if ['on','off' ].include?(munged_value) -%>
    php_admin_flag <%= key %> <%= munged_value %>
<% else -%>
    php_admin_value <%= key %> <%= munged_value %>
<% end -%>
<% end -%>
<% end -%>