diff --git a/upload/admin/admin_attachments.php b/upload/admin/admin_attachments.php
index 720b59c44..848735d97 100644
--- a/upload/admin/admin_attachments.php
+++ b/upload/admin/admin_attachments.php
@@ -118,9 +118,10 @@ while ($row = DB()->sql_fetchrow($result))
{
$value = trim($new_attach[$config_name]);
- if ($value[strlen($value)-1] == '/')
+ if (strlen($value) && substr($value, -1) == '/')
{
- $value[strlen($value)-1] = ' ';
+ if(strlen($value)) $value = substr($value, 0, strlen($value)-1);
+ else $value = '';
}
$new_attach[$config_name] = trim($value);
diff --git a/upload/admin/index.php b/upload/admin/index.php
index 59940e83b..d309ce13b 100644
--- a/upload/admin/index.php
+++ b/upload/admin/index.php
@@ -165,12 +165,12 @@ else if( isset($_GET['pane']) && $_GET['pane'] == 'right' )
}
else
{
- $dbsize = $lang['Not_available'];
+ $dbsize = $lang['NOT_AVAILABLE'];
}
}
else
{
- $dbsize = $lang['Not_available'];
+ $dbsize = $lang['NOT_AVAILABLE'];
}
$template->assign_vars(array(
@@ -255,18 +255,10 @@ else if( isset($_GET['pane']) && $_GET['pane'] == 'right' )
"STARTED" => bb_date($onlinerow_reg[$i]['session_start'], 'H:i', 'false'),
"LASTUPDATE" => bb_date($onlinerow_reg[$i]['user_session_time'], 'H:i', 'false'),
"IP_ADDRESS" => $reg_ip,
-
- "U_WHOIS_IP" => "http://ip-whois.net/ip_geo.php?ip=$reg_ip",
+ "U_WHOIS_IP" => $bb_cfg['whois_info'] . $reg_ip,
));
}
}
-
- }
- else
- {
- $template->assign_vars(array(
- "L_NO_REGISTERED_USERS_BROWSING" => $lang['NO_USERS_BROWSING'])
- );
}
//
@@ -287,11 +279,10 @@ else if( isset($_GET['pane']) && $_GET['pane'] == 'right' )
$template->assign_block_vars("guest_user_row", array(
"ROW_CLASS" => $row_class,
- "USERNAME" => $lang['GUEST'],
"STARTED" => bb_date($onlinerow_guest[$i]['session_start'], 'H:i', 'false'),
"LASTUPDATE" => bb_date($onlinerow_guest[$i]['session_time'], 'H:i' , 'false'),
"IP_ADDRESS" => $guest_ip,
- "U_WHOIS_IP" => "http://ip-whois.net/ip_geo.php?ip=$guest_ip",
+ "U_WHOIS_IP" => $bb_cfg['whois_info'] . $guest_ip,
));
}
}
diff --git a/upload/ajax/mod_action.php b/upload/ajax/mod_action.php
index ffb1369d2..2da57c3e7 100644
--- a/upload/ajax/mod_action.php
+++ b/upload/ajax/mod_action.php
@@ -111,12 +111,12 @@ switch ($mode)
'. $lang['REG_IP'] .' | -'.decode_ip($profiledata['user_reg_ip']).' | +'.decode_ip($profiledata['user_reg_ip']).' | '. $link_reg_ip .' |
'. $lang['LAST_IP'] .' | -'.decode_ip($profiledata['user_last_ip']).' | +'.decode_ip($profiledata['user_last_ip']).' | '. $link_last_ip .' |