| 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
*/
?>
<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;" />
</div>
<head>
<title>Buisness Mind Game</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="main_css/adm_studio.css" />
</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 Studio</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="index"><button class="more_option_btn">Home</button></a>
<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>
<button class="more_option_btn">Logout</button>
</div>
<div class="main_content_div" >
<div class="single_dash_div" >
<span class="dash_label_one" >CB</span>
<span id="user_point_output" class="total_income" ></span>
<span class="dash_label" >Total Points</span>
</div>
<div id="user_point_output" class="single_dash_div" style="background:#cf04c2;" >
<span class="dash_label_one" >CB</span>
<span id="point_transaction_output" class="total_income" ></span>
<span class="dash_label" >Today's Points</span>
</div>
<div class="single_dash_div" style="background:#000;" >
<span id="user_name_output" class="dash_label_one" >Vicent</span>
<span class="total_income" >Lv-1</span>
<span class="dash_label" >Basic</span>
</div>
<div id="disp_perfomance_winer_output" ></div>
<!--div class="single_dash_div" >
<span class="dash_label" >Transaction</span>
</div>
<div class="single_dash_div" >
<span class="dash_label_one" >CB</span>
<span class="dash_label" >Total Expense</span>
</div-->
</div>
<script>
smo_btn_status=1;
function show_more_option()
{
if(smo_btn_status==1){ smo_btn_status=0;
document.getElementById('more_option_div').style.display="block";
}else{ smo_btn_status=1;
document.getElementById('more_option_div').style.display="none";
}
}
disp_user_point();
function disp_user_point()
{
my_id = document.getElementById('my_id').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&status=disp_user_point",false);
xmlhttp.send(null);
document.getElementById('user_point_output').innerHTML=xmlhttp.responseText;
}
disp_user_info();
function disp_user_info()
{
my_id = document.getElementById('my_id').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&status=disp_user_info",false);
xmlhttp.send(null);
document.getElementById('user_name_output').innerHTML=xmlhttp.responseText;
}
disp_point_transaction();
function disp_point_transaction()
{
my_id = document.getElementById('my_id').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&status=disp_point_transaction",false);
xmlhttp.send(null);
document.getElementById('point_transaction_output').innerHTML=xmlhttp.responseText;
}
/*disp_perfomance_winer();
function disp_perfomance_winer()
{
}*/
setInterval(function () {
my_id = document.getElementById('my_id').value;
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET","autopage.php?my_id="+my_id+"&&status=disp_perfomance_winer",false);
xmlhttp.send(null);
document.getElementById('disp_perfomance_winer_output').innerHTML=xmlhttp.responseText;
//alert(45);
}, 10000);
</script>
</body>
<?php } ?>
</html>