This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Redirect Page</title> | |
<script> | |
// Define the target URL | |
var targetURL = 'moodlemobile://link=https://master.mm.moodledemo.net/course/view.php?id=14'; | |
// Function to redirect the parent window | |
function redirectParent() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_once($CFG->dirroot . '/course/lib.php'); | |
if (!function_exists('course_check_updates')) { | |
/** | |
* Check for course updates in the given context level instances (only modules supported right Now) | |
* | |
* @param stdClass $course course object | |
* @param array $tocheck instances to check for updates | |
* @param array $filter check only for updates in these areas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This file is part of Moodle - http://moodle.org/ | |
// | |
// Moodle is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// | |
// Moodle is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This file is part of Moodle - http://moodle.org/ | |
// | |
// Moodle is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// | |
// Moodle is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bar-header { | |
background-color: #5069A1; | |
} | |
ion-side-menu li .item { | |
background-color: #313848; | |
border-color: #4F5865; | |
color: #BCC3CF; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This file is part of Moodle - http://moodle.org/ | |
// | |
// Moodle is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// | |
// Moodle is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Check if the given SCORM is available (time restrictions). | |
* The remote Web Service check that, but if we are offline maybe we have passed the timeclose date. | |
*/ | |
isAvailable = function(scorm) { | |
var timeNow = $mmUtil.timestamp(); | |
if (scorm.timeopen > 0 && scorm.timeopen > timeNow) { | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bar-side-menu { | |
background-color: blue; | |
} | |
.bar-content { | |
background-color: blue; | |
} | |
.button.button-positive { | |
border-color: blue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// message/externallib.php | |
/** | |
* Retrieve a list of users blocked | |
* | |
* @param int $userid the user whose blocked users we want to retrieve | |
* @return external_description | |
* @since 2.9 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script language="javascript"> | |
function test() { | |
var siteURL = document.getElementById("url").value; | |
var token = document.getElementById("token").value; | |
var data = { | |
"wsfunction": "moodle_webservice_get_siteinfo", | |
"wstoken": token |
NewerOlder