Problem mit der global.php

bluejokerX
Problembeschreibung:
Nicht Funktion der global.php

Fehlermeldung:
Parse error: parse error in /srv/www/htdocs/web18/html/wbb2/global.php on line 562


Ich habe mal die global.php angehängt, da ich nichts Verdächtiges gefunden habe.

Hoffe, mir kann jemand helfen.

Vielen Dank schon mal im Voraus.


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:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
533:
534:
535:
536:
537:
538:
539:
540:
541:
542:
543:
544:
545:
546:
547:
548:
549:
550:
551:
552:
553:
554:
555:
556:
557:
558:
559:
560:
561:
562:
<?php
// ************************************************************************************//
// * WoltLab Burning Board 2
// ************************************************************************************//
// * Copyright (c) 2001-2004 WoltLab GmbH
// * Web           [URL]http://www.woltlab.de/[/URL]
// * License       [URL]http://www.woltlab.de/products/burning_board/license_en.php[/URL]
// *               [URL]http://www.woltlab.de/products/burning_board/license.php[/URL]
// ************************************************************************************//
// * WoltLab Burning Board 2 is NOT free software.
// * You may not redistribute this package or any of it's files.
// ************************************************************************************//
// * $Date: 2005-04-26 16:41:52 +0200 (Tue, 26 Apr 2005) $
// * $Author: Burntime $
// * $Rev: 1597 $
// ************************************************************************************//


@error_reporting(7);
$genstart=microtime();
$sql=0;
$phpversion = phpversion();

/** get function libary **/
require('./acp/lib/functions.php');
if (version_compare($phpversion, '4.1.0') == -1) {
	$_REQUEST = array_merge($HTTP_COOKIE_VARS, $HTTP_POST_VARS, $HTTP_GET_VARS);
	$_COOKIE =& $HTTP_COOKIE_VARS;
	$_SERVER =& $HTTP_SERVER_VARS;
	$_FILES =& $HTTP_POST_FILES;
	$_GET =& $HTTP_GET_VARS;
	$_POST =& $HTTP_POST_VARS;
}
// remove slashes in get post cookie data...
if (get_magic_quotes_gpc()) {
        if (count($_REQUEST)) $_REQUEST = stripslashes_array($_REQUEST);
        if (count($_POST)) $_POST = stripslashes_array($_POST);
        if (count($_GET)) $_GET = stripslashes_array($_GET);
        if (count($_COOKIE)) $_COOKIE = stripslashes_array($_COOKIE);
        if (count($_SERVER)) $_SERVER = stripslashes_array($_SERVER);
}

@set_magic_quotes_runtime(0);
@ini_set('magic_quotes_sybase', '0');
/** connect db **/
require('./acp/lib/config.inc.php');
require('./acp/lib/class_db_mysql.php');

$db = &new db($sqlhost, $sqluser, $sqlpassword, $sqldb, $phpversion);

/** get configuration **/
require('./counter.php');
require('./acp/lib/options.inc.php');

/** load smtp_socket function **/
require('./acp/lib/class_smtp.php');

/** request ids **/
if (isset($_REQUEST['postid'])) $postid = $_REQUEST['postid'];
if (isset($_REQUEST['threadid'])) $threadid = $_REQUEST['threadid'];
if (isset($_REQUEST['pollid'])) $pollid = $_REQUEST['pollid'];
if (isset($_REQUEST['attachmentid'])) $attachmentid = $_REQUEST['attachmentid'];
if (isset($_REQUEST['boardid'])) $boardid = $_REQUEST['boardid'];

/** verify ids **/
if (isset($postid)) {
	$postid = intval($postid);
	$post = $db->query_first("SELECT * FROM bb".$n."_posts WHERE postid = '$postid'");
	if (!$post['postid']) unset($postid);
	else $threadid = $post['threadid'];
}

/** start session **/
require('./acp/lib/session.php');
require('./votebox_conf.php');

/** verify ids **/
if (isset($threadid)) {
	$threadid = intval($threadid);
	
	$select = '';
	$join = '';
	
	if ($filename == "thread.php") {
		$select .= ", v.id AS isvoted";
		$join .= " LEFT JOIN bb".$n."_votes v ON (v.id=t.threadid AND v.votemode=2 AND ".(($wbbuserdata['userid']) ? ("v.userid='".$wbbuserdata['userid']."'") : ("v.ipaddress='".addslashes($REMOTE_ADDR)."'")).")";
		
		if ($wbbuserdata['userid']) {
			$select .= ", tv.lastvisit, s.emailnotify, s.countemails";	
			$join .= " LEFT JOIN bb".$n."_threadvisit tv ON (tv.threadid=t.threadid AND tv.userid='".$wbbuserdata['userid']."')
			LEFT JOIN bb".$n."_subscribethreads s ON (s.userid='".$wbbuserdata['userid']."' AND s.threadid=t.threadid)";
		}
	}
	
	$thread = $db->query_first("SELECT t.*".$select." FROM bb".$n."_threads t".$join." WHERE t.threadid = '$threadid'");
	
	$select = '';
	$join = '';
	
	if (!$thread['threadid']) unset($threadid);
	else $boardid = $thread['boardid'];
if($thread['thxbot'] == 1) $firstpost = $db->query_first("SELECT `postid` AS id FROM `bb".$n."_posts` WHERE `threadid`='$threadid' ORDER BY `posttime` ASC LIMIT 0,1");
}
if (isset($pollid)) {
	$pollid = intval($pollid);
	$poll = $db->query_first("SELECT bb".$n."_threads.*, bb".$n."_polls.* FROM bb".$n."_polls LEFT JOIN bb".$n."_threads USING (threadid) WHERE bb".$n."_polls.pollid = '$pollid'");
	if (!$poll['pollid']) unset($pollid);
	else {
		if ($poll['boardid']) {
			$boardid = $poll['boardid'];
			unset($threadid);
			unset($thread);
		}
	}
}
if (isset($attachmentid)) {
	$attachmentid = intval($attachmentid);
	$attachment = $db->query_first("SELECT at.*, ".
	"t.boardid, p.threadid, p.visible, p.userid, ".
	"pm.privatemessageid, pm.inoutbox, pm.senderid, pmr.recipientid, pmr.deletepm ".
	"FROM bb".$n."_attachments at ".
	"LEFT JOIN bb".$n."_posts p ON (p.postid=at.postid) ".
	"LEFT JOIN bb".$n."_threads t ON (t.threadid=p.threadid) ".
	"LEFT JOIN bb".$n."_privatemessage pm ON (pm.privatemessageid=at.privatemessageid) ".
	"LEFT JOIN bb".$n."_privatemessagereceipts pmr ON (pmr.privatemessageid=pm.privatemessageid AND pmr.recipientid='$wbbuserdata[userid]') ".
	"WHERE at.attachmentid = '$attachmentid'");

	if (!$attachment['attachmentid']) {
		unset($attachmentid);
		unset($attachment);
	}
	if ($attachment['postid'] && !$attachment['privatemessageid']) { // post attachment
		if ($attachment['boardid']) {
			$boardid = $attachment['boardid'];
			$threadid = $attachment['threadid'];
			unset($thread);
		}
	}
	elseif (!$attachment['postid'] && $attachment['privatemessageid']) { // private message attachment
		unset($boardid);
		unset($threadid);
		unset($thread);
	}
}
if (isset($boardid)) {
	$boardid = intval($boardid);
	$board = getBoardAccessData($boardid);
	if (!$board['boardid']) unset($boardid);
}

/** update session **/
$db->unbuffered_query("UPDATE bb".$n."_sessions SET lastactivity = '".$session['lastactivity']."', request_uri = '".addslashes($REQUEST_URI)."', boardid='" . ((isset($boardid)) ? ($boardid) : (0)) . "', threadid='".((isset($threadid)) ? ($threadid) : (0))."'" . ((isset($styleid)) ? (", styleid = '$styleid'") : ("")).((isset($langid)) ? (", langid='$langid'") : ("")).((isset($authentificationcode)) ? (", authentificationcode='".addslashes($authentificationcode)."'") : (""))." WHERE sessionhash = '$sid'", 1);

/** get style **/
$style = array();
if (isset($board) && ($board['enforcestyle'] == 1 || ($board['styleid'] != 0 && $wbbuserdata['styleid'] == 0))) {
	$style = $db->query_first("SELECT s.styleid, s.templatepackid, s.designpackid, tp.templatestructure FROM bb".$n."_styles s LEFT JOIN bb".$n."_templatepacks tp ON(tp.templatepackid=s.templatepackid) WHERE s.styleid = '".$board['styleid']."'");
	$wbbuserdata['designpackid'] = $style['designpackid'];
	$wbbuserdata['templatepackid'] = $style['templatepackid'];
	$wbbuserdata['styleid'] = $style['styleid'];
	$wbbuserdata['templatestructure'] = $style['templatestructure'];
}

$result = $db->unbuffered_query("SELECT * FROM bb".$n."_designelements WHERE designpackid = '$wbbuserdata[designpackid]'");
while ($row = $db->fetch_array($result)) $style[$row['element']] = $row['value'];

/** bot class **/
require('./acp/lib/class_bot.php');
$bot = &new bot;

/** template class **/
require('./acp/lib/class_headers.php');
require('./acp/lib/class_tpl_file.php');
$tpl = &new tpl(intval($wbbuserdata['templatepackid']));

/** language packs **/
require('./acp/lib/class_language.php');
$lang = &new language($wbbuserdata['languagepackid']);
$lang->load('GLOBAL,OWN,NAVIGATION,AWAY'); // global, own langcat

define('ENCODING', $lang->get('LANG_GLOBAL_ENCODING'));
$supportedCharsets = array('UCS-4', 'UCS-4BE', 'UCS-4LE', 'UCS-2', 'UCS-2BE', 'UCS-2LE', 'UTF-32', 'UTF-32BE', 'UTF-32LE', 'UCS-2LE', 
'UTF-16', 'UTF-16BE', 'UTF-16LE', 'UTF-8', 'UTF-7', 'ASCII', 'EUC-JP', 'SJIS', 'EUCJP-WIN', 'SJIS-WIN', 'ISO-2022-JP', 'JIS', 'ISO-8859-1', 
'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4', 'ISO-8859-5', 'ISO-8859-6', 'ISO-8859-7', 'ISO-8859-8', 'ISO-8859-9', 'ISO-8859-10', 
'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'BYTE2BE', 'BYTE2LE', 'BYTE4BE', 'BYTE4LE', 'BASE64', '7bit', '8bit', 'UTF7-IMAP');

if (in_array(wbb_strtoupper(ENCODING), $supportedCharsets) && extension_loaded('mbstring') && version_compare($phpversion, '4.3.0') >= 0) {
	define('USE_MBSTRING', true);
}
else {
	define('USE_MBSTRING', false);	
}

/** imagefolder prefix **/
$style['imagefolder'] = $lang->get("LANG_GLOBAL_IMAGEFOLDER_PREFIX").$style['imagefolder'];

/** OWN langvars **/
$o_master_board_name = $master_board_name;
$master_board_name = getlangvar($master_board_name, $lang);

/* ############## PRIVATE MSG ############## */

	$pmcount = 0;
	$inbox_count = 0;
	$tracking_count = 0;
	$outbox_count = 0;
	$pmnewcount = 0;
	$pmunreadcount = 0;
	$temp_folder_count = array();

	
	$result = $db->unbuffered_query("SELECT ".
	"pmr.folderid, pmr.recipientid, pmr.view, p.sendtime ".
	"FROM bb".$n."_privatemessagereceipts pmr ".
	"LEFT JOIN bb".$n."_privatemessage p USING(privatemessageid) ".
	"WHERE (pmr.recipientid='$wbbuserdata[userid]' AND pmr.deletepm=0)");
	while ($row = $db->fetch_array($result)) {
		$pmcount++;
		if ($row['folderid'] == 0) $inbox_count++;
		else {
			if (isset($temp_folder_count[$row['folderid']])) $temp_folder_count[$row['folderid']]++;
			else $temp_folder_count[$row['folderid']] = 1;
		}
		if ($row['view'] == 0) {
			$pmunreadcount++;	
			if ($row['sendtime'] > $wbbuserdata['lastvisit']) $pmnewcount++;
		}	
	}
	$result = $db->unbuffered_query("SELECT ".
	"privatemessageid, inoutbox, tracking, recipientcount ".
	"FROM bb".$n."_privatemessage p ".
	"WHERE p.senderid='$wbbuserdata[userid]' AND (inoutbox=1 OR tracking=1)");
	while ($row = $db->fetch_array($result)) {
		if ($row['inoutbox'] == 1) {
			$pmcount++;
			$outbox_count++;
		}
		if ($row['tracking'] == 1) {
			$tracking_count += $row['recipientcount'];
		}		
	}

	// update pm-counter if necessary
	if ($wbbuserdata['pmtotalcount'] != $pmcount || $wbbuserdata['pminboxcount'] != ($pmcount - $outbox_count) || $wbbuserdata['pmnewcount'] != $pmnewcount || $wbbuserdata['pmunreadcount'] != $pmunreadcount) {
		$wbbuserdata['pmtotalcount'] = $pmcount;
		$wbbuserdata['pminboxcount']  = $pmcount - $outbox_count;
		$wbbuserdata['pmnewcount'] = $pmnewcount;
		$wbbuserdata['pmunreadcount']  = $pmunreadcount;
		$db->unbuffered_query("UPDATE bb".$n."_users SET pmtotalcount='$wbbuserdata[pmtotalcount]', pminboxcount='$wbbuserdata[pminboxcount]', pmnewcount='$wbbuserdata[pmnewcount]', pmunreadcount='$wbbuserdata[pmunreadcount]' WHERE userid='$wbbuserdata[userid]'", 1);
	}
	
	$temp = $pmcount / $wbbuserdata['max_pms'];
	if (($percent = round($temp * 100)) > 100) {
		$percent = 100;
		$temp = 1;
	}
	
	$lang->items['LANG_PMS_FOLDER_USAGE'] = $lang->get("LANG_PMS_FOLDER_USAGE", array('$percent' => $percent));
	$x = round($temp * 240);

	if (isset($_REQUEST['daysprune'])) $daysprune = intval($_REQUEST['daysprune']);
	elseif ($wbbuserdata['daysprune'] != 0) $daysprune = $wbbuserdata['daysprune'];
	else $daysprune = $default_daysprune;

	if ($daysprune == 1000) $datecute = 0;
	elseif ($daysprune == 1500) $datecute = $wbbuserdata['lastvisit'];
	else $datecute = time() - $daysprune * 86400;

	$d_select[1] = '';
	$d_select[2] = '';
	$d_select[5] = '';
	$d_select[10] = '';
	$d_select[20] = '';
	$d_select[30] = '';
	$d_select[45] = '';
	$d_select[60] = '';
	$d_select[75] = '';
	$d_select[100] = '';
	$d_select[365] = '';
	$d_select[$daysprune] = ' selected="selected"';

	$result = $db->query("SELECT folderid, title FROM bb".$n."_folders WHERE userid='$wbbuserdata[userid]' ORDER BY title ASC");
	$user_folder_count = $db->num_rows($result);
	$folder_bit = '';
	$moveto_options = '';
	$folder['title'] = '';
	while ($row = $db->fetch_array($result)) {
		if (isset($temp_folder_count[$row['folderid']])) $folder_count = $temp_folder_count[$row['folderid']];
		else $folder_count = 0;

		$row['title'] = htmlconverter($row['title']);
		eval("\$folder_bit .= \"".$tpl->get("pms_folderbit")."\";");
		if ($row['folderid'] == $folderid) $folder['title'] = $row['title'];
		else {
			eval("\$moveto_options .= \"".$tpl->get("pms_moveto_options")."\";");
		}
	}

/* ############## 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"));
}

/* ############## PMS ############## */

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));
	}

/* ############## COUNTER ############## */

#if(!$session) 
$session_post = "<INPUT TYPE=\"HIDDEN\" NAME=\"sid\" VALUE=\"$sid\">";
#else $session_post="";

$sperr_zeit  = 60*60;


kick_the_old_IPs();

    if (ip_suche($REMOTE_ADDR)){
       $zahl = implode("",file("zahl.txt"));

       ++$zahl;
       $dat = fopen("zahl.txt","wb");
       fwrite($dat,"$zahl");
       fclose($dat);
    }
 else {
       $zahl = implode("",file("zahl.txt"));
      // echo "<b>".$zahl." <b>";
    }
    //echo "<b>".$zahl."</b> ";
function ip_suche($vergleicher){
global $sperr_zeit;
  $array=file("iplogger.txt");

  if ($array[0] != ""){
    if(is_in($array,$vergleicher)){
        return 0;
    }
     else{
            $handle = fopen("iplogger.txt","a+b");
            $new = $vergleicher."|".time();
            fwrite($handle,"\r\n$new");
            fclose($handle);
            return 1;
        }
   }
  else {
      $handle = fopen("iplogger.txt","wb");
      $new = $vergleicher."|".time();
      fwrite($handle,"\r\n$new");
      fclose($handle);
      return 1;
  }
}
function is_in($array,$vergleicher){
foreach ($array as $check){
       $check=explode("|",$check);
       if ($check[0] == $vergleicher){
            return 1;
            break;
       }
}
}
function kick_the_old_IPs(){

global $sperr_zeit;
  $array = file("iplogger.txt");
    foreach($array as $a){
       $b = explode("|",$a);
       $k = time()-$b[1];
       if($k < $sperr_zeit){
           $new_array[] =$a;
       }
    }
if (count($new_array)>=2){
     $string = implode("",$new_array);
}
elseif(count($new_array)==0){

     $string = "";
}
else{
     $string = $new_array[0];
}
$handle = fopen("iplogger.txt","wb");
fwrite($handle,"$string");
fclose($handle);
}

/** templates & style **/
include("acp/lib/metaheader.php");
$phpinclude = wbb_trim($tpl->get("phpinclude"));
if ($phpinclude != '') {

	$phpinclude = str_replace('\\"', '"', $phpinclude);
	$phpinclude = str_replace('\\\\', '\\', $phpinclude);
	
	eval($phpinclude);

/** default templates **/
/** OnlineTimer Version 2.0 der User **/
$activtime=time()-60*$useronlinetimeout;
$users_out = $db->query("SELECT * FROM bb".$n."_useronline WHERE zeit<'$activtime' AND userid<>'0'");
while($user_out = $db->fetch_array($users_out)){
	$onlinetime=$user_out[zeit]-$user_out[logintime];
	$db->query("UPDATE bb".$n."_users SET onlinetime=onlinetime+$onlinetime WHERE userid='$user_out[userid]'");
}
$db->query("DELETE FROM bb".$n."_useronline WHERE zeit<'$activtime'");
if($wbbuserdata['userid'] !=0) {
 $anzahl = $db->query_first("SELECT COUNT(zeit)as anzahl FROM bb".$n."_useronline WHERE userid='$wbbuserdata[userid]'");
 if($anzahl[anzahl]) $db->query("UPDATE bb".$n."_useronline SET zeit='".time()."' WHERE userid='$wbbuserdata[userid]'");
 else $db->query("INSERT INTO bb".$n."_useronline VALUES ('".time()."','$wbbuserdata[userid]','".time()."')");
}
/** OnlineTimer Version 2.0 der User **/
$header_pms = '';
$header_acp = '';
eval("\$css = \"".$tpl->get("css")."\";");
eval("\$headinclude = \"".$tpl->get("headinclude")."\";");
$lang->items['LANG_GLOBAL_COPYRIGHT'] = $lang->get("LANG_GLOBAL_COPYRIGHT", array('$boardversion' => $boardversion));
eval("\$footer = \"".$tpl->get("footer")."\";");
if ($wbbuserdata['userid']) $usercbar_username = htmlconverter($wbbuserdata['username']);
else $usercbar_username = '';
eval("\$usercbar = \"".$tpl->get("usercbar")."\";");
eval("\$header_pms = \"".$tpl->get("header_pms")."\";");
eval("\$header_usercp = \"".$tpl->get("header_usercp")."\";");
eval("\$header_memberslist = \"".$tpl->get("header_memberslist")."\";");
eval("\$header_main = \"".$tpl->get("header_main")."\";");
eval("\$header_calendar = \"".$tpl->get("header_calendar")."\";");
eval("\$header_stat = \"".$tpl->get("header_stat")."\";");
$im = $db->query_first("SELECT * FROM bb".$n."_im WHERE recipientid = '$wbbuserdata[userid]' AND im_check=1");
if($wbbuserdata['userid'] == $im['recipientid'] && $wbbuserdata['instantm']==1 && $wbbuserdata['instantc']==0){
if($filename!="instantr.php") eval ("\$headinclude .= \"".$tpl->get("instant_read_open")."\";");
}
eval("\$header = \"".$tpl->get("header")."\";");
/** wBB-BOT Professional Edition (c) by wBB-BOT.de 2005 **/
if($bot->getOptionValue("active") && $bot->getOptionValue("showinwio")){
$info=$db->query_first("SELECT * FROM bb".$n."_users WHERE userid='".$bot->getOptionValue(botuserid)."'");
$botusername=$info[username];
$check=$db->query_first("SELECT * FROM bb".$n."_sessions WHERE userid='".$bot->getOptionValue("botuserid")."'");
if($check[userid] == $bot->getOptionValue("botuserid")){
$db->query("UPDATE bb".$n."_sessions SET lastactivity='".time()."' WHERE userid='".$bot->getOptionValue("botuserid")."'");
}else{
$db->query("INSERT INTO bb".$n."_sessions SET sessionhash='0', userid='".$bot->getOptionValue("botuserid")."', ipaddress='localhost', useragent='n/a', lastactivity='".time()."', request_uri='index.php'");
}
}

if($bot->getOptionValue("active") == 0 || $bot->getOptionValue("showinwio") == 0){
$db->query("DELETE FROM bb".$n."_sessions WHERE userid='".$bot->getOptionValue("botuserid")."'");
}

/** wBB-BOT Professional Edition (c) by wBB-BOT.de 2005 **/
eval("\$header2 = \"".$tpl->get("header2")."\";");

if ($wbbuserdata['can_view_board'] == 0 && $filename != "login.php" && $filename != "logout.php" && $filename != "register.php" && $filename != "forgotpw.php") access_error();

verify_ip($REMOTE_ADDR);
if ($offline == 1 && $wbbuserdata['can_view_off_board'] == 0 && $filename != "home.php" && $filename != "login.php" && $filename != "logout.php" && $filename != "forgotpw.php" && $filename != "register.php") {
	$offlinemessage = nl2br(htmlconverter($offlinemessage));
	eval("\$tpl->output(\"".$tpl->get("offline")."\");");
	exit();	
}

if ($wbbuserdata['pmpopup'] == 2) {
	if ($filename != "pms.php" && (!isset($_POST) || count($_POST) == 0) && $filename != "attachment.php" && $filename != "attachmentedit.php" && $filename != "logout.php" && $filename != "markread.php" && $filename != "misc.php" && $filename != "modcp.php" && $filename != "polledit.php" && $filename != "register.php" && $filename != "search.php" && ($filename != "thread.php" || !isset($_REQUEST['goto'])) && $filename != "threadrating.php" && $filename != "usercp.php") {
		eval("\$headinclude .= \"".$tpl->get("pmpopup_open")."\";");
	}
}

if (isset($boardid)) {
	/** OWN langvars **/
	$board['o_title'] = $board['title'];
	$board['title'] = getlangvar($board['title'], $lang);
	
	if (!checkpermissions("can_enter_board")) access_error();
	if ($board['password']) {
		$lang->load('BOARD');
		if (isset($_COOKIE[$cookieprefix.'boardpasswords'])) $boardpasswords = decode_cookie($_COOKIE[$cookieprefix.'boardpasswords']);
		else $boardpasswords = array();
		
		if (isset($_POST['boardpassword'])) {
			if ($_POST['boardpassword'] == $board['password']) {
				$boardpasswords[$boardid] = md5($board['password']);
				if ($wbbuserdata['usecookies'] == 1) encode_cookie('boardpasswords', time() + 3600 * 24 * 365, false);
				else encode_cookie('boardpasswords', 0, false);
				
				redirect($lang->items['LANG_BOARD_PASSWORD_REDIRECT'], "board.php?boardid=$boardid".$SID_ARG_2ND);
			}
			else {
				eval("error(\"".$lang->get("LANG_BOARD_ERROR_FALSEPASSWORD")."\");");
			}
		}
		elseif (!isset($boardpasswords[$boardid]) || $boardpasswords[$boardid] != md5($board['password'])) {
			eval("\$tpl->output(\"".$tpl->get("board_password")."\");");
			exit();	
		}
	}
}

if (isset($threadid) && isset($thread['visible']) && $thread['visible'] == 0 && !checkmodpermissions()) {
	error($lang->get("LANG_GLOBAL_ERROR_FALSELINK", array('$adminmail' => $adminmail)));
}
if($wbbuserdata['userid']) require('./activ_dele.php');
if (isset($postid) && isset($post['visible']) && $post['visible'] == 0 && !checkmodpermissions()) {
	error($lang->get("LANG_GLOBAL_ERROR_FALSELINK", array('$adminmail' => $adminmail)));
}

if (isset($_POST['change_editor']) && $_POST['change_editor']) {
	$wbbuserdata['usewysiwyg'] = $_POST['change_editor'];
}
else if (isset($_POST['usewysiwyg']) && $_POST['usewysiwyg']) {
	$wbbuserdata['usewysiwyg'] = $_POST['usewysiwyg'];
}

$guthaben = $db->query_first("SELECT * FROM bb".$n."_guthaben WHERE gutid='1'");
if($guthaben['lottoonoff']) require("./acp/lib/lottoziehung.php"); 
/* ######## Guthaben Werben ########## */
$coo_var = $cookieprefix . 'werberid';
if (isset($_REQUEST['werberid'])){
$werberid = intval($_REQUEST['werberid']);
bbcookie("werberid","$werberid",time()+3600*24*45);
}
elseif (isset($HTTP_COOKIE_VARS["$coo_var"])) $werberid = $HTTP_COOKIE_VARS["$coo_var"];
else $werberid = '';
if ($werberid != ''){
$werberchk = $db->query_first("SELECT username FROM bb".$n."_users where userid='".intval($werberid)."'");
if ($werberchk['username'] == '') unset($werberid);
else $werbername = $werberchk['username'];
}
/* ################################### */

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

$award = &new award();
$awards_res = $db->query("SELECT autoawardid, art, awardid, beschreibung, datum FROM bb".$n."_autoawards WHERE vergeben='1'");
while($awards = $db->fetch_array($awards_res)) {
	eval("\$award->".$awards['art']."(".$awards['autoawardid'].", ".$awards['awardid'].", \"".$awards['beschreibung']."\", ".$awards['datum'].");");
}

?>
KorbanDallas
was hast du zuletzt eingebaut?
bluejokerX
Ja, das war der OnlineTimer, aber den Code habe ich schon herausgenommen, ging trotzdem nicht.
Agi
Ersetze mal das
php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
$guthaben $db->query_first("SELECT * FROM bb".$n."_guthaben WHERE gutid='1'");
if($guthaben['lottoonoff']) require("./acp/lib/lottoziehung.php"); 
/* ######## Guthaben Werben ########## */
$coo_var $cookieprefix 'werberid';
if (isset($_REQUEST['werberid'])){
$werberid intval($_REQUEST['werberid']);
bbcookie("werberid","$werberid",time()+3600*24*45);
}
elseif (isset($HTTP_COOKIE_VARS["$coo_var"])) $werberid $HTTP_COOKIE_VARS["$coo_var"];
else $werberid '';
if ($werberid != ''){
$werberchk $db->query_first("SELECT username FROM bb".$n."_users where userid='".intval($werberid)."'");
if ($werberchk['username'] == '') unset($werberid);
else $werbername $werberchk['username'];
}
/* ################################### */

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


GEGEN:

php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
$guthaben $db->query_first("SELECT * FROM bb".$n."_guthaben WHERE gutid='1'");
if($guthaben['lottoonoff']) {
require("./acp/lib/lottoziehung.php"); 

/* ######## Guthaben Werben ########## */
$coo_var $cookieprefix 'werberid';
if (isset($_REQUEST['werberid'])){
$werberid intval($_REQUEST['werberid']);
bbcookie("werberid","$werberid",time()+3600*24*45);
}
elseif (isset($HTTP_COOKIE_VARS["$coo_var"])) $werberid $HTTP_COOKIE_VARS["$coo_var"];
else $werberid '';
if ($werberid != ''){
$werberchk $db->query_first("SELECT username FROM bb".$n."_users where userid='".intval($werberid)."'");
if ($werberchk['username'] == '') unset($werberid);
else $werbername $werberchk['username'];
}
/* ################################### */

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


und sag was dabei rauskommt
bluejokerX
Hab ich gemacht, nun kommt diese Fehlermedung:

Parse error: parse error in /srv/www/htdocs/web18/html/wbb2/global.php on line 565

traurig