Joomla 1.5 выложил код из расширения js это вирус?

Discussion in 'Вопросы безопасности' started by Nospi, Jul 14, 2013.

  1. Offline

    Nospi Недавно здесь

    Joined:
    Jul 14, 2013
    Messages:
    13
    Likes Received:
    0
    Gender:
    Male
    Public_html/media/system/mootools-uncompressed.js


    Код (CODE):
    1. /*
    2. Script: Json.Remote.js
    3.     Contains <Json.Remote>.
    4.  
    5. License:
    6.     MIT-style license.
    7. */
    8.  
    9. /*
    10. Class: Json.Remote
    11.     Wrapped XHR with automated sending and receiving of Javascript Objects in Json Format.
    12.     Inherits methods, properties, options and events from <XHR>.
    13.  
    14. Arguments:
    15.     url - the url you want to send your object to.
    16.     options - see <XHR> options
    17.  
    18. Example:
    19.     this code will send user information based on name/last name
    20.     (start code)
    21.     var jSonRequest = new Json.Remote("http://site.com/tellMeAge.php", {onComplete: function(person){
    22.         alert(person.age); //is 25 years
    23.         alert(person.height); //is 170 cm
    24.         alert(person.weight); //is 120 kg
    25.     }}).send({'name': 'John', 'lastName': 'Doe'});
    26.     (end)
    27.  
    28.  
    29. Public_html/media/system/combobox.js
    30.  
    31.  
    32. // Add iFrame for IE
    33.       if (this.is_ie) {
    34.          var iframe = document.createElement('iframe');
    35.          iframe.src = 'about:blank';
    36.          iframe.scrolling = 'no';
    37.          iframe.frameborder = '0';
    38.          iframe.style.position = 'absolute';
    39.          iframe.style.top = coords.y + 'px';
    40.          iframe.style.left = coords.x + 'px';
    41.          iframe.style.width = element.offsetWidth + 'px';
    42.          iframe.style.height = element.offsetHeight + 'px';
    43.          element.parentNode.insertBefore(iframe, element);
    44.       }
    45.    },
     
    Last edited by a moderator: Jul 14, 2013
  2.  
  3. OlegM
    Offline

    OlegM Russian Joomla! Team Staff Member

    Joined:
    Apr 12, 2007
    Messages:
    4,310
    Likes Received:
    375
    Gender:
    Male
    Судя по выложенному - нет.
     

Share This Page

Loading...