<ahref="services_captiveportal_filemanager.php?zone=<?=$cpzone;?>&act=del&id=<?=$i;?>"onclick="return confirm('<?=gettext("Do you really want to delete this file?");?>')">
<ahref="services_captiveportal_ip.php?zone=<?=$cpzone;?>&act=del&id=<?=$i;?>"onclick="return confirm('<?=gettext("Do you really want to delete this address?");?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></a></td>
?>"onclick="return confirm('<?=gettext("Do you really want to delete this address?");?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></a></td>
echogettext("No entry exists for this username:")." ".$_POST['username']."\n";
echogettext("No entry exists for this username:")." ".$_POST['username']."\n";
}
}
}
if($_POST['delmac']){
if($_POST['delmac']){
$found=false;
$found=false;
foreach($a_passthrumacsas$idx=>$macent){
foreach($a_passthrumacsas$idx=>$macent){
...
@@ -99,9 +103,10 @@ if ($_POST) {
...
@@ -99,9 +103,10 @@ if ($_POST) {
unset($a_passthrumacs[$idx]);
unset($a_passthrumacs[$idx]);
write_config();
write_config();
echogettext("The entry was sucessfully deleted")."\n";
echogettext("The entry was sucessfully deleted")."\n";
}else
}else{
echogettext("No entry exists for this mac address:")." ".$_POST['delmac']."\n";
echogettext("No entry exists for this mac address:")." ".$_POST['delmac']."\n";
}
}
}
exit;
exit;
}
}
}
}
...
@@ -132,10 +137,14 @@ $main_buttons = array(
...
@@ -132,10 +137,14 @@ $main_buttons = array(
<divclass="container-fluid">
<divclass="container-fluid">
<divclass="row">
<divclass="row">
<?phpif($savemsg)print_info_box($savemsg);?>
<?phpif($savemsg){
<?phpif(is_subsystem_dirty('passthrumac')):?><p>
print_info_box($savemsg);
}?>
<?phpif(is_subsystem_dirty('passthrumac')):
?><p>
<?phpprint_info_box_np(gettext("The captive portal MAC address configuration has been changed.<br />You must apply the changes in order for them to take effect."));?><br/>
<?phpprint_info_box_np(gettext("The captive portal MAC address configuration has been changed.<br />You must apply the changes in order for them to take effect."));?><br/>
<ahref="services_captiveportal_mac.php?zone=<?=$cpzone;?>&act=del&id=<?=$i;?>"onclick="return confirm('<?=gettext("Do you really want to delete this host?");?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></a>
?>"onclick="return confirm('<?=gettext("Do you really want to delete this host?");?>')"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></a>
<spanclass="vexpl"><?=gettext("Enter the Roll");?># (0..<?=htmlspecialchars($maxnumber);?>) <?=gettext("found on top of the generated/printed vouchers");?>.</span>
<spanclass="vexpl"><?=gettext("Enter the Roll");
?># (0..<?=htmlspecialchars($maxnumber);
?>) <?=gettext("found on top of the generated/printed vouchers");?>.</span>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<tdwidth="22%"valign="top"class="vncellreq"><?=gettext("Minutes per Ticket");?></td>
<tdwidth="22%"valign="top"class="vncellreq"><?=gettext("Minutes per Ticket");?></td>
<spanclass="vexpl"><?=gettext("Defines the time in minutes that a user is allowed access. The clock starts ticking the first time a voucher is used for authentication");?>.</span>
<spanclass="vexpl"><?=gettext("Defines the time in minutes that a user is allowed access. The clock starts ticking the first time a voucher is used for authentication");?>.</span>
<spanclass="vexpl"><?=gettext("Enter the number of vouchers");?> (1..<?=htmlspecialchars($maxcount);?>) <?=gettext("found on top of the generated/printed vouchers. WARNING: Changing this number for an existing Roll will mark all vouchers as unused again");?>.</span>
<spanclass="vexpl"><?=gettext("Enter the number of vouchers");
?> (1..<?=htmlspecialchars($maxcount);
?>) <?=gettext("found on top of the generated/printed vouchers. WARNING: Changing this number for an existing Roll will mark all vouchers as unused again");?>.</span>
<?phpprint_info_box_np(gettext("The CaptivePortal entry list has been changed").".<br />".gettext("You must apply the changes in order for them to take effect."));?>
<?phpprint_info_box_np(gettext("The CaptivePortal entry list has been changed").".<br />".gettext("You must apply the changes in order for them to take effect."));?>
<ahref="services_captiveportal_zones.php?act=del&zone=<?=$cpzone;?>"onclick="return confirm('<?=gettext("Do you really want to delete this entry?");?>')"title="<?=gettext("delete captiveportal instance");?>"class="btn btn-default btn-xs"><spanclass="glyphicon glyphicon-remove"></span></a>