a:3:{i:0;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:15:"app_change_pswd";s:4:"nome";s:9:"onLoadAll";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:201:"if(isset([act_code]) && !empty([act_code]))
{
	sc_field_display({old_pswd}, 'off');
	sc_btn_display("exit","off");
}
else
{
	sc_field_display({old_pswd}, 'on');
	sc_btn_display("exit","on");
}";}i:1;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:15:"app_change_pswd";s:4:"nome";s:10:"onValidate";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:715:"if( (!isset({old_pswd}) || empty({old_pswd}) ) && (!isset([act_code]) || empty([act_code]) ) )
{
	sc_error_message({lang_error_old_pswd});
	sc_error_exit();	
}
if({pswd} != {confirm_pswd})
{
	sc_error_message({lang_error_pswd});
	sc_error_exit();
}

$spswd = sc_sql_injection(({pswd}));
$sold_pswd = (isset([act_code]) && !empty([act_code])) ? "activation_code= ". sc_sql_injection([act_code]) :" pswd = ". sc_sql_injection(({old_pswd}));
unset([act_code]);


$sql = "SELECT count(*) FROM sec_users WHERE ". $sold_pswd ." AND login = ". sc_sql_injection([usr_login]);
sc_lookup(rs, $sql);

if({rs} === FALSE || {rs[0][0]} == 0)
{
	sc_error_message({lang_error_old_pswd});
	sc_error_exit();	
}";}i:2;a:7:{s:7:"cod_prj";s:7:"Veratex";s:6:"versao";s:1:"1";s:7:"cod_apl";s:15:"app_change_pswd";s:4:"nome";s:17:"onValidateSuccess";s:4:"tipo";s:1:"E";s:5:"parms";s:0:"";s:6:"codigo";s:250:"	$sql = "UPDATE sec_users SET pswd = ".$spswd ." WHERE login = ". sc_sql_injection([usr_login]); 

	sc_exec_sql($sql);
	sc_log_add('Change Password', [usr_login] ." ". {lang_change_pswd});
	[act_code] = '';
	sc_redir('app_Login', '', '_parent');";}}