Problem mit T_ENCAPSED_AND_WHITESPACE

Speedy01
Problembeschreibung: Ich habe nichts an meinem Forum geändert. Aber plötzlich wird mir immer folgende Fehlermeldung angezeigt:


Fehlermeldung: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /var/www/vhosts/hackit-thegame.de/subdomains/forum/httpdocs/board.php(41cool : eval()'d code on line 30


Link zum Forum oder Screenshot: http://forum.hackit-thegame.de/login.php


Was wurde zuletzt geändert oder eingebaut? also als aller letztes habe ich den ToDoList-Mod eingebaut

Wäre schön, wenn ihr mir helfen könntet

mfG
Phillip
codingnoob
Die Fehlermeldung, die du da angibst, soll absichtlich nicht zum Link passen? Denn 1. bezieht sie sich auf die board.php und 2. gibt die login.php von deinem Link einen anderen Fehler aus:
Zitat:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/vhosts/hackit-thegame.de/subdomains/forum/httpdocs/login.php(71) : eval()'d code on line 23

Aber egal.
Könntest du uns Zeile 30 +/- 5 der board.php und Zeile 23 +/- 5 der login.php anbieten? (Also jeweils 11 Zeilen)

Vielleicht findet sich ja irgendwo ein fehlendes ']' oder ein fehlender String (hmmmm …).
Speedy01
Ja, also

Hier erstmal die board.php

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:
87:
88:
89:
<?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-02-28 13:51:28 +0100 (Mon, 28 Feb 2005) $
// * $Author: Burntime $
// * $Rev: 1559 $
// ************************************************************************************//


$filename 'board.php';

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

if ($showuseronlineinboard == || $showuseronlineonboard == 1) {
    include('./acp/lib/class_useronline.php');
}

if (!isset($boardid)) error($lang->get("LANG_GLOBAL_ERROR_FALSELINK", array('$adminmail' => $adminmail)));

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'] == 1encode_cookie('hidecats'time() + 3600 24 365false);
    else encode_cookie('hidecats');
}
if (isset($_GET['showcat'])) {
    $hidecats[$_GET['showcat']] = 0;
    if ($wbbuserdata['usecookies'] == 1encode_cookie('hidecats'time() + 3600 24 365false);
    else encode_cookie('hidecats');
}




/** redirect to external url if given **/
if ($board['externalurl'] != '') {
    header("Location: $board[externalurl]");
    exit;
}


$boardnavcache = array();
/**
* board has got subboards..
*/
if ($board['childlist'] != '0') {
    $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;
        $boardnavcache[$row['boardid']] = $row;
        $boardvisit[$row['boardid']] = $row['lastvisit'];
    }


und hier die login.php

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:
<?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: 2004-10-20 13:24:57 +0200 (Wed, 20 Oct 2004) $
// * $Author: Burntime $
// * $Rev: 1453 $
// ************************************************************************************//


$filename 'login.php';
require('./global.php');
$lang->load('USERCP');

if ($wbbuserdata['userid']) access_error();

if (isset($_POST['send'])) {
    $result getwbbuserdata($_POST['l_username'], "username");
    if ($allowloginencryption == && $_POST['crypted'] == "true" && $result['sha1_password']) {
        $authentificationcode sha1(sha1($session['authentificationcode']).$result['sha1_password']);
        if (!$result['userid'] || $authentificationcode != $_POST['authentificationcode']) {
            unset($result);
            unset($authentificationcode);
        }
        else $wbb_userpassword $result['password'];
    }
    else {
        $wbb_userpassword md5($_POST['l_password']);
        if (!$result['userid'] || $result['password'] != $wbb_userpassword) unset($result);
        else {
            if (!$result['sha1_password']) $db->unbuffered_query("UPDATE bb".$n."_users SET sha1_password='".sha1($_POST['l_password'])."' WHERE userid='$result[userid]'");
        }
    }
    
    if (isSet($result['userid']) && $result['userid']) {
        $wbb_username htmlconverter($result['username']);
        if ($result['usecookies'] == 1) {
            bbcookie("userid""$result[userid]"time() + 3600 24 365);
            bbcookie("userpassword""$wbb_userpassword"time() + 3600 24 365);
        }
        $db->unbuffered_query("DELETE FROM bb".$n."_sessions WHERE userid = '$result[userid]'"1);
        $db->unbuffered_query("UPDATE bb".$n."_sessions SET userid = '$result[userid]', authentificationcode='', styleid='".$result['styleid']."' WHERE sessionhash = '$sid'"1); 
        unset($session['authentificationcode']);
        
        /** convert url -> remove session hash **/
        function convert_url($url$hash) {
             return preg_replace("/[0-9a-z]{32}/", (($hash != '') ? ($hash) : ("")), $url);
        } 
                
        if (isset($_POST['url']) && $_POST['url'] && strstr($_POST['url'], "?")) $url convert_url($_POST['url'], $session['hash']);
        else $url "index.php" $SID_ARG_1ST;
        
        redirect($lang->get("LANG_USERCP_LOGIN_REDIRECT", array('$wbb_username' => $wbb_username)), $url);
        exit;
    }
    else {
        $db->unbuffered_query("UPDATE bb".$n."_sessions SET authentificationcode='' WHERE sessionhash = '$sid'"1);
        unset($session['authentificationcode']);
        error($lang->items['LANG_USERCP_LOGIN_ERROR']);
    }
}
else {
    eval("\$tpl->output(\"".$tpl->get("login")."\");"); 
}
?>


mfG
Phillip
Ghostmaster
Schau mal in der board.php in der Zeile 418 und schau mal welches Templates dort ausgegeben wird (denke mal die board.tpl)

Die hänge mal hier an bitte.