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
|
<?php /* $Id: news.php,v 1.1.1.1 2002/10/28 19:13:47 pbaecher Exp $ */ /* ThWboard - PHP/MySQL Bulletin Board System ============================================== (c) 2000, 2001 by Paul Baecher <paul@thewall.de> Felix Gonschorek <funner@thewall.de>
download the latest version: http://www.thwboard.de
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
==============================================
*/
include "./inc/header.inc.php";
$TFrame = new Template("templates/" . $style['styletemplate'] . "/frame.html"); $TNews = new Template("templates/" . $style['styletemplate'] . "/news.html"); $TNewsrow = new Template("templates/" . $style['styletemplate'] . "/newsrow.html");
$r_news = thwb_query("SELECT newsid, newstopic, newstext, newstime FROM ".$pref."news WHERE boardid LIKE '%;" . $boardid . ";%' ORDER BY newstime DESC ");
while( $news = mysql_fetch_array($r_news) ) { $i++; $news[newstopic] = parse_code($news[newstopic], 0, 0, 1, 1); $news[newstext] = parse_code($news[newstext], 1, 1, 1, 1); $news[newstime] = form_date($news[newstime]); $bgcolor = $i % 2 == 0 ? $style[CellA] : $style[CellB]; eval($TNewsrow->GetTemplate("NEWSROWS")); }
$navpath .= 'Announcements';
eval($TNews->GetTemplate("CONTENT")); eval($TFrame->GetTemplate()); ?>
|