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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
<?php
require_once('includes/config.php');
//Titre de la page
$pagetitle = 'Info du site et statistiques';
//Stats : bbclone
define("_BBC_PAGE_NAME", $pagetitle);
define("_BBCLONE_DIR", "bbclone/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);
include_once('includes/header.php');
?>
<body>
<div id="container">
<?php
include_once('includes/header-logo.php');
include_once('includes/nav.php');
?>
<div id="body">
<div id="content">
<?php include_once('includes/ariane.php'); ?>
<br />
<div style="text-align: center;"><span style="font-size: 14pt; font-weight: bold;">Les 5 derniers torrents :</span></div>
<br />
<table>
<th>Nom du torrent</th>
<th>Seeders</th>
<th>Leechers</th>
<?php
$stmt = $db->query('SELECT blog_posts_seo.postID,blog_posts_seo.postHash,blog_posts_seo.postTitle,blog_posts_seo.postSlug,xbt_files.seeders,xbt_files.leechers FROM blog_posts_seo,xbt_files WHERE blog_posts_seo.postID = xbt_files.fid ORDER BY postID DESC LIMIT 5');
while($row = $stmt->fetch()){
echo '<tr>';
echo '
<td style="width:85%;"><img src="'.SITEURL.'/images/torrentfileblue.png" style="width:20px; height:20px; vertical-align:text-bottom;" alt="" /> <a style="text-decoration: none; color:black; font-size:14px;" href="'.SITEURL.'/'.html($row['postSlug']).'"><span>'.html($row['postTitle']).'</span></a></td>
<td style="text-align:center;"><a style="text-decoration: none; font-size:14px; font-weight:bold;" href="../peers.php?hash='.html($row['postHash']).'"><span style="color: green;">'.html($row['seeders']).'</span></a></td>
<td style="text-align:center;"><a style="text-decoration: none; font-size:14px; font-weight:bold;" href="../peers.php?hash='.html($row['postHash']).'"><span style="color: red;">'.html($row['leechers']).'</span></a></td>
';
echo '</tr>';
}
?>
</table>
<br /><br />
<div style="text-align: center;"><span style="font-size: 14pt; font-weight: bold;">Les 5 torrents les plus populaires :</span></div>
<br />
<table>
<th>Nom du torrent</th>
<th>Nb de vues</th>
<?php
$stmt = $db->query('SELECT postSlug,postTitle,postAuthor,postDate,postViews FROM blog_posts_seo ORDER BY postViews DESC LIMIT 5');
while($row = $stmt->fetch()) {
echo '<tr>';
echo '
<td style="width:88%;"><img src="'.SITEURL.'/images/torrentfileblue.png" style="width:20px; height:20px; vertical-align:text-bottom;" alt="" /><a style="text-decoration: none; color:black; font-size:14px;" href="'.SITEURL.'/'.html($row['postSlug']).'">'.html($row['postTitle']).'</a></td>
<td style="text-align:center;"><span style="color: green; font-size:14px; font-weight:bold;">'.html($row['postViews']).'</span></td>
';
echo '</tr>';
}
?>
</table>
<?php
$stmt = $db->query('SELECT blog_posts_seo.postID,blog_posts_seo.postHash,blog_posts_seo.postTitle,blog_posts_seo.postSlug,xbt_files.fid,xbt_files.seeders,xbt_files.leechers FROM blog_posts_seo,xbt_files WHERE blog_posts_seo.postID = xbt_files.fid AND xbt_files.seeders = 0 AND xbt_files.leechers > 0 ORDER BY postID DESC LIMIT 5');
$count = $stmt->rowCount();
if (!empty($count)) {
?>
<br /><br />
<div style="text-align: center;"><span style="font-size: 14pt; font-weight: bold;">Torrents qui ont besoin de seeds :</span></div>
<br />
<table>
<th>Nom du torrent</th>
<th>Seeders</th>
<th>Leechers</th>
<?php
while($row = $stmt->fetch()) {
echo '<tr>';
echo '
<td style="width: 85%;"><img src="'.SITEURL.'/images/torrentfileblue.png" style="width:20px; height:20px; vertical-align:text-bottom;" alt="" /> <a style="text-decoration: none; color:black; font-size:14px;" href="'.SITEURL.'/'.html($row['postSlug']).'">'.html($row['postTitle']).'</td>
<td style="text-align:center;"><a style="text-decoration: none; font-size:14px; font-weight:bold;" href="../peers.php?hash='.html($row['postHash']).'"><span style="color: green;">'.html($row['seeders']).'</span></a></td>
<td style="text-align:center;"><a style="text-decoration: none; font-size:14px; font-weight:bold;" href="../peers.php?hash='.html($row['postHash']).'"><span style="color: red;">'.html($row['leechers']).'</span></a></td>
';
echo '</tr>';
}
?>
</table>
<?php } ?>
<br /><br />
<div style="text-align: center;"><span style="font-size: 14pt; font-weight: bold;">Les 5 torrents les plus actifs :</span></div>
<br />
<table>
<th>Nom du torrent</th>
<th>Seeders</th>
<th>Leechers</th>
<?php
$stmt = $db->query('SELECT blog_posts_seo.postID,blog_posts_seo.postHash,blog_posts_seo.postTitle,blog_posts_seo.postSlug,xbt_files.seeders,xbt_files.leechers FROM blog_posts_seo,xbt_files WHERE blog_posts_seo.postID = xbt_files.fid ORDER BY xbt_files.seeders DESC LIMIT 5');
while($row = $stmt->fetch()){
echo '<tr>';
echo '
<td style="width:85%;"><img src="'.SITEURL.'/images/torrentfileblue.png" style="width:20px; height:20px; vertical-align:text-bottom;" alt="" /> <a style="text-decoration: none; color:black; font-size:14px;" href="'.SITEURL.'/'.html($row['postSlug']).'"><span>'.html($row['postTitle']).'</span></a></td>
<td style="text-align:center;"><a style="text-decoration: none; font-size:14px; font-weight:bold;" href="../peers.php?hash='.html($row['postHash']).'"><span style="color: green;">'.html($row['seeders']).'</span></a></td>
<td style="text-align:center;"><a style="text-decoration: none; font-size:14px; font-weight:bold;" href="../peers.php?hash='.html($row['postHash']).'"><span style="color: red;">'.html($row['leechers']).'</span></a></td>
';
echo '</tr>';
}
?>
</table>
<br />
</div>
<?php include_once('sidebar.php'); ?>
<div class="clear"></div>
</div>
</div>
<div id="footer">
<?php include_once('includes/footer.php'); ?>
</div>
</body>
</html>
|