-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplaychanges.php
38 lines (32 loc) · 1.29 KB
/
displaychanges.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
<div class="about">
<div>Welcome to the QuickPlay homepage. QuickPlay is a powerful universal emulator
frontend, which has support for countless emulators and systems.
QuickPlay is written in Delphi 2005 Personal Edition and is released under a BSD license which
means its free AND you can take the source code and do whatever you want with
it, as long as you leave my name in it somewhere.
</div>
</div>
<h2>Change Log</h2>
<?php
// Begin loading in the news entries from the database.
$dbo = new QPDatabase();
$dbo->Query("SELECT title, changes, authors.name, date_posted, changes.id FROM changes, authors
WHERE changes.author_id=authors.id and changes.date_posted > '2004-10-12'
ORDER BY date_posted DESC LIMIT 5");
while( $row = $dbo->Fetch_Array() )
{
echo "<div class=\"newshead\">\n{$row['title']}";
if ( $auth->IsLoggedOn() )
echo " - <a href=\"index.php?title=news_add&post={$row['id']}\">edit</a>";
echo "\n</div>\n";
echo "<div class=\"newscontent\">\n";
echo $row['changes'];
echo "</div>\n";
echo "<div class=\"newsfooter\">\nPosted by {$row['name']} on ";
echo date("d-m-Y", strtotime((string) $row['date_posted']));
echo "\n</div>\n";
}
?>
<div class="about">
[Change Log|changelog]
</div>"