-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite_stat.php
142 lines (133 loc) · 3.57 KB
/
site_stat.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?
/*
+--------------------------------------------------------------------------
| MkPortal
| ========================================
| by Meo aka Luponero <Amedeo de longis>
|
| (c) 2004 mkportal.it
| http://www.mkportal.it
| Email: [email protected]
|
+---------------------------------------------------------------------------
|
| > MKPortal
| > Written By Amedeo de longis
| > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/
$content = "";
$link_user = $mklib_board->forum_link("profile");
$counter = $this->config['counter'];
$stat = $mklib_board->get_site_stat();
$count_holder = sprintf ("%07d", "$counter");
$query = $DB->query("SELECT id FROM mkp_gallery");
$countgal = $DB->get_num_rows($query);
$query = $DB->query("SELECT id FROM mkp_download");
$countdown = $DB->get_num_rows($query);
$query = $DB->query("SELECT id FROM mkp_blog");
$countblog = $DB->get_num_rows($query);
$query = $DB->query("SELECT id FROM mkp_topsite WHERE validate = '1'");
$countsite = $DB->get_num_rows($query);
$query = $DB->query("SELECT id FROM mkp_reviews");
$countrev = $DB->get_num_rows($query);
for ($n = 0; $n < strlen($count_holder); $n++) ($nbhits .= "<img src=\"$this->images/led/{$count_holder[$n]}.gif\" style=\"border: solid 1px #ffffff;\" alt=\"\" />");
$content = "
<tr>
<td class=\"tdblock\">
<span class=\"mktxtcontr\">{$stat['total_posts']}</span> {$this->lang['posts']}:
</td>
</tr>
<tr>
<td class=\"tdglobal\">
{$stat['topics']} {$this->lang['topics']}
</td>
</tr>
<tr>
<td class=\"tdglobal\">
{$stat['replies']} {$this->lang['replies']}<br />
</td>
</tr>
<tr>
<td class=\"tdblock\">
<span class=\"mktxtcontr\">$countblog</span> {$this->lang['blog']}:
</td>
</tr>
<tr>
<td class=\"tdglobal\">
{$this->lang['user_created']}<br />
</td>
</tr>
<tr>
<td class=\"tdblock\">
<span class=\"mktxtcontr\">$countgal</span> {$this->lang['images']}:
</td>
</tr>
<tr>
<td class=\"tdglobal\">
{$this->lang['in_gallery']}<br />
</td>
</tr>
<tr>
<td class=\"tdblock\">
<span class=\"mktxtcontr\">$countdown</span> {$this->lang['files']}:
</td>
</tr>
<tr>
<td class=\"tdglobal\">
{$this->lang['in_download']}<br />
</td>
</tr>
<tr>
<td class=\"tdblock\">
<span class=\"mktxtcontr\">$countsite</span> {$this->lang['sites']}:
</td>
</tr>
<tr>
<td class=\"tdglobal\">
{$this->lang['in_topsite']}<br />
</td>
</tr>
<tr>
<td class=\"tdblock\">
<span class=\"mktxtcontr\">$countrev</span> {$this->lang['reviews']}:
</td>
</tr>
<tr>
<td class=\"tdglobal\">
{$this->lang['in_reviews']}<br />
</td>
</tr>
<tr>
<td class=\"tdblock\">
<span class=\"mktxtcontr\">{$stat['members']}</span> {$this->lang['u_registered']}:
</td>
</tr>
<tr>
<td class=\"tdglobal\">
{$this->lang['last']}: <a class=\"uno\" href=\"$link_user={$stat['last_member']}\">{$stat['last_member_name']}</a>
</td>
</tr>
<tr>
<td class=\"tdblock\">
{$this->lang['access_counter']}:
</td>
</tr>
<tr>
<td class=\"tdglobal\">
<center>$nbhits</center>
</td>
</tr>
";
unset($link_user);
unset($counter);
unset($stat);
unset($count_holder);
unset($query);
unset($countgal);
unset($countdown);
unset($countblog);
unset($countsite);
unset($countrev);
?>