44 |
|
|
45 |
} else { |
} else { |
46 |
|
|
47 |
header("location:http://" . $opt_server . $opt_loc_path . "edit.php?id=" . $id); |
header("location:http://" . $opt_server . $opt_loc_path . "index.php?page=edit&id=" . $id); |
48 |
|
|
49 |
} |
} |
50 |
|
|
54 |
|
|
55 |
} |
} |
56 |
|
|
|
} elseif (isset($btn_password)) { |
|
|
|
|
|
$sent_mail = email_password($id); |
|
|
|
|
57 |
} |
} |
58 |
|
|
|
// if an attempt to send email was made |
|
|
if (isset($sent_mail)) { |
|
|
|
|
|
// if the attempt was successful |
|
|
if($sent_mail) { |
|
|
|
|
|
echo "<b>Succesfull!</b><br>"; |
|
|
echo "Your password was emailed to the address in our database"; |
|
|
echo "<BR><BR>"; |
|
|
|
|
|
} else { |
|
|
|
|
|
echo "<b>Error...</b><br>"; |
|
|
echo "We encountered a problem trying to email you your password"; |
|
|
echo "<BR><BR>"; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
59 |
?> |
?> |
60 |
<FORM action="index.php" method="post"> |
<FORM action="index.php" method="post"> |
61 |
|
|
66 |
<TBODY> |
<TBODY> |
67 |
<TR> |
<TR> |
68 |
<TD><B>Username:</B></TD> |
<TD><B>Username:</B></TD> |
69 |
<TD><INPUT type="text" name="username" size=20></TD> |
<TD><INPUT type="text" name="username" size=10></TD> |
70 |
</TR> |
</TR> |
71 |
|
|
72 |
<TR> |
<TR> |
75 |
</TR> |
</TR> |
76 |
|
|
77 |
<TR> |
<TR> |
78 |
<TD colspan=2 align=right><INPUT type="submit" name="btn_password" value="email password" class="button"> <INPUT type="submit" name="submit" value="login >>" class="button" default=true></TD> |
<TD colspan=2 align=right><INPUT type="submit" name="submit" value="login >>" class="button" default=true></TD> |
79 |
</TR> |
</TR> |
80 |
|
|
81 |
</TBODY> |
</TBODY> |