ftimme
2013-06-08 71bf1c3e02289d5736d82c4f11d6473ef120574c
- Fixed FS#2899 - PHP directives field is displayed when PHP is disabled.
1 files modified
9 ■■■■ changed files
interface/web/sites/templates/web_domain_advanced.htm 9 ●●●● patch | view | raw | blame | history
interface/web/sites/templates/web_domain_advanced.htm
@@ -61,11 +61,11 @@
                    <input name="pm_max_requests" id="pm_max_requests" value="{tmpl_var name='pm_max_requests'}" size="3" maxlength="6" type="text" class="textInput formLengthLimit" />
                </div>
            </div>
            <div class="ctrlHolder">
            <div class="ctrlHolder php">
                <label for="php_open_basedir">{tmpl_var name='php_open_basedir_txt'}</label>
                <input name="php_open_basedir" id="php_open_basedir" value="{tmpl_var name='php_open_basedir'}" size="30" type="text" class="textInput"  style="width:400px;" />
            </div>
            <div class="ctrlHolder">
            <div class="ctrlHolder php">
                <label for="custom_php_ini">{tmpl_var name='custom_php_ini_txt'}</label>
                <textarea name="custom_php_ini" id="custom_php_ini" rows='10' cols='50' style="width:400px;">{tmpl_var name='custom_php_ini'}</textarea>&nbsp;<b>{tmpl_var name="available_php_directive_snippets_txt"}</b><br><br>&nbsp;{tmpl_var name="php_directive_snippets_txt"}
            </div>
@@ -144,6 +144,11 @@
            } else {
                jQuery('.phpfpm').hide();
            }
            if(data.phptype == "no"){
                jQuery('.php').hide();
            } else {
                jQuery('.php').show();
            }
        });
        jQuery.getJSON('sites/ajax_get_json.php'+ '?' + Math.round(new Date().getTime()), {web_id : webId, type : "getredirecttype"}, function(data) {
            if(data.redirecttype == "proxy"){