Add two more PHP options, thanks to Collin from Bisnet
authorJamie Cameron <jcameron@webmin.com>
Tue, 15 Feb 2011 07:24:46 +0000 (23:24 -0800)
committerJamie Cameron <jcameron@webmin.com>
Tue, 15 Feb 2011 07:24:46 +0000 (23:24 -0800)
phpini/edit_misc.cgi
phpini/lang/en
phpini/save_misc.cgi

index e62586c..f456887 100755 (executable)
@@ -43,6 +43,14 @@ print &ui_table_row($text{'misc_sendmail'},
                    &ui_opt_textbox("sendmail_path", $sendmail, 60,
                                    $text{'misc_none'}), 3);
 
+# Include open options
+print &ui_table_row($text{'misc_include'},
+       &onoff_radio("allow_url_include"));
+
+# CGI Fix Path options
+print &ui_table_row($text{'misc_path'},
+       &onoff_radio("cgi.fix_pathinfo"));
+
 print &ui_table_end();
 print &ui_form_end([ [ "save", $text{'save'} ] ]);
 
index d0e9ffc..80e7641 100644 (file)
@@ -152,6 +152,8 @@ misc_esmtp=Missing or un-resolvable SMTP server
 misc_esmtp_port=Missing or non-numeric SMTP port
 misc_esendmail=Invalid command for sending email
 misc_esendmail2=Missing command for sending email
+misc_include=Allow opening of remote Includes?
+misc_path=CGI Fix Path Info?
 
 log_manual=Manually edit file $1
 log_vars=Changed PHP variables in $1
index 85258e2..6feeb20 100755 (executable)
@@ -44,6 +44,14 @@ else {
        &has_command($fp) || &error($text{'misc_esendmail'});
        &save_directive($conf, "sendmail_path", $in{"sendmail_path"});
        }
+# Save Include open options
+&save_directive($conf, "allow_url_include",
+       $in{"allow_url_include"} || undef);
+
+# Save CGI Fix Path
+&save_directive($conf, "cgi.fix_pathinfo",
+       $in{"cgi.fix_pathinfo"} || undef);
 
 &flush_file_lines_as_user($in{'file'});
 &unlock_file($in{'file'});