<?php echo html_writer::select($yesno, 'ntlmsso_ie_fastpath', $config->ntlmsso_ie_fastpath, false); ?>
</td>
<td>
- <?php print_string('auth_ntlmsso_ie_fastpath', 'auth_ldap') ?>
+ <?php print_string('auth_ntlmsso_ie_fastpath', 'auth_ldap') ?>
</td>
</tr>
<tr valign="top">
--
<Notify
- Channel="back"
- Location="https://#YOUR_MOODLE_HOSTNAME#/moodle/auth/shibboleth/logout.php" />
+ Channel="back"
+ Location="https://#YOUR_MOODLE_HOSTNAME#/moodle/auth/shibboleth/logout.php" />
--
Then restart the Shibboleth daemon and check the log file for errors. If there
--
<Directory /path/to/moodle/auth/shibboleth/logout.php>
- AuthType shibboleth
- ShibRequireSession Off
- require shibboleth
+ AuthType shibboleth
+ ShibRequireSession Off
+ require shibboleth
</Directory>
--
When using IIS, the same can be achieved by something like:
set_saml_cookie($selectedIdP);
// Redirect to SessionInitiator with entityID as argument
- if (isset($IdPs[$selectedIdP][1]) && !empty($IdPs[$selectedIdP][1])){
+ if (isset($IdPs[$selectedIdP][1]) && !empty($IdPs[$selectedIdP][1])) {
// For Shibbolet 1.x Service Providers
- header('Location: '.$IdPs[$selectedIdP][1].'?providerId='. urlencode($selectedIdP) .'&target='. urlencode($CFG->wwwroot.'/auth/shibboleth/index.php'));
+ header('Location: '.$IdPs[$selectedIdP][1].'?providerId='. urlencode($selectedIdP) .'&target='. urlencode($CFG->wwwroot.'/auth/shibboleth/index.php'));
- // For Shibbolet 2.x Service Providers
- // header('Location: '.$IdPs[$selectedIdP][1].'?entityID='. urlencode($selectedIdP) .'&target='. urlencode($CFG->wwwroot.'/auth/shibboleth/index.php'));
+ // For Shibbolet 2.x Service Providers
+ // header('Location: '.$IdPs[$selectedIdP][1].'?entityID='. urlencode($selectedIdP) .'&target='. urlencode($CFG->wwwroot.'/auth/shibboleth/index.php'));
} else {
// For Shibbolet 1.x Service Providers
/**
* Returns the level of the setting
- *
+ *
* @return {int} One of the above constants
*/
public function get_level() {
$this->assertEqual($e->errorcode, 'incorrect_object_passed');
}
restore_error_handler();
-
+
// Try to change value of locked setting by permission
$bs = new mock_base_setting('test', base_setting::IS_BOOLEAN, null, null, base_setting::LOCKED_BY_PERMISSION);
try {
return false;
}
throw new backup_setting_exception('incorrect_object_passed');
-}
\ No newline at end of file
+}
public function add_child($element) {
if (!($element instanceof backup_optigroup_element)) { // parameter must be backup_optigroup_element
if (is_object($element)) {
- $found = get_class($element);
+ $found = get_class($element);
} else {
$found = 'non object';
}
*/
public function get_progress_bar() {
global $PAGE;
-
+
$stage = self::STAGE_COMPLETE;
$currentstage = $this->stage->get_stage();
$items = array();
/**
* Backup user interface exception. Modelled off the backup_exception class
*/
-class backup_ui_exception extends base_ui_exception {}
\ No newline at end of file
+class backup_ui_exception extends base_ui_exception {}
// XXX: the id in params['contextid'] is current context
// request file list, so should be user context
params['contextid'] = this.usercontextid;
- }
+ }
var scope = this;
params['sesskey']=M.cfg.sesskey;
var cfg = {
var n = new YAHOO.widget.TextNode(info, node, false);
YAHOO.util.Event.addListener(n.labelElId, "click", function(e) {
YAHOO.util.Event.preventDefault(e);
- });
+ });
n.isLeaf = false;
} else {
var params = data[i].params;
if (params['filearea'] == 'backup' && params['component'] == 'user') {
// XXX: display the restore link, so should be context id
params['contextid'] = scope.currentcontextid;
- }
+ }
params.action = 'choosebackupfile';
var restoreurl = M.cfg.wwwroot+'/backup/restorefile.php?'+build_querystring(params);
var info = {label: data[i].filename, 'href': data[i].url, 'restoreurl': restoreurl};
// prevent link
YAHOO.util.Event.addListener(node.labelElId, "click", function(e) {
YAHOO.util.Event.preventDefault(e);
- });
+ });
} else {
node.isLeaf = true;
}
}
tree.render();
this.y3 = Y;
- },
+ },
dynload: function(node, oncompletecb) {
M.core_backup_files_tree.request(node.href, node, oncompletecb);
},
YAHOO.widget.RestoreNode = function(oData, oParent, expanded) {
- if (oData) {
+ if (oData) {
if (YAHOO.lang.isString(oData)) {
oData = { label: oData };
}
href: null,
target: "_blank",
_type: "RestoreNode",
- setUpLabel: function(oData) {
+ setUpLabel: function(oData) {
if (YAHOO.lang.isString(oData)) {
- oData = {
- label: oData
+ oData = {
+ label: oData
};
} else {
if (oData.style) {
this.restoreurl = oData.restoreurl;
this.labelElId = "ygtvlabelel" + this.index;
},
- getContentHtml: function() {
+ getContentHtml: function() {
var sb = [];
sb[sb.length] = '<a';
sb[sb.length] = ' id="' + this.labelElId + '"';
if (this.href) {
sb[sb.length] = ' href="' + this.href + '"';
sb[sb.length] = ' target="' + this.target + '"';
- }
+ }
if (this.title) {
sb[sb.length] = ' title="' + this.title + '"';
}
M.core_backup = M.core_backup || {};
/**
* Adds confirmation dialogues to the cancel buttons on the page.
- *
+ *
* @param {object} config
*/
M.core_backup.watch_cancel_buttons = function(config) {
});
}
-}, '@VERSION@', {'requires':['base','node','node-event-simulate','moodle-enrol-notification']});
\ No newline at end of file
+}, '@VERSION@', {'requires':['base','node','node-event-simulate','moodle-enrol-notification']});