example_html.php
<?php
include_once('CAS.php');
phpCAS::client(CAS_VERSION_2_0,'sso-cas.univ-rennes1.fr',443,'');
phpCAS::setNoCasServerValidation();
phpCAS::setHTMLHeader('
<html>
<head>
<title>__TITLE__</title>
</head>
<body>
<h1>__TITLE__</h1>
');
phpCAS::setHTMLFooter('
<hr>
<address>
phpCAS __PHPCAS_VERSION__,
CAS __CAS_VERSION__ (__SERVER_BASE_URL__)
</address>
</body>
</html>
');
phpCAS::forceAuthentication();
?>
<html>
<head>
<title>phpCAS simple client with HTML output customization</title>
</head>
<body>
<h1>Successfull Authentication!</h1>
<p>the user's login is <b><?php echo phpCAS::getUser(); ?></b>.</p>
<p>phpCAS version is <b><?php echo phpCAS::getVersion(); ?></b>.</p>
</body>
</html>