Quote:
Originally Posted by Cap'n Steve
Could you tell me what's on those lines mentioned in the Zoint's error messages?
|
Parse error: syntax error, unexpected T_STRING in /home/allswac1/public_html/forum/z/includes/external_auth/vbulletin36.php(116) : eval()'d code on line 3
vbulletin36.php
--------------------
Here is line 3 on vbulletin36.php:
define('THIS_SCRIPT', 'Zoints'); # fix for vbportal's lack of vbulletin compatibility
Here is line 116:
eval('$headinclude = "' . fetch_template('headinclude') . '";');
** Should line 116 have this? '";'); I am not a programmer but looks weird
----------------------
Cannot modify header information - headers already sent by (output started at /home/allswac1/public_html/forum/z/includes/external_auth/vbulletin36.php(116) : eval()'d code:3) in /z/includes/zoints.php on lines (341 + 342 + 343)
zoints.php
--------------
Line 341 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
Line 342 header("Pragma: no-cache");
Line 343 header("Cache-Control: no-cache, must-revalidate");
Lines 335-350 if this helps:
if (is_a($this->_user, 'z_user') AND $this->_user->usergroup('zointsadmin') AND !$this->_config['userstyles'])
{
$this->_config['userstyles_off'] = 1;
$this->_config['userstyles'] = 1;
}
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header("Pragma: no-cache");
header("Cache-Control: no-cache, must-revalidate");
if (!defined('z_install'))
{
$this->_template->_navbar->init();
}
---------------
Warning: Cannot modify header information - headers already sent by (output started at /home/allswac1/public_html/forum/z/includes/external_auth/vbulletin36.php(116) : eval()'d code:3) in /z/includes/functions.php on lines (100+103)
function.php
---------------
Line 100 header("HTTP/1.1 301 Moved Permanently");
Line 103 header("Location: $url");
This is lines 82-105 if this helps:
// check if it's a full url, ie http://
if (!preg_match('#^[a-z]+://#i',$url))
{
$dir = dirname($_SERVER['PHP_SELF']);
if (substr($url,0,1) != '/' AND substr($dir,-1,1) != '/')
{
$dir .= '/';
}
$url = (($_SERVER["SERVER_PORT"] == 443)?'https://':'http://') . $_SERVER['HTTP_HOST'] . $dir . $url;
}
if (strpos($url, '&'))
{
$url = str_replace('&', '&', $url);
}
if ($threeohone)
{
header("HTTP/1.1 301 Moved Permanently");
}
header("Location: $url");
exit;
}
--------------------------------------------------------------
I hope this helps, like I said. The quotes works perfectly on the forums page but I would like it to be on other pages too like this. It does this after adding the global plugin but it doesn't allow the zoints profile's to work anymore.