Login   Register  
PHP Classes
elePHPant
Icontem

File: pagina3.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of markitos  >  sauth  >  pagina3.php  >  Download  
File: pagina3.php
Role: ???
Content type: text/plain
Description: Page 3 to the test
Class: sauth
Author: By
Last change:
Date: 2001-02-27 03:25
Size: 1,309 bytes
 

Contents

Class file image Download
<?
/* @@ 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">&nbsp;&nbsp;mArKitos]| )  ))   )))</font></h1>

<a href="./menu.php?sid=<?echo $sid;?>" style="text-decoration:none">menu</a><br><br>
<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="./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>

<??>