Login   Register  
PHP Classes
elePHPant
Icontem

File: sample2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Logan Dugenoux  >  Simple Login  >  sample2.php  >  Download  
File: sample2.php
Role: Example script
Content type: text/plain
Description: simpleLogin complex sample file
Class: Simple Login
Multiuser page access managment without database
Author: By
Last change:
Date: 2004-02-10 11:37
Size: 511 bytes
 

Contents

Class file image Download
<?
require "simpleLogin.php";
$sl = new simpleLogin();
if (
$HTTP_GET_VARS["login"])
{
    
$sl->CheckLogin();
}
else
{
    
$sl->CheckLogin(0,0);
}

if (!
$sl->userIsLogged())
{
    echo 
"You are not identified <a href=?login=1>click here to identify</a>, or continue unidentified.";
}
else
{
    echo 
"You are identified as ".$sl->userName();
    echo 
" <a href=?simpleLogin_logOut=1>logout</a>";
}
?>
<br>
<br><a href=?random=<?=rand();?>>continue browsing <?=rand();?></a>
<br>
<br>
<br>
<br>