YourWBB


yourWBB » WoltLab Burning Board Generation 2 * » Alles von und für das WBB 2.3.x » [WBB 2.3.x] Hacks und Addons » Timearea Hack » Hallo Gast [Anmelden|Registrieren]
Letzter Beitrag | Erster ungelesener Beitrag 7.843 Views | | Thema zu Favoriten hinzufügen
Seiten (2): [1] 2 nächste »
Neues Thema erstellen Antwort erstellen

Zum Ende der Seite springen Timearea Hack 2 Bewertungen - Durchschnitt: 10,002 Bewertungen - Durchschnitt: 10,002 Bewertungen - Durchschnitt: 10,002 Bewertungen - Durchschnitt: 10,002 Bewertungen - Durchschnitt: 10,00
Autor
Beitrag « Vorheriges Thema | Nächstes Thema »
xaser
Mitglied


Dabei seit: 19.01.04
Beiträge: 39

 Timearea Hack Antworten Zitieren Editieren Melden       UP

Titel: Timearea Hack
Version: 1.0
Beschreibung: Hi!

Hier mein zweiter kleiner Hack.

Er verändert den Satz "Willkommen Zurück" je nach Zeit in von euch vorgebene Sätze smile

Immoment sind 3 Zeitspannen vorgegeben!
----
Demo: http://img518.imageshack.us/img518/1988/5trgvg9qq.jpg

weiter zum Download

Dieser Beitrag wurde 2 mal editiert, zum letzten Mal von xaser: 23.03.06 16:19.

21.03.06 18:54 xaser ist offline E-Mail Finden Als Freund hinzufügen
Garnett Garnett ist männlich
Mitglied


images/avatars/avatar-2760.gif

Dabei seit: 23.08.05
Beiträge: 38
Herkunft: STAATSGEHEIMNIS

Antworten Zitieren Editieren Melden       UP

Moie,
klasse kleine erweiterung smile direkt mal eingebaut ohne probleme
grüße
21.03.06 21:53 Garnett ist offline E-Mail WWW Finden Als Freund hinzufügen Füge Garnett in deine Kontaktliste ein AIM-Name von Garnett: aliasGarnett YIM-Name von Garnett: aliasGarnett MSN Passport-Profil von Garnett anzeigen
Donnerbalken
Mitglied


Dabei seit: 16.01.04
Beiträge: 86

Antworten Zitieren Editieren Melden       UP

bei mir steht um 11.22úhr immer noch " Guten Abend "
22.03.06 11:24 Donnerbalken ist offline E-Mail WWW Finden Als Freund hinzufügen
[kamui]
~


images/avatars/avatar-4963.gif

Dabei seit: 27.04.05
Beiträge: 2.992

Antworten Zitieren Editieren Melden       UP

Sieht nett aus, bloß der PHP-Code ist ein bisschen zugespammt ... Anstatt jede Stunde zu überprüfen könntest du doch einfach '>' bzw. '<' nehmen Augenzwinkern Und eine Anpassung, wo man dann alles über ACP einstellen kann wäre auch cool ^^
22.03.06 14:30 [kamui] ist offline Finden Als Freund hinzufügen
xaser
Mitglied


Dabei seit: 19.01.04
Beiträge: 39

Themenstarter Thema begonnen von xaser
Antworten Zitieren Editieren Melden       UP

Werde gleich mals chauen wo dein problem liegt, @ Guten Abend.

Und nein mit > und < geht das nicht, wiel immer eine null folgen muss und 6,7,8,... wird nicht erkannt deswegen kann ich keine logischen operatoren benutzen!!

Gruß!
22.03.06 21:59 xaser ist offline E-Mail Finden Als Freund hinzufügen
Viquel
Mitglied


Dabei seit: 19.03.06
Beiträge: 27

Antworten Zitieren Editieren Melden       UP

date("G"); liefert 24 Stundenformat ohne führende null....

php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
<?php
$text=array();
$text[] = array(20,24,"Guten Abend");
$text[] = array(0,4,"Guten Abend");
$text[] = array(5,11,"Guten Morgen");
$text[] = array(12,19,"Guten Nachmittag");

echo compare("text");

function compare($array_name) {
  global ${$array_name};
  $local_array=${$array_name};
   $hour=date("G");
  foreach($local_array as $la){
    if( $hour>= $la[0] AND $hour<=$la[1] ){
      return $la[2];
    }
  }
}
?>



wer bietet etwas effizienteres Augenzwinkern

edit2:
noch effizienter geht Augenzwinkern
php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
<?php
$text=array();
$text[] = array(20,24,"LANG_START_ABEND");
$text[] = array(0,4,"LANG_START_ABEND");
$text[] = array(5,11,"LANG_START_MORGEN");
$text[] = array(12,19,"LANG_START_NACHMITTAG");

echo $lang->items[compare("text")];

function compare($array_name) {
  global ${$array_name};
  $local_array=${$array_name};
   $hour=date("G");
  foreach($local_array as $la){
    if( $hour>= $la[0] AND $hour<=$la[1] ){
      return $la[2];
    }
  }
  return "LANG_START_WELCOMEBACK";
}
?>

Jetzt mit Default-Wert falls die parameter ungültig waren großes Grinsen

Dieser Beitrag wurde 2 mal editiert, zum letzten Mal von Viquel: 22.03.06 22:44.

22.03.06 22:16 Viquel ist offline E-Mail Finden Als Freund hinzufügen
xaser
Mitglied


Dabei seit: 19.01.04
Beiträge: 39

Themenstarter Thema begonnen von xaser
Antworten Zitieren Editieren Melden       UP

So geupdatet, bitte erneut runterladen smile

@ oben drüber, danke für die informationen, aber die se version hies nicht umsonst beta.. smile

Ich code erst effzient wenn wirklich alle funktionen drin sind, die drins ein sollen!

Gruß
22.03.06 23:16 xaser ist offline E-Mail Finden Als Freund hinzufügen
Viquel
Mitglied


Dabei seit: 19.03.06
Beiträge: 27

Antworten Zitieren Editieren Melden       UP

Dann solltest du sie jetzt noch nicht 1.0 nennen da du meinen Code ruhig reingeben kannst - das ist performanter als deine 24 oder Abfragen Augenzwinkern (Ich habe maximal 8 Vergleiche, dann kommt sicher ein return Augenzwinkern ) - und eine ACP Einstellung noch fehlt smile
23.03.06 00:52 Viquel ist offline E-Mail Finden Als Freund hinzufügen
Nordlicht2001
Mitglied


Dabei seit: 30.04.05
Beiträge: 67

Antworten Zitieren Editieren Melden       UP

Hallo,

dürfte ich da eventuelle noch einen Wunsch äußern? Meine Programmierkenntnisse reichen momentan noch nicht weit über Basic hinaus...

Ich würde es also schön finden, wenn der Hack noch feststellen könnte, ob im Profil "männlich" oder "weiblich" oder nichts eingetragen ist. Dann könnte es heißen:

nichts eingetragen: "Guten Morgen, xxxxx"
männlich: "Guten Morgen, lieber xxxxx"
weiblich: "Guten Morgen, liebe xxxxx"

Für mein Forum, wo ich viel mit kranken Menschen zu tun habe, wäre das eine kleine, aber schon bedeutsame Veränderung bezüglich der Atmosphäre.

Liebe Grüße,
Rüdiger
23.03.06 08:23 Nordlicht2001 ist offline E-Mail Finden Als Freund hinzufügen
Viquel
Mitglied


Dabei seit: 19.03.06
Beiträge: 27

Antworten Zitieren Editieren Melden       UP

int $wbbuserdata['gender']

0=undefinied
1=male
2=female

sollte kein Problem sein Augenzwinkern
23.03.06 09:17 Viquel ist offline E-Mail Finden Als Freund hinzufügen
stepreis stepreis ist männlich
Mitglied


Dabei seit: 16.01.04
Beiträge: 187
Herkunft: Berlin
Forenversion: wbb2.3.3

Antworten Zitieren Editieren Melden       UP

manchmal wundert man sich doch, wie manch ein hack entsteht... großes Grinsen

Zitat:
if(date("G") < 12 && date("G") >= 5) {$timearea = 'Guten Morgen, ';}
if(date("G") <= 17 && date("G") >= 12) {$timearea = 'Guten Mittag, ';}
if(date("G") >= 18 && date("G") <= 23) {$timearea = 'Guten Abend, ';}
if(date("G") >= 0 && date("G") <= 4) {$timearea = 'Gute Nacht, ';}


und die variable im index template ändern und gut ist...
keine grossen änderungen in der index.php notwendig und auch keine config datei im acp/lib ordner...

gruss vom step

p.s. und das funktioniert wenigstens - gegenüber dem "hack" im ersten post
p.p.s. der code darf so wie er ist verwendet werden - verzichte sogar auf ein copyright großes Grinsen

Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von stepreis: 24.03.06 16:43.

23.03.06 10:49 stepreis ist offline E-Mail WWW Finden Als Freund hinzufügen AIM-Name von stepreis: stepreis YIM-Name von stepreis: stepreis MSN Passport-Profil von stepreis anzeigen
xaser
Mitglied


Dabei seit: 19.01.04
Beiträge: 39

Themenstarter Thema begonnen von xaser
Antworten Zitieren Editieren Melden       UP

Schaut mal.
Wenn ihr so gut hacks schreiben könnt, und ganz besonders, den hier wieso habt ihr es dann nicht schon vorher gemacht?

ICh bedanke mich ja für tolle Hilfen usw, doch das bauen könnt ihr mir doch überlassen?

Wenn nicht dann schreibt selbst einen, und postet als neuen hack böse

Gruß!
23.03.06 16:18 xaser ist offline E-Mail Finden Als Freund hinzufügen
stepreis stepreis ist männlich
Mitglied


Dabei seit: 16.01.04
Beiträge: 187
Herkunft: Berlin
Forenversion: wbb2.3.3

Antworten Zitieren Editieren Melden       UP

Zitat:
Original von xaser
ICh bedanke mich ja für tolle Hilfen usw, doch das bauen könnt ihr mir doch überlassen?


kannst du ja auch ohne ende machen...
und wenn du 20 dateien für diese eine textänderung schreiben möchtest - alles kein problem...
nur wenn ich solche überflüssigen zeilen sehe dann optimiere ich diese - vor allem, wenn die anzeige mit dem hack im ersten post nicht funktioniert...

aber nun gut... mach ruhig weiter an deinem hack... und viel erfolg und gutes gelingen...

gruss vom step
23.03.06 16:36 stepreis ist offline E-Mail WWW Finden Als Freund hinzufügen AIM-Name von stepreis: stepreis YIM-Name von stepreis: stepreis MSN Passport-Profil von stepreis anzeigen
batida444 batida444 ist männlich
Mitglied


images/avatars/avatar-306.jpg

Dabei seit: 20.01.04
Beiträge: 907
Fähigkeiten: WBB2 Fortgeschritten
Herkunft: Altes Land
Forenversion: 2.3; 2.2

Antworten Zitieren Editieren Melden       UP

Zitat:
Original von xaser
Schaut mal.
Wenn ihr so gut hacks schreiben könnt, und ganz besonders, den hier wieso habt ihr es dann nicht schon vorher gemacht?

ICh bedanke mich ja für tolle Hilfen usw, doch das bauen könnt ihr mir doch überlassen?

Wenn nicht dann schreibt selbst einen, und postet als neuen hack böse

Gruß!


Warum enstehen Hacks ?
Meistens, weil man selber eine Funktion im Forum vermisst und diese dann selber schreibt.

Nimms nicht krumm, dass dir hier alle in deinen Hack "reinpfuschen", sieh es als Hilfe fröhlich
Und beim nächsten Hack haste schon etwas mehr gelernt und es klappt besser fröhlich

Immerhin ist die Idee von dir und die Idee ist gut fröhlich Also nicht kleinkriegen lassen fröhlich

Greetz
Günni

__________________


23.03.06 18:27 batida444 ist offline E-Mail WWW Finden Als Freund hinzufügen
SonicBoom
Mitglied


Dabei seit: 08.12.05
Beiträge: 2
Forenversion: WBB 2.3.

Antworten Zitieren Editieren Melden       UP

Ich finde den Hack cool Augenzwinkern und wenn jemand was anders machen möchte, kann er / sie sich das ja selbst umschreiben...
24.03.06 10:11 SonicBoom ist offline E-Mail Finden Als Freund hinzufügen
golf3forum.de
Mitglied


Dabei seit: 20.04.07
Beiträge: 244

Antworten Zitieren Editieren Melden       UP

also ich finde ihn auch super habe de erste version drin und werde jetzt die 2te version uppen damkt es klappt Freude

das finde ich auch eine super idee das solltest du unbedingt mit im nächsten update mit einbinden

Zitat:
Ich würde es also schön finden, wenn der Hack noch feststellen könnte, ob im Profil "männlich" oder "weiblich" oder nichts eingetragen ist. Dann könnte es heißen:

nichts eingetragen: "Guten Morgen, xxxxx"
männlich: "Guten Morgen, lieber xxxxx"
weiblich: "Guten Morgen, liebe xxxxx"


MfG

Marcel

__________________
Europas größtes VW Golf3 Forum!! Visit Us!!!


Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von golf3forum.de: 01.04.06 00:29.

01.04.06 00:25 golf3forum.de ist offline E-Mail Finden Als Freund hinzufügen
Hanver Hanver ist männlich
Mitglied


images/avatars/avatar-5534.gif

Dabei seit: 11.07.04
Beiträge: 183
Herkunft: Willich

Antworten Zitieren Editieren Melden       UP

Also bei mir steht noch immer "Guten Abend" um 2.34 h morgens...

habe auf 1.c geuppt und alles neu hochgeladen.... Kann einer den fehler beheben bitte
01.04.06 02:34 Hanver ist offline E-Mail WWW Finden Als Freund hinzufügen
[kamui]
~


images/avatars/avatar-4963.gif

Dabei seit: 27.04.05
Beiträge: 2.992

Antworten Zitieren Editieren Melden       UP

Das ganze ist kein Fehler. In dem Script sind 3 Sachen integriert: Guten Morgen, Guten Mittag &nd Guten Abend
01.04.06 09:09 [kamui] ist offline Finden Als Freund hinzufügen
Hanver Hanver ist männlich
Mitglied


images/avatars/avatar-5534.gif

Dabei seit: 11.07.04
Beiträge: 183
Herkunft: Willich

Antworten Zitieren Editieren Melden       UP

und laut Script soll um 0 Uhr denn auch Guten Moprgen erscheinen großes Grinsen Also bitte erst lesen denn schreiben....
01.04.06 12:48 Hanver ist offline E-Mail WWW Finden Als Freund hinzufügen
Breeze
Mitglied


Dabei seit: 31.10.04
Beiträge: 56

Antworten Zitieren Editieren Melden       UP

mmh,
bei mir gehts nich! verwirrt
-----------------------------
Index.php

code:
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:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
<?php
// ************************************************************************************//
// * WoltLab Burning Board 2
// ************************************************************************************//
// * Copyright (c) 2001-2004 WoltLab GmbH
// * Web           http://www.woltlab.de/
// * License       http://www.woltlab.de/products/burning_board/license_en.php
// *               http://www.woltlab.de/products/burning_board/license.php
// ************************************************************************************//
// * WoltLab Burning Board 2 is NOT free software.
// * You may not redistribute this package or any of it's files.
// ************************************************************************************//
// * $Date: 2005-06-16 14:28:46 +0200 (Thu, 16 Jun 2005) $
// * $Author: Burntime $
// * $Rev: 1618 $
// ************************************************************************************//


$filename = 'index.php';

require('./global.php');
$lang->load('START');

require('./acp/lib/class_useronline.php');

/* ############## Time Area ############## */
require("./acp/lib/config.timearea.inc.php");
$timeresult = date("H");
if ($time_result == "05" || $time_result == "06" || $time_result == "07" || $time_result == "08" || $time_result == "09" || $time_result == "10" || $time_result == "11")
	{
	$timearea = $timemorning;
	}
if ($time_result == "12" || $time_result == "13" || $time_result == "14" || $time_result == "15" || $time_result == "16" || $time_result == "17")
	{
	$timearea = $timenoon;
	}
if ($time_result == "18" || $time_result == "19" || $time_result == "20" || $time_result == "21" || $time_result == "22" || $time_result == "23" || $time_result == "00" || $time_result == "01" || $time_result == "02" || $time_result == "03" || $time_result == "04")
	{
	$timearea = $timeevening;
	}
/* ############## Time Area ############## */

if (isset($_COOKIE[$cookieprefix.'hidecats'])) $hidecats = decode_cookie($_COOKIE[$cookieprefix.'hidecats']);
else $hidecats = array();

if (isset($_GET['hidecat'])) {
	$hidecats[$_GET['hidecat']] = 1;
	if ($wbbuserdata['usecookies'] == 1) encode_cookie("hidecats", time() + 3600 * 24 * 365);
	else encode_cookie("hidecats");
}
if (isset($_GET['showcat'])) {
	$hidecats[$_GET['showcat']] = 0;
	if ($wbbuserdata['usecookies'] == 1) encode_cookie("hidecats", time() + 3600 * 24 * 365);
	else encode_cookie("hidecats");
}

$boardcache = array();
$permissioncache = array();
$modcache = array();

switch ($boardordermode) {
	case 1: $boardorder = 'b.title ASC'; break;
	case 2: $boardorder = 'b.title DESC'; break;
	case 3: $boardorder = 'b.lastposttime DESC'; break;
	default: $boardorder = 'b.boardorder ASC'; break;
}
$activtime = time() - 60 * $useronlinetimeout;

$boardvisit = array();
$result = $db->unbuffered_query("
 SELECT
 b.*".(($showlastposttitle == 1) ? (", t.topic, t.prefix AS threadprefix, i.*") : (""))."
 ".(($showuseronlineinboard == 1) ? (", COUNT(s.sessionhash) AS useronline") : (""))."
 ".(($wbbuserdata['userid']) ? (", bv.lastvisit") : (""))."
 FROM bb".$n."_boards b
 ".(($showlastposttitle == 1) ? ("LEFT JOIN bb".$n."_threads t ON (t.threadid=b.lastthreadid)
 LEFT JOIN bb".$n."_icons i USING (iconid)") : (""))."
 ".(($showuseronlineinboard == 1) ? ("LEFT JOIN bb".$n."_sessions s ON (s.boardid=b.boardid AND s.lastactivity>='$activtime')") : (""))."
 ".(($wbbuserdata['userid']) ? (" LEFT JOIN bb".$n."_boardvisit bv ON (bv.boardid=b.boardid AND bv.userid='".$wbbuserdata['userid']."')") : (""))."
 ".(($showuseronlineinboard == 1) ? ("GROUP BY b.boardid") : (""))."
 ORDER by b.parentid ASC, $boardorder");
while ($row = $db->fetch_array($result)) {
	$boardcache[$row['parentid']][$row['boardorder']][$row['boardid']] = $row;
	$boardvisit[$row['boardid']] = $row['lastvisit'];
}

if ($showuseronlineinboard == 2) {
	$userinboard = array();
	$online = &new useronline($wbbuserdata['a_can_view_ghosts'], $wbbuserdata['buddylist']);
	$result = $db->unbuffered_query("SELECT s.userid, s.boardid, u.username, u.useronlinegroupid,g.useronlinemarking, u.invisible FROM bb".$n."_sessions s LEFT JOIN bb".$n."_users u USING (userid) LEFT JOIN bb".$n."_groups g ON g.groupid=u.useronlinegroupid WHERE s.lastactivity>='$activtime'".(($wbbuserdata['ignorelist']) ? (" AND s.userid NOT IN (".str_replace(" ", ",", $wbbuserdata['ignorelist']).")") : (""))." ORDER BY u.username ASC");	
	while ($row = $db->fetch_array($result)) $userinboard[$row['boardid']][] = $row;	
}

$result = $db->unbuffered_query("SELECT t.boardid, t.threadid, t.lastposttime".(($wbbuserdata['userid']) ? (", tv.lastvisit") : (""))." FROM bb".$n."_threads t".(($wbbuserdata['userid']) ? (" LEFT JOIN bb".$n."_threadvisit tv ON (tv.threadid=t.threadid AND tv.userid='".$wbbuserdata['userid']."')") : (""))." WHERE t.visible = 1 AND t.lastposttime > '$wbbuserdata[lastvisit]' AND t.closed <> 3");
while ($row = $db->fetch_array($result)) {
	if ($row['lastposttime'] > $row['lastvisit']) $visitcache[$row['boardid']][$row['threadid']] = $row['lastposttime'];
}

// read permissions
$permissioncache = getPermissions();

if ($hide_modcell == 0) {
	$result = $db->unbuffered_query("SELECT bb".$n."_moderators.*, username FROM bb".$n."_moderators LEFT JOIN bb".$n."_users USING (userid) ORDER BY username ASC");
	while ($row = $db->fetch_array($result)) $modcache[$row['boardid']][] = $row;
}

$boardbit = makeboardbit(0);

$index_pms = '';
$quicklogin = '';
$index_showevents = '';
$index_useronline = '';
$index_stats = '';

/* ############## TOP 5/10 ############## */
list($showtoplist) = $db->query_first("SELECT value FROM bb".$n."_options WHERE varname='showtoplist' LIMIT 1");
if($showtoplist!=0)
{
	$toplistcount=$showtoplist*5;
	function getSearchableBoards()
	{
		global $db,$n,$wbbuserdata,$boardcache;
		list($excludedboards) = $db->query_first("SELECT value FROM bb".$n."_options WHERE varname='excludedtoplist' LIMIT 1");
		$excludedboards=str_replace("\n",",",trim($excludedboards));
		if(!isset($boardcache) || !is_array($boardcache)) $boardcache=array();
		$result=$db->query("SELECT boardid,boardorder,parentid,parentlist FROM bb".$n."_boards WHERE password='' AND invisible!='2'".((!empty($excludedboards)) ? (" AND boardid NOT IN(".$excludedboards.")") : (""))." ORDER BY parentid ASC, boardorder ASC");
		while($row=$db->fetch_array($result)) {
			$boardcache[$row['parentid']][$row['boardorder']][$row['boardid']] = $row;
		}
	
		$boardpermissions=getPermissions();
		$boardids="";
		foreach($boardcache as $key=>$val)
		{
			foreach($val as $key2=>$val2)
			{
				foreach($val2 as $row) if(!isset($boardpermissions[$row['boardid']]['can_use_search']) || $boardpermissions[$row['boardid']]['can_use_search']!=0) $boardids.=",".$row['boardid'];
			}
		}
		return $boardids;
	}
	
	//Top List Posts
	unset($toplistposters);
	$toplistposters = $db->query("SELECT DISTINCT userid,username,userposts FROM bb".$n."_users ORDER BY userposts DESC LIMIT $toplistcount");
	while($toplistposter = $db->fetch_array($toplistposters))
	{
		$toplistposterid = $toplistposter['userid'];
		$toplistpostername = htmlconverter(textwrap($toplistposter['username'],25));
		$toplist_counts = $toplistposter['userposts'];
		eval ("\$toplistposterbit .= \"".$tpl->get("index_toplist_posterbit")."\";");
	}
	
	//Top List New Member
	unset($toplistnewmembers);
	$toplistnewmembers = $db->query("SELECT DISTINCT username,userid,userposts FROM bb".$n."_users ORDER BY regdate DESC LIMIT $toplistcount");
	while($toplistnewmember = $db->fetch_array($toplistnewmembers))
	{
		$toplistposterid = $toplistnewmember['userid'];
		$toplistpostername = htmlconverter(textwrap($toplistnewmember['username'],25));
		$toplist_counts = $toplistnewmember['userposts'];
		eval ("\$toplistmembersbit .= \"".$tpl->get("index_toplist_posterbit")."\";");
	}
	
	
	
	
	//New Posts		
  	$toplistthreads = $db->query ("SELECT DISTINCT bb".$n."_threads.*, bb".$n."_users.username as lastposter FROM bb".$n."_threads LEFT JOIN bb".$n."_users ON (bb".$n."_threads.lastposterid=bb".$n."_users.userid) WHERE  bb".$n."_threads.boardid IN (0".getSearchableBoards().") AND bb".$n."_threads.closed!=3 ORDER BY bb".$n."_threads.lastposttime DESC LIMIT $toplistcount");
	while($toplistthread = $db->fetch_array($toplistthreads))
	{
		$toplistthreadid = $toplistthread['threadid'];
 		if(strlen($toplistthread['topic']) > "30"){ $toplistthread['topic'] = "".substr($toplistthread['topic'], 0, 30);$toplistthread['topic'].=" ...";};
		$toplistthreadname = htmlconverter(textwrap($toplistthread['topic']));
		$toplistposterid = $toplistthread['lastposterid'];
		$toplist_counts = $toplistthread['views'];
		$toplistpostername = htmlconverter(textwrap($toplistthread['lastposter'],25));
		eval ("\$toplistthreadbit .= \"".$tpl->get("index_toplist_threadbit")."\";");
	}
	
	//Top Clicks
	$topclicks=$db->query_first("SELECT DISTINCT topic,views,threadid FROM bb".$n."_threads WHERE bb".$n."_threads.boardid IN (0".getSearchableBoards().") AND bb".$n."_threads.closed!=3 ORDER BY views DESC LIMIT 1");
	$topthreadid=$topclicks['threadid'];
	$topthreadname=htmlconverter(textwrap($topclicks['topic']));
	$topclicksviews = $topclicks['views'];
	eval ("\$topclickstitle .= \"".$tpl->get("index_toplist_topthreadbit")."\";");
	
	
	//Top Vote
	$topvote=$db->query_first("SELECT DISTINCT topic,voted,votepoints,threadid  FROM bb".$n."_threads WHERE bb".$n."_threads.boardid IN (0".getSearchableBoards().") AND bb".$n."_threads.closed!=3  ORDER BY voted DESC LIMIT 1");
	$topthreadid=$topvote['threadid'];
	$topthreadname=htmlconverter(textwrap($topvote['topic']));
	$votedrating = $topvote['votepoints'];
	eval ("\$votedthread .= \"".$tpl->get("index_toplist_topthreadbit")."\";");
	
	
	//Sprachvariablen einlesen
	eval ("\$toplisttoplist .= \"".$lang->get("LANG_START_TOPLIST_TOPLIST")."\";");
	eval ("\$toplistposter .= \"".$lang->get("LANG_START_TOPLIST_TOPPOSTER")."\";");
	eval ("\$toplistnew_members .= \"".$lang->get("LANG_START_TOPLIST_NEWMEMBERS")."\";");
	eval ("\$toplistlastpost .= \"".$lang->get("LANG_START_TOPLIST_LASTPOST")."\";");
	eval ("\$toplistusername .= \"".$lang->get("LANG_START_TOPLIST_USERNAME")."\";");
	eval ("\$toplistposts .= \"".$lang->get("LANG_START_TOPLIST_POSTS")."\";");
	eval ("\$toplisttitle .= \"".$lang->get("LANG_START_TOPLIST_TITLE")."\";");
	eval ("\$toplistclicks .= \"".$lang->get("LANG_START_TOPLIST_CLICKS")."\";");
	eval ("\$toplistvotes .= \"".$lang->get("LANG_START_TOPLIST_VOTES")."\";");
	eval ("\$toplistratings .= \"".$lang->get("LANG_START_TOPLIST_RATINGS")."\";");
	eval ("\$toplistthread .= \"".$lang->get("LANG_START_TOPLIST_THREAD")."\";");
	
	eval ("\$toplist = \"".$tpl->get("index_toplist")."\";");
}

/* ############## TOP 5/10 ############## */

/* ############## STATS ############## */
if ($showstats == 1) {
	$stats = $db->query_first("SELECT s.*, u.username FROM bb".$n."_stats s LEFT JOIN bb".$n."_users u ON(u.userid=s.lastuserid)");
	$stats['username'] = htmlconverter($stats['username']);
	
	$installdays = (time() - $installdate) / 86400;
	if ($installdays < 1) $postperday = $stats['postcount'];
	else $postperday = $stats['postcount'] / $installdays; 
	
	$postperday = number_format($postperday, 2, $lang->get("LANG_GLOBAL_DEC_POINT"), $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
	
	if ($stats['usercount'] >= 1000) $stats['usercount'] = number_format($stats['usercount'], 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
	if ($stats['threadcount'] >= 1000) $stats['threadcount'] = number_format($stats['threadcount'], 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
	if ($stats['postcount'] >= 1000) $stats['postcount'] = number_format($stats['postcount'], 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
}
/* ############## USERONLINE ############## */
if ($showuseronline == 1) {
	$guestcount = 0;
	$membercount = 0;
	$invisiblecount = 0;
	$online = &new useronline($wbbuserdata['a_can_view_ghosts'], $wbbuserdata['buddylist']);
	$result = $db->unbuffered_query("SELECT s.userid, username, useronlinegroupid, useronlinemarking, invisible FROM bb".$n."_sessions s LEFT JOIN bb".$n."_users u USING (userid) LEFT JOIN bb".$n."_groups g ON g.groupid=u.useronlinegroupid WHERE s.lastactivity >= '".(time() - 60 * $useronlinetimeout)."'".(($wbbuserdata['ignorelist']) ? (" AND s.userid NOT IN (".str_replace(" ", ",", $wbbuserdata['ignorelist']).")") : (""))." ORDER BY u.username ASC"); 
	while ($row = $db->fetch_array($result)) {
		if ($row['userid'] == 0) {
			$guestcount++;
			continue;	
		}
		$membercount++;
		if ($row['invisible'] == 1) $invisiblecount++;
		$online->user($row['userid'], htmlconverter($row['username']), $row['useronlinemarking'], $row['invisible']);
	}
	$useronline = $online->useronlinebit;
	$totaluseronline = $membercount + $guestcount;
	if ($totaluseronline > $rekord) {
		$rekord = $totaluseronline;
		$rekordtime = time();
		$db->unbuffered_query("UPDATE bb".$n."_options SET value='$rekord' WHERE varname='rekord'", 1);
		$db->unbuffered_query("UPDATE bb".$n."_options SET value='$rekordtime' WHERE varname='rekordtime'", 1);
		require("./acp/lib/class_options.php");
		$option = &new options("acp/lib");
		$option->write();
	}
	$rekorddate = formatdate($wbbuserdata['dateformat'], $rekordtime);
	$rekordtime = formatdate($wbbuserdata['timeformat'], $rekordtime);
	
	// format figures
	if ($guestcount >= 1000) $guestcount = number_format($guestcount, 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
	if ($membercount >= 1000) $membercount = number_format($membercount, 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
	if ($invisiblecount >= 1000) $invisiblecount = number_format($invisiblecount, 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
	if ($totaluseronline >= 1000) $totaluseronline = number_format($totaluseronline, 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
	if ($rekord >= 1000) $rekord = number_format($rekord, 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
	
	if ($totaluseronline == 1) {
		$useronline_BE = $lang->items['LANG_START_USERONLINE_BE_ONE'];
		$useronline_USER = $lang->items['LANG_START_USERONLINE_USER_ONE'];
	}
	else {
		$useronline_BE = $lang->items['LANG_START_USERONLINE_BE'];
		$useronline_USER = $lang->items['LANG_START_USERONLINE_USER'];
	}
	
	if ($guestcount == 1) $useronline_GUEST = $lang->items['LANG_START_USERONLINE_GUEST_ONE'];
	elseif ($guestcount > 1) $useronline_GUEST = $lang->items['LANG_START_USERONLINE_GUEST'];
	else {
		$useronline_GUEST = '';
		$guestcount = '';
	}
	
	if ($membercount == 1) $useronline_MEMBERS = $lang->items['LANG_START_USERONLINE_MEMBERS_ONE'];
	elseif ($membercount > 1) $useronline_MEMBERS = $lang->items['LANG_START_USERONLINE_MEMBERS'];
	else {
		$useronline_MEMBERS = '';
		$membercount = '';
	}
	
	if ($invisiblecount == 1) $useronline_GHOSTS = $lang->items['LANG_START_USERONLINE_GHOSTS_ONE'];
	elseif ($invisiblecount > 1) $useronline_GHOSTS = $lang->get("LANG_START_USERONLINE_GHOSTS", array('$invisiblecount' => $invisiblecount));
	else $useronline_GHOSTS = '';
	
	if ($guestcount > 0 && $membercount > 0) $useronline_AND = $lang->items['LANG_START_USERONLINE_AND'];
	else $useronline_AND = '';
	
	$lang->items['LANG_START_USERONLINE'] = $lang->get("LANG_START_USERONLINE", array('$useronline_BE' => $useronline_BE, '$membercount' => $membercount, '$useronline_MEMBERS' => $useronline_MEMBERS, '$useronline_GHOSTS' => $useronline_GHOSTS, '$useronline_AND' => $useronline_AND, '$guestcount' => $guestcount, '$useronline_GUEST' => $useronline_GUEST, '$rekord' => $rekord, '$useronline_USER' => $useronline_USER, '$rekorddate' => $rekorddate, '$rekordtime' => $rekordtime));
	$lang->items['LANG_START_SHOWUSERONLINE'] = $lang->get("LANG_START_SHOWUSERONLINE", array('$useronline_BE' => $useronline_BE, '$totaluseronline' => $totaluseronline, '$useronline_USER' => $useronline_USER));
}
/* ############## WER WAR DA ############## */
if ($showuservisited == 1) {
$membercount = 0;
$invisiblecount = 0;
$curdate = strftime("%m %d %Y",time());
$date = explode(" ", $curdate);
$timestamp = mktime(0,0,0,$date[0],$date[1],$date[2]);
unset($online);
$online = &new useronline($wbbuserdata['a_can_view_ghosts'], $wbbuserdata['buddylist']);
$result = $db->unbuffered_query("SELECT u.userid, u.username, u.invisible, u.useronlinegroupid, u.lastactivity, g.useronlinemarking FROM bb".$n."_users u, bb".$n."_groups g WHERE u.useronlinegroupid=g.groupid AND u.lastactivity>=".$timestamp." ORDER BY u.username ASC"); 
while ($row = $db->fetch_array($result)) {
if ($row['userid'] == 0) continue;
$membercount++;
if ($row['invisible'] == 1) $invisiblecount++;
$online->user($row['userid'], htmlconverter($row['username']), $row['useronlinemarking'], $row['invisible'], true);
}
$uservisited = $online->useronlinebit;
$totaluservisited = $membercount;
if ($totaluservisited > $rekord_visited) {
$rekord_visited = $totaluservisited;
$rekordtime_visited = time();
$db->unbuffered_query("UPDATE bb".$n."_options SET value='$rekord_visited' WHERE varname='rekord_visited'", 1);
$db->unbuffered_query("UPDATE bb".$n."_options SET value='$rekordtime_visited' WHERE varname='rekordtime_visited'", 1);
require("./acp/lib/class_options.php");
$option = &new options("acp/lib");
$option->write();
}
$rekorddate_visited = formatdate($wbbuserdata['dateformat'], $rekordtime_visited);
$rekordtime_visited = formatdate($wbbuserdata['timeformat'], $rekordtime_visited);
// format figures
if ($totaluservisited >= 1000) $totaluservisited = number_format($totaluservisited, 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
if ($invisiblecount >= 1000) $invisiblecount = number_format($invisiblecount, 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
if ($rekord_visited >= 1000) $rekord_visited = number_format($rekord_visited, 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
if ($totaluservisited == 1) {
$uservisited_BE = $lang->items['LANG_START_USERVISITED_BE_ONE'];
$uservisited_USER = $lang->items['LANG_START_USERVISITED_USER_ONE'];
}
else {
$uservisited_BE = $lang->items['LANG_START_USERVISITED_BE'];
$uservisited_USER = $lang->items['LANG_START_USERVISITED_USER'];
}
if ($membercount == 1) $uservisited_MEMBERS = $lang->items['LANG_START_USERONLINE_MEMBERS_ONE'];
elseif ($membercount > 1) $uservisited_MEMBERS = $lang->items['LANG_START_USERONLINE_MEMBERS'];
else {
$uservisited_MEMBERS = '';
$membercount = '';
}
if ($invisiblecount == 1) $uservisited_GHOSTS = $lang->items['LANG_START_USERONLINE_GHOSTS_ONE'];
elseif ($invisiblecount > 1) $uservisited_GHOSTS = $lang->get("LANG_START_USERONLINE_GHOSTS", array('$invisiblecount' => $invisiblecount));
else $uservisited_GHOSTS = '';
$lang->items['LANG_START_USERVISITED'] = $lang->get("LANG_START_USERVISITED", array('$uservisited_BE' => $uservisited_BE, '$membercount_visited' => $membercount, '$uservisited_MEMBERS' => $uservisited_MEMBERS, '$uservisited_GHOSTS' => $uservisited_GHOSTS, '$uservisited_AND' => $uservisited_AND, '$rekord_visited' => $rekord_visited, '$uservisited_USER' => $uservisited_USER, '$rekorddate_visited' => $rekorddate_visited, '$rekordtime_visited' => $rekordtime_visited));
$lang->items['LANG_START_SHOWUSERVISITED'] = $lang->get("LANG_START_SHOWUSERVISITED", array('$uservisited_BE' => $uservisited_BE, '$totaluservisited' => $totaluservisited, '$uservisited_USER' => $uservisited_USER));
}
/* ############## WER WAR DA ############## */

/* ############## BIRTHDAYS ############## */
unset($birthdaybit);
if ($showbirthdays == 1  && $wbbuserdata['can_view_calendar'] != 0) {
	$currentdate = formatdate("m-d", time());
	$currentyear = intval(formatdate("Y", time()));
	$result = $db->unbuffered_query("SELECT userid, username, birthday FROM bb".$n."_users WHERE birthday LIKE '%-$currentdate' ORDER BY username ASC");
	while ($row = $db->fetch_array($result)) {
		$row['username'] = htmlconverter($row['username']);
		$birthyear = intval(wbb_substr($row['birthday'], 0, 4));
		$age = $currentyear - $birthyear;
		if ($age < 1 || $age > 200) $age = '';
		else $age = "&nbsp;($age)";
		if (isset($birthdaybit)) eval("\$birthdaybit .= \"".$tpl->get("index_birthdaybit")."\";");
		else eval("\$birthdaybit = \"".$tpl->get("index_birthdaybit")."\";");
	}
}

/* ############## EVENTS ############## */
unset($eventbit);
if ($showevents == 1 && $wbbuserdata['can_view_calendar'] != 0) {
	$currentdate = date("Y-m-d"); 
	$result = $db->unbuffered_query("SELECT eventid, subject, public FROM bb".$n."_events WHERE eventdate = '$currentdate' AND (public=2 OR (public=0 AND userid = '$wbbuserdata[userid]')) ORDER BY public ASC, subject ASC");
	while ($row = $db->fetch_array($result)) {
		$row['subject'] = htmlconverter($row['subject']);
		if (isset($eventbit)) eval("\$eventbit .= \"".$tpl->get("index_eventbit")."\";");
		else eval("\$eventbit = \"".$tpl->get("index_eventbit")."\";");
	}
}

if (!$wbbuserdata['userid']) {
	$lang->items['LANG_START_WELCOME_TITLE'] = $lang->get("LANG_START_WELCOME_TITLE", array('$master_board_name' => $master_board_name));
	$lang->items['LANG_START_WELCOME'] = $lang->get("LANG_START_WELCOME", array('$SID_ARG_2ND' => $SID_ARG_2ND, '$SID_ARG_1ST' => $SID_ARG_1ST));
}
else {
	$currenttime = formatdate($wbbuserdata['timeformat'], time());
	$toffset = (($wbbuserdata['timezoneoffset'] >= 0) ? ("+") : ("")).$wbbuserdata['timezoneoffset'];
	$lang->items['LANG_START_TIMEZONE'] = $lang->get("LANG_START_TIMEZONE", array('$toffset' => $toffset));
	$lastvisitdate = formatdate($wbbuserdata['dateformat'], $wbbuserdata['lastvisit'], 1);
	$lastvisittime = formatdate($wbbuserdata['timeformat'], $wbbuserdata['lastvisit']);
	if ($showpmonindex == 1 && $wbbuserdata['can_use_pms'] == 1 && $wbbuserdata['receivepm'] == 1) {
		$counttotal = $wbbuserdata['pminboxcount'];
		$countunread = $wbbuserdata['pmunreadcount'];
		$countnew = $wbbuserdata['pmnewcount'];
		if ($countnew == 1) $pms_NEWMESSAGE = $lang->items['LANG_START_PMS_MESSAGE'];
		else $pms_NEWMESSAGE = $lang->items['LANG_START_PMS_MESSAGES'];
		
		if ($counttotal == 1) $pms_TOTALMESSAGE = $lang->items['LANG_START_PMS_MESSAGE'];
		else $pms_TOTALMESSAGE = $lang->items['LANG_START_PMS_MESSAGES'];
		
		$lang->items['LANG_START_PMS'] = $lang->get("LANG_START_PMS", array('$countnew' => $countnew, '$pms_NEWMESSAGE' => $pms_NEWMESSAGE, '$countunread' => $countunread, '$counttotal' => $counttotal, '$pms_TOTALMESSAGE' => $pms_TOTALMESSAGE));
	}
}
////// para-scripts.de Verwarn-Hack START //////
require("acp/lib/ver_index.inc.php");
////// para-scripts.de Verwarn-Hack ENDE //////
eval("\$tpl->output(\"".$tpl->get("index")."\");"); 
?>


Index.tpl

code:
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:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
<?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
<head>
<title>$master_board_name | {$lang->items['LANG_START_TITLE']}</title>
$headinclude
</head>

<body>
 $header

<table style="width:{$style['tableinwidth']}" cellspacing="0" cellpadding="0" border="0"><tr>
<td align="left"><img src="{$style['imagefolder']}/obenlinks.gif" alt="" title="" border="0" /></td>
<td style="width:100%" class="oben-mitte"></td>
<td align="right"><img src="{$style['imagefolder']}/obenrechts.gif" alt="" title="" border="0" /></td>
</tr></table>

<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
 <if($wbbuserdata['userid']==0)>
  <then>
   <tr>
    <td class="tablea" align="left"><span class="normalfont"><b>{$lang->items['LANG_START_WELCOME_TITLE']}</b></span></td>
   </tr>
   <tr>
    <td class="tableb" align="left" style="text-align: justify"><span class="smallfont">{$lang->items['LANG_START_WELCOME']}</span></td>
   </tr>
  </then>

  <else>
   <tr>
    <td class="tablea"><table style="width:100%" cellspacing="0" cellpadding="0" border="0">
     <tr class="tablea_fc">
      <td align="left"><span class="smallfont">$timearea<b>$usercbar_username</b> <a href="logout.php{$SID_ARG_1ST}">{$lang->items['LANG_START_LOGOUT']}</a>{$lang->items['LANG_GLOBAL_TIMEOUT_SIE']} <span class="smallfont" id="session_timeout" title="Session-Timeout" style="position:relative;"></span>{$lang->items['LANG_GLOBAL_TIMEOUT_SEK']}
<script language="JavaScript" type="text/javascript">CountDown(3600,3600);</script><br /><b><a href="search.php?action=new{$SID_ARG_2ND}">{$lang->items['LANG_START_NEWPOSTS']} $lastvisitdate <span class="time">$lastvisittime</span>.</span></td>
      <td align="right"><span class="smallfont">{$lang->items['LANG_START_CURRENTTIME']} <span class="time">$currenttime</span>.<br />{$lang->items['LANG_START_TIMEZONE']}</span></td>
     </tr>
    </table>$toplist
<if($announce_status==1 && $announce_title!="" && $announce!="")><then>

<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
   <tr>
    <td class="tabletitle" align="left" colspan="2"><span class="normalfont"><b>$announce_title</b></span></td>
   </tr>
   <tr>
    <td class="tableb" align="center" style="width: 20px"><img src="{$style['imagefolder']}/announce.gif" border="0" alt="$announce_title" title="$announce_title" /></td>
    <td class="tableb" align="left" style="text-align: justify"><span class="smallfont">$announce</span></td>
   </tr>
</table>

<br />
</then></if></td>
   </tr>
  </else>
 </if>

 $boardbit
 </table>
 <table style="width:{$style['tableinwidth']}" cellspacing="0" cellpadding="0" border="0"><tr>
<td align="left"><img src="{$style['imagefolder']}/untenlinks.gif" alt="" title="" border="0" /></td>
<td style="width:100%" class="unten-mitte" align="center"></td>
<td align="right"><img src="{$style['imagefolder']}/untenrechts.gif" alt="" title="" border="0" /></td>
</tr></table>
<br />

<table style="width:{$style['tableinwidth']}" cellspacing="0" cellpadding="0" border="0"><tr>
<td align="left"><img src="{$style['imagefolder']}/obenlinks.gif" alt="" title="" border="0" /></td>
<td style="width:100%" class="oben-mitte"></td>
<td align="right"><img src="{$style['imagefolder']}/obenrechts.gif" alt="" title="" border="0" /></td>
</tr></table>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
 
 <if($showuseronline==1)>

  <then>
   
   <tr>
    <td class="tabletitle" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>" align="left"><span class="smallfont"><b><a href="wiw.php{$SID_ARG_1ST}">{$lang->items['LANG_START_SHOWUSERONLINE']}</a></b></span></td> 
   </tr>
   <tr>
    <td rowspan="2" class="tableb" align="center"><img src="{$style['imagefolder']}/online.gif" alt="" title="" /></td>
    <td colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" class="tablea" align="left"><span class="smallfont">{$lang->items['LANG_START_USERONLINE']}</span></td>
   </tr>
   <tr>
    <td class="tablea" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left"><span class="smallfont"><if($useronline=="")><then>&nbsp;</then></if>$useronline</span></td>
   </tr>	
  
  </then>
 </if>
<!-- Wer War Da Anfang -->
<if($showuservisited==1)><then>
<tr><td class="tabletitle" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_SHOWUSERVISITED']}</b></span></td></tr>
<tr><td rowspan="2" class="tableb" align="center"><img src="{$style['imagefolder']}/online.gif" alt="" title="" /></td><td colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" class="tablea" align="left"><span class="smallfont">{$lang->items['LANG_START_USERVISITED']}</span></td></tr>
<tr><td class="tablea" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left"><span class="smallfont"><if($uservisited=="")><then>&nbsp;</then></if>$uservisited</span></td></tr>	
</then></if>
 <!-- Wer War Da Ende -->
 
 
 <if($showpmonindex==1 && $wbbuserdata['userid']!=0 && $wbbuserdata['can_use_pms']==1 && $wbbuserdata['receivepm']==1)>
  <then>
   <tr>
    <td class="tabletitle" align="left" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"><span class="smallfont"><b>{$lang->items['LANG_START_PM']}</b></span></td>
   </tr>
   <tr>
    <td align="center" class="tableb"><if($countnew>0)>
     <then><img src="{$style['imagefolder']}/on.gif" alt="{$lang->items['LANG_START_NEWPM']}" title="{$lang->items['LANG_START_NEWPM']}" /></then>
     <else><img src="{$style['imagefolder']}/off.gif" alt="{$lang->items['LANG_START_NONEWPM']}" title="{$lang->items['LANG_START_NONEWPM']}" /></else>
    </if></td>
    <td align="left" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" class="tablea"><span class="smallfont"><b><a href="pms.php{$SID_ARG_1ST}">{$lang->items['LANG_START_PMIN']}</a></b><br />{$lang->items['LANG_START_PMS']}</span></td>
   </tr>  
  
  </then>
 </if>
$verwarnleiste
 
 <if(isset($birthdaybit) || isset($eventbit))>
  <then>
   <tr>
    <td class="tabletitle" align="left" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"><span class="smallfont"><b>{$lang->items['LANG_START_SHOWEVENTS']}</b></span></td>
   </tr>
   
   <if(isset($birthdaybit))>
    <then>
     <tr>
      <td class="tableb" align="center"><img src="{$style['imagefolder']}/birthday.gif" alt="" title="" border="0" /></td>
      <td class="tablea" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_BIRTHDAY']}</b><br />$birthdaybit</span></td>
     </tr>
    </then>
   </if>
   
   <if(isset($eventbit))>
    <then>
     <tr>
      <td class="tableb" align="center"><img src="{$style['imagefolder']}/events.gif" alt="" title="" border="0" /></td>
      <td class="tablea" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_TODAYEVENT']}</b><br />$eventbit</span></td>
     </tr>
    </then>
   </if> 
  </then>
 </if>
 
 <if($showstats==1)>
  <then>
   <tr>
    <td class="tabletitle" align="left" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"><span class="smallfont"><a href="statsinfo.php{$SID_ARG_1ST}"><b>{$lang->items['LANG_START_STATISTIC']}</b></a></span></td> 
   </tr>
   <tr>
    <td colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>" class="tableb" align="left"><span class="smallfont">{$lang->items['LANG_START_STATISTIC_MEMBERS']} $stats[usercount] | {$lang->items['LANG_START_STATISTIC_THREADS']} $stats[threadcount] | {$lang->items['LANG_START_STATISTIC_POSTS']} $stats[postcount] ({$lang->items['LANG_START_STATISTIC_AVERAGE']} $postperday {$lang->items['LANG_START_STATISTIC_POSTPERDAY']})<br />
    {$lang->items['LANG_START_STATISTIC_NEWESTMEMBER']} <a href="profile.php?userid=$stats[lastuserid]{$SID_ARG_2ND}">$stats[username]</a>.</span></td>
   </tr>
  </then>
 </if>
  
 </table>
 <table style="width:{$style['tableinwidth']}" cellspacing="0" cellpadding="0" border="0"><tr>
<td align="left"><img src="{$style['imagefolder']}/untenlinks.gif" alt="" title="" border="0" /></td>
<td style="width:100%" class="unten-mitte" align="center"></td>
<td align="right"><img src="{$style['imagefolder']}/untenrechts.gif" alt="" title="" border="0" /></td>
</tr></table>

<if($wbbuserdata['userid']==0)>
 <then>
  <br /><a name="login" id="login"></a>
  <if($allowloginencryption==1)><then>
  <script type="text/javascript" src="js/sha1.js"></script>
  <script type="text/javascript" src="js/crypt.js"></script>
  </then></if>
  <form method="post" action="login.php" name="loginform"<if($allowloginencryption==1)><then> onsubmit="return encryptlogin(this);"</then></if>>
  <input type="hidden" name="send" value="send" />
  <input type="hidden" name="sid" value="$session[hash]" />
  <if($allowloginencryption==1)><then>
  <input type="hidden" name="authentificationcode" value="$session[authentificationcode]" />
  <input type="hidden" name="crypted" value="false" /></then></if>
<table style="width:{$style['tableinwidth']}" cellspacing="0" cellpadding="0" border="0"><tr>
<td align="left"><img src="{$style['imagefolder']}/obenlinks.gif" alt="" title="" border="0" /></td>
<td style="width:100%" class="oben-mitte"></td>
<td align="right"><img src="{$style['imagefolder']}/obenrechts.gif" alt="" title="" border="0" /></td>
</tr></table>
  <table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
   <tr>
    <td class="tabletitle" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_LOGIN']}</b></span></td> 
   </tr>
   <tr>
    <td class="tableb"><table cellpadding="0" cellspacing="5" align="center" class="tableb_fc">
     <tr>
      <td><span class="smallfont">{$lang->items['LANG_START_USERNAME']}</span></td>
      <td><span class="smallfont"><input type="text" name="l_username" maxlength="50" size="20" class="input" tabindex="1" />&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
      <td><span class="smallfont">{$lang->items['LANG_START_PASSWORD']} (<a href="forgotpw.php{$SID_ARG_1ST}">{$lang->items['LANG_START_LOSTPW']}</a>):</span></td>
      <td><span class="smallfont"><input type="password" name="l_password" maxlength="30" size="20" class="input" tabindex="2" />&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
      <td><span class="smallfont">{$lang->items['LANG_START_PIN']} (<a href="forgotpin.php{$SID_ARG_1ST}">{$lang->items['LANG_START_LOSTPIN']}</a>):</span></td>
      <td><span class="smallfont"><input type="password" name="l_pin" maxlength="30" size="20" class="input" tabindex="2" /></span></td>
	  <if($allowloginencryption==1)><then>
      <td><span class="smallfont"><label for="checkbox1">{$lang->items['LANG_GLOBAL_ENCRYPT_TRANSFER']}</label></span></td>
      <td><span class="smallfont"><input type="checkbox" id="checkbox1" name="activateencryption" onclick="activate_loginencryption(document.loginform);" />&nbsp;&nbsp;&nbsp;&nbsp;</span></td></then></if>
      <td><input type="submit" value="{$lang->items['LANG_START_LOGIN']}" class="input" tabindex="3" /></td>
     </tr>
    </table></td>
   </tr>
  </table>
 <table style="width:{$style['tableinwidth']}" cellspacing="0" cellpadding="0" border="0"><tr>
<td align="left"><img src="{$style['imagefolder']}/untenlinks.gif" alt="" title="" border="0" /></td>
<td style="width:100%" class="unten-mitte" align="center"></td>
<td align="right"><img src="{$style['imagefolder']}/untenrechts.gif" alt="" title="" border="0" /></td>
</tr></table></form>
  <if($allowloginencryption==1)><then>
  <script type="text/javascript">
   <!--
    activate_loginencryption(document.loginform);
   //-->
  </script></then></if>
 </then>
</if>

<table style="width:{$style['tableinwidth']}">
 <tr>
  <td align="right"><span class="smallfont"><a href="search.php?action=24h{$SID_ARG_2ND}">{$lang->items['LANG_START_CURRENT_THREADS']}</a> | <a href="search.php?action=polls{$SID_ARG_2ND}">{$lang->items['LANG_START_CURRENT_POLLS']}</a> | <a href="markread.php{$SID_ARG_1ST}">{$lang->items['LANG_START_MARKREAD_ALL']}</a><if($show_archive == 1)><then> | <b><a href="archive/index.html">{$lang->items['LANG_START_ARCHIVE']}</a></b></then></if></span></td>
 </tr>
</table><br />
<table>
<tr align="center">
  <td><img src="{$style['imagefolder']}/on.gif" alt="{$lang->items['LANG_START_NEW_POSTS']}" title="{$lang->items['LANG_START_NEW_POSTS']}" border="0" /></td>
  <td><span class="smallfont">{$lang->items['LANG_START_NEW_POSTS']}&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
  <td><img src="{$style['imagefolder']}/off.gif" alt="{$lang->items['LANG_START_NONEW_POSTS']}" title="{$lang->items['LANG_START_NONEW_POSTS']}" border="0" /></td>
  <td><span class="smallfont">{$lang->items['LANG_START_NONEW_POSTS']}&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
  <td><img src="{$style['imagefolder']}/offclosed.gif" alt="{$lang->items['LANG_START_BOARD_CLOSED']}" title="{$lang->items['LANG_START_BOARD_CLOSED']}" border="0" /></td>
  <td><span class="smallfont">{$lang->items['LANG_START_BOARD_CLOSED']}&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
  <td><img src="{$style['imagefolder']}/link.gif" alt="{$lang->items['LANG_START_BOARD_LINK']}" title="{$lang->items['LANG_START_BOARD_LINK']}" border="0" /></td>
  <td><span class="smallfont">{$lang->items['LANG_START_BOARD_LINK']}</span></td>
 </tr>
</table>

$footer
</body>
</html>


Kann mir jemand weiter helfen?
12.04.06 13:28 Breeze ist offline E-Mail Finden Als Freund hinzufügen
Seiten (2): [1] 2 nächste » Baumstruktur | Brettstruktur
Gehe zu:

Neues Thema erstellen Antwort erstellen

yourWBB » WoltLab Burning Board Generation 2 * » Alles von und für das WBB 2.3.x » [WBB 2.3.x] Hacks und Addons » Timearea Hack