change_pass($fPassword_current, $fPassword)) { flash_info($PALANG['pPassword_result_success']); header("Location: main.php"); exit(0); } else { $tMessage = $PALANG['pPassword_result_error']; } } } $smarty->assign ('USERID_USERNAME', $username); //$smarty->assign ('pPassword_admin_text', $pPassword_admin_text); $smarty->assign ('pPassword_password_current_text', $pPassword_password_current_text, false); $smarty->assign ('pPassword_password_text', $pPassword_password_text, false); $smarty->assign ('tMessage', $tMessage, false); $smarty->assign ('smarty_template', 'users_password'); $smarty->display ('index.tpl'); /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */ ?>