mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 10:16:36 +02:00
- added updated coding guidelines
- introduced is_registered and is_bot flags for correct determinition of guest/registered/bot users - changed bot code to act on useragent || ip git-svn-id: file:///svn/phpbb/trunk@5117 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -441,7 +441,7 @@ class ucp_main extends module
|
||||
|
||||
if ($config['load_db_lastread'])
|
||||
{
|
||||
$mark_time_topic = ($user->data['user_id'] != ANONYMOUS) ? $row['mark_time'] : 0;
|
||||
$mark_time_topic = ($user->data['is_registered']) ? $row['mark_time'] : 0;
|
||||
$mark_time_forum = $row['forum_mark_time'];
|
||||
}
|
||||
else
|
||||
|
@@ -45,7 +45,7 @@ class ucp_pm extends module
|
||||
{
|
||||
global $user, $template, $phpbb_root_path, $auth, $phpEx, $db, $SID, $config;
|
||||
|
||||
if ($user->data['user_id'] == ANONYMOUS)
|
||||
if (!$user->data['is_registered'])
|
||||
{
|
||||
trigger_error('NO_MESSAGE');
|
||||
}
|
||||
@@ -89,7 +89,7 @@ class ucp_pm extends module
|
||||
case 'popup':
|
||||
|
||||
$l_new_message = '';
|
||||
if ($user->data['user_id'] != ANONYMOUS)
|
||||
if ($user->data['is_registered'])
|
||||
{
|
||||
if ($user->data['user_new_privmsg'])
|
||||
{
|
||||
|
Reference in New Issue
Block a user