| | |
| | | reloadWebIP(); |
| | | }); |
| | | |
| | | if(jQuery('#php').val() == 'fast-cgi'){ |
| | | if(jQuery('#php').val() == 'fast-cgi' || jQuery('#php').val() == 'php-fpm'){ |
| | | jQuery('.fastcgi_php_version:hidden').show(); |
| | | } else { |
| | | jQuery('.fastcgi_php_version:visible').hide(); |
| | | } |
| | | jQuery('#php').change(function(){ |
| | | reloadFastcgiPHPVersions(); |
| | | if(jQuery(this).val() == 'fast-cgi'){ |
| | | reloadFastcgiPHPVersions(); |
| | | if(jQuery(this).val() == 'fast-cgi' || jQuery(this).val() == 'php-fpm'){ |
| | | jQuery('.fastcgi_php_version:hidden').show(); |
| | | } else { |
| | | jQuery('.fastcgi_php_version:visible').hide(); |
| | |
| | | var selected = jQuery('#php').val(); |
| | | jQuery('.apache').hide(); |
| | | jQuery('.apache').hide(); |
| | | jQuery('#php option[value="fast-cgi"]').hide(); |
| | | jQuery('#php option[value="cgi"]').hide(); |
| | | jQuery('#php option[value="mod"]').hide(); |
| | | jQuery('#php option[value="suphp"]').hide(); |
| | | if(selected != "no" && selected != "fast-cgi") jQuery('#php option[value="fast-cgi"]').attr('selected', 'selected'); |
| | | if(selected != "no" && selected != "php-fpm") jQuery('#php option[value="php-fpm"]').attr('selected', 'selected'); |
| | | } else { |
| | | jQuery('.apache').show(); |
| | | jQuery('.apache').show(); |
| | | jQuery('#php option[value="fast-cgi"]').show(); |
| | | jQuery('#php option[value="cgi"]').show(); |
| | | jQuery('#php option[value="mod"]').show(); |
| | | jQuery('#php option[value="suphp"]').show(); |
| | |
| | | } |
| | | |
| | | function reloadFastcgiPHPVersions() { |
| | | jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {server_id : serverId, type : "getphpfastcgi"}, function(data) { |
| | | jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {server_id : serverId, php_type : jQuery('#php').val(), type : "getphpfastcgi"}, function(data) { |
| | | var options = '<option value="">Default</option>'; |
| | | var phpfastcgiselected = ''; |
| | | $.each(data, function(key, val) { |