<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>
<aclass="btn btn-default btn-xs"href="services_captiveportal_vouchers.php?zone=<?=$cpzone;?>&act=del&id=<?=$i;?>"onclick="return confirm('<?=gettext("Do you really want to delete this voucher? This makes all vouchers from this roll invalid");?>')"><spanclass="glyphicon glyphicon-remove"title="<?=gettext("delete vouchers");?>"alt="<?=gettext("delete vouchers");?>"></span></a>
<aclass="btn btn-default btn-xs"href="services_captiveportal_vouchers.php?zone=<?=$cpzone;?>&act=csv&id=<?=$i;?>"><spanclass="glyphicon glyphicon-download-alt"title="<?=gettext("generate vouchers for this roll to CSV file");?>"alt="<?=gettext("generate vouchers for this roll to CSV file");?>"></span></a>
<?=gettext("Paste an RSA public key (64 Bit or smaller) in PEM format here. This key is used to decrypt vouchers.");?><ahref='#'onclick='generatenewkey();'><?=gettext('Generate');?></a><?=gettext('new key');?>.</td>
<?=gettext("Paste an RSA public key (64 Bit or smaller) in PEM format here. This key is used to decrypt vouchers.");
<?=gettext("Paste an RSA private key (64 Bit or smaller) in PEM format here. This key is only used to generate encrypted vouchers and doesn't need to be available if the vouchers have been generated offline.");?><ahref='#'onclick='generatenewkey();'><?=gettext('Generate');?></a><?=gettext('new key');?>.</td>
<?=gettext("Paste an RSA private key (64 Bit or smaller) in PEM format here. This key is only used to generate encrypted vouchers and doesn't need to be available if the vouchers have been generated offline.");
<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>