__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
(function () {
  'use strict';

  /**
   * @copyright   (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   */

  /**
   * Provides the manual-run functionality for tasks over the com_scheduler administrator backend.
   *
   * @package  Joomla.Components
   * @subpackage Scheduler.Tasks
   *
   * @since    4.1.0
   */
  if (!window.Joomla) {
    throw new Error('Joomla API was not properly initialised');
  }
  var initRunner = function initRunner() {
    var paths = Joomla.getOptions('system.paths');
    var token = Joomla.getOptions('com_scheduler.test-task.token');
    var uri = (paths ? paths.base + "/index.php" : window.location.pathname) + "?option=com_ajax&format=json&plugin=RunSchedulerTest&group=system&id=%d" + (token ? "&" + token + "=1" : '');
    var modal = document.getElementById('scheduler-test-modal');

    // Task output template
    var template = "\n    <h4 class=\"scheduler-headline\">" + Joomla.Text._('COM_SCHEDULER_TEST_RUN_TASK') + "</h4>\n    <div>" + Joomla.Text._('COM_SCHEDULER_TEST_RUN_STATUS_STARTED') + "</div>\n    <div class=\"mt-3 text-center\"><span class=\"fa fa-spinner fa-spin fa-lg\"></span></div>\n  ";
    var sanitiseTaskOutput = function sanitiseTaskOutput(text) {
      return text.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#039;').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1<br>$2');
    };

    // Trigger the task through a GET request, populate the modal with output on completion.
    var triggerTaskAndShowOutput = function triggerTaskAndShowOutput(e) {
      var button = e.relatedTarget;
      var id = parseInt(button.dataset.id, 10);
      var title = button.dataset.title;
      modal.querySelector('.modal-title').innerHTML = Joomla.Text._('COM_SCHEDULER_TEST_RUN_TITLE').replace('%d', id.toString());
      modal.querySelector('.modal-body > div').innerHTML = template.replace('%s', title);
      Joomla.request({
        url: uri.replace('%d', id.toString()),
        onSuccess: function onSuccess(data, xhr) {
          [].slice.call(modal.querySelectorAll('.modal-body > div > div')).forEach(function (el) {
            el.parentNode.removeChild(el);
          });
          var output = JSON.parse(data);
          if (output && output.success && output.data) {
            modal.querySelector('.modal-body > div').innerHTML += "<div>" + Joomla.Text._('COM_SCHEDULER_TEST_RUN_STATUS_COMPLETED') + "</div>";
            if (output.data.duration > 0) {
              modal.querySelector('.modal-body > div').innerHTML += "<div>" + Joomla.Text._('COM_SCHEDULER_TEST_RUN_DURATION').replace('%s', output.data.duration.toFixed(2)) + "</div>";
            }
            if (output.data.output) {
              var result = Joomla.sanitizeHtml(output.data.output, null, sanitiseTaskOutput);

              // Can use an indication for non-0 exit codes
              modal.querySelector('.modal-body > div').innerHTML += "<div>" + Joomla.Text._('COM_SCHEDULER_TEST_RUN_OUTPUT').replace('%s', result) + "</div>";
            }
          } else {
            modal.querySelector('.modal-body > div').innerHTML += "<div>" + Joomla.Text._('COM_SCHEDULER_TEST_RUN_STATUS_TERMINATED') + "</div>";
            modal.querySelector('.modal-body > div').innerHTML += "<div>" + Joomla.Text._('COM_SCHEDULER_TEST_RUN_OUTPUT').replace('%s', Joomla.Text._('JLIB_JS_AJAX_ERROR_OTHER').replace('%s', xhr.status)) + "</div>";
          }
        },
        onError: function onError(xhr) {
          modal.querySelector('.modal-body > div').innerHTML += "<div>" + Joomla.Text._('COM_SCHEDULER_TEST_RUN_STATUS_TERMINATED') + "</div>";
          var msg = Joomla.ajaxErrorsMessages(xhr);
          modal.querySelector('.modal-body > div').innerHTML += "<div>" + Joomla.Text._('COM_SCHEDULER_TEST_RUN_OUTPUT').replace('%s', msg.error) + "</div>";
        }
      });
    };
    var reloadOnClose = function reloadOnClose() {
      window.location.href = (paths ? paths.base + "/index.php" : window.location.pathname) + "?option=com_scheduler&view=tasks";
    };
    if (modal) {
      modal.addEventListener('show.bs.modal', triggerTaskAndShowOutput);
      modal.addEventListener('hidden.bs.modal', reloadOnClose);
    }
    document.removeEventListener('DOMContentLoaded', initRunner);
  };
  document.addEventListener('DOMContentLoaded', initRunner);

})();

Filemanager

Name Type Size Permission Actions
admin-view-run-test-task-es5.js File 4.36 KB 0664
admin-view-run-test-task-es5.min.js File 2.87 KB 0664
admin-view-run-test-task-es5.min.js.gz File 1.14 KB 0664
admin-view-run-test-task.js File 4.01 KB 0664
admin-view-run-test-task.min.js File 2.82 KB 0664
admin-view-run-test-task.min.js.gz File 1.11 KB 0664
admin-view-select-task-search-es5.js File 4.83 KB 0664
admin-view-select-task-search-es5.min.js File 1.35 KB 0664
admin-view-select-task-search-es5.min.js.gz File 625 B 0664
admin-view-select-task-search.js File 4.6 KB 0664
admin-view-select-task-search.min.js File 1.53 KB 0664
admin-view-select-task-search.min.js.gz File 639 B 0664
scheduler-config-es5.js File 1.73 KB 0664
scheduler-config-es5.min.js File 1.13 KB 0664
scheduler-config-es5.min.js.gz File 568 B 0664
scheduler-config.js File 1.5 KB 0664
scheduler-config.min.js File 1.13 KB 0664
scheduler-config.min.js.gz File 559 B 0664
Filemanager