} else { $result = "answerchanged"; } } } #============================================================================== # HTML #============================================================================== ?> <div class="result <?php echo get_criticity($result); ?> "> <h2 class="<?php echo get_criticity($result); ?> "><?php echo $messages[$result]; ?> </h2> </div> <?php if ($result !== "answerchanged") { ?> <?php if ($show_help) { echo "<div class=\"help\"><p>"; echo $messages["setquestionshelp"];
<input type="submit" value="<?php echo $messages['submit']; ?> " /></td></tr> </table> </form> <?php if ($pwd_show_policy_pos === 'below') { show_policy($messages, $pwd_policy_config, $result); } ?> <?php } else { # Notify password change if ($mail and $notify_on_change) { $data = array("login" => $login, "mail" => $mail, "password" => $newpassword); if (!send_mail($mail, $mail_from, $messages["changesubject"], $messages["changemessage"], $data)) { error_log("Error while sending change email to {$mail} (user {$login})"); } } if (strlen($messages['passwordchangedextramessage']) > 0) { echo "<div class=\"result " . get_criticity($result) . "\">"; echo $messages['passwordchangedextramessage']; echo "</div>\n"; } } ?>