freebsd-ports/chinese/phpbb-tw/files/patch-includes-sessions.php
Renato Botelho c7114b3573 phpBB is a high powered, fully scalable, and highly customisable
open-source bulletin board package.  phpBB has a user-friendly interface,
  simple and straightforward administration panel, and helpful FAQ.  Based
  on the powerful PHP server language and your choice of MySQL, MS-SQL,
  PostgreSQL or Access/ODBC database servers, phpBB is the ideal free
  community solution for all web sites.

  The Traditional Chinese version of offical phpBB is located at
  http://www.phpbb-tw.net/

WWW: http://www.phpbb.com/

PR:		ports/88981
Submitted by:	chinsan <chinsan.tw@gmail.com>
2005-11-14 16:07:16 +00:00

11 lines
595 B
PHP

--- includes/sessions.php.orig Sat May 14 05:04:00 2005
+++ includes/sessions.php Sun May 15 18:53:48 2005
@@ -167,7 +167,7 @@
$sql = "INSERT INTO " . SESSIONS_TABLE . "
(session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in, session_admin)
VALUES ('$session_id', $user_id, $current_time, $current_time, '$user_ip', $page_id, $login, $admin)";
- if ( !$db->sql_query($sql) )
+ if ( $user_id != ANONYMOUS && !$db->sql_query($sql) )
{
message_die(CRITICAL_ERROR, 'Error creating new session', '', __LINE__, __FILE__, $sql);
}