<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)):
$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';