855 lines
35 KiB
PHP
855 lines
35 KiB
PHP
<?php
|
||
$page = $_SERVER['PHP_SELF'];
|
||
$sec = "300";
|
||
|
||
// include_once('./consql.php');
|
||
include_once('./config.php');
|
||
|
||
|
||
?>
|
||
<!DOCTYPE html>
|
||
<html lang="en">
|
||
|
||
<head>
|
||
<meta http-equiv="refresh" content="<?php echo $sec?>;URL='<?php echo $page?>'">
|
||
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
|
||
|
||
<title><?php echo "$title"; ?></title>
|
||
<meta name="description" content="<?php echo '$description'; ?>">
|
||
|
||
<meta name="author" content="Erreur32">
|
||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
|
||
<meta name="keyword" content="tox,server,dayz,map,namalsk,namalsk island">
|
||
|
||
|
||
<link id="theme-style" href="style_dark.css" rel="stylesheet">
|
||
|
||
<style>
|
||
.tab-content {
|
||
margin-top: -1px;
|
||
background: #3a4149;
|
||
border: none;
|
||
border-radius: 0 0 .25rem .25rem;
|
||
}
|
||
|
||
a,
|
||
a:visited {
|
||
color: #20A8D8;
|
||
text-decoration: none;
|
||
}
|
||
|
||
a:hover {
|
||
color: orange;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.description-header {
|
||
color: #26A65B;
|
||
}
|
||
|
||
.label-danger {
|
||
background-color: #EF4836;
|
||
}
|
||
|
||
.label-warning {
|
||
background-color: #F89406;
|
||
color: white;
|
||
}
|
||
|
||
.label-success {
|
||
background-color: #26A65B;
|
||
}
|
||
|
||
.label-primary {
|
||
background-color: #4183D7;
|
||
color: green;
|
||
}
|
||
|
||
.label-info {
|
||
background-color: #5bc0de;
|
||
}
|
||
|
||
.label {
|
||
display: inline;
|
||
padding: .2em .6em .3em;
|
||
font-size: 75%;
|
||
font-weight: 700;
|
||
line-height: 1;
|
||
color: #fff;
|
||
text-align: center;
|
||
white-space: nowrap;
|
||
vertical-align: baseline;
|
||
border-radius: .25em;
|
||
}
|
||
|
||
.selection {
|
||
color: black !important;
|
||
}
|
||
|
||
.select2-results {
|
||
color: black !important;
|
||
}
|
||
|
||
.select2-results__option--highlighted {
|
||
background-color: #3875d7 !important;
|
||
}
|
||
|
||
.pull-left {
|
||
float: left !important;
|
||
}
|
||
|
||
.pull-right {
|
||
float: right !important;
|
||
}
|
||
|
||
.navbar-brand-logo {
|
||
margin-left: 2rem;
|
||
}
|
||
</style>
|
||
|
||
<script>
|
||
window.dataLayer = window.dataLayer || [];
|
||
window.mobileAndTabletcheck = function() {
|
||
var check = false;
|
||
(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) check = true;})(navigator.userAgent||navigator.vendor||window.opera);
|
||
return check;
|
||
};
|
||
window.mobilecheck = function() {
|
||
var check = false;
|
||
(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))) check = true;})(navigator.userAgent||navigator.vendor||window.opera);
|
||
return check;
|
||
};
|
||
</script>
|
||
|
||
|
||
|
||
<?php
|
||
$time = microtime();
|
||
$time = explode(' ', $time);
|
||
$time = $time[1] + $time[0];
|
||
$start = $time;
|
||
|
||
|
||
if (empty($Info['HostName'])) {
|
||
$Info['HostName'] = "<h1>OFF LINE</h1>" ;
|
||
}
|
||
|
||
?>
|
||
<main class="main" style="margin-top: 10px">
|
||
|
||
<!-- Breadcrumb-->
|
||
<ol class=""></ol>
|
||
|
||
<div class="container-fluid">
|
||
<div id="ui-view">
|
||
|
||
<div class="animated fadeIn">
|
||
<div class="row">
|
||
|
||
<div class="col-lg-12 col-xs-12">
|
||
|
||
<div class="card">
|
||
<div class="card-body" style="text-align:center;">
|
||
<h3> <img height="24px" width="24px"
|
||
src="https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/221100/f8c16699ed5ce1cc8aa9b15ed3fdd66553fce2bf.ico">
|
||
|
||
<?php echo $Info['HostName'] ; ?>
|
||
<!--<i class="flag-icon h5 flag-icon-fr"></i>-->
|
||
|
||
</h3>
|
||
<h5><span style="color:grey;"><?php echo " $namemap" ?> </span></h5>
|
||
<span class="label label-<?php echo $Timer > 1.0 ? 'danger' : 'success'; ?>"><?php echo $Timer; ?>s</span>
|
||
<br><small>(-ToX-) <?php //echo $urlserv; ?> <?php //echo count($objlower); ?></small>
|
||
|
||
</div>
|
||
|
||
<?php
|
||
if (empty($Info['Map'])) {
|
||
echo "</main>";
|
||
setlocale(LC_ALL,'french');
|
||
echo "<center><small class='text-muted'>Last time refresh</small> <br> <strong class='h4'>".date('m/d/y H:i:s')."</strong></center>";
|
||
echo "<div style=\"padding-bottom: 10%;padding-left: 20%;padding-right: 20%\"> <center><img src=\"https://steamuserimages-a.akamaihd.net/ugc/1649972925761363590/C3DC3BB6880B659518D19ECDA9610C424794EBB8/\" class=\"arrondie2\" width=\"100%\" max-height=\"20%\" height=\"auto\"></center></div></div>";
|
||
include('footer.php');
|
||
exit;
|
||
|
||
}
|
||
|
||
?>
|
||
<div class="card-footer">
|
||
<div class="row" style="text-align:center;">
|
||
|
||
<div class="col-md-2 col-xs-12 border-right">
|
||
<div class="description-block">
|
||
<h5 class="description-header">
|
||
<?php if (empty($Info['Players'])) {
|
||
echo "<span style='color:grey;'>"; } ?>
|
||
<?php echo $Info['Players'] ?> <span style='color:grey;'>/<?php echo $Info['MaxPlayers'] ; ?></span></span>
|
||
</h5>
|
||
<span class="description-text">PLAYERS</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-2 col-xs-12 border-right">
|
||
<div class="description-block">
|
||
<h5 class="description-header"><?php echo $ipserv.":".$Info['GamePort']; ?>
|
||
</h5>
|
||
<span class="description-text">IP Server</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-2 col-xs-12 border-right">
|
||
<div class="description-block">
|
||
<h5 class="description-header"><?php echo $Info['Map']; ?></h5>
|
||
<span class="description-text">MAP</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-2 col-xs-12 border-right">
|
||
<div class="">
|
||
<h5 class="description-header">
|
||
<?php echo $InfoGT[67].$InfoGT[68].$InfoGT[69].$InfoGT[70].$InfoGT[71]; ?> <small style="color: grey;"> <i
|
||
class="fas fa-sun"></i><span style="color: white;">x<?php echo $InfoGT[41]; ?></span>
|
||
- <i class="fas fa-moon"></i><span style="color: white;">x<?php echo $InfoGT[54]; ?></span>
|
||
</small></h5>
|
||
<span class="description-text">GAME TIME</span>
|
||
</div>
|
||
</div>
|
||
<!--
|
||
<div class="col-md-2 col-xs-12 border-right">
|
||
<div class="description-block">
|
||
<h5 class="description-header">Yes</h5> <span
|
||
class="description-text">3 PP</span>
|
||
</div>
|
||
</div>
|
||
-->
|
||
|
||
|
||
<div class="col-md-2 col-xs-12 border-right">
|
||
<div class="description-block">
|
||
<h5 class="description-header"> <?php echo $Info['Version'] ; ?></h5>
|
||
<span class="description-text">SERVER VERSION</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-md-2 col-xs-12">
|
||
<div class="description-block">
|
||
<h5 class="description-header"><?php echo $InfoGT[18].$InfoGT[19].$InfoGT[20].$InfoGT[21].$InfoGT[22].$InfoGT[23].$InfoGT[24].$InfoGT[25]; ?>
|
||
</h5>
|
||
<span class="description-text">HIVE</span>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div><!-- class="card-footer" -->
|
||
|
||
</div> <!-- end card -->
|
||
</div>
|
||
</div>
|
||
<!--end row -->
|
||
|
||
<div class="row">
|
||
<div class="col-lg-12">
|
||
<div class="card">
|
||
<div class="card-body menutab">
|
||
<ul class="nav nav-tabs" id="tabs" role="tablist">
|
||
|
||
<li class="nav-item">
|
||
<a class="nav-link active show" id="overview-tab" data-toggle="tab" href="#overview" role="tab" aria-controls="overview" aria-selected="true">
|
||
<!--<i class="fas fa-home">-->
|
||
<i class="fas fa-chart-area"></i> Server Info</a>
|
||
</li>
|
||
|
||
<li class="nav-item">
|
||
<a class="nav-link" id="modlist-tab" data-toggle="tab" href="#modlist" role="tab" aria-controls="modlist" aria-selected="false">
|
||
<i class="fas fa-server"></i> MOD List</a>
|
||
</li>
|
||
|
||
<!--<li class="nav-item">
|
||
<a class="nav-link" id="metrics-tab" data-toggle="tab" href="#metrics" role="tab" aria-controls="metrics" aria-selected="false">
|
||
<i class="fas fa-chart-area"></i> Server Graph</a>
|
||
</li>-->
|
||
|
||
<li class="nav-item">
|
||
<a class="nav-link" id="userdata-tab" data-toggle="tab" href="#userdata" role="tab" aria-controls="userdata" aria-selected="false">
|
||
<i class="fas fa-user-check"></i> User Database</a>
|
||
</li>
|
||
|
||
<li class="nav-item"> <a class="nav-link" id="history-tab" data-toggle="tab" href="#historytab" role="tab" aria-controls="historytab" aria-selected="false">
|
||
<i class="fas fa-info"></i> 🅷 🅸 🆂 🆃 🅾 🆁 🆈 ️ </a>
|
||
</li>
|
||
|
||
<li class="nav-item"> <a class="nav-link" id="map-tab" data-toggle="tab" href="#maptab" role="tab" aria-controls="maptab" aria-selected="false">
|
||
<i class="fas fa-map"></i> MAP</a>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
|
||
<div class="tab-content content_wrapper" id="tabs">
|
||
|
||
<!-- cadre stat Gameserver -->
|
||
<div class="tab-pane fade tab_content active show" id="overview" role="tabpanel" aria-labelledby="overview-tab">
|
||
|
||
<div class="row" style="margin-left: 30px;">
|
||
|
||
|
||
<div class="col-lg-2 col-sm-5">
|
||
<div class="callout callout-dark" style="padding:0">
|
||
<img src="image_ico.png" class="arrondie2" height="50px" width="150px">
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-lg-2 col-sm-5">
|
||
<div class="callout callout-light">
|
||
<small class="text-muted">Last time refresh</small> <br>
|
||
<strong class="h4"> <?php setlocale(LC_ALL,'french'); echo date("m/d/y H:i:s"); ?></span> </strong>
|
||
<div class="chart-wrapper">
|
||
<canvas id="sparkline-chart-1" width="100" height="30"></canvas>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-lg-2 col-sm-5">
|
||
<div class="callout callout-primary">
|
||
<small class="text-muted">Last Player actif</small> <br>
|
||
<strong class="h4"><span style="color: #20A8D8;"><?php echo $Info['Players'] ; ?></span>
|
||
<small> /<span style="color: grey;"><?php echo $Info['MaxPlayers'] ; ?></span></small>
|
||
</strong>
|
||
<div class="chart-wrapper">
|
||
<canvas id="sparkline-chart-1" width="100" height="30"></canvas>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-lg-2 col-sm-5">
|
||
<div class="callout callout-warning">
|
||
<small class="text-muted">MOD actif</small>
|
||
<br>
|
||
<strong class="h4"><span style="color: #FFC107;"><?php echo count($objlower); ?></span></strong>
|
||
<div class="chart-wrapper">
|
||
<canvas id="sparkline-chart-1" width="100" height="30"></canvas>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-lg-2 col-sm-5">
|
||
<div class="callout callout-success">
|
||
<small class="text-muted">Whitelist entries</small>
|
||
<br> <strong class="h4" style="color: #4DBD74">0</strong>
|
||
<div class="chart-wrapper">
|
||
<canvas id="sparkline-chart-1" width="100" height="30"></canvas>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="col-lg-2 col-sm-5">
|
||
<div class="callout callout-danger">
|
||
<small class="text-muted">Bans</small>
|
||
<br> <strong class="h4" style="color: #F86C6B">0</strong>
|
||
<div class="chart-wrapper">
|
||
<canvas id="sparkline-chart-1" width="100" height="30"></canvas>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
<div class="row" style="margin-top: 30px">
|
||
|
||
<div class="col-lg-10 col-sm-16">
|
||
<div class="card">
|
||
|
||
<div class="card-header"><i class="fas fa-server"></i>Stat Gameserver</div>
|
||
|
||
<div class="card-body">
|
||
<div class="row">
|
||
|
||
<div class="col-lg-14">
|
||
|
||
<div class="row">
|
||
<div class="form-check form-check-inline" style="width: 100% !important;">
|
||
<div class="col-sm-5">
|
||
<label class="col-form-label" for="date-input">
|
||
<strong>Server Name</strong>
|
||
</label>
|
||
</div>
|
||
<div class="col-sm-10" style="color:grey;">
|
||
<?php echo $Info['HostName'] ; ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="form-check form-check-inline"
|
||
style="width: 100% !important;">
|
||
<div class="col-sm-5">
|
||
<label class="col-form-label" for="date-input">
|
||
<strong>Server IP</strong>
|
||
<br><i></i><small> Server port</small></i>
|
||
</label>
|
||
</div>
|
||
<div class="col-sm-7">
|
||
<a href="#"><?php echo $ipserv; ?></a><br>
|
||
<a href="#"><?php echo $portserv; ?></a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="form-check form-check-inline"
|
||
style="width: 100% !important;">
|
||
<div class="col-sm-5">
|
||
<label class="col-form-label" for="date-input">
|
||
<strong>Total User</strong>
|
||
</label>
|
||
</div>
|
||
<div class="col-sm-7">
|
||
<i class="fa fa-user"></i>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="form-check form-check-inline"
|
||
style="width: 100% !important;">
|
||
<div class="col-sm-5">
|
||
<label class="col-form-label" for="date-input">
|
||
<strong>Gameserver protection</strong>
|
||
</label>
|
||
</div>
|
||
<div class="col-sm-7">
|
||
<span class="badge badge-light">Anti-Cheat ON</span>
|
||
<span class="badge badge-light">BattlEye enabled</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row">
|
||
<div class="form-check form-check-inline"
|
||
style="width: 100% !important;">
|
||
<div class="col-sm-5">
|
||
<label class="col-form-label" for="date-input">
|
||
<strong>Best Distance Kill</strong>
|
||
<!--br>
|
||
<small> From User</small-->
|
||
</label>
|
||
</div>
|
||
<div class="col-sm-7"><i class="fas fa-dot-circle" style="color:#20a8d8"></i>
|
||
800m <small> by </small> <span class="badge badge-light"> Terror_east</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div class="row">
|
||
<div class="form-check form-check-inline"
|
||
style="width: 100% !important;">
|
||
<div class="col-sm-5">
|
||
<label class="col-form-label" for="date-input">
|
||
<strong>Mod information</strong>
|
||
<br><i><small> MOD Actif </small></i>
|
||
</label>
|
||
</div>
|
||
<div class="col-sm-7">
|
||
<a href="https://dayz.echosystem.fr/server/mod_namalsk2.php"><span class="badge badge-light">
|
||
<b><?php echo count($objlower); ?></b>
|
||
<span class="text-muted"> Mods </span></a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="row">
|
||
<div class="form-check form-check-inline" style="width: 100% !important;">
|
||
<div class="col-sm-5">
|
||
<label class="col-form-label" for="date-input">
|
||
<strong>Direct connect</strong><br>
|
||
<em><i> (clic to join) </i> </em>
|
||
</label>
|
||
</div>
|
||
<div class="col-sm-7">
|
||
<a style="text-decoration:none;" href='steam://connect/82.64.214.194:3201/'>
|
||
<span class='label label-success'> GO PLAY </span>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<!-- graph home page -->
|
||
|
||
<div class="col-lg-10 col-sm-16">
|
||
<div class="card">
|
||
|
||
<?php if( !empty( $Players ) ): ?>
|
||
<div class="card-header">List players online: <?php echo $Info['Players'] ; ?></div>
|
||
<div class="card-body">
|
||
|
||
<?php foreach( $Players as $Player ): ?>
|
||
<table>
|
||
<tr>
|
||
<td style="width:200px"> <span class="btn btn-large btn-primary">"Survivor" </span> </td>
|
||
<td>  <span style='color:grey'>Playtime </span>> <?php echo $Player[ 'TimeF' ]; ?> Minutes </td>
|
||
</tr>
|
||
</table>
|
||
|
||
|
||
|
||
<?php endforeach; ?>
|
||
|
||
|
||
</div>
|
||
<?php else: ?>
|
||
|
||
<div class="card-header">List players online: <?php echo $Info['Players'] ; ?></div>
|
||
<div class="card-body">
|
||
<tr>
|
||
<td colspan="2"><center><span class="btn btn-large btn-primary">( No players in game )</span></center></td> </td>
|
||
</div>
|
||
|
||
|
||
|
||
<?php endif; ?>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- graph home page -->
|
||
|
||
<div class="col-lg-12 col-sm-16">
|
||
<div class="card">
|
||
<div class="card-header">Player last 24 hours</div>
|
||
<div class="card-body">
|
||
need sql // not ready yet
|
||
<?php // include('./GraphPlayer.php'); ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!--
|
||
<div class="col-lg-4 col-sm-4">
|
||
<div class="card_">
|
||
|
||
</div>
|
||
</div>
|
||
-->
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
|
||
<!-- TAB MOD list -->
|
||
|
||
<div class="tab-pane tab_content fade" id="modlist" role="tabpanel" aria-labelledby="modlist-tab">
|
||
|
||
<div class="row">
|
||
<div class="col-lg-5 col-sm-12">
|
||
|
||
<div class="card">
|
||
<div class="card-header"><i class="fas fa-users"></i>
|
||
MOD list on <span style="color:grey;"><?php echo $Info['HostName'] ; ?></span>
|
||
</div>
|
||
|
||
<div class="card-body">
|
||
|
||
<p class="before-list">
|
||
<center>
|
||
<span style="padding: 5px 0px 2px 20px;"><?php echo count($objlower); ?> MODS </span>
|
||
<span style="padding: 5px 0px 2px 20px;">IP: <span style="color: orange;"><?php echo $urlserv; ?> </span></span>
|
||
</center>
|
||
</p>
|
||
|
||
<table class="table_ table-bordered_ table-striped_">
|
||
<thead>
|
||
<tr>
|
||
<th style="text-align:left;"><span class='label label-info'>MOD Name</span>
|
||
</th>
|
||
<!-- <th><span class='label label-info'>steamWorkshopId</span></th>-->
|
||
</tr>
|
||
|
||
</thead>
|
||
|
||
<tbody>
|
||
<tr><td><br></td><td></td><br></tr>
|
||
<?php $objlower=json_decode($json); //converts to an array of objects
|
||
foreach( $objlower as $item ) { ?>
|
||
<tr>
|
||
<td><a href="http://steamcommunity.com/sharedfiles/filedetails/?id=<?php echo $item->steamWorkshopId?>" data-type="Link"><?php echo $item->name; ?></a></td>
|
||
</tr>
|
||
<?php } ?>
|
||
|
||
</tbody>
|
||
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<!-- tab Metrics Graph -->
|
||
|
||
<div class="tab-pane tab_content fade" id="metrics" role="tabpanel" aria-labelledby="metrics-tab">
|
||
|
||
<div class="row">
|
||
<div class="col-lg-6 col-sm-8">
|
||
<div class="card">
|
||
<div class="card-header">Player population 24 hours</div>
|
||
<div class="card-body"><br>
|
||
<!-- <iframe src="graph.php" frameborder="0" allowfullscreen scrolling="no"
|
||
style="margin:auto;width:100%;height:395px;" security="restricted"></iframe> -->
|
||
<?php // include('graph.php'); ?>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-lg-6 col-sm-12">
|
||
<div class="card" style="margin: 0 auto; height: 500px; width: 100%;">
|
||
<div class="card-header"> line-chart </div>
|
||
<div class="card-body"><center>
|
||
<!-- <iframe src="line-chart1.php" frameborder="0"
|
||
allowfullscreen scrolling="no" style="overflow:hidden;width:100%;height:450px;" security="restricted"></iframe> -->
|
||
</center>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="col-lg-8 col-sm-8">
|
||
<div class="card">
|
||
<div class="card-header"> 12 h </div>
|
||
<div class="card-body" style="margin: 0 auto; height: 500px; width: 100%; padding-bottom: 0;">
|
||
<center> <script src="morris/morris.js"></script>
|
||
</center>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<!-- HISTORY List -->
|
||
|
||
<div class="tab-pane tab_content fade" id="historytab" role="tabpanel" aria-labelledby="history-tab">
|
||
<div class="col-lg-12 col-sm-12">
|
||
<div class="card">
|
||
<div class="card-header" style="padding: 15px;"> <i class="fas fa-search"></i> Namalsk Island </div>
|
||
<div style="padding:15px;">
|
||
<img src="https://dayz.echosystem.fr/server/Namalsk/image_ico.png" alt="Namalsk island" style="width:100%;max-width:800px;max-height:450px;height:auto;" class="arrondie2 ban">
|
||
<?php include('info.php'); ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<!-- MAP tab -->
|
||
|
||
<div class="tab-pane tab_content fade" id="maptab" role="tabpanel" aria-labelledby="map-tab">
|
||
<div class="col-lg-12 col-sm-12">
|
||
<div class="card">
|
||
<div class="card-header" style="padding: 15px;"> <i class="fas fa-map"></i> Namalsk Island </div>
|
||
<a href="https://dayz.echosystem.fr/server/Namalsk/namalsk_map2.png">
|
||
<!-- <img src="https://dayz.echosystem.fr/server/Namalsk/namalsk_map2.png" style="width:100%;max-width:1200px;height:auto;padding:5px;" class="arrondie2"></a>-->
|
||
<img src="https://dayz.echosystem.fr/server/Namalsk/namalsk_map_hd.png" style="width:100%;max-width:1200px;height:auto;padding:5px;" class="arrondie2"></a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<!-- tab User List -->
|
||
<div class="tab-pane tab_content fade" id="userdata" role="tabpanel" aria-labelledby="userdata-tab">
|
||
|
||
<div class="col-lg-12 col-sm-12">
|
||
<div class="card">
|
||
<div class="card-header"> <i class="fas fa-user-check"></i> User registered </div>
|
||
|
||
<div style="position:relative;padding-top:56.25%;">
|
||
<iframe src="Players" frameborder="0" allowfullscreen style="position:absolute;top:0;left:0;width:100%;height:100%;" security="restricted"></iframe>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- end tabs -->
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div><!-- end row -->
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</main>
|
||
|
||
|
||
|
||
<!-- menu droite -->
|
||
|
||
|
||
|
||
<!--/div-->
|
||
|
||
<footer class="app-footer">
|
||
|
||
<div style="text-align:center;"> <span style="text-align:center;"> © 2020 (-ToX-) - <a href="https://git.echosystem.fr/Erreur32/DayZ-Stat-Server">Dayz-server-stats</a> by <a href="">Erreur32</a> </span>
|
||
<!-- <div class="dark_" style="text-align: right;padsding-right: 10px;padding-top: 15px;color: grey;" title="Dark Mode">
|
||
<form action="#">
|
||
<div class="switch">
|
||
<input id="darkTrigger" type="checkbox" class="switch-input" />
|
||
<label for="darkTrigger" class="switch-label" ></label>
|
||
</div>
|
||
</form>
|
||
</div>-->
|
||
</div>
|
||
|
||
<div class="ml-auto">
|
||
<?php
|
||
$time = microtime();
|
||
$time = explode(' ', $time);
|
||
$time = $time[1] + $time[0];
|
||
$finish = $time;
|
||
$total_time = round(($finish - $start), 3);
|
||
echo 'Generated in <a style="font-size: 12px" href="#" target="_blank">'.$total_time.'</a> sec.';
|
||
?>
|
||
</div>
|
||
</footer>
|
||
|
||
<script src="./bootstrap.min.js"></script>
|
||
<script src="./graph_loader.js"></script>
|
||
|
||
<!-- menu deroulant
|
||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> -->
|
||
|
||
<script src="https://kit.fontawesome.com/9ba5e91dd6.js" crossorigin="anonymous"></script>
|
||
|
||
<style>
|
||
.tab-content {
|
||
margin-top: -1px;
|
||
background: #3a4149;
|
||
border: none;
|
||
border-radius: 0 0 .25rem .25rem;
|
||
}
|
||
|
||
a,
|
||
a:visited {
|
||
color: #20A8D8;
|
||
text-decoration: none;
|
||
}
|
||
|
||
a:hover {
|
||
color: orange;
|
||
text-decoration: none;
|
||
}
|
||
|
||
.description-header {
|
||
color: #26A65B;
|
||
}
|
||
|
||
.arrondie2 {
|
||
border:2px solid grey;
|
||
-moz-border-radius:7px;
|
||
-webkit-border-radius:7px;
|
||
border-radius:7px;
|
||
}
|
||
|
||
.switch {
|
||
position: relative;
|
||
display: inline-block;
|
||
}
|
||
.switch-input {
|
||
display: none;
|
||
}
|
||
.switch-label {
|
||
display: block;
|
||
width: 36px;
|
||
height: 14px;
|
||
text-indent: -100%;
|
||
clip: rect(0 0 0 0);
|
||
color: transparent;
|
||
user-select: none;
|
||
}
|
||
.switch-label::before,
|
||
.switch-label::after {
|
||
content: "";
|
||
display: block;
|
||
position: absolute;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.switch-label::before {
|
||
width: 100%;
|
||
height: 100%;
|
||
background-color: #535658;
|
||
border-radius: 9999em;
|
||
-webkit-transition: background-color 0.25s ease;
|
||
transition: background-color 0.25s ease;
|
||
}
|
||
.switch-label::after {
|
||
top: 0;
|
||
left: 0;
|
||
width: 18px;
|
||
height: 18px;
|
||
border-radius: 50%;
|
||
background-color: #fff;
|
||
box-shadow: 0 0 2px rgba(0, 0, 0, 0.45);
|
||
-webkit-transition: left 0.25s ease;
|
||
transition: left 0.25s ease;
|
||
}
|
||
.switch-input:checked + .switch-label::before {
|
||
background-color: #89c12d;
|
||
}
|
||
.switch-input:checked + .switch-label::after {
|
||
left: 18px;
|
||
}
|
||
|
||
</style>
|
||
|
||
<link rel="stylesheet" type="text/css" href="dark.css" />
|
||
<!-- Dark Theme -->
|
||
<script>
|
||
$("#darkTrigger").click(function(){
|
||
if ($("body").hasClass("dark")){
|
||
$("body").removeClass("dark");
|
||
}
|
||
else{
|
||
$("body").addClass("dark");
|
||
}
|
||
});
|
||
</script>
|
||
|
||
|
||
|
||
|
||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-KZ70E6176C"></script>
|
||
<script>
|
||
window.dataLayer = window.dataLayer || [];
|
||
function gtag(){dataLayer.push(arguments);}
|
||
gtag('js', new Date());
|
||
|
||
gtag('config', 'G-KZ70E6176C');
|
||
</script>
|
||
|