-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
83 lines (78 loc) · 3.36 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
session_name('hydrid');
session_start();
require_once 'inc/connect.php';
require_once 'inc/config.php';
require_once 'inc/backend/user/auth/userIsLoggedIn.php';
$page['name'] = 'ESTADÍSTICAS GENERALES DEL SITIO';
?>
<?php include 'inc/page-top.php'; ?>
<body>
<?php include 'inc/top-nav.php'; ?>
<?php
if (isset($_GET['notify']) && strip_tags($_GET['notify']) === 'steam-linked') {
clientNotify('success', 'Your Steam Account Has Been Linked.');
}
$stats['users'] = null;
$stats['staff'] = null;
$stats['civ'] = null;
$stats['ems'] = null;
$stats['users'] = $pdo->query('select count(*) from users')->fetchColumn();
$stats['staff'] = $pdo->query('select count(*) from users WHERE usergroup <> "1" AND usergroup <> "2" AND usergroup <> "3"')->fetchColumn();
$stats['civ'] = $pdo->query('select count(*) from characters')->fetchColumn();
$stats['ems'] = $pdo->query('select count(*) from identities')->fetchColumn();
?>
<!-- CONTENT START -->
<div class="wrapper m-b-15">
<div class="container-fluid">
<div class="row">
<div class="col">
<h4 class="page-title"><?php echo $page['name']; ?></h4>
</div>
</div>
<div class="alert alert-warning" role="alert">
<strong>Warning: </strong> Esto es para mera prueba, aún no se oficializa y pueden haber cambios en el proceso.
</div>
<div class="row">
<div class="col col-xs-6">
<div class="card-box">
<h4 class="header-title mt-0 m-b-30">Usuarios Totales</h4>
<h2 class="p-t-10 mb-0"><?php echo $stats['users']; ?></h2>
</div>
</div>
<div class="col col-xs-6">
<div class="card-box">
<h4 class="header-title mt-0 m-b-30">Administradores Totales</h4>
<h2 class="p-t-10 mb-0"><?php echo $stats['staff']; ?></h2>
</div>
</div>
<div class="col col-xs-6">
<div class="card-box">
<h4 class="header-title mt-0 m-b-30">Fichas Civiles</h4>
<h2 class="p-t-10 mb-0"><?php echo $stats['civ']; ?></h2>
</div>
</div>
<div class="col col-xs-6">
<div class="card-box">
<h4 class="header-title mt-0 m-b-30">Oficiales Disponibles</h4>
<h2 class="p-t-10 mb-0"><?php echo $stats['ems']; ?></h2>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="card-box">
<h4 class="header-title mt-0 m-b-30">Otro mensaje</h4>
<p>En constante cambio.</i></p>
</div>
<div class="card-box">
<h4 class="header-title mt-0 m-b-30">Un mensaje</h4>
<p>Siempre culto al rey.</i></p>
</div>
</div>
</div>
</div>
</div>
<!-- CONTENT END -->
<?php include 'inc/copyright.php'; ?>
<?php include 'inc/page-bottom.php'; ?>