00001 <?php
00002
00003
00004
00005
00006
00007
00008 include_once('CAS/CAS.php');
00009
00010
00011 phpCAS::client(CAS_VERSION_2_0,'sso-cas.univ-rennes1.fr',443,'');
00012
00013
00014 phpCAS::setLang(PHPCAS_LANG_FRENCH);
00015
00016
00017 phpCAS::forceAuthentication();
00018
00019
00020
00021
00022
00023
00024
00025
00026 ?>
00027 <html>
00028 <head>
00029 <title>Exemple d'internationalisation de phpCAS</title>
00030 </head>
00031 <body>
00032 <h1>Authentification réussie !</h1>
00033 <p>L'utilisateur connecté est <b><?php echo phpCAS::getUser(); ?></b>.</p>
00034 <p>La version de phpCAS est <b><?php echo phpCAS::getVersion(); ?></b>.</p>
00035 </body>
00036 </html>