mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Fix not to display options that are deprecated or removed
This commit is contained in:
@@ -24,8 +24,10 @@ print &ui_table_start($text{'misc_header'}, "width=100%", 4);
|
||||
# Tag styles
|
||||
print &ui_table_row(&opt_help($text{'misc_short'}, 'short_open_tag'),
|
||||
&onoff_radio("short_open_tag"));
|
||||
print &ui_table_row(&opt_help($text{'misc_asp'}, 'asp_tags'),
|
||||
&onoff_radio("asp_tags"));
|
||||
if (php_version_test_maximum('5.6')) {
|
||||
print &ui_table_row(&opt_help($text{'misc_asp'}, 'asp_tags'),
|
||||
&onoff_radio("asp_tags"));
|
||||
}
|
||||
|
||||
# Output options
|
||||
print &ui_table_row(&opt_help($text{'misc_zlib'}, 'zlib.output_compression'),
|
||||
|
||||
@@ -11,18 +11,19 @@ $conf = &get_config_as_user($in{'file'});
|
||||
print &ui_form_start("save_vars.cgi", "post");
|
||||
print &ui_hidden("file", $in{'file'}),"\n";
|
||||
print &ui_table_start($text{'vars_header'}, "width=100%", 4);
|
||||
if (php_version_test_maximum('7.4')) {
|
||||
print &ui_table_row(&opt_help($text{'vars_magic'}, 'magic_quotes_gpc'),
|
||||
&onoff_radio("magic_quotes_gpc"));
|
||||
print &ui_table_row(&opt_help($text{'vars_runtime'}, 'magic_quotes_runtime'),
|
||||
&onoff_radio("magic_quotes_runtime"));
|
||||
}
|
||||
|
||||
print &ui_table_row(&opt_help($text{'vars_magic'}, 'magic_quotes_gpc'),
|
||||
&onoff_radio("magic_quotes_gpc"));
|
||||
|
||||
print &ui_table_row(&opt_help($text{'vars_runtime'}, 'magic_quotes_runtime'),
|
||||
&onoff_radio("magic_quotes_runtime"));
|
||||
|
||||
print &ui_table_row(&opt_help($text{'vars_register'}, 'register_globals'),
|
||||
&onoff_radio("register_globals"));
|
||||
|
||||
print &ui_table_row(&opt_help($text{'vars_long'}, 'register_long_arrays'),
|
||||
&onoff_radio("register_long_arrays"));
|
||||
if (php_version_test_maximum('5.6')) {
|
||||
print &ui_table_row(&opt_help($text{'vars_register'}, 'register_globals'),
|
||||
&onoff_radio("register_globals"));
|
||||
print &ui_table_row(&opt_help($text{'vars_long'}, 'register_long_arrays'),
|
||||
&onoff_radio("register_long_arrays"));
|
||||
}
|
||||
|
||||
print &ui_table_row(&opt_help($text{'vars_args'}, 'register_argc_argv'),
|
||||
&onoff_radio("register_argc_argv"));
|
||||
|
||||
Reference in New Issue
Block a user