Starting with a fresh copy of online.php I tried the edits a few times and still get the same error:
Quote:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/mysite/public_html/forum/online.php on line 442
|
line 442 is:
Code:
$frmjmpsel['wol'] = ' selected="selected" class="fjsel"';
Here is the code that is listed above and below that area
Code:
$metarefresh .= "\n</script>\n";
}
else
{
/* [START] [Resolve Ip Switch Hack] [ID:5] */
$metarefresh = "<meta http-equiv=\"refresh\" content=\"$vboptions[WOLrefresh]; url=online.php?$session[sessionurl]order=$sortorder&sort=$sortfield&pp=$perpage&page= $pagenumber" . iif($who, "&who=$who") . iif($showua, '&ua=1') . iif($showlsv, '&rslv=1') . "\" /> ";
/* [END] [Resolve Ip Switch Hack] [ID:5] */";
}
}
$frmjmpsel['wol'] = ' selected="selected" class="fjsel"';
construct_forum_jump();
/* [START] [Resolve Ip Switch Hack] [ID:6] */
$pagenav = construct_page_nav($totalonline, "online.php?$session[sessionurl]sort=$sortfield&order=$sortorder&pp=$perpage" . iif($who, "&who=$who") . iif($showua, '&ua=1') . iif($showlsv, '&rslv=1'));
/* [END] [Resolve Ip Switch Hack] [ID:6] */
$numbervisible += $numberinvisible;
Then I uploaded a virgin copy of online.php, and went to that page on my site, and I am able to resolve IP's etc., so the edits in the online.php are needless, as far as I can see since the hack works fine without them, which means it is a template mod.