From 4c6f98a668dcfe41bc13ee79e53b688ed0eed8a7 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 20 Nov 2017 06:15:04 +0400 Subject: Initial commit --- managertokens.php | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 managertokens.php (limited to 'managertokens.php') diff --git a/managertokens.php b/managertokens.php new file mode 100644 index 0000000..6240fa1 --- /dev/null +++ b/managertokens.php @@ -0,0 +1,43 @@ +. + +/** + * Manager tokens. + * + * @package tool_managertokens + * @copyright 2017 "Valentin Popov" + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +require_once(__DIR__ . "/../../../config.php"); +require_once($CFG->libdir . "/adminlib.php"); + +/* Link generation */ +$managertokens = new moodle_url("/admin/tool/managertokens/managertokens.php"); +$baseurl = new moodle_url($managertokens); + +/* Configure the context of the page */ +admin_externalpage_setup("tool_managertokens", "", null, $baseurl, array()); +$context = context_system::instance(); + +/* The page title */ +$titlepage = new lang_string("pluginname", "tool_managertokens"); +$PAGE->set_heading($titlepage); +$PAGE->set_title($titlepage); +echo $OUTPUT->header(); + +/* Footer */ +echo $OUTPUT->footer(); \ No newline at end of file -- cgit v1.2.3