Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Rosinei Muniz  >  POPAuth  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example
Class: POPAuth
PHP Class for POP3 user authentication
Author: By
Last change:
Date: 2003-12-16 23:34
Size: 703 bytes
 

Contents

Class file image Download
<?
require("inc/popAuth.inc.php");
?>
<HTML>
<HEAD>
</HEAD>
<BODY>
<pre>
<?

if($_POST["btCheck"] == "Verify")
{
 
$user $_POST["user"];
 
$pass $_POST["pass"];
 
$server $_POST["server"];

 
$pop3 = new POPAuth($user,$pass,$server);
  echo 
"The passord is ";
  if(
$pop3->validate())
  {
   echo 
" Correct.<br>";
  }
  else
  {
  echo 
" Incorrect.<br>";
  }
 }
else
{
?>
<h2>POP3 Information</h2>
<form action="" method="post">
Username:  <input type="text" name="user">
Password:  <input type="password" name="pass">
Server:    <input type="text" name="server">
<input type="submit" name="btCheck" value="Verify">
</form>
<?
}
  
?>
</pre>
</BODY>
</HTML>