Linux aries.aptans.com 4.18.0-348.20.1.lve.1.el8.x86_64 #1 SMP Wed Mar 16 08:45:39 EDT 2022 x86_64
Apache
: 135.181.142.107 | : 172.69.17.27
Cant Read [ /etc/named.conf ]
7.4.33
aja
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
aja /
public_html /
ead.aptans /
course /
amd /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
local
[ DIR ]
drwxr-xr-x
actions.js
27.44
KB
-rw-rw-r--
activitychooser.js
15.3
KB
-rw-r--r--
copy_modal.js
5.99
KB
-rw-r--r--
downloadcontent.js
4.53
KB
-rw-r--r--
events.js
1.06
KB
-rw-rw-r--
manual_completion_toggle.js
4.86
KB
-rw-r--r--
recommendations.js
1.67
KB
-rw-r--r--
repository.js
4.06
KB
-rw-rw-r--
view.js
1.63
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : downloadcontent.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/>. /** * Functions related to downloading course content. * * @module core_course/downloadcontent * @copyright 2020 Michael Hawkins <michaelh@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ import Config from 'core/config'; import CustomEvents from 'core/custom_interaction_events'; import * as ModalFactory from 'core/modal_factory'; import jQuery from 'jquery'; import Pending from 'core/pending'; import {enter, space} from 'core/key_codes'; /** * Set up listener to trigger the download course content modal. * * @return {void} */ export const init = () => { const pendingPromise = new Pending(); // Add event listeners for click and enter/space keys. jQuery('[data-downloadcourse]').on('click keydown', (e) => { if (e.type === 'click' || e.which === enter || e.which === space) { e.preventDefault(); displayDownloadConfirmation(e.currentTarget); } }); pendingPromise.resolve(); }; /** * Display the download course content modal. * * @method displayDownloadConfirmation * @param {Object} downloadModalTrigger The DOM element that triggered the download modal. * @return {void} */ const displayDownloadConfirmation = (downloadModalTrigger) => { ModalFactory.create({ title: downloadModalTrigger.dataset.downloadTitle, type: ModalFactory.types.SAVE_CANCEL, body: `<p>${downloadModalTrigger.dataset.downloadBody}</p>`, buttons: { save: downloadModalTrigger.dataset.downloadButtonText }, templateContext: { classes: 'downloadcoursecontentmodal' } }) .then(modal => { // Display the modal. modal.show(); const saveButton = document.querySelector('.modal .downloadcoursecontentmodal [data-action="save"]'); const cancelButton = document.querySelector('.modal .downloadcoursecontentmodal [data-action="cancel"]'); const modalContainer = document.querySelector('.modal[data-region="modal-container"]'); // Create listener to trigger the download when the "Download" button is pressed. jQuery(saveButton).on(CustomEvents.events.activate, (e) => downloadContent(e, downloadModalTrigger, modal)); // Create listener to destroy the modal when closing modal by cancelling. jQuery(cancelButton).on(CustomEvents.events.activate, () => { modal.destroy(); }); // Create listener to destroy the modal when closing modal by clicking outside of it. if (modalContainer.querySelector('.downloadcoursecontentmodal')) { jQuery(modalContainer).on(CustomEvents.events.activate, () => { modal.destroy(); }); } }); }; /** * Trigger downloading of course content. * * @method downloadContent * @param {Event} e The event triggering the download. * @param {Object} downloadModalTrigger The DOM element that triggered the download modal. * @param {Object} modal The modal object. * @return {void} */ const downloadContent = (e, downloadModalTrigger, modal) => { e.preventDefault(); // Create a form to submit the file download request, so we can avoid sending sesskey over GET. const downloadForm = document.createElement('form'); downloadForm.action = downloadModalTrigger.dataset.downloadLink; downloadForm.method = 'POST'; // Open download in a new tab, so current course view is not disrupted. downloadForm.target = '_blank'; const downloadSesskey = document.createElement('input'); downloadSesskey.name = 'sesskey'; downloadSesskey.value = Config.sesskey; downloadForm.appendChild(downloadSesskey); downloadForm.style.display = 'none'; document.body.appendChild(downloadForm); downloadForm.submit(); document.body.removeChild(downloadForm); // Destroy the modal to prevent duplicates if reopened later. modal.destroy(); };
Close