AnonSec Shell
Server IP : 172.67.168.138  /  Your IP : 216.73.216.227   [ Reverse IP ]
Web Server : Apache
System : Linux frog 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web13 ( 5017)
PHP Version : 8.3.31
Disable Function : NONE
Domains : 41 Domains
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/clients/client12/web13/web/ahelos/resources/frontend/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/clients/client12/web13/web/ahelos/resources/frontend/js/newsletter.js
$(document).on('submit', '.subscribe-form', function(e){
  e.preventDefault();
  var headers = {
    'X-CSRF-TOKEN': $('input[name=_token]').val()
  }

  $('.error-message').remove();
  $('#subscribe-alert').html('');

  var data = {
    email: $(".subscribe-form input[name=email]").val(),
  }

  $.ajax({
    url: $(this).attr('action'),
    data: data,
    dataType: 'json',
    type: 'post',
    headers: headers,
    success: function(data){
      if (data.code == 'error') {
        $.each(data.fields, function(key, value){
          // const error = `<span class="text-danger error-message">${value}</span>`;
          // $('.subscribe-form input[name='+key+']').after(error)
          const error = `${value}`;
          swal({
            title: "Грешка!",
            text: error,
            icon: "error",
            button: "Опитай с друг!",
          });
        })
      }else{
        // $('#subscribe-alert').html(data.fields)
        swal({
          title: "Супер!",
          text: "Вашият Email е записан",
          icon: "success",
          button: "Продължи!",
        });
      }

    }
  })

});

Anon7 - 2022
AnonSec Team