Login   Register  
PHP Classes

File: login.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Daniel Afonso Heisler  >  PGSQL_Login  >  login.php  >  Download  
File: login.php
Role: Example script
Content type: text/plain
Description: Login example
Class: PGSQL_Login
Author: By
Last change:
Date: 12 years ago
Size: 1,239 bytes


Class file image Download
<? include("PGSQL_Login.class"?>
= New Access();
  if ( isset(
$Login) )
$acs $Access->CreateLogin($database,$user,$pass,$host);
    if ( ! 
$acs )
"  <center><font size=\"6\">Error !</font><br>\n");
"  <input type=\"submit\" value=\"Continue\"><center>\n");
  elseif ( isset(
$Logout) )
$con $Access->CheckLogin();
  if ( 
$con )
$user $Access->CheckUser();
"  <center><font size=\"6\">Login User: <b>$user</b></font><br>\n");
"  <input type=\"submit\" name=\"Logout\" value=\"Logout\"></center>\n");
  <tr><td align="center" colspan="2"><font size="6">Login</font></td></tr>
  <tr><td align="right">User:</td><td><input name="user"></td></tr>
  <tr><td align="right">Pass:</td><td><input name="pass" type="password"></td></tr>
  <tr><td align="right">DB:</td><td><input name="database"></td></tr>
  <tr><td align="right">Host:</td><td><input name="host"></td></tr>
  <tr><td align="center" colspan="2"><input type="submit" name="Login" value="Login"></td></tr>