first commit

This commit is contained in:
Erreur32 2021-01-31 18:56:08 +01:00
parent 617d059676
commit 188481c055
3 changed files with 17 additions and 14 deletions

View File

@ -1,27 +1,29 @@
<?php <?php
ini_set('display_errors', 'on'); //ini_set('display_errors', 'on');
include('./consql.php'); include('./consql.php');
include_once('config.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"; $queryP = "SELECT date, numplayers FROM ".$StatServer." ORDER BY id DESC LIMIT 80";
$arrPlay = $con->query($queryP); $arrPlay = $con->query($queryP);
?> ?>
<!doctype html>
<head> <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="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="//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"> <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"> <link rel="stylesheet" href="morris/morris.css">
</head> </head>
<body>
<body>
<h3> Players on <?php echo $namemap ;?> (-ToX-)</h3> <h3> Players on <?php echo $namemap ;?> (-ToX-)</h3>
<div id="graph32"></div> <div id="graph32"></div>
@ -44,4 +46,4 @@ hideHover:'auto'
</script> </script>
</body> </body>
</html>

View File

@ -3,7 +3,9 @@
$userdb = ""; $userdb = "";
$pdb = ""; $pdb = "";
$dbname = ""; $dbname = "";
$table = "StatServer_20";
$StatServer = $table;
$con = new mysqli($servdb, $userdb, $pdb, $dbname); $con = new mysqli($servdb, $userdb, $pdb, $dbname);
if ($con->connect_error) { if ($con->connect_error) {

View File

@ -674,16 +674,15 @@ $sec = "300";
</div> </div>
</footer> </footer>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="./bootstrap.min.js"></script> <script src="./bootstrap.min.js"></script>
<script src="./graph_loader.js"></script> <script src="./graph_loader.js"></script>
<script src="js/switch.js"></script> <script src="js/switch.js"></script>
<!-- menu deroulant --> <!-- menu deroulant -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <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://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> <style>
.tab-content { .tab-content {
margin-top: -1px; margin-top: -1px;