PHP Classes

File: cUser.example.php

Recommend this page to a friend!
  Classes of Tim M   cUser   cUser.example.php   Download  
File: cUser.example.php
Role: Example script
Content type: text/plain
Description: Small example - Certainly not showing everything you can with it! http://www.tv2knet.net uses the class
Class: cUser
User management and authentication system
Author: By
Last change:
Date: 20 years ago
Size: 413 bytes
 

Contents

Class file image Download
<?
require_once("cUser.class.php");
$usernamex = $_GET[usernamex];
$passwordx = $_GET[passwordx];
$logout = $_GET[logout];

$cUser = new cUser("config.cfg.php","myhost.tld");


if (
$passwordx != "")
{
echo
"Login in!: ".$cUser->Login($usernamex,$passwordx);

}else if (
$logout != "1")
{
    echo
"Logged in?" . $cUser->CheckUser();
}else{
    echo
"Login Out! ".$cUser->Logout();
   
}

?>