If you generate a security module you have the following codesnippet generated in the onvalidateok:
sc_apl_conf($rs->fields[0], 'insert', has_priv($rs->fields[2]));
sc_apl_conf($rs->fields[0], 'delete', has_priv($rs->fields[3]));
sc_apl_conf($rs->fields[0], 'update', has_priv($rs->fields[4]));
//export
$export_permission = 'btn_display_'. has_priv($rs->fields[5]);
sc_apl_conf($rs->fields[0], $export_permission, 'xls');
this generates:
}
1642|
1643| $_SESSION['scriptcase']['sc_apl_conf'][$this->rs->fields[0]]['insert'] = 'has_priv($this->rs->fields[2]');
1644| $_SESSION['scriptcase']['sc_apl_conf'][$this->rs->fields[0]]['delete'] = 'has_priv($this->rs->fields[3]');
1645| $_SESSION['scriptcase']['sc_apl_conf'][$this->rs->fields[0]]['update'] = 'has_priv($this->rs->fields[4]');
1646|
If you look at the code the ‘)’ is generated after the quote in stead of before the quote causing a syntax error if you want to run it:
Parse error: syntax error, unexpected ‘)’ in D:\Software\NetMake\v8\wwwroot\scriptcase\app\DOHMWeb\main_logon\main_logon_apl.php on line 1644
this is a ***very *** serious problem which needs attention ASAP!!