forked from TheGamesDB/TheGamesDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tab_recentbanners_admin.php
59 lines (52 loc) · 2.63 KB
/
tab_recentbanners_admin.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
<div class="section">
<h1>20 Most Recent Series Banners</h1>
<?php ## Display banners
$bannercount = 0;
$query = "SELECT *, (SELECT username FROM users WHERE id=banners.userid) AS user FROM banners WHERE keytype='series' AND subkey !='blank' AND dateadded>1160466915 ORDER BY dateadded DESC LIMIT 20";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
while ($banner = mysql_fetch_object($result)) {
print "<a href=\"/?tab=series&id=$banner->keyvalue\"><img src=\"banners/$banner->filename\" class=\"banner\" border=\"0\" alt=\"$banner->subkey\"></a>\n";
print "<div id=\"bannerauth\">Banner by $banner->user</div>\n";
$bannercount++;
}
?>
</div>
<h1>20 Most Recent Blank Series Banners</h1>
<?php ## Display banners
$bannercount = 0;
$query = "SELECT *, (SELECT username FROM users WHERE id=banners.userid) AS user FROM banners WHERE keytype='series' AND subkey ='blank' AND dateadded>1160466915 ORDER BY dateadded DESC LIMIT 20";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
while ($banner = mysql_fetch_object($result)) {
print "<a href=\"/?tab=series&id=$banner->keyvalue\"><img src=\"banners/$banner->filename\" class=\"banner\" border=\"0\" alt=\"$banner->subkey\"></a>\n";
print "<div id=\"bannerauth\">Banner by $banner->user</div>\n";
$bannercount++;
}
?>
</div>
<div class="section">
<h1>20 Most Recent Season Banners</h1>
<?php ## Display banners
$bannercount = 0;
$query = "SELECT *, (SELECT username FROM users WHERE id=banners.userid) AS user FROM banners WHERE keytype='season' AND dateadded>1160466915 ORDER BY dateadded DESC LIMIT 20";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
while ($banner = mysql_fetch_object($result)) {
print "<a href=\"/?tab=series&id=$banner->keyvalue\"><img src=\"banners/$banner->filename\" class=\"banner\" border=\"0\" alt=\"$banner->subkey\"></a>\n";
print "<div id=\"bannerauth\">Banner by $banner->user</div>\n";
$bannercount++;
}
?>
</div>
<div class="section">
<h1>20 Most Recent Wide Season Banners</h1>
<?php ## Display banners
$bannercount = 0;
$query = "SELECT *, (SELECT username FROM users WHERE id=banners.userid) AS user FROM banners WHERE keytype='seasonwide' AND dateadded>1160466915 ORDER BY dateadded DESC LIMIT 20";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
while ($banner = mysql_fetch_object($result)) {
print "<a href=\"/?tab=series&id=$banner->keyvalue\"><img src=\"banners/$banner->filename\" class=\"banner\" border=\"0\" alt=\"$banner->subkey\"></a>\n";
print "<div id=\"bannerauth\">Banner by $banner->user</div>\n";
$bannercount++;
}
?>
</div>
</div>