Mnet: Show that a key has expired.

This commit is contained in:
donal72
2007-01-15 22:00:28 +00:00
parent 5577ceb354
commit 492d44e4f7
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -60,6 +60,18 @@ if (isset($mnet_peer->deleted) && $mnet_peer->deleted > 0) {
<textarea rows="17" cols="65" name="public_key" style="font-size: 8px;"><?php echo $mnet_peer->public_key; ?></textarea>
</td>
</tr>
<tr>
<td align="right" valign="top"><?php print_string('expires', 'mnet'); ?>:</td>
<td valign="top">
<?php
if($mnet_peer->public_key_expires < time()) {
print_string('expired', 'mnet');
echo ' ';
}
echo userdate($mnet_peer->public_key_expires);
?>
</td>
</tr>
<?php
if(!empty($currentkey)):
+1
View File
@@ -157,6 +157,7 @@ $string['https_self_signed_help'] = 'Permit connections using a self-signe
$string['hostexists'] = 'A record already exists for that host and Moodle deployment with ID $a.<br />Click on <em>Continue</em> to edit that record.';
$string['publickey'] = 'Public key';
$string['expires'] = 'Valid until';
$string['expired'] = 'This key expired on';
$string['publickey_help'] = 'The public key is automatically obtained from the remote server.';
$string['couldnotgetcert'] = 'No certificate found at <br />$a. <br />The host may be down or incorrectly configured.';
$string['ipaddress'] = 'IP address';