first commit
This commit is contained in:
parent
617d059676
commit
188481c055
3 changed files with 17 additions and 14 deletions
|
@ -1,27 +1,29 @@
|
|||
<?php
|
||||
|
||||
ini_set('display_errors', 'on');
|
||||
//ini_set('display_errors', 'on');
|
||||
|
||||
include('./consql.php');
|
||||
include_once('config.php');
|
||||
$StatServer = "StatServer_20";
|
||||
|
||||
// MYSQL table
|
||||
|
||||
// $StatServer = "StatServer_20"; // set in consql.php
|
||||
|
||||
$queryP = "SELECT date, numplayers FROM ".$StatServer." ORDER BY id DESC LIMIT 80";
|
||||
$arrPlay = $con->query($queryP);
|
||||
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<head>
|
||||
<!--<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>-->
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/raphael/2.1.2/raphael-min.js"></script>
|
||||
<script src="morris/morris.js"></script>
|
||||
<!--link rel="stylesheet" href="lib/example.css"-->
|
||||
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/prettify/r224/prettify.min.css">
|
||||
<script src="morris/morris.js"></script>
|
||||
<link rel="stylesheet" href="morris/morris.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<body>
|
||||
|
||||
<h3>☠ Players on <?php echo $namemap ;?> (-ToX-)</h3>
|
||||
<div id="graph32"></div>
|
||||
|
@ -44,4 +46,4 @@ hideHover:'auto'
|
|||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
@ -3,8 +3,10 @@
|
|||
$userdb = "";
|
||||
$pdb = "";
|
||||
$dbname = "";
|
||||
$table = "StatServer_20";
|
||||
|
||||
$con = new mysqli($servdb, $userdb, $pdb, $dbname);
|
||||
$StatServer = $table;
|
||||
$con = new mysqli($servdb, $userdb, $pdb, $dbname);
|
||||
|
||||
if ($con->connect_error) {
|
||||
// die("Connection failed: " . $con->connect_error);
|
||||
|
|
|
@ -510,7 +510,7 @@ $sec = "300";
|
|||
<div class="card-header">Player last 24 hours</div>
|
||||
<div class="card-body">
|
||||
need sql // not ready yet
|
||||
<?php include('./GraphPlayer.php'); ?>
|
||||
<?php include('./GraphPlayer.php'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -674,16 +674,15 @@ $sec = "300";
|
|||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
|
||||
<script src="./bootstrap.min.js"></script>
|
||||
<script src="./graph_loader.js"></script>
|
||||
<script src="js/switch.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>
|
||||
<!--
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/raphael/2.1.2/raphael-min.js"></script>
|
||||
-->
|
||||
|
||||
<style>
|
||||
.tab-content {
|
||||
margin-top: -1px;
|
||||
|
|
Loading…
Reference in a new issue