$savemsg=sprintf(gettext('Successfully reverted to timestamp %s with description "%s".'),date(gettext("n/j/y H:i:s"),$_POST['newver']),$revision['description']);
}else{
$savemsg=gettext("Unable to revert to the selected configuration.");
$savemsg=sprintf(gettext('Deleted backup with timestamp %s and description "%s".'),date(gettext("n/j/y H:i:s"),$_POST['rmver']),$revision['description']);
}else{
$savemsg=gettext("Unable to delete the selected configuration.");
$savemsg=sprintf(gettext('Successfully reverted to timestamp %s with description "%s".'),date(gettext("n/j/y H:i:s"),$_POST['id']),$revision['description']);
}else{
$savemsg=gettext("Unable to revert to the selected configuration.");
$savemsg=sprintf(gettext('Deleted backup with timestamp %s and description "%s".'),date(gettext("n/j/y H:i:s"),$revision['time']),$revision['description']);
}else{
$savemsg=gettext("Unable to delete the selected configuration.");
}
unset($confvers[$filename]);
break;
}
}
}
}
include("head.inc");
include("head.inc");
?>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
// revert config dialog
$(".act_revert").click(function(){
varid=$(this).data('id');
BootstrapDialog.show({
type:BootstrapDialog.TYPE_INFO,
title:"<?=gettext("Action");?>",
message:"<?=gettext("Restore from Configuration Backup");?> <br/> <?=gettext('Version');?>: "+id,
<?=gettext("NOTE: Be aware of how much space is consumed by backups before adjusting this value. Current space used by backups: ");?><?=exec("/usr/bin/du -sh /conf/backup | /usr/bin/awk '{print $1;}'")?>
<?=gettext("To view the differences between an older configuration and a newer configuration, select the older configuration using the left column of radio options and select the newer configuration in the right column, then press the button.");?>
<ahref="diag_confbak.php?newver=<?=$version['time'];?>"class="btn btn-default btn-xs"title="<?=gettext("Revert to this configuration");?>"><spanclass="glyphicon glyphicon-log-in"></span></a>
<ahref="diag_confbak.php?rmver=<?=$version['time'];?>"class="btn btn-default btn-xs"title="<?=gettext("Remove this backup");?>"><spanclass="glyphicon glyphicon-remove"></span></a>
<ahref="diag_confbak.php?getcfg=<?=$version['time'];?>"class="btn btn-default btn-xs"title="<?=gettext("Download this backup");?>"><spanclass="glyphicon glyphicon-download"></span></a>
<adata-id="<?=$version['time'];?>"href="#"class="act_revert btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("Revert to this configuration");?>">
<spanclass="glyphicon glyphicon-log-in"></span>
</a>
<adata-id="<?=$version['time'];?>"href="#"class="act_delete btn btn-default btn-xs"data-toggle="tooltip"data-placement="left"title="<?=gettext("Remove this backup");?>">
<spanclass="glyphicon glyphicon-remove"></span>
</a>
<ahref="diag_confbak.php?getcfg=<?=$version['time'];?>"class="btn btn-default btn-xs"title="<?=gettext("Download this backup");?>">