Login   Register  
PHP Classes
elePHPant
Icontem

File: pagina1.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  >  pagina1.php  >  Download  
File: pagina1.php
Role: ???
Content type: text/plain
Description: Page 1 to the test
Class: sauth
Author: By
Last change:
Date: 2001-02-27 03:21
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="./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>

<??>