Index: admin/settings/users.php =================================================================== RCS file: /cvsroot/moodle/moodle/admin/settings/users.php,v retrieving revision 1.26.2.18 diff -u -r1.26.2.18 users.php --- admin/settings/users.php 10 Apr 2010 15:11:49 -0000 1.26.2.18 +++ admin/settings/users.php 28 Jan 2011 19:47:33 -0000 @@ -23,6 +23,8 @@ get_string('showguestlogin', 'auth'), '1', array('0'=>get_string('hide'), '1'=>get_string('show')))); $temp->add(new admin_setting_configtext('alternateloginurl', get_string('alternateloginurl', 'auth'), get_string('alternatelogin', 'auth', htmlspecialchars($CFG->wwwroot.'/login/index.php')), '')); + $temp->add(new admin_setting_configtext('logoutredirecturl', get_string('logoutredirecturl', 'auth'), + get_string('logoutredirect', 'auth'), '')); $temp->add(new admin_setting_configtext('forgottenpasswordurl', get_string('forgottenpasswordurl', 'auth'), get_string('forgottenpassword', 'auth'), '')); $temp->add(new admin_setting_confightmltextarea('auth_instructions', get_string('instructions', 'auth'), Index: lang/en_utf8/auth.php =================================================================== RCS file: /cvsroot/moodle/moodle/lang/en_utf8/Attic/auth.php,v retrieving revision 1.30.2.26 diff -u -r1.30.2.26 auth.php --- lang/en_utf8/auth.php 18 Nov 2010 00:58:21 -0000 1.30.2.26 +++ lang/en_utf8/auth.php 28 Jan 2011 19:47:33 -0000 @@ -5,6 +5,8 @@ $string['actauthhdr'] = 'Active authentication plugins'; $string['alternatelogin'] = 'If you enter a URL here, it will be used as the login page for this site. The page should contain a form which has the action property set to \'$a\' and return fields username and password.
Be careful not to enter an incorrect URL as you may lock yourself out of this site.
Leave this setting blank to use the default login page.'; $string['alternateloginurl'] = 'Alternate Login URL'; +$string['logoutredirect'] = 'If you enter a URL here, users will be redirected to it after logout.
Note: Some authentication plugin may override this redirect URL from its own settings page.'; +$string['logoutredirecturl'] = 'Logout redirect URL'; $string['forgottenpassword'] = 'If you enter a URL here, it will be used as the lost password recovery page for this site. This is intended for sites where passwords are handled entirely outside of Moodle. Leave this blank to use the default password recovery.'; $string['forgottenpasswordurl'] = 'Forgotten password URL'; Index: login/logout.php =================================================================== RCS file: /cvsroot/moodle/moodle/login/logout.php,v retrieving revision 1.25 diff -u -r1.25 logout.php --- login/logout.php 15 May 2007 21:13:23 -0000 1.25 +++ login/logout.php 28 Jan 2011 19:47:33 -0000 @@ -4,7 +4,10 @@ require_once("../config.php"); // can be overriden by auth plugins - $redirect = $CFG->wwwroot.'/'; + $redirect = $CFG->logoutredirecturl; + if (empty($redirect)) { + $redirect = $CFG->wwwroot.'/'; + } $sesskey = optional_param('sesskey', '__notpresent__', PARAM_RAW); // we want not null default to prevent required sesskey warning