Page MenuHomec4science

test.php
No OneTemporary

File Metadata

Created
Tue, Jul 1, 09:08

test.php

<?php
require_once("tequila.php");
$client = new TequilaClient("https://tequila.epfl.ch", 86400, "Les Élèves vont à l\'école", "http://localhost:8000/test.php");
$client->authenticate(
array('name','firstname','unit', 'unitid', 'where', 'group', 'email', 'title'),
// "org=EPFL&firstname=John&unit=SC-PME&where=SC-PME/SC-S/ETU/EPFL/CH&group=inbc"
);
echo <<<EOT
<html>
<head>
<title>Test Tequila</title>
</head>
<body>
<h3>Test Tequila :</h3>
<pre>
EOT;
echo "\nCookies = ";
print_r($_COOKIE);
echo "\nSession = ";
print_r($_SESSION);
echo <<<EOT
</pre>
<p>
<a href="{$_SERVER['PHP_SELF']}">Test session key</a><br/>
</body>
</html>
EOT;

Event Timeline