summaryrefslogtreecommitdiff
path: root/managerservice.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-11-17 18:58:45 +0300
committerValentin Popov <info@valentineus.link>2017-11-17 18:58:45 +0300
commit4a470056a715eb5f7b954978c8684ae83904cdf6 (patch)
tree0bc2e0879e2dad8f78dab7835167b9e9446ecb04 /managerservice.php
parent688448b350e3137e14e56c30fd5d547884acddbc (diff)
downloadlocal_webhooks-4a470056a715eb5f7b954978c8684ae83904cdf6.tar.xz
local_webhooks-4a470056a715eb5f7b954978c8684ae83904cdf6.zip
Template of the restore settings page
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