diff --git a/backup/restore.php b/backup/restore.php index c0ac5827fec..25abe62d5da 100644 --- a/backup/restore.php +++ b/backup/restore.php @@ -129,7 +129,15 @@ } } else if ($launch == "check") { include_once("restore_check.html"); + //To avoid multiple restore executions... + $SESSION->cancontinue = true; } else if ($launch == "execute") { + //Prevent multiple restore executions... + if (empty($SESSION->cancontinue)) { + error("Multiple restore execution not allowed!"); + } + //Unset this for the future + unset($SESSION->cancontinue); include_once("restore_execute.html"); } print_simple_box_end();