-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchangelog.php
24 lines (21 loc) · 996 Bytes
/
changelog.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
<?php
require_once "parser.inc.php";
$ausgabe .= table(450, "bg");
$ausgabe .= tr(td(0, "head", "Changelog"));
unset($updated);
$result = mysql_query("SELECT post_id, post_time, post_text FROM forum.phpbb_posts WHERE topic_id='45' ORDER BY post_time DESC LIMIT 5");
while($inhalte = mysql_fetch_array($result, MYSQL_ASSOC)){
if ($_SESSION["name"] && !$updated) {
mysql_select_db("genesis");
mysql_query("update genesis_spieler set lastpost='" . $inhalte["post_id"] . "' where name='" . $_SESSION["name"] . "'");
$updated = 1;
}
$ausgabe .= tr(td(0, "navi", "Eingetragen: ". date("d.m.Y (H:i:s)", $inhalte["post_time"])));
$ausgabe .= tr(td(0, "left", parsetxt($inhalte["post_text"])));
$ausgabe .= tr(td(0, "center", "<hr>"));
$post_id = $inhalte["post_id"];
}
$ausgabe .= tr(td(0, "center", "Mehr im " . hlink("new", "http://forum.vbfreak.de/viewtopic.php?p=" . $post_id . "#p" . $post_id, "Forum-Thread")));
$ausgabe .= "</table>\n";
unset($updated,$inhalte,$result,$post_id);
?>