C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\webboard\listthreads.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/* $Id: listthreads.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.

        ==============================================

*/
exit;
/*
muss erst noch gefixt werden f&#xFC;r 2.9
*/

include "./inc/header.inc.php";

$navpath .= 'Markierte Threads';

$Tframe = new Template("templates/" $style['styletemplate'] . "/frame.html");
$TTopics = new Template("templates/" $style['styletemplate'] . "/topicslist.html");
$TTopicrow = new Template("templates/" $style['styletemplate'] . "/topicrow.html");

$usermarkedthreads substr$g_user['usermarkedthreads'], , ( strlen$g_user['usermarkedthreads'] ) - 2  )  );
$a_usermarkedthreads explode';'$usermarkedthreads );

$topicicon[0] = 'fullalpha';

if( !
$g_user['usermarkedthreads'] )
{
    
$TTopicrow = new Template('./templates/'.$style['styletemplate'].'/board_nothreads.html');
    eval(
$TTopicrow->GetTemplate("TOPICROWS"));
}
else
{
    while (list (
$key$threadid) = each $a_usermarkedthreads ) ) 
    {
        
$i $thisrowbg $style['CellB'] : $thisrowbg $style['CellA'];
        
$i++;
        
$r_thread mysql_query("SELECT * FROM " $pref "thread WHERE threadid = '" $threadid "'");
        if ( 
mysql_num_rows$r_thread ) != )
        {
            
$thread mysql_fetch_array$r_thread );
            
$r_board mysql_query("SELECT boardname FROM " $pref "board WHERE boardid = '" $thread['boardid'] . "'");
            
$board mysql_fetch_array$r_board );
            
            
$thread['threadtopic'] .= "<BR><span style=\"color:" $style['color1'] . "\">"$style['smallfont'] . "Forum: " $board['boardname'] . $style['smallfontend'] . "</span>";
            
            if( 
$thread['threadtime'] > $lastvisited && $lastvisited != )
            {
                
$imagepath 'templates/'.$style['styletemplate'].'/images/icon/'.$topicicon[($thread['threadiconid'])].'_new.gif';
            }
            else
            {
                
$imagepath 'templates/'.$style['styletemplate'].'/images/icon/'.$topicicon[($thread['threadiconid'])].'.gif';
            }
            
$thread['threadtime'] = form_date($thread['threadtime']);        
            eval(
$TTopicrow->GetTemplate("TOPICROWS"));
        }
        else
        {
            
$usermarkedthreads str_replace";" $threadid ";"";"$g_user['usermarkedthreads'] );
            if ( 
strlen$usermarkedthreads ) == )
            {
                
$usermarkedthreads "";
            }
            
mysql_query("UPDATE " $pref "user SET usermarkedthreads = '" $usermarkedthreads "' WHERE userid = '" $g_user['userid'] . "'");
        }
    }
}

eval(
$TTopics->GetTemplate("CONTENT"));
eval(
$Tframe->GetTemplate());
?>