summaryrefslogtreecommitdiff
path: root/managerservice.php
diff options
context:
space:
mode:
Diffstat (limited to 'managerservice.php')
-rw-r--r--managerservice.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/managerservice.php b/managerservice.php
index 6fa2ed3..ee86e3c 100644
--- a/managerservice.php
+++ b/managerservice.php
@@ -34,9 +34,11 @@ $hideshowid = optional_param("hideshowid", 0, PARAM_INT);
require_login();
-/* Link generation */
+$editservice = "/local/webhooks/editservice.php";
$managerservice = "/local/webhooks/managerservice.php";
-$editservice = "/local/webhooks/editservice.php";
+$restorebackup = "/local/webhooks/restorebackup.php";
+
+/* Link generation */
$baseurl = new moodle_url($managerservice);
$PAGE->set_url($baseurl);
@@ -130,4 +132,8 @@ echo $OUTPUT->single_button($addurl, new lang_string("addaservice", "webservice"
$backupurl = new moodle_url($managerservice, array("backup" => true));
echo $OUTPUT->single_button($backupurl, new lang_string("backup", "moodle"), "get");
+/* Button for restoring settings */
+$restorebackupurl = new moodle_url($restorebackup, array("sesskey" => sesskey()));
+echo $OUTPUT->single_button($restorebackupurl, new lang_string("restore", "moodle"), "get");
+
echo $OUTPUT->footer(); \ No newline at end of file