403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/business/pms/modules/imagecache/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/business/pms/modules/imagecache//imagecache.js
/*global Drupal,jQuery */

(function($) {
  "use strict";

  Drupal.imagecache = {
    /**
     * Remove the files directory prefix from a path.
     */
    stripFileDirectory: function(path) {
      var filePath = Drupal.settings.imagecache.filesDirectory;
      if (path.substr(0, filePath.length + 1) === filePath + '/') {
        path = path.substr(filePath.length + 1);
      }
      return path;
    },

    createUrl: function(preset, path) {
      var stripped = this.stripFileDirectory(path);
      // If the preset is invalid, return the path to the original image.
      if ($.inArray(preset, Drupal.settings.imagecache.presets) !== -1) {
        return Drupal.settings.imagecache.filesUrl + '/imagecache/' + preset + '/' + stripped;
      }
      return Drupal.settings.imagecache.filesUrl + '/' + stripped;
    }
  };

  Drupal.theme.prototype.imagecache = function(preset, path, alt, title, attributes) {
    var image;
    image = new Image();

    image.onload = function() {
      $(this).attr({
        width: $(image).width(),
        height: $(image).height()
      });
    };

    image.src = Drupal.imagecache.createUrl(preset, path);
    image = $.extend(image, {
      title: title,
      alt: alt
    }, attributes);

    return image;
  };
})(jQuery);

/*jslint browser: true, onevar: true, undef: true */


Youez - 2016 - github.com/yon3zu
LinuXploit