2520258128
changelog follows
[MNET-manual] added version.php, install.xml and upgrade.php patches
Route remote users back to their home server without going through jump.php and land.php
Display app-specific strings in the user view
Display the application icon in the Remote Host block
Hide the 'logs' tab if the application under review is not Moodle
Hide the 'logs' tab if the application under review is not Moodle
Update user record to note that picture == 1 once a picture has been
transferred.
Change 2 to uri - is this fluid?
Add application paramter to bootstrap function
Find the application
Workaround for PHP5.2.2 bug: http://bugs.php.net/bug.php?id=41293
$HTTP_RAW_POST_DATA was not being populated
Ensure we get an application for our Peer
Update the URI to use for MNET
The default 'wantsurl' should be empty
Use the appropriate 'land' url for the remote application
Add hidden form elements for 'application'
Add awareness of new Application concept
Add awareness of new Application concept
Add awareness of new Application concept
Add awareness of new Application concept
Add awareness of new Application concept
Add awareness of new Application concept
Add awareness of new Application concept
36 lines
922 B
PHP
36 lines
922 B
PHP
<?php
|
|
|
|
/**
|
|
* @author Martin Dougiamas
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
|
* @package moodle multiauth
|
|
*
|
|
* Authentication Plugin: Moodle Network Authentication
|
|
*
|
|
* Multiple host authentication support for Moodle Network.
|
|
*
|
|
* 2006-11-01 File created.
|
|
*/
|
|
|
|
require_once dirname(dirname(dirname(__FILE__))) . '/config.php';
|
|
|
|
if (!is_enabled_auth('mnet')) {
|
|
error('mnet is disabled');
|
|
}
|
|
|
|
// grab the GET params - wantsurl could be anything - take it
|
|
// with PARAM_RAW
|
|
$hostid = required_param('hostid', PARAM_INT);
|
|
$wantsurl = optional_param('wantsurl', '', PARAM_RAW);
|
|
|
|
// start the mnet session and redirect browser to remote URL
|
|
$mnetauth = get_auth_plugin('mnet');
|
|
$url = $mnetauth->start_jump_session($hostid, $wantsurl);
|
|
|
|
if (empty($url)) {
|
|
error('DEBUG: Jump session was not started correctly or blank URL returned.'); // TODO: errors
|
|
}
|
|
redirect($url);
|
|
|
|
?>
|