mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
mnet: check that sesskey please!
This commit is contained in:
parent
cfa73a9551
commit
a819a51ad2
@ -6,6 +6,10 @@
|
||||
require_once($CFG->libdir.'/adminlib.php');
|
||||
include_once($CFG->dirroot.'/mnet/xmlrpc/client.php');
|
||||
|
||||
if (!confirm_sesskey()) {
|
||||
error(get_string('confirmsesskeybad', 'error'));
|
||||
}
|
||||
|
||||
$adminroot = admin_get_root();
|
||||
admin_externalpage_setup('mnetenrol', $adminroot);
|
||||
$CFG->pagepath = 'admin/mnet';
|
||||
|
@ -5,6 +5,11 @@
|
||||
require_once(dirname(__FILE__) . "/../../config.php");
|
||||
require_once($CFG->libdir.'/adminlib.php');
|
||||
|
||||
if (!confirm_sesskey()) {
|
||||
error(get_string('confirmsesskeybad', 'error'));
|
||||
}
|
||||
|
||||
|
||||
$adminroot = admin_get_root();
|
||||
admin_externalpage_setup('mnetenrol', $adminroot);
|
||||
$CFG->pagepath = 'admin/mnet';
|
||||
|
Loading…
x
Reference in New Issue
Block a user