AnonSec Shell
Server IP : 104.21.26.206  /  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/forms.js
$(document).on('submit', "#register-form", function(e){
  e.preventDefault();

  $.ajax({
    url: $(this).attr('action'),
    data: $(this).serialize(),
    dataType: 'json',
    type: 'post',
    success: function(data){
      $('.text-danger').remove()
      if (data.code == 'error') {
        $.each(data.fields, function(key, value){
          if (key == 'terms') {
            $('label[for=terms]').after('<small class="text-danger d-block">'+value+'</small>');
          }else{
            $('input[name='+key+']').after('<small class="text-danger d-block">'+value+'</small>');            
          }
        })
      }else if (data.code == 'success') {
        $("#register-errors").html(data.fields)
        setTimeout(function(){
          location.reload()
        }, 2000)
      }
    }
  })
})

$(document).on('submit', "#login-form", function(e){
  e.preventDefault()

  $.ajax({
    url: $(this).attr('action'),
    data: $(this).serialize(),
    dataType: 'json',
    type: 'post',
    success: function(data){
      $('.text-danger').remove()
      $("#login-errors").html()
      if (data.code == 'error') {
        $.each(data.fields, function(key, value){
          $('input[name='+key+']').after('<small class="text-danger d-block">'+value+'</small>')
        })
      }else if (data.code == 'error_login') {
        $("#login-errors").html(data.fields)
      }else if (data.code == 'success') {
        $("#login-errors").html(data.fields)
        setTimeout(function(){
          location.reload()
        }, 2000)
      }
    }
  })
})

$(document).on("submit", ".fpw-form", function(e){
  e.preventDefault()

  $("#fpw-alerts").html('')
  $(".error-message").remove()
  $.ajax({
    url: $(this).attr("action"),
    data: $(this).serialize(),
    dataType: "json",
    type: "post",
    success: function(data){
      if (data.code == 'error') {
        $.each(data.fields, function(key, value){
          const error = `<span class="text-danger error-message">${value}</span>`;
          $('.fpw-form input[name='+key+']').after(error)
        })
      }
      else if (data.code == 'not_found') {
        $('#fpw-alerts').html(data.fields)
      }
      else{
        $('#fpw-alerts').html(data.fields)
        if (data.code == 'success') {
          setTimeout(function(){
            location.reload();
          }, 2000);
        }
      }
    }
  })

})

Anon7 - 2022
AnonSec Team