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:
Jan Paul Tuecking
2009-09-10 22:06:44 +02:00
parent 958a98a253
commit 2e1432c4b7
3 changed files with 17 additions and 4 deletions

9
html/cgi-bin/dns.cgi Normal file → Executable file
View 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'}' />
&nbsp;&nbsp;&nbsp;&nbsp;
<input type='submit' name='DELETE' value='$Lang::tr{'delete'}' />
&nbsp;&nbsp;&nbsp;&nbsp;
<input type='submit' name='RECONNECT' value='$Lang::tr{'reconnect'}' />
</div>
</td>