PHP Classes

File: auth.php

Recommend this page to a friend!
  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: 17 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;
}


?>