Mnet: Show that a key has expired.
This commit is contained in:
@@ -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)):
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user