0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.225.56.181


Current Path : /proc/thread-self/root/kop/admin/
Upload File :
Current File : //proc/thread-self/root/kop/admin/admin.js

function notif_page() {
  var username = document.getElementById("un").value;
  var password = document.getElementById("psw").value;

  // console.log(username, password);

  var parameters = "&username=" + username + "&password=" + password;

  // console.log(parameters);
  if (username != "" && password != "") {
    $.ajax({
      type: "post",
      url: "../php/admin.php",
      data: parameters,

      success: function (response) {
        var response = JSON.parse(response);

        if (response.error_code == 0) {
          // alert("Login Successful");
          window.location.href = "upload_notifications.html";
        } else {
          alert("incorrect username or password");
          return;
        }
        // console.log(response);
      },
    });
  } else {
    alert("Please Enter UserName and Password");
    return;
  }
}