From 4a470056a715eb5f7b954978c8684ae83904cdf6 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 17 Nov 2017 19:58:45 +0400 Subject: Template of the restore settings page --- managerservice.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'managerservice.php') 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 -- cgit v1.2.3