"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "forgot_password.php" between
opendocman-1.3.7.tar.gz and opendocman-1.3.8-release.tar.gz

About: OpenDocman is a document management system (DMS) designed to comply with ISO 17025 and OIE standard for document management (using PHP, MySQL).

forgot_password.php  (opendocman-1.3.7):forgot_password.php  (opendocman-1.3.8-release)
skipping to change at line 117 skipping to change at line 117
exit; exit;
} else { } else {
$userInfo = $stmt->fetch(); $userInfo = $stmt->fetch();
$user_id = $userInfo['id']; $user_id = $userInfo['id'];
// build the header and navigation // build the header and navigation
/* /*
ADD FORMATTING HERE ADD FORMATTING HERE
*/ */
if (strlen($_REQUEST['last_message'])) { $last_message = (isset($_REQUEST['last_message']) ? $_REQUEST['last_messa
draw_error($_REQUEST['last_message']); ge'] : '');
} draw_header(msg('forgot_password'), $last_message);
?> ?>
<p><?php echo msg('message_set_your_new_password')?></p> <p><?php echo msg('message_set_your_new_password')?></p>
<form action="forgot_password.php" method="post"> <form action="forgot_password.php" method="post">
<input type="hidden" name="action" value="forgot"> <input type="hidden" name="action" value="forgot">
<input type="hidden" name="user_id" value="<?php echo e::h($user_id) ; <input type="hidden" name="user_id" value="<?php echo e::h($user_id) ;
?>"> ?>">
<input type="hidden" name="username" value="<?php echo e::h($usernam e); <input type="hidden" name="username" value="<?php echo e::h($usernam e);
?>"> ?>">
skipping to change at line 145 skipping to change at line 144
<td><input type="password" name="password" size="12" maxlength="50"> </td> <td><input type="password" name="password" size="12" maxlength="50"> </td>
</tr> </tr>
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td><input type="submit" value="Reset Password"></td> <td><input type="submit" value="Reset Password"></td>
</tr> </tr>
</table> </table>
</form> </form>
<?php <?php
draw_footer();
// build the footer // build the footer
/* /*
ADD FORMATTING HERE ADD FORMATTING HERE
*/ */
} }
} elseif (isset($_POST['username']) && strlen($_POST['username']) > 0) { } elseif (isset($_POST['username']) && strlen($_POST['username']) > 0) {
// they have sent an username // they have sent an username
$username = trim($_POST['username']); $username = trim($_POST['username']);
skipping to change at line 228 skipping to change at line 228
} }
$redirect = 'forgot_password.php?last_message=' . urlencode(msg('message _an_email_has_been_sent')); $redirect = 'forgot_password.php?last_message=' . urlencode(msg('message _an_email_has_been_sent'));
header("Location: $redirect"); header("Location: $redirect");
exit; exit;
} }
} }
// default form // default form
else { else {
if (strlen($_REQUEST['last_message'])) { $last_message = (isset($_REQUEST['last_message']) ? $_REQUEST['last_messa
draw_error($_REQUEST['last_message']); ge'] : '');
} draw_header(msg('forgot_password'), $last_message);
?> ?>
<p><?php echo msg('message_this_site_has_high_security')?></p> <p><?php echo msg('message_this_site_has_high_security')?></p>
<form action="forgot_password.php" method="post"> <form action="forgot_password.php" method="post">
<table border="0"> <table border="0">
<tr> <tr>
<th><?php echo msg('username')?> :</th> <th><?php echo msg('username')?> :</th>
<td><input type="text" name="username" size="25" maxlength="25"></td> <td><input type="text" name="username" size="25" maxlength="25"></td>
</tr> </tr>
<tr> <tr>
<td>&nbsp;</td> <td>&nbsp;</td>
<td><input type="submit" value="Reset Password"></td> <td><input type="submit" value="Reset Password"></td>
</tr> </tr>
</table> </table>
</form> </form>
<?php <?php
draw_footer();
} }
 End of changes. 4 change blocks. 
6 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)