PHP Classes

File: sauthtest.php

Recommend this page to a friend!
  Classes of markitos  >  sauth  >  sauthtest.php  >  Download  
File: sauthtest.php
Role: ???
Content type: text/plain
Description: Test environment for this class.
Class: sauth
Author: By
Last change:
Date: 21 years ago
Size: 1,672 bytes


Class file image Download
/* @@ Test De La Clase sauth 'oI |[xP]| mArKitos]| ) ))  ))) */
require ('./sauthclass.php');

if (isset ($StateSession)){
	unset ($StateSession);
if (isset ($StartSession)){
	$TSAuth = new sauth ('localhost', 'sauth', 'sauth', 'sauth');
  if ($IsParanoikal){
  	$IsParanoikal = $REMOTE_ADDR;
	$SessionId = $TSAuth->StartSession ("$UserName", "$PassName", "$IsParanoikal");
	if (!$SessionId){
		$AuthError = 1;
	} else {
		if (!isset ($ur)){
			$ur = 'menu.php';	#: Default Url to onload event
		$StateSession = 'ok';
		$JumpUri = $ur;
	 unset ($STAuth);

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<title>Test De La Clase sauth</title>
<body<?if ($StateSession=='ok'){unset ($StateSession);?> onload="window.location='<?echo $JumpUri,"?sid=$SessionId";?>'"<?}?>>
<h1 align="left"><font color="green">Test Clase sauth</font><font color="black">&nbsp;&nbsp;mArKitos]| )  ))   )))</font></h1>

<h3 align="left">demo1/demo1<br>demo2/demo2</h3><br>
<form action="<?echo $PHP_SELF;?>" method="POST">
	Username:&nbsp;<input type="text" name="UserName"><br>            
	Password:&nbsp;<input type="password" name ="PassName"><br><br>
  Paranoial Mode:&nbsp;<select name="IsParanoikal">
      									<option value="">No</option>
                        <option value="1" selected>Si</option>
	<input type="hidden" name="StartSession" value="1">
	<?if (eregi(".+\.php", $ur)){?>
		<input type="hidden" name="ur" value="<?echo $ur;?>">
	<input type="submit" value="login">


For more information send a message to info at phpclasses dot org.