#14596
info file changes


git-svn-id: file:///svn/phpbb/trunk@8135 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2007-10-04 15:08:22 +00:00
parent 0f156f08f9
commit 7d84cac202
80 changed files with 363 additions and 217 deletions

View file

@ -109,6 +109,7 @@
<li>[Feature] Added completely new hook system to allow better application/mod integration - see docs/hook_system.html</li> <li>[Feature] Added completely new hook system to allow better application/mod integration - see docs/hook_system.html</li>
<li>[Fix] Correctly delete excess poll options (Bug #14566)</li> <li>[Fix] Correctly delete excess poll options (Bug #14566)</li>
<li>[Fix] Allow names evaluating to false for poll options</li> <li>[Fix] Allow names evaluating to false for poll options</li>
<li>[Change] use in-build functions for user online list (#14596) - provided by rxu</li>
</ul> </ul>

View file

@ -3645,7 +3645,7 @@ function truncate_string($string, $max_length = 60, $allow_reply = true, $append
/** /**
* Get username details for placing into templates. * Get username details for placing into templates.
* *
* @param string $mode Can be profile (for getting an url to the profile), username (for obtaining the username), colour (for obtaining the user colour) or full (for obtaining a html string representing a coloured link to the users profile). * @param string $mode Can be profile (for getting an url to the profile), username (for obtaining the username), colour (for obtaining the user colour), full (for obtaining a html string representing a coloured link to the users profile) or no_profile (the same as full but forcing no profile link)
* @param int $user_id The users id * @param int $user_id The users id
* @param string $username The users name * @param string $username The users name
* @param string $username_colour The users colour * @param string $username_colour The users colour
@ -3671,7 +3671,7 @@ function get_username_string($mode, $user_id, $username, $username_colour = '',
} }
// Only show the link if not anonymous // Only show the link if not anonymous
if ($user_id && $user_id != ANONYMOUS) if ($mode != 'no_profile' && $user_id && $user_id != ANONYMOUS)
{ {
// Do not show the link if the user is already logged in but do not have u_viewprofile permissions (relevant for bots mostly). // Do not show the link if the user is already logged in but do not have u_viewprofile permissions (relevant for bots mostly).
// For all others the link leads to a login page or the profile. // For all others the link leads to a login page or the profile.
@ -3703,6 +3703,7 @@ function get_username_string($mode, $user_id, $username, $username_colour = '',
return $username_colour; return $username_colour;
break; break;
case 'no_profile':
case 'full': case 'full':
default: default:
@ -4067,38 +4068,19 @@ function page_header($page_title = '', $display_online_list = true)
// Skip multiple sessions for one user // Skip multiple sessions for one user
if ($row['user_id'] != $prev_user_id) if ($row['user_id'] != $prev_user_id)
{ {
if ($row['user_colour'])
{
$user_colour = ' style="color:#' . $row['user_colour'] . '"';
$row['username'] = '<strong>' . $row['username'] . '</strong>';
}
else
{
$user_colour = '';
}
if ($row['session_viewonline']) if ($row['session_viewonline'])
{ {
$user_online_link = $row['username'];
$logged_visible_online++; $logged_visible_online++;
} }
else else
{ {
$user_online_link = '<em>' . $row['username'] . '</em>'; $row['username'] = '<em>' . $row['username'] . '</em>';
$logged_hidden_online++; $logged_hidden_online++;
} }
if (($row['session_viewonline']) || $auth->acl_get('u_viewonline')) if (($row['session_viewonline']) || $auth->acl_get('u_viewonline'))
{ {
if ($row['user_type'] <> USER_IGNORE) $user_online_link = get_username_string(($row['user_type'] <> USER_IGNORE) ? 'full' : 'no_profile', $row['user_id'], $row['username'], $row['user_colour']);
{
$user_online_link = '<a href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&amp;u=' . $row['user_id']) . '"' . $user_colour . '>' . $user_online_link . '</a>';
}
else
{
$user_online_link = ($user_colour) ? '<span' . $user_colour . '>' . $user_online_link . '</span>' : $user_online_link;
}
$online_userlist .= ($online_userlist != '') ? ', ' . $user_online_link : $user_online_link; $online_userlist .= ($online_userlist != '') ? ', ' . $user_online_link : $user_online_link;
} }
} }

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -11,6 +11,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -12,6 +12,10 @@
/** /**
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
// DEVELOPERS PLEASE NOTE // DEVELOPERS PLEASE NOTE
// //

View file

@ -12,6 +12,10 @@
/** /**
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
// DEVELOPERS PLEASE NOTE // DEVELOPERS PLEASE NOTE
// //

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -10,6 +10,11 @@
* *
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
$words = array( $words = array(
'a', 'a',
'about', 'about',

View file

@ -10,6 +10,11 @@
* *
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
$synonyms = array( $synonyms = array(
'abcense' => 'absence', 'abcense' => 'absence',
'abridgement' => 'abridgment', 'abridgement' => 'abridgment',

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -13,6 +13,11 @@
/** /**
* DO NOT CHANGE * DO NOT CHANGE
*/ */
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();

View file

@ -8,10 +8,10 @@
<ul class="linklist"> <ul class="linklist">
<li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a></li> <li class="icon-home"><a href="{U_INDEX}" accesskey="h">{L_INDEX}</a></li>
<!-- IF not S_IS_BOT --> <!-- IF not S_IS_BOT -->
<!-- IF S_WATCH_FORUM_LINK --><li><a href="{S_WATCH_FORUM_LINK}" <!-- IF S_WATCHING_FORUM -->class="icon-unsubscribe"<!-- ELSE -->class="icon-subscribe"<!-- ENDIF --> title="{S_WATCH_FORUM_TITLE}">{S_WATCH_FORUM_TITLE}</a></li><!-- ENDIF --> <!-- IF S_WATCH_FORUM_LINK --><li <!-- IF S_WATCHING_FORUM -->class="icon-unsubscribe"<!-- ELSE -->class="icon-subscribe"<!-- ENDIF -->><a href="{S_WATCH_FORUM_LINK}" title="{S_WATCH_FORUM_TITLE}">{S_WATCH_FORUM_TITLE}</a></li><!-- ENDIF -->
<!-- IF U_WATCH_TOPIC --><li><a href="{U_WATCH_TOPIC}" title="{L_WATCH_TOPIC}" <!-- IF S_WATCHING_TOPIC -->class="icon-unsubscribe"<!-- ELSE -->class="icon-subscribe"<!-- ENDIF -->>{L_WATCH_TOPIC}</a></li><!-- ENDIF --> <!-- IF U_WATCH_TOPIC --><li <!-- IF S_WATCHING_TOPIC -->class="icon-unsubscribe"<!-- ELSE -->class="icon-subscribe"<!-- ENDIF -->><a href="{U_WATCH_TOPIC}" title="{L_WATCH_TOPIC}">{L_WATCH_TOPIC}</a></li><!-- ENDIF -->
<!-- IF U_BOOKMARK_TOPIC --><li><a href="{U_BOOKMARK_TOPIC}" title="{L_BOOKMARK_TOPIC}" class="icon-bookmark">{L_BOOKMARK_TOPIC}</a></li><!-- ENDIF --> <!-- IF U_BOOKMARK_TOPIC --><li class="icon-bookmark"><a href="{U_BOOKMARK_TOPIC}" title="{L_BOOKMARK_TOPIC}">{L_BOOKMARK_TOPIC}</a></li><!-- ENDIF -->
<!-- IF U_BUMP_TOPIC --><li><a href="{U_BUMP_TOPIC}" title="{L_BUMP_TOPIC}" class="icon-bump">{L_BUMP_TOPIC}</a></li><!-- ENDIF --> <!-- IF U_BUMP_TOPIC --><li class="icon-bump"><a href="{U_BUMP_TOPIC}" title="{L_BUMP_TOPIC}">{L_BUMP_TOPIC}</a></li><!-- ENDIF -->
<!-- ENDIF --> <!-- ENDIF -->
<li class="rightside"><a href="{U_TEAM}">{L_THE_TEAM}</a> &bull; <!-- IF not S_IS_BOT --><a href="{U_DELETE_COOKIES}">{L_DELETE_COOKIES}</a> &bull; <!-- ENDIF -->{S_TIMEZONE}</li> <li class="rightside"><a href="{U_TEAM}">{L_THE_TEAM}</a> &bull; <!-- IF not S_IS_BOT --><a href="{U_DELETE_COOKIES}">{L_DELETE_COOKIES}</a> &bull; <!-- ENDIF -->{S_TIMEZONE}</li>
</ul> </ul>