cvs: pear /Auth Auth.php

From: Date: Sun, 23 Dec 2001 14:44:27 +0000
Subject: cvs: pear /Auth Auth.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1669@lists.php.net to get a copy of this message
mj Sun Dec 23 09:44:27 2001 EDT Modified files: /pear/Auth Auth.php Log: * Print warning if one uses built-in login form. Index: pear/Auth/Auth.php diff -u pear/Auth/Auth.php:1.23 pear/Auth/Auth.php:1.24 --- pear/Auth/Auth.php:1.23 Sat Dec 22 10:06:15 2001 +++ pear/Auth/Auth.php Sun Dec 23 09:44:27 2001 @@ -16,9 +16,11 @@ // | Authors: Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Auth.php,v 1.23 2001/12/22 15:06:15 mj Exp $ +// $Id: Auth.php,v 1.24 2001/12/23 14:44:27 mj Exp $ // +require_once "PEAR.php"; + /** * PEAR::Auth * @@ -130,7 +132,7 @@ * * @author Martin Jansen <mj@php.net> * @package Auth - * @version $Revision: 1.23 $ + * @version $Revision: 1.24 $ */ define("AUTH_IDLED", -1); @@ -504,6 +506,8 @@ echo "<i>Wrong login data!</i>\n"; } + echo new PEAR_Error("You are using the built-in login screen of PEAR::Auth.<br/>See the <a href=\"http://pear.php.net/manual/\">manual</a> for details on how to create your own login function.", null, PEAR_ERROR_PRINT); + echo "<form method=\"post\" action=\"" . $server['PHP_SELF'] . "\">\n"; echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\">\n"; echo "<tr>\n";

« previous php.pear.cvs (#1669) next »