| Server IP : 127.0.0.1 / Your IP : 216.73.216.48 Web Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 System : Windows NT DESKTOP-3H4FHQJ 10.0 build 19045 (Windows 10) AMD64 User : win 10 ( 0) PHP Version : 8.2.12 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/kvt_site_bk/craneblue.ga/cranepay/ |
Upload File : |
<html>
<?php
include('db.php');
session_start();
if(isset($_SESSION['id']))
{
$my_id = $_SESSION['id'];
}
?>
<head>
<title>Crane pay</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main_css/disable_acc.css" />
</head>
<body >
<input id="my_id" style="display:none;" value="<?php echo"$my_id";?>" />
<?php if(!isset($_SESSION['id'])){ echo"<script>window.open('login', '_self')</script>"; ?>
<?php }else{ ?>
<div class="main_content_div" >
<div class="home_div" >
<img onclick="history.back()" src="main_icon/bk.png" class="back_btn_img" />
<span class="send_m_title">Disable or Delete Account</span>
<!--img src="main_icon/sm2.png" class="back_btn_img" /-->
</div>
<div id="disable_acc_div1" class="disable_acc_div" >
<span class="disable_acc_label" style="color:orange;">Disable account</span>
<span class="disble_acc_output" >
Your account will be temporary disabled, all transaction history and account information will remain in our servers.
You can reactivate this account any time by loging in using your account number and password.
</span>
<button onclick="show_action_disable_btn();" class="disable_btn" >Disable</button>
</div>
<div id="disable_acc_div2" class="disable_acc_div" >
<span class="disable_acc_label" style="color:red;">Delete account</span>
<span class="disble_acc_output" >
Your account will be permanently deleted,
once account is deleted, it can't be reactivated.
</span>
<button onclick="show_action_delete_btn();" class="disable_btn" >Delete</button>
</div>
<div id="cover_div" class="cover_div" >
<span id="action_label" class="action_label" ></span>
<button onclick="cancel_disable();" class="action_btn" style="color:green;" >No</button>
<button onclick="disable_delete_acc();" class="action_btn" style="color:red;" >Yes</button>
<input class="input_help" id="action_status" />
<div id="report_output" class="report_output" ></div>
</div>
</div>
<script>
function show_action_disable_btn()
{
document.getElementById('cover_div').style="display:block;";
document.getElementById('disable_acc_div1').style.display="none";
document.getElementById('disable_acc_div2').style.display="none";
document.getElementById('action_label').innerHTML="Disable account";
document.getElementById('action_status').value="Disable";
}
function cancel_disable()
{
document.getElementById('cover_div').style="display:none;";
document.getElementById('disable_acc_div1').style.display="block";
document.getElementById('disable_acc_div2').style.display="block";
}
function show_action_delete_btn()
{
document.getElementById('cover_div').style="display:block;";
document.getElementById('disable_acc_div1').style.display="none";
document.getElementById('disable_acc_div2').style.display="none";
document.getElementById('action_label').innerHTML="Delete account";
document.getElementById('action_status').value="Delete";
}
function disable_delete_acc()
{
my_id = document.getElementById('my_id').value;
action_status = document.getElementById('action_status').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&action_status="+action_status+"&&status=disable_delete_acc",false);
xmlhttp.send(null);
document.getElementById('report_output').innerHTML =xmlhttp.responseText;
new_msm = document.getElementById('new_msm').value;
if(new_msm == 'ready'){ window.open('login', '_self'); }
//alert(68);
}
</script>
<?php } ?>
</body>
</html>