Location: PHPKode > projects > Phpfastnews > phpfastnews/user_login.php
<?php
/*	Copyright (c) 2001-02 by Ken Williams (hide@address.com)*/
/*	http://phpfastnews.sourceforge.net/ & http://www.phpfastnews.com*/
/*									*/
/*	You can redistribute and/or modify the following code under the	*/
/*	terms of the GNU General Public License as published by the	*/
/*	the Free Software Foundation.					*/
/*									*/
/*	All code by Ken Williams (HDwebdev) unless otherwise noted	*/
/* This is an alpha test release -- not intended for live site	use	*/

$pg = "news_index";
$tpl = "news.tpl";
require('Lib/prependphpfn.php');

$ps_form = newObject("Core::psForm");

$r->set_block('TPL','USER_LOGIN');

$r->set_var(array(
   "labelTITLE"		=>	_("Please Login"),
   "labelUSERNAME"	=>	_("Username"),
   "labelPASSWORD"	=>	_("Password"),
   "labelSUBMIT" 	=>	_("Login"),
   "urlLASTPAGE"	=>	$last_page,
   "valueUSERNAME"	=>	$vars["username"],
   "HIDDEN"		=>	$ps_form->inputhidden("page", $vars["page"]) .
				$ps_form->inputhidden("func", "Core::psUser->login")
));

$r->parse('body','USER_LOGIN',true);

require("Lib/appendphpfn.php");
?>
Return current item: Phpfastnews