-
Notifications
You must be signed in to change notification settings - Fork 56
/
index.php
78 lines (72 loc) · 2.45 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
<?php
/**
* This file is part of ProFTPd Admin
*
* @package ProFTPd-Admin
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
*
* @copyright Lex Brugman <lex_brugman@users.sourceforge.net>
* @copyright Christian Beer <djangofett@gmx.net>
* @copyright Ricardo Padilha <ricardo@droboports.com>
*
*/
include_once ("configs/config.php");
include_once ("includes/AdminClass.php");
global $cfg;
$ac = new AdminClass($cfg);
include ("includes/header.php");
?>
<?php include ("includes/messages.php"); ?>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Groups</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-8 col-sm-7 col-md-6">
<p>Groups in database:</p>
</div>
<div class="col-xs-4 col-sm-5 col-md-6">
<p><span class="form-control"><?php echo $ac->get_group_count(); ?></span></p>
</div>
<div class="col-xs-8 col-sm-7 col-md-6">
<p>Empty groups in database:</p>
</div>
<div class="col-xs-4 col-sm-5 col-md-6">
<p><span class="form-control"><?php echo $ac->get_group_count(true); ?></span></p>
</div>
<div class="col-xs-12 col-sm-12 col-md-12">
<p><a class="btn btn-primary pull-right" href="groups.php" role="button">View groups »</a></p>
</div>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Users</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-8 col-sm-7 col-md-6">
<p>Users in database:</p>
</div>
<div class="col-xs-4 col-sm-5 col-md-6">
<p><span class="form-control"><?php echo $ac->get_user_count(); ?></span></p>
</div>
<div class="col-xs-8 col-sm-7 col-md-6">
<p>Deactivated users in database:</p>
</div>
<div class="col-xs-4 col-sm-5 col-md-6">
<p><span class="form-control"><?php echo $ac->get_user_count(true); ?></span></p>
</div>
<div class="col-xs-12 col-sm-12 col-md-12">
<p><a class="btn btn-primary pull-right" href="users.php" role="button">View users »</a></p>
</div>
</div>
</div>
</div>
</div>
<?php include ("includes/footer.php"); ?>