Actually, there are several ''' used throughout the program and none of them have the same problem. Additionally, the file wasn't changed by the user. I also have a similar issue.
It's with mambo though. I'll try to figure out the problem.
I'm pretty sure some gloabl element has caused these errors. Maybe a server configuration change.
/**
* TFS for MAMBO Class
* @package TFSforMAMBO
* @copyright 2003-2005 PJH Diender
* @license
http://www.gnu.org/copyleft/gpl.html. GNU Public License
* @version $Revision: 2.0.1 $
* @author Patrick Diender <webmaster@caffeinecoder.net>
*/
//ensure this file is being included by a parent file
defined('_VALID_MOS') or die ('Direct Access to this location is not allowed.');
class TFS_Engine
{
var $d = null; //day
var $m = null; //month
var $y = null; //year
var $dom = null; // domain
var $vid = null; // visitors id
var $updatemsg= null; //update message used for purge
var $language = null; //language setting
var $langini = null; //language setting ini file
var $hourdiff = null; //hourdiff local vs server
var $onlinetime = null; //time online in minutes before new visitor
var $startoption = null; //option for starting statistics
var $purgetime = null; //time for purge database
var $version = null; //version of script
var $MainFrame = null; //mainframe object MOS
var $task = null; //task for TFS_Engine
function TFS_Engine(&$mainframe,$task)
{
global $mosConfig_offset;
$this->MainFrame = &$mainframe;
$this->task = $task;
$sql = "SELECT SQL_BIG_RESULT * FROM #__TFS_configuration";
$this->MainFrame->_db->setQuery($sql);
$rs = mysql_query($this->MainFrame->_db->_sql);
$this->hourdiff = $mosConfig_offset;
while($row = mysql_fetch_array($rs))
{
if ($row['description'] == 'onlinetime')
{
$this->onlinetime = $row['value'];
}
if ($row['description'] == 'startoption')
{
$this->startoption = $row['value'];
}
if ($row['description'] == 'language')
{
$this->langini = $row['value'];
}
if ($row['description'] == 'purgetime')
{
$this->purgetime = $row['value'];
}
if ($row['description'] == 'version')
{
$this->version = $row['value'];
}
}
mysql_free_result($rs);
if(file_exists($this->MainFrame->_config->absolute_path.'/administrator/components/com_tfsformambo/language/'.$this->langini.'.ini.php'))
{
//include language support
$this->language = parse_ini_file($this->MainFrame->_config->absolute_path.'/administrator/components/com_tfsformambo/language/'.$this->langini.'.ini.php',true);
}
else
{
//include language support
$this->language = parse_ini_file($this->MainFrame->_config->absolute_path.'/administrator/components/com_tfsformambo/language/en.ini.php',true);
}
// calculate time diff from server time to local time
$visittime = (time() + ($this->hourdiff * 3600));
if(!isset($_GET['d']))
{
$this->d = date('j',$visittime);
}
else
{
$this->d = $_GET['d'];
}
Again this is a parse error and I have never edited this file. It worked a few days ago but not now.
Parse error: parse error, unexpected T_VARIABLE, expecting ',' or ';' in /home/xxxxxxxx/public_html/xxxxx/xxxxxxxxx/components/com_tfsformambo/admin.tfsformambo.html.php on line 150