Login   Register  
PHP Classes
elePHPant
Icontem

File: pma.test.1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jeff Johnson  >  phpMyAuth  >  pma.test.1.php  >  Download  
File: pma.test.1.php
Role: Example script
Content type: text/plain
Description: Sample test file #1
Class: phpMyAuth
A simple authentication class based on MySQL
Author: By
Last change:
Date: 2003-07-08 04:05
Size: 2,249 bytes
 

Contents

Class file image Download
<?
               
/**************************************************************************************************
                **      phpMyAuth 0.1 (PMA) A easy user auth class for PHP4                                     **
                **      Copyright (C) 2003 Jeff Johnson <JeffJohnson@ZoomInternet.net> (http://jeffsworld.net)  **
                **                                                                                              **
                **      This library is free software; you can redistribute it and/or                           **
                **      modify it under the terms of the GNU Lesser General Public                              **
                **      License as published by the Free Software Foundation; either                            **
                **      version 2.1 of the License, or (at your option) any later version.                      **
                **                                                                                              **
                **      This library is distributed in the hope that it will be useful,                         **
                **      but WITHOUT ANY WARRANTY; without even the implied warranty of                          **
                **      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                       **
                **      Lesser General Public License for more details.                                         **
                **                                                                                              **
                **      You should have received a copy of the GNU Lesser General Public                        **
                **      License along with this library; if not, write to the Free Software                     **
                **      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               **
                **************************************************************************************************/
require_once('pma.class.inc.php');
$pma = new pma;
$pma->start();
echo(
"Your user info states that you are at level: ".$pma->pma_userinfo['type']);
?>