<?
/**
*
* Example Login Form
*
* Copyright (C) 2002 Vance Consulting LLC
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* is library is distributed in the hope that it will be useful,
* t WITHOUT ANY WARRANTY; without even the implied warranty of
* RCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Created By PHP Developers at:
* http://www.vanceconsulting.net/
* hide@address.com
*
* Uma SourceForge Site: http://rampart.sourceforge.net/
*
* Description:
* Example Login Page.
*/
ini_set('include_path', @current(file('mepath.php'))); // you don't have to set your include_path like this, I do it because I thought it was idea at one time. Now I am not so sure.
require("config.php");
require("Uma.inc.php");
session_start();
if (!$_SESSION['rampartPage'] || !$_SESSION['rampartService']) {
header("location:loginerr.php");
exit;
}
// you could do something alittle more interesting here.
// I prefer to not give lots of information as to why a login failed.
if ($error) $msg = INVALID_LOGIN;
require('login.html.php');
?>