<?
/* @@ Test De La Clase sauth 'oI |[xP]| mArKitos]| ) )) ))) */
require ('./sauthclass.php');
eregi (".+/(.+\.php).*", $PHP_SELF, $UriItems);
$ur = $UriItems[1];
unset ($UriItems);
if (isset ($ErrorValue)){
unset ($ErrorValue);
}
if ((!isset ($sid))||(strlen($sid)<15)){
$ErrorValue = 1;
} else {
$TSAuth = new sauth ('localhost', 'sauth', 'sauth', 'sauth');
$State = $TSAuth->CheckSessionId ($sid, $REMOTE_ADDR);
if (!$State){
$ErrorValue = 1;
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Menu</title>
</head>
<body<?if ($ErrorValue==1){unset ($ErrorValue);?> onload="window.location='sauthtest.php?ur=<?echo $ur;?>'"<?}?>>
<h1 align="left"><font color="green">Test Clase sauth</font><font color="black"> mArKitos]| ) )) )))</font></h1>
<a href="./pagina1.php?sid=<?echo $sid;?>" style="text-decoration:none">Pagina 1</a><br>
<a href="./pagina2.php?sid=<?echo $sid;?>" style="text-decoration:none">Pagina 2</a><br>
<a href="./pagina3.php?sid=<?echo $sid;?>" style="text-decoration:none">Pagina 3</a><br>
<a href="./pagina4.php?sid=<?echo $sid;?>" style="text-decoration:none">Pagina 4</a><br><br>
<a href="./sauthtest.php" style="text-decoration:none">Logout</a>
</body>
</html>
<??>
|