Login (Default): Password Reset functionality (requires PHP mcrypt library, Enhanced & Minimized themes only, enable in Default Settings).

This commit is contained in:
Nate Jones
2014-12-06 17:53:29 +00:00
parent 241542bd9d
commit 0147c9bf2f
6 changed files with 457 additions and 30 deletions

View File

@@ -120,6 +120,13 @@ if (
?>
}
A.login_box_link {
font-size: 11px;
text-shadow: 0 0 2px <?php echo ($_SESSION['theme']['login_background_color']['text'] != '') ? $_SESSION['theme']['login_background_color']['text'] : "#fff"; ?>;
cursor: pointer;
text-decoration: underline;
}
DIV#footer {
background-color: <?php echo $_SESSION['theme']['footer_background_color']['text']; ?>;
bottom: 0;
@@ -1052,7 +1059,7 @@ legend {
</script>
<script language="JavaScript" type="text/javascript">
function display_message(msg, mood) {
function display_message(msg, mood, delay = <?php echo (1000 * (float) $_SESSION['theme']['message_delay']['text']); ?>) {
mood = typeof mood !== 'undefined' ? mood : 'default';
if (msg != '') {
// insert temp div to get width w/o scroll bar
@@ -1067,8 +1074,8 @@ legend {
$("#message_text").html(msg);
$("#message_container").css({height: $("#message_text").css("height")});
$("#message_container").css({width: inner_width});
$("#message_text").show().animate({top: '+=80'}, 500).animate({opacity: 1}, 'fast').delay(<?php echo (1000 * (float) $_SESSION['theme']['message_delay']['text']); ?>).animate({top: '-=80'}, 1000).animate({opacity: 0});
$("#message_container").show().animate({top: '+=80'}, 500).animate({opacity: <?php echo $_SESSION['theme']['message_opacity']['text']; ?>}, 'fast').delay(<?php echo (1000 * (float) $_SESSION['theme']['message_delay']['text']); ?>).animate({top: '-=80'}, 1000).animate({opacity: 0}, function() {
$("#message_text").show().animate({top: '+=80'}, 500).animate({opacity: 1}, 'fast').delay(delay).animate({top: '-=80'}, 1000).animate({opacity: 0});
$("#message_container").show().animate({top: '+=80'}, 500).animate({opacity: <?php echo $_SESSION['theme']['message_opacity']['text']; ?>}, "fast").delay(delay).animate({top: '-=80'}, 1000).animate({opacity: 0}, function() {
$("#message_container").removeClass('message_container_mood_'+mood);
});
}
@@ -1113,13 +1120,15 @@ legend {
if (strlen($_SESSION['message']) > 0) {
$message_text = addslashes($_SESSION['message']);
$message_mood = $_SESSION['message_mood'];
$message_delay = $_SESSION['message_delay'];
$onload .= "display_message('".$message_text."'";
if ($message_mood != '') {
$onload .= ", '".$message_mood."'";
$onload .= ($message_mood != '') ? ", '".$message_mood."'" : ", 'default'";
if ($message_delay != '') {
$onload .= ", '".$message_delay."'";
}
$onload .= "); ";
unset($_SESSION['message'], $_SESSION['message_mood']);
unset($_SESSION['message'], $_SESSION['message_mood'], $_SESSION['message_delay']);
}
?>