forked from HowTommy/mycryptochat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstats.php
63 lines (58 loc) · 1.95 KB
/
stats.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
<?php
require 'inc/conf.php';
require 'inc/constants.php';
require 'inc/init.php';
require 'inc/functions.php';
require 'inc/classes.php';
require 'inc/dbmanager.php';
$dbManager = new DbManager();
$nbChatrooms = $dbManager->GetNbChatRooms();
$nbMessages = $dbManager->GetNbMessages();
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Stats - MyCryptoChat by HowTommy.net</title>
<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="viewport" content="width=device-width" />
<link href="styles/myCryptoChat.css" rel="stylesheet" />
<script src="scripts/modernizr.js"></script>
</head>
<body>
<header>
<div class="content-wrapper">
<div class="float-left">
<p class="site-title"><a href="index.php">MyCryptoChat</a></p>
</div>
<div class="float-right">
<section id="login">
</section>
<nav>
<ul id="menu">
<li><a href="index.php">Home</a></li>
<li><a href="stats.php">Stats</a></li>
<li><a href="about.php">About</a></li>
</ul>
</nav>
</div>
</div>
</header>
<div id="body">
<section class="content-wrapper main-content clear-fix">
<h2>Stats about MyCryptoChat</h2>
<p>
Number of chat rooms: <?php echo $nbChatrooms; ?><br />
Number of messages: <?php echo $nbMessages; ?>
</p>
</section>
</div>
<footer>
<div class="content-wrapper">
<div class="float-left">
<p>© 2013 - MyCryptoChat <?php echo MYCRYPTOCHAT_VERSION; ?> by HowTommy.net</p>
</div>
</div>
</footer>
<script src="scripts/jquery.js"></script>
</body>
</html>