| 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:/xampp/htdocs-coblaa/BM_game/ |
Upload File : |
<html>
<?php
session_start();
include('db.php');
?>
<div style="display:none;">
<?php
$user_ip = getenv('REMOTE_ADDR');
$geo = unserialize(file_get_contents("http://www.geoplugin.net/php.gp?ip=$user_ip"));
$city = $geo["geoplugin_city"];
$region = $geo["geoplugin_regionName"];
$country = $geo["geoplugin_countryName"];
/*echo"$user_ip";
echo "City: ".$city."<br>";
echo "Region: ".$region."<br>";
echo "Country: ".$country."<br>";
/*
geoplugin_request
geoplugin_status
geoplugin_credit
geoplugin_city
geoplugin_region
geoplugin_areaCode
geoplugin_dmaCode
geoplugin_countryCode
geoplugin_countryName
geoplugin_continentCode
geoplugin_latitude
geoplugin_longitude
geoplugin_regionCode
geoplugin_regionName
geoplugin_currencyCode
geoplugin_currencySymbol
geoplugin_currencySymbol_UTF8
geoplugin_currencyConverter
*/
$exchange_rate=0.2;
?>
<input type="text" id="country_user" class="helping_id" style="display:none;" value="<?php echo $country;?>">
<input type="text" id="region_user" class="helping_id" style="display:none;" value="<?php echo $region;?>">
<input type="text" id="city_user" class="helping_id" style="display:none;" value="<?php echo $city;?>">
<input type="text" id="ip_user" class="helping_id" style="display:none;" value="<?php echo $user_ip;?>">
<?php
if(!isset($_SESSION['my_id'])){echo"<script>window.open('login', '_self')</script>";}else{ $user_id = $_SESSION['my_id']; ?>
<input id="my_id" value="<?php echo $user_id ?>" style="display:none;" />
<input id="exchange_rate" value="<?php echo $exchange_rate;?>" style="display:none;" />
</div>
<head>
<title>Buisness Mind Game</title>
<link rel="icon" type="image/png" href="https://coblaa.com/coblaa/main_icon/coblaa_log.png" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google-site-verification" content="IdVsOf5B8COvGCwQNq8yUoovQ4LsqWGPB20AqjBVScY" />
<meta name="description" content="Download Ugandan Music <?php echo $curr_year = date("Y"); ?>, <?php echo $curr_year = date("Y"); ?> Free Ugandan Music, Uganda Music mp3 Download, Latest Ugandan Songs 2024">
<link rel="stylesheet" type="text/css" href="main_css/bm_withdraw.css?v3" />
<meta name="google-adsense-account" content="ca-pub-4728417548940171"><!--gog ads -->
<!--script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4728417548940171"crossorigin="anonymous"></script><!-- ad unit -->
</head>
<body id="body">
<div class="main_home_div" >
<img src="main_icon/back_btn.png" Onclick="history.back();" class="back_btn" />
<span class="main_home_title">BM Game</span>
<img src="main_icon/down_arrow.png" onClick="show_more_option();" class="down_arrow_btn" />
</div>
<div class="main_home_div_position" ></div>
<div id="more_option_div" class="more_option_div">
<a href="bm_market"><button class="more_option_btn">Retail Shop</button></a>
<a href="purchase"><button class="more_option_btn">Wholesale</button></a>
<a href="bm_transaction"><button class="more_option_btn">Transactions</button></a>
<a href="adm_studio"><button class="more_option_btn">Adm Studio</button></a>
<a href="earn"><button class="more_option_btn">Game</button></a>
<a href="logout"><button class="more_option_btn">Logout</button></a>
</div>
<div class="main_content_div" >
<button onClick="show_airtime_topup_div();" class="action_btn" >Airtime Topup</button>
<button onClick="show_money_transfer_div();" class="action_btn" >Transfer</button>
<button onClick="show_wiz_transaction_div();" class="action_btn" >Transaction</button>
</div>
<div id="airtime_topup_div" class="airtime_topup_div">
<span class="airtime_topup_title">Mobile Airtime Topup</span>
<span id="card_airtime_span">
<span onClickk="close_withdraw_div();" class="sub_airtime_card">
<span onClickk="close_withdraw_div();" class="recharge_network_lebal">
<img src="main_icon/airtel_log.png" class="airtel_img" >
</span>
<span onClickk="close_withdraw_div();" class="airtime_amt"><?php $ugx_amt = $exchange_rate*1000; echo $ugx_amt; ?> ugx</span>
<span class="point_amt">1000 Points</span>
<button onClick="airtime_topup(1000);" class="airtime_buy_btn">Buy</button>
</span>
<span onClickk="close_withdraw_div();" class="sub_airtime_card">
<span onClickk="close_withdraw_div();" class="recharge_network_lebal">
<img src="main_icon/airtel_log.png" class="airtel_img" >
</span>
<span onClickk="close_withdraw_div();" class="airtime_amt"><?php $ugx_amt = $exchange_rate*2500; echo $ugx_amt; ?> ugx</span>
<span class="point_amt">2500 Points</span>
<button onClick="airtime_topup(2500);" class="airtime_buy_btn">Buy</button>
</span>
<span onClickk="close_withdraw_div();" class="sub_airtime_card">
<span onClickk="close_withdraw_div();" class="recharge_network_lebal">
<img src="main_icon/airtel_log.png" class="airtel_img" >
</span>
<span onClickk="close_withdraw_div();" class="airtime_amt"><?php $ugx_amt = $exchange_rate*5000; echo $ugx_amt; ?> ugx</span>
<span class="point_amt">5000 Points</span>
<button onClick="airtime_topup(5000);" class="airtime_buy_btn">Buy</button>
</span>
<span id="sub_airtime_card" class="sub_airtime_card">
<span onClickk="close_withdraw_div();" class="recharge_network_lebal">
<img src="main_icon/airtel_log.png" class="airtel_img" >
</span>
<span class="airtime_amt"><?php $ugx_amt = $exchange_rate*10000; echo $ugx_amt; ?> ugx</span>
<span class="point_amt">10000 Points</span>
<button onClick="airtime_topup(10000);" class="airtime_buy_btn">Buy</button>
</span>
</span>
<span id="airtime_recharge_input_span" class="airtime_recharge_input_span">
<span onClickk="close_withdraw_div();" class="recharge_no_input_lebal">Enter Airtel Number</span>
<input type="Number" id="topup_number" maxlength="9" class="recharge_no_input" />
<span id="topup_airtym_amt" class="airtime_input_amt" style="color:green;" ></span>
<span id="topup_amt_cb" class="airtime_input_amt" style="color:purple;" ></span>
<span id="topup_erorr" class="topup_erorr" style="color:#000;" ></span>
<button onClick="buy_recharge_card();" class="airtime_buy_btn2">Buy</button>
<button onClick="cancel_recharge_card();" class="airtime_buy_btn2" style="background:red;">Cancel</button>
</span>
<span id="airtime_comfirm" onClickk="close_withdraw_div();" class="airtime_comfirm">
<span onClickk="close_withdraw_div();" class="airtime_input_amt">Check and confirm transaction details</span>
<span id="confirm_phone_no" class="airtime_input_amt">075777777 ugx 500</span>
<button onClick="yes_topup_now();" class="airtime_buy_btn2">Yes</button>
<button onClick="close_airtime_comfirm();" class="airtime_buy_btn2" style="background:red;">No</button>
</span>
<span id="topup_erorr2" class="topup_erorr" style="color:#000;" ></span>
</div>
<div id="withdrawal_div" class="withdrawal_div">
<span class="withdrawal_title">Withdrawal</span>
<span class="available_bal_lebal">Available Points</span>
<span id="disp_available_pts_output" class="available_bal_out"> </span>
<!--span class="available_bal_icon_span">
<img src="main_icon/coin.png" class="coin_img" >
<span class="available_bal_out"> 10000</span>
</span>
<span class="available_bal_ugx">UGX: 1000</span-->
<!--span id="disp_withdraw_cur_amt_output"></span-->
<span class="final_withdraw_span">
<span class="final_withdraw_lebal">Phone Number</span>
<input id="recev_acc" class="final_withdraw_input" />
<span class="final_withdraw_lebal">Phone Name</span>
<input id="recev_acc_name" class="final_withdraw_input" />
<span class="final_withdraw_lebal">Points Amount</span>
<input id="withdrawal_amt_coin" onkeyup="make_cal();" class="final_withdraw_input" />
<span class="final_withdraw_lebal">UGX</span>
<span id="withdraw_amt_ugx" class="final_withdraw_input" ></span>
</span>
<span id="withdrawal_error" class="withdrawal_error"></span>
<button onClick="withdrawal_now();" class="withdrawal_btn">Withdrawal</button>
</div>
<div id="confirm_shell_div" class="confirm_shell_div">
<div class="sub_confirm_shell_div">
<span id="topup_erorr3"></span>
</div>
</div>
<div id="transaction_div" class="transaction_div">
<span class="transaction_title">Transaction</span>
<span class="trans_history_lebal_span" >
<span class="transaction_lebal" style="width:15%;">Refno</span>
<span class="transaction_lebal">Trans type</span>
<span class="transaction_lebal">Coin Amt </span>
<span class="transaction_lebal" style="width:15%;">Status</span>
<span class="transaction_lebal">UGX </span>
<span class="transaction_lebal">Charges </span>
<span class="transaction_lebal" style="width:20%;">Date</span>
</span>
<span id="trans_history_output"></span>
</div>
<script>
function show_airtime_topup_div()
{
document.getElementById('airtime_topup_div').style="display:block;";
document.getElementById('transaction_div').style="display:none;";
document.getElementById('withdrawal_div').style="display:none;";
}
function show_money_transfer_div()
{
document.getElementById('withdrawal_div').style="display:block;";
document.getElementById('airtime_topup_div').style="display:none;";
document.getElementById('transaction_div').style="display:none;";
}
function show_wiz_transaction_div()
{
document.getElementById('transaction_div').style="display:block;";
document.getElementById('airtime_topup_div').style="display:none;";
document.getElementById('withdrawal_div').style="display:none;";
}
function airtime_topup(at)
{
my_id = document.getElementById('my_id').value;
at_amt = at;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&at_amt="+at_amt+"&&status=airtime_topup",false);
xmlhttp.send(null);
document.getElementById('topup_erorr3').innerHTML =xmlhttp.responseText;
document.getElementById('confirm_shell_div').style="display:block;display:flex;justify-content:center;align-items:center;";
}
function close_confirm_shell()
{
document.getElementById('confirm_shell_div').style="display:none;";
}
function confirm_airtime_topup(cat)
{
my_id = document.getElementById('my_id').value;
exchange_rate = document.getElementById('exchange_rate').value;
points_towidthdraw = cat;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&points_towidthdraw="+points_towidthdraw+"&&exchange_rate="+exchange_rate+"&&status=confirm_airtime_topup",false);
xmlhttp.send(null);
document.getElementById('topup_erorr3').innerHTML =xmlhttp.responseText;
document.getElementById('help_erorr').style="display:none;";
document.getElementById('help_erorr2').style="display:none;";
document.getElementById('help_erorr3').style="display:none;";
}
function add_phone_no()
{
phoneNo = document.getElementById('add_phone_no').value;
my_id = document.getElementById('my_id').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&phoneNo="+phoneNo+"&&status=add_phone_no",false);
xmlhttp.send(null);
document.getElementById('topup_erorr3').innerHTML =xmlhttp.responseText;
//alert(phoneNo);
}
disp_trans_bm_withdraw();
function disp_trans_bm_withdraw()
{
my_id = document.getElementById('my_id').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&status=disp_trans_bm_withdraw",false);
xmlhttp.send(null);
document.getElementById('trans_history_output').innerHTML=xmlhttp.responseText;
}
disp_available_cur_point();
function disp_available_cur_point()
{
my_id = document.getElementById('my_id').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&status=disp_available_cur_point",false);
xmlhttp.send(null);
document.getElementById('disp_available_pts_output').innerHTML=xmlhttp.responseText;
}
function make_cal()
{
withdrawal_amt_coin = Number(document.getElementById('withdrawal_amt_coin').value);
exchange_rate = document.getElementById('exchange_rate').value;
document.getElementById('withdraw_amt_ugx').innerHTML= withdrawal_amt_coin * exchange_rate;
cur_avb_coin = Number(document.getElementById('cur_avb_coin').value);
if(withdrawal_amt_coin > cur_avb_coin){
document.getElementById('withdrawal_error').innerHTML="Insufficient balance";
document.getElementById('withdrawal_error').style="color:red;";
}else{
document.getElementById('withdrawal_error').style="display:none;";
document.getElementById('withdrawal_error').innerHTML="";
}
}
function withdrawal_now()
{
my_id = document.getElementById('my_id').value;
withdrawal_amt_coin = Number(document.getElementById('withdrawal_amt_coin').value);
exchange_rate = document.getElementById('exchange_rate').value;
recev_acc = document.getElementById('recev_acc').value;
recev_acc_name = document.getElementById('recev_acc_name').value;
withdraw_amt_ugx = Number(document.getElementById('withdraw_amt_ugx').innerHTML=withdrawal_amt_coin * exchange_rate);
cur_avb_coin = Number(document.getElementById('cur_avb_coin').value);
//recev_acc_leng = recev_acc.length;
if(recev_acc =="" || withdrawal_amt_coin =="" || recev_acc_name =="" ){
document.getElementById('withdrawal_error').innerHTML="Enter receiving account no & amount";
document.getElementById('withdrawal_error').style="color:red;";
}else{
if(withdrawal_amt_coin > cur_avb_coin){
document.getElementById('withdrawal_error').innerHTML="Insufficient balance";
document.getElementById('withdrawal_error').style="color:red;";
}else{
if(withdraw_amt_ugx < 499){
document.getElementById('withdrawal_error').innerHTML="Minimum withdrawal from 500";
document.getElementById('withdrawal_error').style="color:red;";
}else{
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&withdrawal_amt_coin="+withdrawal_amt_coin+"&&recev_acc="+recev_acc+"&&recev_acc_name="+recev_acc_name+"&&exchange_rate="+exchange_rate+"&&status=insert_bm_withdraw_amt",false);
xmlhttp.send(null);
document.getElementById('withdrawal_error').innerHTML=xmlhttp.responseText;
document.getElementById('withdrawal_error').style="color:green;";
document.getElementById('withdrawal_amt_coin').value="";
document.getElementById('recev_acc').value="";
document.getElementById('recev_acc_name').value="";
//disp_withdraw_cur_amt();
//disp_trans_history();
}
}
}
}
</script>
</body>
<?php } ?>
</html>