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: showevent.php,v 1.2 2003/01/02 13:14:07 superhausi 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.
==============================================
*/ function format_db_date($string_date) { if ( $string_date == '') { $output = "<B>Error :</B> Bad Time String !"; } else { $output = substr($string_date,8,2) . "." . substr($string_date,5,2) . "." . substr($string_date,0,4); } return $output; }
include "./inc/header.inc.php"; $Tshowevent = new Template("templates/" . $style['styletemplate'] . "/showevent.html");
// Searching Event $r_calender = mysql_query("SELECT calendar.*, user.username FROM " . $pref . "calendar AS calendar LEFT JOIN " . $pref . "user AS user ON calendar.userid=user.userid WHERE eventid = '$event'"); $calender = mysql_fetch_array($r_calender); if( $calender['userid'] > 0 ) { $calendar['user'] = " $style[smallfont]Von <a href=\"v_profile.php?user[userid]=$calender[userid]\" target=\"_blank\">" . parse_code( $calender['username'] ) . "</a>$style[smallfontend]"; } $calender[eventtime] = format_db_date($calender[eventtime]);
eval($Tshowevent->GetTemplate()); ?>
|