Add extra confirmation before extension removal
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
======================
|
||||
Version Description
|
||||
|
||||
1.0.56......Add extra confirmation before extension removal.
|
||||
1.0.55......Add backup path config check.
|
||||
1.0.54......Don't skip ZFS activation if "Available but not enabled" status displayed.
|
||||
1.0.53......Add initial ZFS activation guided support.
|
||||
|
||||
@@ -94,6 +94,7 @@ if ($_POST) {
|
||||
|
||||
// Remove only extension related files during cleanup.
|
||||
if (isset($_POST['uninstall']) && $_POST['uninstall']) {
|
||||
if(isset($_POST['delete_confirm']) && $_POST['delete_confirm']):
|
||||
bindtextdomain("xigmanas", $textdomain);
|
||||
if (is_link($textdomain_bastille)) mwexec("rm -f {$textdomain_bastille}", true);
|
||||
if (is_dir($confdir)) mwexec("rm -Rf {$confdir}", true);
|
||||
@@ -136,6 +137,9 @@ if ($_POST) {
|
||||
}
|
||||
}
|
||||
header("Location:index.php");
|
||||
else:
|
||||
$input_errors[] = gtext('Confirmation is required for extension removal.');
|
||||
endif;
|
||||
}
|
||||
|
||||
if (isset($_POST['save']) && $_POST['save']) {
|
||||
@@ -347,6 +351,7 @@ $(document).ready(function(){
|
||||
<table width="100%" border="0" cellpadding="6" cellspacing="0">
|
||||
<?php html_separator();?>
|
||||
<?php html_titleline(gtext("Uninstall"));?>
|
||||
<?php html_checkbox2('delete_confirm',gtext('Uninstall confirm'),'' ? true : false,gtext('Check to confirm extension uninstall. Note: Jail related content will be preserved by default.'),'',false);?>
|
||||
<?php html_separator();?>
|
||||
</table>
|
||||
<div id="submit1">
|
||||
|
||||
Reference in New Issue
Block a user