diff options
author | Phil Davis <phil.davis@inf.org> | 2017-02-06 15:00:56 +0545 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-02-07 19:35:51 -0200 |
commit | 0f742e5147dc7cac9bca27c00e60676a729edcd6 (patch) | |
tree | ea201757d1928c77986aa3230d91e07f4394a5eb /src/usr | |
parent | 2c5c799a646a014a7729bb834d0f8a92df0f77d0 (diff) | |
download | pfsense-0f742e5147dc7cac9bca27c00e60676a729edcd6.zip pfsense-0f742e5147dc7cac9bca27c00e60676a729edcd6.tar.gz |
diag_backup do not use button text for comparisons
(cherry picked from commit 9a7e1c9580c5779c86bc97d6d82c43401c7a4b12)
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/diag_backup.php | 16 |
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 383c82b..cb4a073 100644 --- a/src/usr/local/www/diag_backup.php +++ b/src/usr/local/www/diag_backup.php @@ -204,13 +204,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"; } else if (stristr($_POST['Submit'], gettext("Restore version"))) { $mode = "restore_ver"; @@ -623,7 +623,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' @@ -671,7 +671,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' @@ -688,7 +688,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' @@ -701,7 +701,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' |