Problems installing; extraction? [message #17549] |
Fri, 02 April 2004 23:12 |
Beans_v6
Messages: 1 Registered: April 2004
Karma: 0
|
Junior Member |
|
|
I was trying to install FUDforum, and it wouldn't work because it needed mysql "post" privilages. My host won't let me "post" so I had to comment that code. Doing so made the checksums wrong, so I commented the checksum checkers out too. Now, apparently while extracting the files, something weird happened... and now I'm not sure why, but it gives a
Parse error: parse error, unexpected T_STRING in /home/thebeans/wwwdocs/forums/index.php on line 282
message. Comparing the install.php codes and the index.php codes, I determined that it skipped quite a few lines; jumping from db_li() to the middle of ses_make_sysid.
This is the code around the area:
...
function db_li($q, &$ef, $li=0)
{
$r = mysql_query($q, fud_sql_lnk);
if ($r) {
return ($lifunction ses_make_sysid()
{
if ($GLOBALS['FUD_OPT_2'] & 256) {
return;
}
$keys = array('HTTP_USER_AGENT', 'SERVER_PROTOCOL', 'HTTP_ACCEPT_CHARSET', 'HTTP_ACCEPT_ENCODING', 'HTTP_ACCEPT_LANGUAGE');
if ($GLOBALS['FUD_OPT_3'] & 16 && strpos($_SERVER['HTTP_USER_AGENT'], 'AOL') === false) {
$keys[] = 'HTTP_X_FORWARDED_FOR';
$keys[] = 'REMOTE_ADDR';
}
$pfx = '';
foreach ($keys as $v) {
if (isset($_SERVER[$v])) {
$pfx .= $_SERVER[$v];
}
}
return md5($pfx);
}
function &ses_get($id=0)
{
...
I've downloaded the archive (from this site) twice and extracted it and re-made the changes: same result...
|
|
|
|