[insert_php]
print ‘You are using ‘ . $_SERVER[‘HTTP_USER_AGENT’] . ‘ from ‘
. $_SERVER[‘REMOTE_ADDR’] . ‘ (‘
. gethostbyaddr($_SERVER[‘REMOTE_ADDR’]) . ‘).’;
[/insert_php]
Certificate Detection
[insert_php]
if (@$_SERVER[‘SSL_CLIENT_S_DN_CN’]) {
print ‘Welcome, ‘ . $_SERVER[‘SSL_CLIENT_S_DN_CN’] . ‘.
‘
. ‘A certificate for ‘ . $_SERVER[‘SSL_CLIENT_S_DN_Email’] . ‘‘
. ‘, issued by the ‘ . $_SERVER[‘SSL_CLIENT_I_DN_O’]
. ‘, is correctly installed on your browser.
‘
. ‘Your certificate will expire on ‘ . $_SERVER[‘SSL_CLIENT_V_END’] . ‘.’;
} else {
?>No certificate has been detected. Please ensure you are accessing
https://geofft.scripts.mit.edu:444/detect.php.[/insert_php]