$filename = 'thread.php';
require "./ab_config.php";
<if($wbbuserdata['userid'])><then> | <a href="misc.php?action=whoread&threadid=$threadid{$SID_ARG_2ND}" onClick="window.open('misc.php?action=whoread&threadid=$threadid{$SID_ARG_2ND}','_blank','toolbar=no,location=no,menubar=no,scrollbars=yes,width=640,height=480,resizeable=yes,status=no');return false" target="_blank" title="Zeige User, die das Thema gelesen haben">Watchlist</a></then></if>
<if($wbbuserdata['userid'] && !in_array($board[boardid], $anonymous_board))><then> | <a href="misc.php?action=whoread&threadid=$threadid{$SID_ARG_2ND}" onClick="window.open('misc.php?action=whoread&threadid=$threadid{$SID_ARG_2ND}','_blank','toolbar=no,location=no,menubar=no,scrollbars=yes,width=640,height=480,resizeable=yes,status=no');return false" target="_blank" title="Zeige User, die das Thema gelesen haben">Watchlist</a></then></if>
/** Who-read-this-thread (c) Mr Hatch/rellek **/
if($action=="whoread"){
if(!isset($threadid)) error($lang->get("LANG_GLOBAL_ERROR_FALSELINK", array('$adminmail' => $adminmail)));
/** Who-read-this-thread (c) Mr Hatch/rellek **/
if($action=="whoread"){
if(!isset($threadid)) error($lang->get("LANG_GLOBAL_ERROR_FALSELINK", array('$adminmail' => $adminmail)));
require "./ab_config.php";
$brett = $db->query_first("SELECT boardid FROM bb".$n."_threads WHERE threadid = '".intval($threadid)."'");
if(in_array($brett[boardid], $anonymous_board)) error($lang->get("LANG_GLOBAL_ERROR_WRTT_NOT_ANONYMOUS"));
case "board.php":
if (isset($this->useronlinecache[$this->counter]['boardid']) && isset($this->boardcache[$this->useronlinecache[$this->counter]['boardid']])) {
$boardid = $this->useronlinecache[$this->counter]['boardid'];
if(!in_array($boardid, $anonymous_board)) {
$title = $this->boardcache[$boardid];
$location = $lang->get("LANG_WIW_FILE_BOARD", array('$boardid' => $boardid, '$SID_ARG_2ND' => $SID_ARG_2ND, '$title' => $title));
} else {
$location = $lang->get("LANG_WIW_FILE_UNKNOWN");
}
}
else $location = $lang->get("LANG_WIW_FILE_UNKNOWN");
break;
case "board.php":
if (isset($this->useronlinecache[$this->counter]['boardid']) && isset($this->boardcache[$this->useronlinecache[$this->counter]['boardid']])) {
$boardid = $this->useronlinecache[$this->counter]['boardid'];
if(!in_array($boardid, $anonymous_board)) {
$title = $this->boardcache[$boardid];
$location = $lang->get("LANG_WIW_FILE_BOARD", array('$boardid' => $boardid, '$SID_ARG_2ND' => $SID_ARG_2ND, '$title' => $title));
} else {
$location = $lang->get("LANG_WIW_FILE_INDEX", array('$SID_ARG_1ST' => $SID_ARG_1ST));
break;
}
}
else $location = $lang->get("LANG_WIW_FILE_UNKNOWN");
break;