Some cleanups

This commit is contained in:
paca70
2004-09-21 13:20:13 +00:00
parent 8f0cd6ef0f
commit c29890b5d8
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -95,6 +95,6 @@ $string['stdchangepassword'] = 'Use standard Change Password Page';
$string['stdchangepassword_expl'] = 'If the external authentication system allows password changes through Moodle, switch this to Yes. This setting overrides \'Change Password URL\'.';
$string['stdchangepassword_explldap'] = 'NOTE: It is recommended that you use LDAP over an SSL encrypted tunnel (ldaps://) if the LDAP server is remote.';
$string['forcechangepassword'] = 'Force change password';
$string['forcechangepassword_help'] = 'Force users to change password on their first login to Moodle.';$string['guestloginbutton'] = 'Guest login button';
$string['forcechangepassword_help'] = 'Force users to change password on their next login to Moodle.';$string['guestloginbutton'] = 'Guest login button';
?>
+4 -3
View File
@@ -56,16 +56,17 @@ if (isadmin()) {
}
echo " </td>";
echo "</tr>\n";
if(!$adminself && ($CFG->{'auth_'.$user->auth.'_stdchangepassword'} || $CFG->changepassword)){
if(!$adminself && (isset($CFG->{'auth_'.$user->auth.'_stdchangepassword'}) || $CFG->changepassword)){
echo "<tr>";
echo '<td align=right><p>'.get_string('forcepasswordchange').':</td>';
echo '<td><input type="checkbox" name="forcepasswordchange" />'.get_string('forcepasswordchange_help').'</td>';
echo '<td align=right><p>'.get_string('forcechangepassword', 'auth').':</td>';
echo '<td><input type="checkbox" name="forcepasswordchange" />'.get_string('forcechangepassword_help','auth').'</td>';
echo "</tr>";
}
echo "<tr><td colspan=\"2\"><hr /></td></tr>";
}
}
?>
<tr valign="top">
<td align="right"><?php print_string("firstname") ?>:</td>