Update of /cvsroot/phpwiki/phpwiki/lib
In directory usw-pr-cvs1:/tmp/cvs-serv11072/lib
Modified Files:
main.php
Log Message:
Small bug fix
Index: main.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/main.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** main.php 2001/02/16 04:43:08 1.5
--- main.php 2001/02/16 05:10:54 1.6
***************
*** 4,11 ****
include "lib/stdlib.php";
include "lib/userauth.php";
if (ACCESS_LOG)
{
- include "lib/logger.php";
$LogEntry = new AccessLogEntry;
--- 4,11 ----
include "lib/stdlib.php";
include "lib/userauth.php";
+ include "lib/logger.php";
if (ACCESS_LOG)
{
$LogEntry = new AccessLogEntry;
***************
*** 17,21 ****
{
$LogEntry->status = 302; // "302 Found"
! header("Location: " . SERVER_URL . $REQUEST_URI);
exit;
}
--- 17,21 ----
{
$LogEntry->status = 302; // "302 Found"
! header("Location: " . SERVER_URL . $REQUEST_URI . '/');
exit;
}
***************
*** 85,89 ****
$user = new WikiUser(get_auth_mode($action));
! if (ACCESS_LOG and $user->is_authenticated())
$LogEntry->user = $user->id;
--- 85,89 ----
$user = new WikiUser(get_auth_mode($action));
! if ($user->is_authenticated())
$LogEntry->user = $user->id;
|