Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Zsolt Munoz  >  httpAuth  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Text File Example
Class: httpAuth
Authenticate users in several ways
Author: By
Last change: Added the require("auth.httpAuth.php")
Date: 2008-10-21 09:24
Size: 223 bytes
 

Contents

Class file image Download
<?
    
require("auth.httpAuth.php");
    
$test = new httpAuth($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW'],"text","./password.csv");
    if(
$test->login() == true) {
        echo 
"Success!";
    } else {
        echo 
"Failure!";
    }
?>