Logo Search packages:      
Sourcecode: webauth version File versions  Download package

test1.php

<?php 

$ru_env = getenv('REMOTE_USER');

print <<<EOS
<html>
<title>PHP test1</title>
<h2>PHP test1: test from PHP module</h2>
<hr>
all the webauth variables can be found in \$_SERVER or by calling
getenv<br><br>

<table border="1" cellpadding="3" >
 <tr align=center>
  <th>Name</th>
  <th>Value</th>
 </tr>
 <tr><td>\$_SERVER["AUTH_TYPE"]</td>  <td>{$_SERVER['AUTH_TYPE']}</td></tr>
 <tr><td>\$_SERVER["REMOTE_USER"]</td> <td>{$_SERVER['REMOTE_USER']}</td></tr>
 <tr><td>\$_SERVER["WEBAUTH_USER"]</td><td>{$_SERVER['WEBAUTH_USER']}</td></tr>
  <tr><td>\$_SERVER["WEBAUTH_TOKEN_CREATION"]</td>
          <td>{$_SERVER['WEBAUTH_TOKEN_CREATION']}</td></tr>
  <tr><td>\$_SERVER["WEBAUTH_TOKEN_EXPIRATION"]</td>
           <td>{$_SERVER['WEBAUTH_TOKEN_EXPIRATION']}</td></tr>
  <tr><td>getenv("REMOTE_USER")</td> <td>$ru_env</td></tr>
</table>
<br>
<hr>
<br>
Click <a href="/tests/index.html">here</a> to return without logging out<br>
Click <a href="/tests/auth/logout">here</a> to logout and return<br>
<br>
<hr>
<br>

EOS;

phpinfo(); 

print "</html>";

?>

Generated by  Doxygen 1.6.0   Back to index