mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
Added a delete button to dns.cgi - now it will be possible to delete his own configuration, after reboot/reconnect dns server addresses will be assign by the provider.
Fixed some typos in english language file.
This commit is contained in:
9
html/cgi-bin/dns.cgi
Normal file → Executable file
9
html/cgi-bin/dns.cgi
Normal file → Executable file
@@ -70,6 +70,13 @@ if ($dnssettings{'RECONNECT'} eq $Lang::tr{'reconnect'}) {
|
||||
&Header::closebox();
|
||||
}
|
||||
|
||||
if ($dnssettings{'DELETE'} eq $Lang::tr{'delete'}) {
|
||||
system("cat /dev/null > ${General::swroot}/dns/settings &");
|
||||
&Header::openbox('100%', 'left', $Lang::tr{'dns address deleted'} );
|
||||
print "<font class='base'>$Lang::tr{'dns address deleted txt'}</font>\n";
|
||||
&Header::closebox();
|
||||
}
|
||||
|
||||
# DPC move error message to top so it is seen!
|
||||
if ($errormessage) {
|
||||
&Header::openbox('100%', 'left', $Lang::tr{'error messages'});
|
||||
@@ -104,6 +111,8 @@ print <<END
|
||||
<td colspan="2"><div align="center">
|
||||
<input type='submit' name='ACTION' value='$Lang::tr{'save'}' />
|
||||
|
||||
<input type='submit' name='DELETE' value='$Lang::tr{'delete'}' />
|
||||
|
||||
<input type='submit' name='RECONNECT' value='$Lang::tr{'reconnect'}' />
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user