a:3:{i:0;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:23:"app_form_sec_users_apps";s:4:"nome";s:17:"onApplicationInit";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:132:"$str_sql = "SELECT login FROM sec_users WHERE login = ". sc_sql_injection([login]);
sc_lookup(rs, $str_sql);
[login] = {rs}[0][0];";}i:1;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:23:"app_form_sec_users_apps";s:4:"nome";s:6:"onInit";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:286:"$check_sql = "SELECT app_name, app_type"
	   . " FROM sec_apps";

sc_select(rs, $check_sql);
[arr_apps] = array();

if ($rs !== FALSE)     // Row found
{
    while(!$rs->EOF)
    {
	[arr_apps][ $rs->fields[0] ] = $rs->fields[1];
	$rs->MoveNext();
    }
    $rs->Close();
}";}i:2;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:23:"app_form_sec_users_apps";s:4:"nome";s:8:"onRecord";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:422:"if( isset( [arr_apps][ {app_name} ] ) )
{
	switch(trim([arr_apps][ {app_name} ]))
	{
		case 'form':
		break;
		case 'calendar':
			sc_field_disabled_record("priv_export; priv_print");
		break;
		case 'cons':
			sc_field_disabled_record("priv_insert; priv_delete; priv_update");
		break;
		default:
			sc_field_disabled_record("priv_insert; priv_delete; priv_update; priv_export; priv_print");
		break;
	}
}";}}