I have had an form App to edit user password. It worked fine. After some SC updates I cannot use it anymore. I get errors (although nothing was changed in this App).
Parse error: syntax error, unexpected '$this' (T_VARIABLE), expecting '(' in C:\Program Files (x86)\NetMake\v81\wwwroot\scriptcase\app\TECREP\fm_sec_user_password\fm_sec_user_password_apl.php on line 5220
It is really hard to figure out what’s wrong in the code when simple form has 52 thousand lines!
here is a fragment…
function COID_onChange($coid)
{
$_SESSION['scriptcase']['fm_sec_user_password']['contr_erro'] = 'on';
$original_coid = $this->coid;
$original_coid = $this->coid;
if $this->coid !== 0
{
{$WOID}=0;
{$CUID}=0;
}
$modificado_coid = $this->coid;
$modificado_coid = $this->coid;
$this->nm_formatar_campos('coid');
if ($original_coid !== $modificado_coid || (isset($bFlagRead_coid) && $bFlagRead_coid))
{
$this->ajax_return_values_coid(true);
}
if ($original_coid !== $modificado_coid || (isset($bFlagRead_coid) && $bFlagRead_coid))
{
$this->ajax_return_values_coid(true);
}
fm_sec_user_password_pack_ajax_response();
exit;
highlighted line 5220
any ideas ?
PS-------------------------------------------------------------------------------------------------------
I exported 2 zipped Apps for NetMake or anybody who would like to test it but unfortunately I do not see an option to upload ZIP file here (hwich is very bad).
Below is a SQL script to create a table. This is basiacally original Security Module table with few extra fields added
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE IF NOT EXISTS `sec_users` (
`login` varchar(32) COLLATE utf8_bin NOT NULL,
`pswd` varchar(32) COLLATE utf8_bin NOT NULL,
`name` varchar(64) COLLATE utf8_bin DEFAULT NULL,
`email` varchar(64) COLLATE utf8_bin DEFAULT NULL,
`active` varchar(1) COLLATE utf8_bin DEFAULT NULL,
`activation_code` varchar(32) COLLATE utf8_bin DEFAULT NULL,
`priv_admin` varchar(1) COLLATE utf8_bin DEFAULT NULL,
`COID` int(11) DEFAULT NULL COMMENT 'Accociates Only',
`WOID` int(11) DEFAULT NULL COMMENT 'Workers Only',
`CUID` int(11) DEFAULT NULL COMMENT 'Customers Only',
PRIMARY KEY (`login`),
UNIQUE KEY `email` (`email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;