PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Andrei   SMK User Authentication   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example file that uses authentication
Class: SMK User Authentication
Authenticate users with MySQL database records
Author: By
Last change:
Date: 18 years ago
Size: 808 bytes
 

Contents

Class file image Download
<?php
   
require_once('auth.php');
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Main Page!!!</title>
</head>
<body leftmargin="0" topmargin="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan=2> You are now logged in!!</td>
  </tr>
  <tr>
    <td width="180" align="left" valign="top" rowspan=2>
    <table class="menuleft" height="400" width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr><td>
        &nbsp;
    </td></tr>
    <td width="607" valign="top">
        <center>
        <?php
               
echo "User logged:".$auth->username."<br>";
                echo
"Userid:".$auth->userid;
        
?>
</td>
  </tr>
  <tr>
    <td>Success!!</td>
  </tr>
</table>
</body>
</html>