, December 2004. $Id: authtest.hack,v 1.1 2004/12/05 16:39:14 cky Exp $ Copyright (c) 2004 Chris K. Young. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licence as published by the Free Software Foundation; either version 2 of the Licence, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Licence for more details. You should have received a copy of the GNU General Public Licence along with this program; if not, write to Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. */ class authtest { var $tmpl; function print_header() { ob_start(); $this->tmpl = new template('Basic authentication tester'); $this->tmpl->set_rcsid('$Id: authtest.hack,v 1.1 2004/12/05 16:39:14 cky Exp $'); $this->tmpl->print_header(); } function validate_input() { return isset($_SERVER['PHP_AUTH_PW']) && (!isset($_POST['reset']) || strcmp($_POST['reset'], $_SERVER['PHP_AUTH_USER']) != 0); } function process_input() { ob_end_flush(); ?>

You submitted the following the authentication information:

User:
Password:

If you like, you can reset the information and re-authenticate:

This is an authentication tester. You can use any user name and password you like.

tmpl->print_footer(); } } ?>