mirror of
https://github.com/Mibew/design.git
synced 2025-01-23 02:20:34 +03:00
geolocation in history
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@348 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
4cefe08272
commit
0124cb4d2d
53
src/messenger/webim/libs/userinfo.php
Normal file
53
src/messenger/webim/libs/userinfo.php
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* This file is part of Web Instant Messenger project.
|
||||||
|
*
|
||||||
|
* Copyright (c) 2005-2009 Web Messenger Community
|
||||||
|
* All rights reserved. This program and the accompanying materials
|
||||||
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
|
* which accompanies this distribution, and is available at
|
||||||
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* Evgeny Gryaznov - initial API and implementation
|
||||||
|
*/
|
||||||
|
|
||||||
|
function get_useragent_version($userAgent) {
|
||||||
|
global $knownAgents;
|
||||||
|
if (is_array($knownAgents)) {
|
||||||
|
$userAgent = strtolower($userAgent);
|
||||||
|
foreach( $knownAgents as $agent ) {
|
||||||
|
if( strstr($userAgent,$agent) ) {
|
||||||
|
if( preg_match( "/".$agent."[\\s\/]?(\\d+(\\.\\d+(\\.\\d+(\\.\\d+)?)?)?)/", $userAgent, $matches ) ) {
|
||||||
|
$ver = $matches[1];
|
||||||
|
if($agent=='safari') {
|
||||||
|
if(preg_match( "/version\/(\\d+(\\.\\d+(\\.\\d+)?)?)/", $userAgent, $matches)) {
|
||||||
|
$ver = $matches[1];
|
||||||
|
} else {
|
||||||
|
$ver = "1 or 2 (build ".$ver.")";
|
||||||
|
}
|
||||||
|
if(preg_match( "/mobile\/(\\d+(\\.\\d+(\\.\\d+)?)?)/", $userAgent, $matches)) {
|
||||||
|
$userAgent = "iPhone ".$matches[1]." ($agent $ver)";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$userAgent = ucfirst($agent)." ".$ver;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $userAgent;
|
||||||
|
}
|
||||||
|
|
||||||
|
function get_user_addr($addr) {
|
||||||
|
global $settings;
|
||||||
|
if($settings['geolink'] && preg_match( "/(\\d+\\.\\d+\\.\\d+\\.\\d+)/", $addr, $matches )) {
|
||||||
|
$userip = $matches[1];
|
||||||
|
return get_popup(str_replace("{ip}", $userip, $settings['geolink']), '', htmlspecialchars($addr), "GeoLocation", "ip$userip", $settings['geolinkparams']);
|
||||||
|
}
|
||||||
|
return htmlspecialchars($addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
@ -15,9 +15,11 @@
|
|||||||
require_once('../libs/common.php');
|
require_once('../libs/common.php');
|
||||||
require_once('../libs/operator.php');
|
require_once('../libs/operator.php');
|
||||||
require_once('../libs/chat.php');
|
require_once('../libs/chat.php');
|
||||||
|
require_once('../libs/userinfo.php');
|
||||||
require_once('../libs/pagination.php');
|
require_once('../libs/pagination.php');
|
||||||
|
|
||||||
$operator = check_login();
|
$operator = check_login();
|
||||||
|
loadsettings();
|
||||||
|
|
||||||
$page = array( 'operator' => topage(get_operator_name($operator)) );
|
$page = array( 'operator' => topage(get_operator_name($operator)) );
|
||||||
$query = isset($_GET['q']) ? myiconv(getoutputenc(), $webim_encoding, $_GET['q']) : false;
|
$query = isset($_GET['q']) ? myiconv(getoutputenc(), $webim_encoding, $_GET['q']) : false;
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
require_once('../libs/common.php');
|
require_once('../libs/common.php');
|
||||||
require_once('../libs/chat.php');
|
require_once('../libs/chat.php');
|
||||||
|
require_once('../libs/userinfo.php');
|
||||||
require_once('../libs/operator.php');
|
require_once('../libs/operator.php');
|
||||||
|
|
||||||
$operator = get_logged_in();
|
$operator = get_logged_in();
|
||||||
@ -39,44 +40,6 @@ $threadstate_key = array(
|
|||||||
$state_loading => "chat.thread.state_loading"
|
$state_loading => "chat.thread.state_loading"
|
||||||
);
|
);
|
||||||
|
|
||||||
function get_useragent_version($userAgent) {
|
|
||||||
global $knownAgents;
|
|
||||||
if (is_array($knownAgents)) {
|
|
||||||
$userAgent = strtolower($userAgent);
|
|
||||||
foreach( $knownAgents as $agent ) {
|
|
||||||
if( strstr($userAgent,$agent) ) {
|
|
||||||
if( preg_match( "/".$agent."[\\s\/]?(\\d+(\\.\\d+(\\.\\d+(\\.\\d+)?)?)?)/", $userAgent, $matches ) ) {
|
|
||||||
$ver = $matches[1];
|
|
||||||
if($agent=='safari') {
|
|
||||||
if(preg_match( "/version\/(\\d+(\\.\\d+(\\.\\d+)?)?)/", $userAgent, $matches)) {
|
|
||||||
$ver = $matches[1];
|
|
||||||
} else {
|
|
||||||
$ver = "1 or 2 (build ".$ver.")";
|
|
||||||
}
|
|
||||||
if(preg_match( "/mobile\/(\\d+(\\.\\d+(\\.\\d+)?)?)/", $userAgent, $matches)) {
|
|
||||||
$userAgent = "iPhone ".$matches[1]." ($agent $ver)";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$userAgent = ucfirst($agent)." ".$ver;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $userAgent;
|
|
||||||
}
|
|
||||||
|
|
||||||
function get_user_addr($addr) {
|
|
||||||
global $settings;
|
|
||||||
if($settings['geolink'] && preg_match( "/(\\d+\\.\\d+\\.\\d+\\.\\d+)/", $addr, $matches )) {
|
|
||||||
$userip = $matches[1];
|
|
||||||
return get_popup(str_replace("{ip}", $userip, $settings['geolink']), '', htmlspecialchars($addr), "GeoLocation", "ip$userip", $settings['geolinkparams']);
|
|
||||||
}
|
|
||||||
return htmlspecialchars($addr);
|
|
||||||
}
|
|
||||||
|
|
||||||
function thread_to_xml($thread,$link) {
|
function thread_to_xml($thread,$link) {
|
||||||
global $state_chatting, $threadstate_to_string, $threadstate_key,
|
global $state_chatting, $threadstate_to_string, $threadstate_key,
|
||||||
$webim_encoding, $operator, $settings,
|
$webim_encoding, $operator, $settings,
|
||||||
|
@ -15,9 +15,11 @@
|
|||||||
require_once('../libs/common.php');
|
require_once('../libs/common.php');
|
||||||
require_once('../libs/operator.php');
|
require_once('../libs/operator.php');
|
||||||
require_once('../libs/chat.php');
|
require_once('../libs/chat.php');
|
||||||
|
require_once('../libs/userinfo.php');
|
||||||
require_once('../libs/pagination.php');
|
require_once('../libs/pagination.php');
|
||||||
|
|
||||||
$operator = check_login();
|
$operator = check_login();
|
||||||
|
loadsettings();
|
||||||
|
|
||||||
$page = array( 'operator' => topage(get_operator_name($operator)) );
|
$page = array( 'operator' => topage(get_operator_name($operator)) );
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@
|
|||||||
<a href="<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>" target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo topage(htmlspecialchars($chatthread['userName'])) ?></a>
|
<a href="<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>" target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo topage(htmlspecialchars($chatthread['userName'])) ?></a>
|
||||||
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
|
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
|
||||||
<td height='30' class='table'>
|
<td height='30' class='table'>
|
||||||
<?php echo topage(htmlspecialchars($chatthread['remote'])) ?>
|
<?php echo get_user_addr(topage($chatthread['remote'])) ?>
|
||||||
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
|
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
|
||||||
<td height='30' class='table'>
|
<td height='30' class='table'>
|
||||||
<?php if( $chatthread['agentName'] ) { ?><?php echo topage(htmlspecialchars($chatthread['agentName'])) ?><?php } ?>
|
<?php if( $chatthread['agentName'] ) { ?><?php echo topage(htmlspecialchars($chatthread['agentName'])) ?><?php } ?>
|
||||||
@ -88,7 +88,7 @@
|
|||||||
<?php echo topage(htmlspecialchars($chatthread['size'])) ?>
|
<?php echo topage(htmlspecialchars($chatthread['size'])) ?>
|
||||||
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
|
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
|
||||||
<td height='30' class='table'>
|
<td height='30' class='table'>
|
||||||
<?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?>, <?php echo date_diff($chatthread['modified']-$chatthread['created']) ?>
|
<?php echo date_diff($chatthread['modified']-$chatthread['created']) ?>, <?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td height='2' colspan='9'></td></tr><tr><td bgcolor='#e1e1e1' colspan='9'><img width='1' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td></tr><tr><td height='2' colspan='9'></td></tr>
|
<tr><td height='2' colspan='9'></td></tr><tr><td bgcolor='#e1e1e1' colspan='9'><img width='1' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td></tr><tr><td height='2' colspan='9'></td></tr>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of Web Instant Messenger project.
|
* This file is part of Web Instant Messenger project.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2005-2008 Web Messenger Community
|
* Copyright (c) 2005-2009 Web Messenger Community
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
@ -10,209 +10,83 @@
|
|||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Evgeny Gryaznov - initial API and implementation
|
* Evgeny Gryaznov - initial API and implementation
|
||||||
*
|
|
||||||
* Ido Green - add more features (base on ID: 2492353)
|
|
||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
|
<link rel="stylesheet" type="text/css" media="all" href="<?php echo $webimroot ?>/styles.css" />
|
||||||
|
|
||||||
|
|
||||||
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
|
<link rel="shortcut icon" href="<?php echo $webimroot ?>/images/favicon.ico" type="image/x-icon"/>
|
||||||
<title>
|
<title>
|
||||||
<?php echo getlocal("page.analysis.userhistory.title") ?> - <?php echo getlocal("app.title") ?>
|
<?php echo getlocal("page.analysis.userhistory.title") ?> - <?php echo getlocal("app.title") ?>
|
||||||
</title>
|
</title>
|
||||||
|
|
||||||
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
|
<meta http-equiv="keywords" content="<?php echo getlocal("page.main_layout.meta_keyword") ?>">
|
||||||
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
|
<meta http-equiv="description" content="<?php echo getlocal("page.main_layout.meta_description") ?>">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
|
<body bgcolor="#FFFFFF" text="#000000" link="#2971C1" vlink="#2971C1" alink="#2971C1">
|
||||||
|
|
||||||
<table width="100%" cellpadding="2" cellspacing="0" border="0">
|
<table width="100%" cellpadding="2" cellspacing="0" border="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top" class="text">
|
<td valign="top" class="text">
|
||||||
|
|
||||||
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
|
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="left" valign="top">
|
||||||
<h1><?php echo getlocal("page.analysis.userhistory.title") ?></h1>
|
<h1><?php echo getlocal("page.analysis.userhistory.title") ?></h1>
|
||||||
</td>
|
</td><td align="right" class="text" valign="top"><table cellspacing="0" cellpadding="0" border="0"><tr><td class="textform"><?php echo getlocal2("menu.operator",array($page['operator'])) ?></td></tr></table></td></tr></table>
|
||||||
<td align="right" class="text" valign="top">
|
|
||||||
<table cellspacing="0" cellpadding="0" border="0"><tr>
|
|
||||||
<td class="textform">
|
|
||||||
<?php echo getlocal2("menu.operator",array($page['operator'])) ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<?php echo getlocal("page.analysis.userhistory.intro") ?>
|
|
||||||
|
|
||||||
<br/><br/>
|
|
||||||
|
|
||||||
<?php if( $page['pagination'] && $page['pagination.items'] ) { ?>
|
<?php echo getlocal("page.analysis.userhistory.intro") ?>
|
||||||
|
|
||||||
|
<br/><br/>
|
||||||
|
|
||||||
|
<?php if( $page['pagination'] && $page['pagination.items'] ) { ?>
|
||||||
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
<table cellpadding="0" cellspacing="0" border="0" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td class='table' bgcolor='#276db8' height='30'><span class='header'>
|
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page.analysis.search.head_name") ?></span></td><td width='3'></td>
|
||||||
<?php echo getlocal("page.analysis.search.head_name") ?></span>
|
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page.analysis.search.head_host") ?></span></td><td width='3'></td>
|
||||||
</td>
|
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page.analysis.search.head_operator") ?></span></td><td width='3'></td>
|
||||||
<td width='3'>
|
<td class='table' bgcolor='#276db8' height='30'><span class='header'><?php echo getlocal("page.analysis.search.head_time") ?></span></td>
|
||||||
</td>
|
|
||||||
<td class='table' bgcolor='#276db8' height='30'>
|
|
||||||
<span class='header'>
|
|
||||||
<?php echo getlocal("page.analysis.search.head_host") ?>
|
|
||||||
</span></td>
|
|
||||||
<td width='3'>
|
|
||||||
</td>
|
|
||||||
<td class='table' bgcolor='#276db8' height='30'>
|
|
||||||
<span class='header'>
|
|
||||||
<?php echo getlocal("page.analysis.search.head_operator") ?>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td width='3'>
|
|
||||||
</td>
|
|
||||||
<td class='table' bgcolor='#276db8' height='30'>
|
|
||||||
<span class='header'>
|
|
||||||
<?php echo getlocal("page.analysis.search.head_time") ?>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td width='3'>
|
|
||||||
</td>
|
|
||||||
<td class='table' bgcolor='#276db8' height='30'>
|
|
||||||
<span class='header'>
|
|
||||||
<?php echo getlocal("page.analysis.search.head_geo") ?>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td width='3'>
|
|
||||||
</td>
|
|
||||||
<td class='table' bgcolor='#276db8' height='30'>
|
|
||||||
<span class='header'>
|
|
||||||
<?php echo getlocal("page.analysis.search.user_agent") ?>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
<td width='3'>
|
|
||||||
</td>
|
|
||||||
<td class='table' bgcolor='#276db8' height='30'>
|
|
||||||
<span class='header'>
|
|
||||||
<?php echo getlocal("page.analysis.search.head_os") ?>
|
|
||||||
</span>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php foreach( $page['pagination.items'] as $chatthread ) { ?>
|
<?php foreach( $page['pagination.items'] as $chatthread ) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td height='30' class='table'>
|
<td height='30' class='table'>
|
||||||
<a href="<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>" target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo htmlspecialchars(topage($chatthread['userName'])) ?></a>
|
<a href="<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>" target="_blank" onclick="this.newWindow = window.open('<?php echo $webimroot ?>/operator/threadprocessor.php?threadid=<?php echo $chatthread['threadid'] ?>', '', 'toolbar=0,scrollbars=1,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><?php echo htmlspecialchars(topage($chatthread['userName'])) ?></a>
|
||||||
</td>
|
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
|
||||||
<td background='<?php echo $webimroot ?>/images/tablediv3.gif'>
|
|
||||||
<img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'>
|
|
||||||
</td>
|
|
||||||
<td height='30' class='table'>
|
<td height='30' class='table'>
|
||||||
<?php echo htmlspecialchars(topage($chatthread['remote'])) ?>
|
<?php echo get_user_addr(topage($chatthread['remote'])) ?>
|
||||||
</td>
|
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
|
||||||
<td background='<?php echo $webimroot ?>/images/tablediv3.gif'>
|
|
||||||
<img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'>
|
|
||||||
</td>
|
|
||||||
<td height='30' class='table'>
|
<td height='30' class='table'>
|
||||||
<?php if( $chatthread['agentName'] ) { ?><?php echo htmlspecialchars(topage($chatthread['agentName'])) ?><?php } ?>
|
<?php if( $chatthread['agentName'] ) { ?><?php echo htmlspecialchars(topage($chatthread['agentName'])) ?><?php } ?>
|
||||||
</td>
|
</td><td background='<?php echo $webimroot ?>/images/tablediv3.gif'><img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td>
|
||||||
<td background='<?php echo $webimroot ?>/images/tablediv3.gif'>
|
|
||||||
<img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'>
|
|
||||||
</td>
|
|
||||||
<td height='30' class='table'>
|
<td height='30' class='table'>
|
||||||
<?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?>, took:
|
<?php echo date_diff($chatthread['modified']-$chatthread['created']) ?>, <?php echo strftime("%B, %d %Y %H:%M:%S", $chatthread['created']) ?>
|
||||||
<?php echo date_diff($chatthread['modified']-$chatthread['created']) ?>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td background='<?php echo $webimroot ?>/images/tablediv3.gif'>
|
|
||||||
<img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'>
|
|
||||||
</td>
|
|
||||||
<td height='30' class='table'>
|
|
||||||
<?php
|
|
||||||
$t_ip = $chatthread['remote'];
|
|
||||||
echo "<a href='http://api.hostip.info/get_html.php?ip=" . $t_ip . "'>More details</a> ";
|
|
||||||
echo "<IMG SRC='http://api.hostip.info/flag.php?ip=" . $t_ip . "' ALT='N/A Flag'>";
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td background='<?php echo $webimroot ?>/images/tablediv3.gif'>
|
|
||||||
<img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'>
|
|
||||||
</td>
|
|
||||||
<td height='30' class='table'>
|
|
||||||
<?php
|
|
||||||
$first_name = $chatthread['userAgent'];
|
|
||||||
$pos = strpos($first_name, " ");
|
|
||||||
$first_name = substr($first_name, 0, $pos);
|
|
||||||
echo "<span title='" . $chatthread['userAgent'] . "'>$first_name</span>";
|
|
||||||
?>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td background='<?php echo $webimroot ?>/images/tablediv3.gif'>
|
|
||||||
<img width='3' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'>
|
|
||||||
</td>
|
|
||||||
<td height='30' class='table'>
|
|
||||||
<?php
|
|
||||||
$user_agent = $chatthread['userAgent'];
|
|
||||||
$start = strpos($user_agent, "(");
|
|
||||||
$end = strpos($user_agent, ")");
|
|
||||||
$os = substr($user_agent, $start + 1, $end - $start - 1);
|
|
||||||
echo $os;
|
|
||||||
?>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr><td height='2' colspan='7'></td></tr><tr><td bgcolor='#e1e1e1' colspan='7'><img width='1' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'></td></tr><tr><td height='2' colspan='7'></td></tr>
|
||||||
<td height='2' colspan='14'>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td bgcolor='#e1e1e1' colspan='14'>
|
|
||||||
<img width='1' height='1' border='0' alt='' src='<?php echo $webimroot ?>/images/free.gif'>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td height='2' colspan='14'></td>
|
|
||||||
</tr>
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</table>
|
</table>
|
||||||
<br />
|
<br />
|
||||||
<?php echo generate_pagination($page['pagination']) ?>
|
<?php echo generate_pagination($page['pagination']) ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if( $page['pagination'] && !$page['pagination.items'] ) { ?>
|
<?php if( $page['pagination'] && !$page['pagination.items'] ) { ?>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<table cellspacing='0' cellpadding='0' border='0'><tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0'>
|
<table cellspacing='0' cellpadding='0' border='0'><tr><td background='<?php echo $webimroot ?>/images/loginbg.gif'><table cellspacing='0' cellpadding='0' border='0'><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlt.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrt.gif' width='16' height='16' border='0' alt=''></td></tr><tr><td></td><td align='center'><table border='0' cellspacing='0' cellpadding='0'>
|
||||||
<span class="table">
|
<span class="table">
|
||||||
<?php echo getlocal("tag.pagination.no_items") ?>
|
<?php echo getlocal("tag.pagination.no_items") ?>
|
||||||
</span>
|
</span>
|
||||||
</table>
|
</table></td><td></td></tr><tr><td><img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''></td><td></td><td><img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''></td></tr></table></td></tr></table>
|
||||||
</td>
|
<?php } ?>
|
||||||
<td>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<img src='<?php echo $webimroot ?>/images/logincrnlb.gif' width='16' height='16' border='0' alt=''>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<img src='<?php echo $webimroot ?>/images/logincrnrb.gif' width='16' height='16' border='0' alt=''>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user