mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
More images ... now CVS is back up
git-svn-id: file:///svn/phpbb/trunk@585 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
8ca99fdbc3
commit
5b505892a0
7 changed files with 49 additions and 11 deletions
|
@ -42,14 +42,14 @@ $images['edit'] = "$url_images/icon_edit.gif";
|
|||
$images['search_icon'] = "$url_images/search_icon.gif";
|
||||
$images['profile'] = "$url_images/icon_profile.gif";
|
||||
$images['privmsg'] = "$url_images/icon_pm.gif";
|
||||
$images['email'] = "$url_images/email.gif";
|
||||
$images['email'] = "$url_images/icon_email.gif";
|
||||
$images['delpost'] = "$url_images/edit.gif";
|
||||
$images['ip'] = "$url_images/icon_ip.gif";
|
||||
$images['www'] = "$url_images/icon_www.gif";
|
||||
$images['icq'] = "$url_images/icq_add.gif";
|
||||
$images['aim'] = "$url_images/aim.gif";
|
||||
$images['yim'] = "$url_images/yim.gif";
|
||||
$images['msnm'] = "$url_images/msnm.gif";
|
||||
$images['icq'] = "$url_images/icon_icq_add.gif";
|
||||
$images['aim'] = "$url_images/icon_aim.gif";
|
||||
$images['yim'] = "$url_images/icon_yim.gif";
|
||||
$images['msnm'] = "$url_images/icon_msnm.gif";
|
||||
$images['posticon'] = "$url_images/posticon.gif";
|
||||
$images['folder'] = "$url_images/folder.gif";
|
||||
$images['new_folder'] = "$url_images/red_folder.gif";
|
||||
|
@ -65,9 +65,47 @@ include('includes/functions.'.$phpEx);
|
|||
include('includes/db.'.$phpEx);
|
||||
|
||||
|
||||
//
|
||||
// Obtain and encode users IP
|
||||
//$get_user_ip = ;
|
||||
$user_ip = encode_ip(($HTTP_X_FORWARDED_FOR) ? $HTTP_X_FORWARDED_FOR : $REMOTE_ADDR);
|
||||
//
|
||||
if(!empty($HTTP_CLIENT_IP))
|
||||
{
|
||||
if(eregi("[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+", $HTTP_PROXY_USER))
|
||||
{
|
||||
$client_ip = $HTTP_CLIENT_IP;
|
||||
}
|
||||
}
|
||||
else if(!empty($HTTP_X_FORWADED_FOR))
|
||||
{
|
||||
if(strstr(",", $HTTP_X_FORWARDED_FOR))
|
||||
{
|
||||
list($client_ip) = explode(",", $HTTP_X_FORWADED_FOR);
|
||||
}
|
||||
else
|
||||
{
|
||||
$client_ip = $HTTP_X_FORWARDED_FOR;
|
||||
}
|
||||
}
|
||||
else if(!empty($HTTP_VIA))
|
||||
{
|
||||
if(eregi("[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+", $HTTP_PROXY_USER))
|
||||
{
|
||||
$client_ip = $HTTP_VIA;
|
||||
}
|
||||
}
|
||||
else if(!empty($HTTP_PROXY_USER))
|
||||
{
|
||||
if(eregi("[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+", $HTTP_PROXY_USER))
|
||||
{
|
||||
$client_ip = $HTTP_PROXY_USER;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$client_ip = $REMOTE_ADDR;
|
||||
}
|
||||
$user_ip = encode_ip($client_ip);
|
||||
|
||||
|
||||
//
|
||||
// Setup forum wide options.
|
||||
|
|
BIN
phpBB/images/icon_aim.gif
Normal file
BIN
phpBB/images/icon_aim.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
phpBB/images/icon_email.gif
Normal file
BIN
phpBB/images/icon_email.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
phpBB/images/icon_icq_add.gif
Normal file
BIN
phpBB/images/icon_icq_add.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
phpBB/images/icon_msnm.gif
Normal file
BIN
phpBB/images/icon_msnm.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
phpBB/images/icon_yim.gif
Normal file
BIN
phpBB/images/icon_yim.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/***************************************************************************
|
||||
* viewtopic.php
|
||||
* viewtopic.php
|
||||
* -------------------
|
||||
* begin : Saturday, Feb 13, 2001
|
||||
* copyright : (C) 2001 The phpBB Group
|
||||
|
@ -380,7 +380,7 @@ for($i = 0; $i < $total_posts; $i++)
|
|||
|
||||
$aim_img = ($postrow[$i]['user_aim']) ? "<a href=\"aim:goim?screenname=" . $postrow[$i]['user_aim'] . "&message=Hello+Are+you+there?\"><img src=\"" . $images['aim'] . "\" border=\"0\"></a>" : "";
|
||||
|
||||
$msn_img = ($postrow[$i]['user_msnm']) ? "<a href=\"profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id\"><img src=\"" . $images['msn'] . "\" border=\"0\"></a>" : "";
|
||||
$msn_img = ($postrow[$i]['user_msnm']) ? "<a href=\"profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id\"><img src=\"" . $images['msnm'] . "\" border=\"0\"></a>" : "";
|
||||
|
||||
$yim_img = ($postrow[$i]['user_yim']) ? "<a href=\"http://edit.yahoo.com/config/send_webmesg?.target=" . $postrow[$i]['user_yim'] . "&.src=pg\"><img src=\"" . $images['yim'] . "\" border=\"0\"></a>" : "";
|
||||
|
||||
|
@ -394,9 +394,9 @@ for($i = 0; $i < $total_posts; $i++)
|
|||
}
|
||||
$edit_img = "<a href=\"" . $edit_post_url . "\"><img src=\"" . $images['edit'] . "\" alt=\"$l_editdelete\" border=\"0\"></a>";
|
||||
|
||||
$quote_img = "<a href=\"" . append_sid("posting.$phpEx?mode=reply"e=true&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=$topic_id&" . POST_FORUM_URL . "=$forum_id") . "\"><img src=\"" . $images['quote'] . "\" alt=\"$l_replyquote\" border=\"0\"></a>";
|
||||
$quote_img = "<a href=\"" . append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=$topic_id&" . POST_FORUM_URL . "=$forum_id") . "\"><img src=\"" . $images['quote'] . "\" alt=\"$l_replyquote\" border=\"0\"></a>";
|
||||
|
||||
if($is_auth['auth_mod'])
|
||||
if($is_auth['auth_mod'] || $userdata['user_level'] == ADMIN)
|
||||
{
|
||||
$ip_img = "<a href=\"" . append_sid("topicadmin.$phpEx?mode=viewip&" . POST_USERS_URL . "=" . $poster_id) . "\"><img src=\"" . $images['ip'] . "\" alt=\"$l_viewip\" border=\"0\"></a>";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue