* Allow HTTPS/HTTP revert and anti-lockout rule on WAN

This commit is contained in:
Scott Ullrich 2008-02-09 01:10:28 +00:00
parent 8dee794bb0
commit 01d72b37a8

View File

@ -144,27 +144,23 @@
unset($config['dhcpd'][$interface]['enable']);
}
if($interface == "lan") {
if ($config['system']['webgui']['protocol'] == "https") {
if ($config['system']['webgui']['protocol'] == "https") {
do {
$good = false;
echo "\n" . gettext("Do you want to revert to HTTP as the webConfigurator protocol? (y/n)") . " ";
$yn = strtolower(chop(fgets($fp)));
if ($yn[0] == "y" or $yn[0] == "n")
$good = true;
} while (!$good);
do {
$good = false;
echo "\n" . gettext("Do you want to revert to HTTP as the webConfigurator protocol? (y/n)") . " ";
$yn = strtolower(chop(fgets($fp)));
if ($yn[0] == "y" or $yn[0] == "n")
$good = true;
} while (!$good);
if ($yn == "y")
$config['system']['webgui']['protocol'] = "http";
}
if (isset($config['system']['webgui']['noantilockout'])) {
echo "\n" . gettext("Note: the anti-lockout rule on {$interface} has been re-enabled.") . "\n";
unset($config['system']['webgui']['noantilockout']);
}
if ($yn == "y")
$config['system']['webgui']['protocol'] = "http";
}
if (isset($config['system']['webgui']['noantilockout'])) {
echo "\n" . gettext("Note: the anti-lockout rule on {$interface} has been re-enabled.") . "\n";
unset($config['system']['webgui']['noantilockout']);
}
write_config(gettext("{$interface} IP configuration from console menu"));