summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-02-07 19:35:45 -0200
committerRenato Botelho <renato@netgate.com>2017-02-07 19:35:45 -0200
commitb0eb674f8f9c474cbb52a468892cacf5df9e9028 (patch)
tree46bbba4bc4d7cd55fa9af923ac00ecc569ba488c /src/usr/local/www/diag_backup.php
parent5baea4da88fd6c093582d9c3e9b67cce5d6a1013 (diff)
parent9a7e1c9580c5779c86bc97d6d82c43401c7a4b12 (diff)
downloadpfsense-b0eb674f8f9c474cbb52a468892cacf5df9e9028.zip
pfsense-b0eb674f8f9c474cbb52a468892cacf5df9e9028.tar.gz
Merge pull request #3486 from phil-davis/diag-backup
Diffstat (limited to 'src/usr/local/www/diag_backup.php')
-rw-r--r--src/usr/local/www/diag_backup.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/usr/local/www/diag_backup.php b/src/usr/local/www/diag_backup.php
index e27c212..79b66e5 100644
--- a/src/usr/local/www/diag_backup.php
+++ b/src/usr/local/www/diag_backup.php
@@ -171,13 +171,13 @@ if ($_POST['apply']) {
if ($_POST) {
unset($input_errors);
- if (stristr($_POST['Submit'], gettext("Restore configuration"))) {
+ if ($_POST['restore']) {
$mode = "restore";
- } else if (stristr($_POST['Submit'], gettext("Reinstall"))) {
+ } else if ($_POST['reinstallpackages']) {
$mode = "reinstallpackages";
- } else if (stristr($_POST['Submit'], gettext("Clear Package Lock"))) {
+ } else if ($_POST['clearpackagelock']) {
$mode = "clearpackagelock";
- } else if (stristr($_POST['Submit'], gettext("Download"))) {
+ } else if ($_POST['download']) {
$mode = "download";
}
if ($_POST["nopackages"] <> "") {
@@ -573,7 +573,7 @@ $section->addInput(new Form_Input(
$group = new Form_Group('');
// Note: ID attribute of each element created is to be unique. Not being used, suppressing it.
$group->add(new Form_Button(
- 'Submit',
+ 'download',
'Download configuration as XML',
null,
'fa-download'
@@ -621,7 +621,7 @@ $section->addInput(new Form_Input(
$group = new Form_Group('');
// Note: ID attribute of each element created is to be unique. Not being used, suppressing it.
$group->add(new Form_Button(
- 'Submit',
+ 'restore',
'Restore Configuration',
null,
'fa-undo'
@@ -638,7 +638,7 @@ if (($config['installedpackages']['package'] != "") || (is_subsystem_dirty("pack
$group = new Form_Group('');
// Note: ID attribute of each element created is to be unique. Not being used, suppressing it.
$group->add(new Form_Button(
- 'Submit',
+ 'reinstallpackages',
'Reinstall Packages',
null,
'fa-retweet'
@@ -651,7 +651,7 @@ if (($config['installedpackages']['package'] != "") || (is_subsystem_dirty("pack
$group = new Form_Group('');
// Note: ID attribute of each element created is to be unique. Not being used, suppressing it.
$group->add(new Form_Button(
- 'Submit',
+ 'clearpackagelock',
'Clear Package Lock',
null,
'fa-wrench'
OpenPOWER on IntegriCloud