| 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:/active_xampp_upgrade/cranepay/ |
Upload File : |
<html>
<?php
include('db.php');
session_start();
if(isset($_SESSION['id']))
{
$my_id = $_SESSION['id'];
$myacc_stas ='Disable';
}
////////////////////////////////////////////////////////////////////////////////////
?>
<input id="my_id" style="display:none;" value="<?php echo"$my_id";?>" />
<?php
if(isset($_GET['mysector']))
{
$sector = $_GET['mysector'];
}
?>
<head>
<title>CrinePay</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main_css/index.css" />
</head>
<body>
<?php
if(!isset($_SESSION['id'])){echo"<script>window.open('login', '_self')</script>";}else{
$get_us="select * from crane_pay_usertb where account_status='$myacc_stas' ";
$run_get_us = mysqli_query($con,$get_us);
$check_get_us = mysqli_num_rows($run_get_us);
if($check_get_us >0 ){ ?>
<button onclick="reactivate_acc_btn();" class="reactivat_acc_btn" > Reactivate your account</button>
<script>
function reactivate_acc_btn()
{
my_id = document.getElementById('my_id').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&status=reactivate_acc",false);
xmlhttp.send(null);
//document.getElementById('report_output').innerHTML =xmlhttp.responseText;
window.open('index', '_self');
//if(new_msm == 'ready'){ window.open('login', '_self'); }
}
</script>
<?php }else{ ?>
<div class="main_content" >
<div class="main_home_tile" ><span></span>Crine<img src="main_icon/cp_log.png" width="50px" classk="dep_img" style="border-radius:100%;" /><span>Pay</span></div>
<div class="acc_div" >
<div class="acc_div_left" >
<span class="acc_title" >Account no.</span>
<?php
$get_user_login ="select * from crane_pay_usertb where id='$my_id'";
$run_get_user_login = mysqli_query($con,$get_user_login);
while($row_get_user_login = mysqli_fetch_array($run_get_user_login))
{
$user_acc = $row_get_user_login['user_phone_no'];
$fname = $row_get_user_login['fname'];
?>
<span class="acc_namba" ><?php echo"$user_acc"; ?></span>
<span class="acc_name" ><?php echo"$fname"; ?></span>
<?php } ?>
</div>
<div class="acc_div_right" >
<span class="amt_title" >Available balance</span>
<?php
$get_banktb ="select * from banktb where my_id='$my_id'";
$run_get_bank = mysqli_query($con,$get_banktb);
while($row_get_bank = mysqli_fetch_array($run_get_bank))
{
$user_amt = $row_get_bank['acc_amount'];
$total_amt = $user_amt;
?>
<span class="amt_avail" ><?php echo"$total_amt/="; ?></span>
<?php } ?>
</div>
</div>
<div class="sub_title" >Services</div>
<a href="send_money"><div class="desposit_div">
<img src="main_icon/sm2.png" class="dep_img" />
<span class="dep_lebal">Send money</span>
</div></a>
<a href="exchange"><div class="withdraw_div">
<img src="main_icon/exc.png" class="dep_img" />
<span class="dep_lebal">Exchange</span>
</div></a>
<a href="agent_page"><div class="desposit_div">
<img src="main_icon/dp.png" class="dep_img" />
<span class="dep_lebal">Deposit</span>
</div></a>
<a href="withdraw"><div class="withdraw_div">
<img src="main_icon/wd3.png" class="dep_img" />
<span class="dep_lebal">Withdraw</span>
</div></a>
<!--div class="ad_unit_div1">
<img src="main_icon/dp.png" class="dep_img" />
<span class="dep_lebal">ad unit1</span>
</div>
<div class="ad_unit_div">
<img src="main_icon/wd3.png" class="dep_img" />
<span class="dep_lebal">ad unit</span>
</div-->
<?php
if(isset($_GET['uzer']))
{
$user_id = $_GET['uzer'];
$cb_amt = $_GET['cb_amt'];
$total_pay_amt= $cb_amt * 100;
?>
<div class="pa_cb_koin" >
<div class="sub_pa_cb_koin" >
<span class="recharge_title" >You are recharging with <span id="cb_coin_amt"><?php echo $cb_amt; ?></span> CB</span>
<span class="recharge_amt" >Amount Ugx <span id="total_rech_amt"><?php echo $total_pay_amt; ?></span></span>
<input type="password" id="recharge_pas" class="recharge_pas" placeholder="Enter Password..." />
<input type="text" id="recharging_user_id" class="helpig_div" value="<?php echo $user_id; ?>" />
<div class="error_output" id="error_out" ></div>
<button class="recharge_btn" onclick="complete_recharge();" >Recharge</button>
</div>
</div>
<script>
function complete_recharge()
{
my_id = document.getElementById('my_id').value;
cb_coin_amt = document.getElementById('cb_coin_amt').innerHTML;
total_rech_amt = document.getElementById('total_rech_amt').innerHTML;
recharge_pas = document.getElementById('recharge_pas').value;
recharging_user_id = document.getElementById('recharging_user_id').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&recharging_user_id="+recharging_user_id+"&&cb_coin_amt="+cb_coin_amt+"&&total_rech_amt="+total_rech_amt+"&&recharge_pas="+recharge_pas+"&&status=complete_recharge",false);
xmlhttp.send(null);
document.getElementById('error_out').innerHTML =xmlhttp.responseText;
check_comfirm_recharge = document.getElementById('check_comfirm_recharge').value;
if(check_comfirm_recharge ==1){}else{
window.open('http://craneblue.com/cbawards/logout', '_self');
//echo"<script>window.open('cbawards/index', '_self');
//alert(332);
}
}
</script>
<?php } ?>
<?php
if(isset($_GET['mysector']))
{
$sector = $_GET['mysector'];
?>
<script>
document.getElementById('stake_lebal_div').style.display="block";
document.getElementById('main_home_tile').style.display="block";
document.getElementById('invest_sector_div').style.display="none";
</script>
<?php } ?>
</div>
<div class="main_button_div" >
<a href="index"><div class="main_button" >
<img src="main_icon/home.png" class="down_btn_icon_img" />
<div class="down_btn" >Home</div>
</div></a>
<?php
if(isset($_SESSION['id']))
{
?>
<a href="account"><div class="main_button_right" >
<img src="main_icon/profile3.jpg" class="down_btn_icon_img" />
<div class="down_btn" >Profile</div>
</div></a>
<?php }else{ ?>
<a href="login"><div class="main_button_right" >
<img src="main_icon/profile3.jpg" class="down_btn_icon_img" />
<div class="down_btn" >Profile</div>
</div></a>
<?php } ?>
</div>
<script>
function show_more_detail(smd)
{
invest_detail_div1 = 'invest_detail_div'+smd;
clear_invest_btn1 = 'clear_invest_btn'+smd;
show_invest_btn1 = 'show_invest_btn'+smd;
document.getElementById(invest_detail_div1).style.display="block";
document.getElementById(clear_invest_btn1).style.display="block";
document.getElementById(show_invest_btn1).style.display="none";
//alert(4);
}
function clear_more_detail(cmd)
{
invest_detail_div1 = 'invest_detail_div'+cmd;
clear_invest_btn1 = 'clear_invest_btn'+cmd;
show_invest_btn1 = 'show_invest_btn'+cmd;
document.getElementById(invest_detail_div1).style.display="none";
document.getElementById(clear_invest_btn1).style.display="none";
document.getElementById(show_invest_btn1).style.display="block";
//alert(4);
}
function close_all_open_div()
{
document.getElementById(invest_detail_div1).style.display="none";
document.getElementById(clear_invest_btn1).style.display="none";
document.getElementById(show_invest_btn1).style.display="block";
}
</script>
<?php } } ?>
</body>
</html>