Verzeichnisstruktur phpBB-1.0.0


Veröffentlicht
15.12.2000

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

whosonline.php

Zuletzt modifiziert: 09.10.2024, 12:50 - Dateigröße: 3.11 KiB


01  <?php
02  /***************************************************************************
03                            whosonline.php  -  description
04                               -------------------
05      begin                : Thursday, July 20 2000
06      copyright            : (C) 2000 by James Atkinson
07      email                : james@totalgeek.org
08   
09      $Id: whosonline.php,v 1.7 2000/11/15 04:57:15 thefinn Exp $
10   
11   ***************************************************************************/
12   
13  /***************************************************************************
14   *
15   *   This program is free software; you can redistribute it and/or modify
16   *   it under the terms of the GNU General Public License as published by
17   *   the Free Software Foundation; either version 2 of the License, or
18   *   (at your option) any later version.
19   *
20   ***************************************************************************/
21   
22  /**
23  * Thursday, July 20, 2000 - Yokhannan: Fixed spelling on CELLSPACING &
24  * CELLPADDING. I also added the [$url_phpbb/] settings to all the <a href
25  * commands.
26  */
27  include('extention.inc');
28  include('functions.'.$phpEx);
29  include('config.'.$phpEx);
30  require('auth.'.$phpEx);
31  $pagetitle = "Who's Online";
32  $pagetype = "other";
33  include('page_header.'.$phpEx);
34  ?>
35  <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="0" ALIGN="CENTER" VALIGN="TOP" WIDTH="<?php echo $TableWidth?>"><TR><TD BGCOLOR="<?php echo $table_bgcolor?>">
36  <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="1" WIDTH="100%">
37  <TR BGCOLOR="<?php echo $color1?>" ALIGN="LEFT">
38      <TD><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>">User Name</FONT></TD>
39      <TD><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>">Current Forum</FONT></TD>
40  </TR>
41  <TR BGCOLOR="<?php echo $color2?>" ALIGN="LEFT">
42  <?php
43  $sql = "SELECT * FROM whosonline";
44  if(!$result = mysql_query($sql, $db))
45      die("Error - Could not connect to the database</table></table></table>");
46  if($myrow = mysql_fetch_array($result)) {
47      do {
48          echo "<TR BGCOLOR=$color2 ALIGN=LEFT>\n";
49          if(!stristr($myrow[username], "Guest")) {
50              $thisuser = get_userdata($myrow[username], $db);
51              echo "<TD><FONT FACE=\"$FontFace\" SIZE=\"$FontSize2\" COLOR=\"$textcolor\"><a href=\"$url_phpbb/bb_profile.$phpEx?mode=view&user=$thisuser[user_id]\">$thisuser[username]</a></FONT></TD>\n";
52          }
53          else {
54              echo "<TD><FONT FACE=\"$FontFace\" SIZE=\"$FontSize2\" COLOR=\"$textcolor\">Guest</FONT></TD>\n";
55          }
56          if($myrow[forum] == 0) {
57              echo "<TD><FONT FACE=\"$FontFace\" SIZE=\"$FontSize2\" COLOR=\"$textcolor\"><a href=\"$url_phpbb/index.$phpEx\">Forum Index</a></FONT></TD>\n";
58          }
59          else {
60              $forum = get_forum_name($myrow[forum], $db);
61              echo "<TD><FONT FACE=\"$FontFace\" SIZE=\"$FontSize2\" COLOR=\"$textcolor\"><a href=\"$url_phpbb/viewforum.$phpEx?forum=$myrow[forum]\">$forum</a></FONT>";
62          }
63          echo "</TR>\n";
64      } while($myrow = mysql_fetch_array($result));
65  }
66  else {
67      echo "<TD COLSPAN=2><FONT FACE=\"$FontFace\" SIZE=\"$FontSize2\" COLOR=\"$textcolor\">No Users are currently browsing the forums</FONT></TD>";
68  }
69  ?>
70  </TR></TABLE></TD></TR></TABLE>
71   
72  <?php
73  include('page_tail.'.$phpEx);
74  ?>
75