[Wbblite] Brauche Code für Wbblite.Disen Code hat JEDER der Wbblite hat !

Fidi'lein
Hey liebe GB'ler smile
Ich habe [mal wieder] ein Problem mit wbblite :|

Wenn ich das Forum öffnen möchte [ http://dequi.de.ohost.de/wbblite/index.php ]

Kommt da sowas:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /usr/export/www/hosting/dequi/wbblite/index.php(116) : eval()'d code on line 4


Ich bin mir relativ sicher das das die richtige Adresse ist & wenn ich zwischen dem wbblite und index.php das acp einsetze (also http://dequi.de.ohost.de/wbblite/acp/index.php ) Kann ich mich halt anmedlen & zum ACP gehen , das geht aber das Forum nicht ..

Weiß jmd was da los ist ?

Vielen Dank im vorrasu smile

Eure Fidi
anna.
index.php reinstellen.
Fidi'lein
das ist da ja drinne ich stell mal den code rein.
Den code hat meine freundin eingefügt, kann ja seind as der falsch ist.

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:
<?php
$filename="index.php";

require("./global.php");

if(isset($_COOKIE['boardvisit'])) $boardvisit=decode_cookie($_COOKIE['boardvisit']);
else $boardvisit=array();

if(isset($_COOKIE['threadvisit'])) $threadvisit=decode_cookie($_COOKIE['threadvisit']);
else $threadvisit=array();

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

$activtime=time()-60*$useronlinetimeout;

$result = $db->query("
 SELECT
 b.*".ifelse($showlastposttitle==1,", t.topic, i.*")."
 FROM bb".$n."_boards b
 ".ifelse($showlastposttitle==1,"LEFT JOIN bb".$n."_threads t ON (t.threadid=b.lastthreadid)
 LEFT JOIN bb".$n."_icons i USING (iconid)")."
 ORDER by b.parentid ASC, b.boardorder ASC");
while ($row = $db->fetch_array($result)) $boardcache[$row['parentid']][$row['boardorder']][$row['boardid']] = $row;


$result = $db->query("SELECT boardid, threadid, lastposttime FROM bb".$n."_threads WHERE visible = 1 AND lastposttime > '$wbbuserdata[lastvisit]' AND closed <> 3");
while($row=$db->fetch_array($result)) $visitcache[$row['boardid']][$row['threadid']]=$row['lastposttime'];

$result = $db->query("SELECT * FROM bb".$n."_permissions WHERE groupid = '$wbbuserdata[groupid]'");
while ($row = $db->fetch_array($result)) $permissioncache[$row['boardid']] = $row;

$result = $db->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_useronline="";
$index_stats="";

/* ############## STATS ############## */
if($showstats==1) {
 $members=$db->query_first("SELECT COUNT(*) AS members, MAX(userid) AS userid FROM bb".$n."_users WHERE activation = 1");
 $newestmember=$db->query_first("SELECT userid, username FROM bb".$n."_users WHERE userid = '$members[userid]'");
 $posts=$db->query_first("SELECT COUNT(*) AS posts FROM bb".$n."_posts");
 $threads=$db->query_first("SELECT COUNT(*) AS threads FROM bb".$n."_threads");

 $installdays = (time() - $installdate) / 86400;
 if ($installdays < 1) $postperday = $posts['posts'];
 else $postperday = sprintf("%.2f",($posts['posts'] / $installdays));

 eval ("\$index_stats = "".$tpl->get("index_stats")."";");
}
/* ############## USERONLINE ############## */
if($showuseronline==1) {
 $guestcount=0;
 $membercount=0;
 $useronlinebit = '';
 $result = $db->query("SELECT bb".$n."_sessions.userid, username, groupid, invisible FROM bb".$n."_sessions LEFT JOIN bb".$n."_users USING (userid) WHERE bb".$n."_sessions.lastactivity >= '".(time()-60*$useronlinetimeout)."' ORDER BY username ASC");
 while($row = $db->fetch_array($result)) {
  if($row['userid']==0) {
   $guestcount++;
   continue;
  }
  $membercount++;
  	if(!$row['invisible']) {
  		if(isset($useronlinebit) && $useronlinebit != '') $useronlinebit .= ', ';
  		eval ("\$useronlinebit .= "".$tpl->get("index_useronline")."";");
  	}
 }
 $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($dateformat,$rekordtime);
 $rekordtime = formatdate($timeformat,$rekordtime);
 eval ("\$index_useronline = "".$tpl->get("index_showuseronline")."";");
}


if(!$wbbuserdata['userid']) {
 eval ("\$welcome = "".$tpl->get("index_welcome")."";");
 eval ("\$quicklogin = "".$tpl->get("index_quicklogin")."";");
}
else {
 $currenttime=formatdate($timeformat,time());
 $toffset=ifelse($default_timezoneoffset>=0,"+").$default_timezoneoffset;
 $lastvisitdate = formatdate($dateformat,$wbbuserdata['lastvisit']);
 $lastvisittime = formatdate($timeformat,$wbbuserdata['lastvisit']);
 eval ("\$welcome = "".$tpl->get("index_hello")."";");
 if($wbbuserdata['canusepms']==1 && $showpmonindex==1) {
  $counttotal=0; $countunread=0; $countnew=0;
  $result = $db->query("SELECT view, sendtime FROM bb".$n."_privatemessage WHERE deletepm <> 1 AND recipientid = '$wbbuserdata[userid]'");
  while($row=$db->fetch_array($result)) {
   $counttotal++;
   if($row['view']==0) {
    $countunread++;
    if($row['sendtime']>$wbbuserdata['lastvisit']) $countnew++;
   }
  }

  if($countnew>0) eval ("\$new_notnew = "".$tpl->get("index_newpm")."";");
  else eval ("\$new_notnew = "".$tpl->get("index_nonewpm")."";");
  eval ("\$index_pms = "".$tpl->get("index_pms")."";");
 }
}
eval("\$tpl->output("".$tpl->get("index")."");");
?>
Fidi'lein
Ich hab bei index.tpl son komischen Code. Nicht der richtige glaube ich. ...


code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
<?php
require ("./global.php");

if(!$wbbuserdata['canuseacp']) {
 if(isset($_COOKIE['wbb_userid'])) list($l_username) = $db->query_first("SELECT username FROM bb".$n."_users WHERE userid='".intval($_COOKIE['wbb_userid'])."'");
 else $l_username="";

 eval("print("".gettemplate("login")."");");
 exit();
}

if($wbbuserdata['canuseacp']==1) eval("print("".gettemplate("frameset")."");");
else eval("print("".gettemplate("frameset2")."");");
?>
Fidi'lein
Ich hab' das Problem immer noch !

Bitte helft mir !!
INSANITY
Ich frag mich gerade wie man im Template nen php code haben kann großes Grinsen
bzw. in der index.tpl
Fidi'lein
Keine Ahnung,
ich weiß jetzt was mein Fehler ist ..

Ich woltle n Hack einbauen hab den aber falsch eingebaut & der standart code ist wech ..
wäre jetzt nioch nett wenn mir jmd den standart code von der INDEX.TPL geben kann smile
Krissy*
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:
{!DOCTYPE}
<html>
<head>
<title>$master_board_name - Startseite</title>
$headinclude
</head>

<body id="bg">
 $header
 $welcome
</table><br>
<table cellpadding=4 cellspacing=1 border=0 width="{tableinwidth}" bgcolor="{tableinbordercolor}">
 <tr bgcolor="{tabletitlecolor}" id="tabletitle">
  <td><smallfont>&nbsp;</font></td>
  <td width="80%"><smallfont color="{fontcolorsecond}"><b>Foren</b></font></td>
  <td align="center"><smallfont color="{fontcolorsecond}"><b>Beitr&auml;ge</b></font></td>
  <td align="center"><smallfont color="{fontcolorsecond}"><b>Themen</b></font></td>
  <td align="center" nowrap><smallfont color="{fontcolorsecond}"><b>Letzter Beitrag</b></font></td>
  <td width="20%" align="center"><smallfont color="{fontcolorsecond}"><b>Moderatoren</b></font></td>
 </tr>
 $boardbit
</table>
<br>
<table cellpadding=4 cellspacing=1 border=0 width="{tableinwidth}" bgcolor="{tableinbordercolor}">
 $index_useronline
 $index_pms
 $index_showevents
 $index_stats
</table>
$quicklogin
<table width="{tableinwidth}">
 <tr>
  <td align="right"><smallfont><a href="search.php?action=24h&sid=$session[hash]">aktive Themen der letzten 24h</a> | <a href="markread.php?sid=$session[hash]">alle Foren als gelesen markieren</a></font></td>
 </tr>
</table><br>
<table align="center">
 <tr>
  <td><img src="{imagefolder}/on.gif" border=0></td>
  <td><smallfont>neue Beitr&auml;ge&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
  <td><img src="{imagefolder}/off.gif" border=0></td>
  <td><smallfont>keine neuen Beitr&auml;ge&nbsp;&nbsp;&nbsp;&nbsp;</font></td>
  <td><img src="{imagefolder}/offclosed.gif" border=0></td>
  <td><smallfont>Forum ist geschlossen</font></td>
 </tr>
</table>

$footer
</body>
</html>
Fidi'lein
Danke Danke Danke Danke
es geht wieder

*Unendlich viele Kekse rübergib*