Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1:/tmp/cvs-serv8022/config
Modified Files:
auth.php
Log Message:
showlogin() now remembers the HTTP referer. The client script can use this information to return to previous location after login (used by the forum).
Index: auth.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/auth.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** auth.php 15 Oct 2003 00:14:41 -0000 1.7
--- auth.php 15 Oct 2003 00:52:52 -0000 1.8
***************
*** 57,63 ****
function showlogin () {
// Show a login form for the user.
!
! echo("<br><br><form action='". $_SERVER["PHP_SELF"] . "' method='post'>
! <table width='27%'>
<tr>
<th width='36%'> </th>
--- 57,65 ----
function showlogin () {
// Show a login form for the user.
! echo("<br><br><form action='". $_SERVER["PHP_SELF"] . "' method='post'>");
! if(isset($_SERVER["HTTP_REFERER"])){
! echo("<input name='referer' type='hidden' value='".$_SERVER["HTTP_REFERER"]."'/>");
! }
! echo("<table width='27%'>
<tr>
<th width='36%'> </th>
|