Login   Register  
PHP Classes
elePHPant
Icontem

File: auth.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrei  >  SMK User Authentication  >  auth.php  >  Download  
File: auth.php
Role: Auxiliary script
Content type: text/plain
Description: Authentication module
Class: SMK User Authentication
Authenticate users with MySQL database records
Author: By
Last change: -
Date: 8 years ago
Size: 206 bytes
 

Contents

Class file image Download
<?php

require_once('auth.class.php');
require_once(
'db.inc.php');

$auth= new UserAuth($database);

if (!
$auth->Check_Auth()){
    
header('location: login.php');//bad auth!!
    
exit;
}


?>